added 'stat' winix function

git-svn-id: svn://ttmath.org/publicrep/winix/trunk@665 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
Tomasz Sowa 2010-10-23 14:54:44 +00:00
parent 1b053c03ba
commit a1bee81a5b
19 changed files with 446 additions and 156 deletions

View File

@ -22,16 +22,16 @@ app.o: ../functions/download.h ../functions/emacs.h ../functions/last.h
app.o: ../functions/login.h ../functions/logout.h ../functions/ls.h
app.o: ../functions/mkdir.h ../functions/mv.h ../functions/node.h
app.o: ../functions/priv.h ../functions/reload.h ../functions/rm.h
app.o: ../functions/run.h ../functions/subject.h ../functions/funthread.h
app.o: ../functions/template.h ../functions/tinymce.h ../functions/uname.h
app.o: ../functions/upload.h ../functions/uptime.h ../functions/who.h
app.o: ../core/htmlfilter.h ../templates/templates.h misc.h
app.o: ../templates/patterncacher.h ../core/item.h
app.o: ../templates/ckeditorgetparser.h ../core/httpsimpleparser.h
app.o: ../core/log.h ../templates/indexpatterns.h ../core/sessionmanager.h
app.o: compress.h getparser.h httpsimpleparser.h postparser.h cookieparser.h
app.o: postmultiparser.h acceptencodingparser.h acceptbaseparser.h plugin.h
app.o: pluginmsg.h
app.o: ../functions/run.h ../functions/stat.h ../functions/subject.h
app.o: ../functions/funthread.h ../functions/template.h
app.o: ../functions/tinymce.h ../functions/uname.h ../functions/upload.h
app.o: ../functions/uptime.h ../functions/who.h ../core/htmlfilter.h
app.o: ../templates/templates.h misc.h ../templates/patterncacher.h
app.o: ../core/item.h ../templates/ckeditorgetparser.h
app.o: ../core/httpsimpleparser.h ../core/log.h ../templates/indexpatterns.h
app.o: ../core/sessionmanager.h compress.h getparser.h httpsimpleparser.h
app.o: postparser.h cookieparser.h postmultiparser.h acceptencodingparser.h
app.o: acceptbaseparser.h plugin.h pluginmsg.h
bbcodeparser.o: bbcodeparser.h htmlfilter.h
compress.o: compress.h log.h
config.o: config.h confparser.h htmlfilter.h log.h plugin.h pluginmsg.h
@ -54,15 +54,15 @@ config.o: ../functions/download.h ../functions/emacs.h ../functions/last.h
config.o: ../functions/login.h ../functions/logout.h ../functions/ls.h
config.o: ../functions/mkdir.h ../functions/mv.h ../functions/node.h
config.o: ../functions/priv.h ../functions/reload.h ../functions/rm.h
config.o: ../functions/run.h ../functions/subject.h ../functions/funthread.h
config.o: ../functions/template.h ../functions/tinymce.h ../functions/uname.h
config.o: ../functions/upload.h ../functions/uptime.h ../functions/who.h
config.o: ../core/htmlfilter.h ../templates/templates.h misc.h
config.o: ../templates/patterncacher.h ../core/item.h
config.o: ../templates/ckeditorgetparser.h ../core/httpsimpleparser.h
config.o: ../core/log.h ../templates/indexpatterns.h
config.o: ../templates/localefilter.h ../core/locale.h ../core/locale.h
config.o: ../core/sessionmanager.h
config.o: ../functions/run.h ../functions/stat.h ../functions/subject.h
config.o: ../functions/funthread.h ../functions/template.h
config.o: ../functions/tinymce.h ../functions/uname.h ../functions/upload.h
config.o: ../functions/uptime.h ../functions/who.h ../core/htmlfilter.h
config.o: ../templates/templates.h misc.h ../templates/patterncacher.h
config.o: ../core/item.h ../templates/ckeditorgetparser.h
config.o: ../core/httpsimpleparser.h ../core/log.h
config.o: ../templates/indexpatterns.h ../templates/localefilter.h
config.o: ../core/locale.h ../core/locale.h ../core/sessionmanager.h
confparser.o: confparser.h misc.h item.h
dircontainer.o: dircontainer.h item.h log.h
dirs.o: dirs.h item.h dircontainer.h ../db/db.h ../db/dbbase.h ../db/dbconn.h
@ -117,15 +117,15 @@ mounts.o: ../functions/download.h ../functions/emacs.h ../functions/last.h
mounts.o: ../functions/login.h ../functions/logout.h ../functions/ls.h
mounts.o: ../functions/mkdir.h ../functions/mv.h ../functions/node.h
mounts.o: ../functions/priv.h ../functions/reload.h ../functions/rm.h
mounts.o: ../functions/run.h ../functions/subject.h ../functions/funthread.h
mounts.o: ../functions/template.h ../functions/tinymce.h ../functions/uname.h
mounts.o: ../functions/upload.h ../functions/uptime.h ../functions/who.h
mounts.o: ../core/htmlfilter.h ../templates/templates.h misc.h
mounts.o: ../templates/patterncacher.h ../core/item.h
mounts.o: ../templates/ckeditorgetparser.h ../core/httpsimpleparser.h
mounts.o: ../core/log.h ../templates/indexpatterns.h
mounts.o: ../templates/localefilter.h ../core/locale.h ../core/locale.h
mounts.o: ../core/sessionmanager.h
mounts.o: ../functions/run.h ../functions/stat.h ../functions/subject.h
mounts.o: ../functions/funthread.h ../functions/template.h
mounts.o: ../functions/tinymce.h ../functions/uname.h ../functions/upload.h
mounts.o: ../functions/uptime.h ../functions/who.h ../core/htmlfilter.h
mounts.o: ../templates/templates.h misc.h ../templates/patterncacher.h
mounts.o: ../core/item.h ../templates/ckeditorgetparser.h
mounts.o: ../core/httpsimpleparser.h ../core/log.h
mounts.o: ../templates/indexpatterns.h ../templates/localefilter.h
mounts.o: ../core/locale.h ../core/locale.h ../core/sessionmanager.h
notify.o: log.h notify.h ../templatesnotify/templatesnotify.h
notify.o: ../../ezc/src/ezc.h ../core/mount.h ../core/locale.h confparser.h
notify.o: ../core/config.h ../templates/misc.h ../templates/localefilter.h
@ -158,15 +158,15 @@ plugin.o: ../functions/download.h ../functions/emacs.h ../functions/last.h
plugin.o: ../functions/login.h ../functions/logout.h ../functions/ls.h
plugin.o: ../functions/mkdir.h ../functions/mv.h ../functions/node.h
plugin.o: ../functions/priv.h ../functions/reload.h ../functions/rm.h
plugin.o: ../functions/run.h ../functions/subject.h ../functions/funthread.h
plugin.o: ../functions/template.h ../functions/tinymce.h ../functions/uname.h
plugin.o: ../functions/upload.h ../functions/uptime.h ../functions/who.h
plugin.o: ../core/htmlfilter.h ../templates/templates.h misc.h
plugin.o: ../templates/patterncacher.h ../core/item.h
plugin.o: ../templates/ckeditorgetparser.h ../core/httpsimpleparser.h
plugin.o: ../core/log.h ../templates/indexpatterns.h
plugin.o: ../templates/localefilter.h ../core/locale.h ../core/locale.h
plugin.o: ../core/sessionmanager.h
plugin.o: ../functions/run.h ../functions/stat.h ../functions/subject.h
plugin.o: ../functions/funthread.h ../functions/template.h
plugin.o: ../functions/tinymce.h ../functions/uname.h ../functions/upload.h
plugin.o: ../functions/uptime.h ../functions/who.h ../core/htmlfilter.h
plugin.o: ../templates/templates.h misc.h ../templates/patterncacher.h
plugin.o: ../core/item.h ../templates/ckeditorgetparser.h
plugin.o: ../core/httpsimpleparser.h ../core/log.h
plugin.o: ../templates/indexpatterns.h ../templates/localefilter.h
plugin.o: ../core/locale.h ../core/locale.h ../core/sessionmanager.h
plugindata.o: plugindata.h plugin.h pluginmsg.h log.h config.h confparser.h
plugindata.o: htmlfilter.h request.h requesttypes.h session.h item.h error.h
plugindata.o: user.h rebus.h system.h dirs.h dircontainer.h ../db/db.h
@ -188,16 +188,16 @@ plugindata.o: ../functions/download.h ../functions/emacs.h
plugindata.o: ../functions/last.h ../functions/login.h ../functions/logout.h
plugindata.o: ../functions/ls.h ../functions/mkdir.h ../functions/mv.h
plugindata.o: ../functions/node.h ../functions/priv.h ../functions/reload.h
plugindata.o: ../functions/rm.h ../functions/run.h ../functions/subject.h
plugindata.o: ../functions/funthread.h ../functions/template.h
plugindata.o: ../functions/tinymce.h ../functions/uname.h
plugindata.o: ../functions/upload.h ../functions/uptime.h ../functions/who.h
plugindata.o: ../core/htmlfilter.h ../templates/templates.h misc.h
plugindata.o: ../templates/patterncacher.h ../core/item.h
plugindata.o: ../templates/ckeditorgetparser.h ../core/httpsimpleparser.h
plugindata.o: ../core/log.h ../templates/indexpatterns.h
plugindata.o: ../templates/localefilter.h ../core/locale.h ../core/locale.h
plugindata.o: ../core/sessionmanager.h
plugindata.o: ../functions/rm.h ../functions/run.h ../functions/stat.h
plugindata.o: ../functions/subject.h ../functions/funthread.h
plugindata.o: ../functions/template.h ../functions/tinymce.h
plugindata.o: ../functions/uname.h ../functions/upload.h
plugindata.o: ../functions/uptime.h ../functions/who.h ../core/htmlfilter.h
plugindata.o: ../templates/templates.h misc.h ../templates/patterncacher.h
plugindata.o: ../core/item.h ../templates/ckeditorgetparser.h
plugindata.o: ../core/httpsimpleparser.h ../core/log.h
plugindata.o: ../templates/indexpatterns.h ../templates/localefilter.h
plugindata.o: ../core/locale.h ../core/locale.h ../core/sessionmanager.h
postmultiparser.o: postmultiparser.h error.h requesttypes.h config.h
postmultiparser.o: confparser.h htmlfilter.h log.h
rebus.o: log.h rebus.h misc.h item.h request.h requesttypes.h session.h
@ -222,15 +222,15 @@ request.o: ../functions/download.h ../functions/emacs.h ../functions/last.h
request.o: ../functions/login.h ../functions/logout.h ../functions/ls.h
request.o: ../functions/mkdir.h ../functions/mv.h ../functions/node.h
request.o: ../functions/priv.h ../functions/reload.h ../functions/rm.h
request.o: ../functions/run.h ../functions/subject.h ../functions/funthread.h
request.o: ../functions/template.h ../functions/tinymce.h
request.o: ../functions/uname.h ../functions/upload.h ../functions/uptime.h
request.o: ../functions/who.h ../core/htmlfilter.h ../templates/templates.h
request.o: misc.h ../templates/patterncacher.h ../core/item.h
request.o: ../templates/ckeditorgetparser.h ../core/httpsimpleparser.h
request.o: ../core/log.h ../templates/indexpatterns.h
request.o: ../templates/localefilter.h ../core/locale.h ../core/locale.h
request.o: ../core/sessionmanager.h
request.o: ../functions/run.h ../functions/stat.h ../functions/subject.h
request.o: ../functions/funthread.h ../functions/template.h
request.o: ../functions/tinymce.h ../functions/uname.h ../functions/upload.h
request.o: ../functions/uptime.h ../functions/who.h ../core/htmlfilter.h
request.o: ../templates/templates.h misc.h ../templates/patterncacher.h
request.o: ../core/item.h ../templates/ckeditorgetparser.h
request.o: ../core/httpsimpleparser.h ../core/log.h
request.o: ../templates/indexpatterns.h ../templates/localefilter.h
request.o: ../core/locale.h ../core/locale.h ../core/sessionmanager.h
session.o: session.h item.h error.h user.h plugindata.h rebus.h
sessioncontainer.o: sessioncontainer.h session.h item.h error.h user.h
sessioncontainer.o: plugindata.h rebus.h lastcontainer.h log.h
@ -258,12 +258,12 @@ sessionmanager.o: ../functions/last.h ../functions/login.h
sessionmanager.o: ../functions/logout.h ../functions/ls.h
sessionmanager.o: ../functions/mkdir.h ../functions/mv.h ../functions/node.h
sessionmanager.o: ../functions/priv.h ../functions/reload.h ../functions/rm.h
sessionmanager.o: ../functions/run.h ../functions/subject.h
sessionmanager.o: ../functions/funthread.h ../functions/template.h
sessionmanager.o: ../functions/tinymce.h ../functions/uname.h
sessionmanager.o: ../functions/upload.h ../functions/uptime.h
sessionmanager.o: ../functions/who.h ../core/htmlfilter.h
sessionmanager.o: ../templates/templates.h misc.h
sessionmanager.o: ../functions/run.h ../functions/stat.h
sessionmanager.o: ../functions/subject.h ../functions/funthread.h
sessionmanager.o: ../functions/template.h ../functions/tinymce.h
sessionmanager.o: ../functions/uname.h ../functions/upload.h
sessionmanager.o: ../functions/uptime.h ../functions/who.h
sessionmanager.o: ../core/htmlfilter.h ../templates/templates.h misc.h
sessionmanager.o: ../templates/patterncacher.h ../core/item.h
sessionmanager.o: ../templates/ckeditorgetparser.h ../core/httpsimpleparser.h
sessionmanager.o: ../core/log.h ../templates/indexpatterns.h

View File

@ -89,8 +89,8 @@ ckeditor.o: ../templates/localefilter.h ../core/locale.h ../core/system.h
ckeditor.o: functions.h functionparser.h adduser.h cat.h chmod.h
ckeditor.o: privchanger.h chown.h cp.h createthread.h default.h download.h
ckeditor.o: emacs.h last.h login.h logout.h ls.h mkdir.h mv.h node.h priv.h
ckeditor.o: reload.h rm.h run.h subject.h funthread.h template.h tinymce.h
ckeditor.o: uname.h upload.h uptime.h who.h ../core/htmlfilter.h
ckeditor.o: reload.h rm.h run.h stat.h subject.h funthread.h template.h
ckeditor.o: tinymce.h uname.h upload.h uptime.h who.h ../core/htmlfilter.h
cp.o: cp.h functionbase.h ../core/item.h ../db/db.h ../db/dbbase.h
cp.o: ../db/dbconn.h ../db/dbtextstream.h ../core/textstream.h
cp.o: ../core/error.h ../core/log.h ../db/dbitemquery.h ../db/dbitemcolumns.h
@ -109,8 +109,8 @@ cp.o: ../templates/misc.h ../templates/localefilter.h ../core/locale.h
cp.o: ../core/system.h ../core/misc.h functions.h functionparser.h adduser.h
cp.o: cat.h chmod.h privchanger.h chown.h ckeditor.h createthread.h default.h
cp.o: download.h emacs.h last.h login.h logout.h ls.h mkdir.h mv.h node.h
cp.o: priv.h reload.h rm.h run.h subject.h funthread.h template.h tinymce.h
cp.o: uname.h upload.h uptime.h who.h ../core/htmlfilter.h
cp.o: priv.h reload.h rm.h run.h stat.h subject.h funthread.h template.h
cp.o: tinymce.h uname.h upload.h uptime.h who.h ../core/htmlfilter.h
createthread.o: createthread.h functionbase.h ../core/item.h ../db/db.h
createthread.o: ../db/dbbase.h ../db/dbconn.h ../db/dbtextstream.h
createthread.o: ../core/textstream.h ../core/error.h ../core/log.h
@ -132,8 +132,8 @@ createthread.o: ../core/locale.h ../core/system.h functions.h
createthread.o: functionparser.h adduser.h cat.h chmod.h privchanger.h
createthread.o: chown.h ckeditor.h cp.h default.h download.h emacs.h last.h
createthread.o: login.h logout.h ls.h mkdir.h mv.h node.h priv.h reload.h
createthread.o: rm.h run.h subject.h funthread.h template.h tinymce.h uname.h
createthread.o: upload.h uptime.h who.h ../core/htmlfilter.h
createthread.o: rm.h run.h stat.h subject.h funthread.h template.h tinymce.h
createthread.o: uname.h upload.h uptime.h who.h ../core/htmlfilter.h
default.o: default.h functionbase.h ../core/item.h ../db/db.h ../db/dbbase.h
default.o: ../db/dbconn.h ../db/dbtextstream.h ../core/textstream.h
default.o: ../core/error.h ../core/log.h ../db/dbitemquery.h
@ -192,8 +192,9 @@ emacs.o: ../core/log.h ../templates/indexpatterns.h ../core/sessionmanager.h
emacs.o: ../core/sessioncontainer.h functions.h functionparser.h adduser.h
emacs.o: cat.h chmod.h privchanger.h chown.h ckeditor.h cp.h createthread.h
emacs.o: default.h download.h last.h login.h logout.h ls.h mkdir.h mv.h
emacs.o: node.h priv.h reload.h rm.h run.h subject.h funthread.h template.h
emacs.o: tinymce.h uname.h upload.h uptime.h who.h ../core/htmlfilter.h
emacs.o: node.h priv.h reload.h rm.h run.h stat.h subject.h funthread.h
emacs.o: template.h tinymce.h uname.h upload.h uptime.h who.h
emacs.o: ../core/htmlfilter.h
functionbase.o: functionbase.h ../core/item.h ../db/db.h ../db/dbbase.h
functionbase.o: ../db/dbconn.h ../db/dbtextstream.h ../core/textstream.h
functionbase.o: ../core/error.h ../core/log.h ../db/dbitemquery.h
@ -215,8 +216,8 @@ functionbase.o: ../core/locale.h ../core/system.h functions.h
functionbase.o: functionparser.h adduser.h cat.h chmod.h privchanger.h
functionbase.o: chown.h ckeditor.h cp.h createthread.h default.h download.h
functionbase.o: emacs.h last.h login.h logout.h ls.h mkdir.h mv.h node.h
functionbase.o: priv.h reload.h rm.h run.h subject.h funthread.h template.h
functionbase.o: tinymce.h uname.h upload.h uptime.h who.h
functionbase.o: priv.h reload.h rm.h run.h stat.h subject.h funthread.h
functionbase.o: template.h tinymce.h uname.h upload.h uptime.h who.h
functionbase.o: ../core/htmlfilter.h
functionparser.o: functionparser.h ../core/request.h ../core/requesttypes.h
functionparser.o: ../core/session.h ../core/item.h ../core/error.h
@ -239,9 +240,9 @@ functionparser.o: ../templates/misc.h ../templates/localefilter.h
functionparser.o: ../core/locale.h ../core/system.h adduser.h cat.h chmod.h
functionparser.o: privchanger.h chown.h ckeditor.h cp.h createthread.h
functionparser.o: default.h download.h emacs.h last.h login.h logout.h ls.h
functionparser.o: mkdir.h mv.h node.h priv.h reload.h rm.h run.h subject.h
functionparser.o: funthread.h template.h tinymce.h uname.h upload.h uptime.h
functionparser.o: who.h ../core/htmlfilter.h
functionparser.o: mkdir.h mv.h node.h priv.h reload.h rm.h run.h stat.h
functionparser.o: subject.h funthread.h template.h tinymce.h uname.h upload.h
functionparser.o: uptime.h who.h ../core/htmlfilter.h
functions.o: functions.h functionbase.h ../core/item.h ../db/db.h
functions.o: ../db/dbbase.h ../db/dbconn.h ../db/dbtextstream.h
functions.o: ../core/textstream.h ../core/error.h ../core/log.h
@ -262,12 +263,13 @@ functions.o: ../templates/localefilter.h ../core/locale.h ../core/system.h
functions.o: functionparser.h adduser.h cat.h chmod.h privchanger.h chown.h
functions.o: ckeditor.h cp.h createthread.h default.h download.h emacs.h
functions.o: last.h login.h logout.h ls.h mkdir.h mv.h node.h priv.h reload.h
functions.o: rm.h run.h subject.h funthread.h template.h tinymce.h uname.h
functions.o: upload.h uptime.h who.h ../core/htmlfilter.h ../core/log.h
functions.o: ../core/misc.h ../core/plugin.h ../core/pluginmsg.h
functions.o: ../core/sessionmanager.h ../core/sessioncontainer.h
functions.o: ../functions/functions.h ../templates/templates.h
functions.o: ../templates/misc.h ../templates/patterncacher.h ../core/item.h
functions.o: rm.h run.h stat.h subject.h funthread.h template.h tinymce.h
functions.o: uname.h upload.h uptime.h who.h ../core/htmlfilter.h
functions.o: ../core/log.h ../core/misc.h ../core/plugin.h
functions.o: ../core/pluginmsg.h ../core/sessionmanager.h
functions.o: ../core/sessioncontainer.h ../functions/functions.h
functions.o: ../templates/templates.h ../templates/misc.h
functions.o: ../templates/patterncacher.h ../core/item.h
functions.o: ../templates/ckeditorgetparser.h ../core/httpsimpleparser.h
functions.o: ../core/log.h ../templates/indexpatterns.h
functions.o: ../core/sessionmanager.h
@ -374,8 +376,8 @@ mkdir.o: ../templates/localefilter.h ../core/locale.h ../core/system.h
mkdir.o: functions.h functionparser.h adduser.h cat.h chmod.h privchanger.h
mkdir.o: chown.h ckeditor.h cp.h createthread.h default.h download.h emacs.h
mkdir.o: last.h login.h logout.h ls.h mv.h node.h priv.h reload.h rm.h run.h
mkdir.o: subject.h funthread.h template.h tinymce.h uname.h upload.h uptime.h
mkdir.o: who.h ../core/htmlfilter.h
mkdir.o: stat.h subject.h funthread.h template.h tinymce.h uname.h upload.h
mkdir.o: uptime.h who.h ../core/htmlfilter.h
mv.o: mv.h functionbase.h ../core/item.h ../db/db.h ../db/dbbase.h
mv.o: ../db/dbconn.h ../db/dbtextstream.h ../core/textstream.h
mv.o: ../core/error.h ../core/log.h ../db/dbitemquery.h ../db/dbitemcolumns.h
@ -394,8 +396,8 @@ mv.o: ../templates/misc.h ../templates/localefilter.h ../core/locale.h
mv.o: ../core/system.h functions.h functionparser.h adduser.h cat.h chmod.h
mv.o: privchanger.h chown.h ckeditor.h cp.h createthread.h default.h
mv.o: download.h emacs.h last.h login.h logout.h ls.h mkdir.h node.h priv.h
mv.o: reload.h rm.h run.h subject.h funthread.h template.h tinymce.h uname.h
mv.o: upload.h uptime.h who.h ../core/htmlfilter.h
mv.o: reload.h rm.h run.h stat.h subject.h funthread.h template.h tinymce.h
mv.o: uname.h upload.h uptime.h who.h ../core/htmlfilter.h
node.o: node.h functionbase.h ../core/item.h ../db/db.h ../db/dbbase.h
node.o: ../db/dbconn.h ../db/dbtextstream.h ../core/textstream.h
node.o: ../core/error.h ../core/log.h ../db/dbitemquery.h
@ -501,6 +503,22 @@ run.o: ../core/group.h ../core/loadavg.h ../core/notify.h
run.o: ../templatesnotify/templatesnotify.h ../../ezc/src/ezc.h
run.o: ../core/mount.h ../core/locale.h ../templates/misc.h
run.o: ../templates/localefilter.h ../core/locale.h ../core/system.h
stat.o: stat.h functionbase.h ../core/item.h ../db/db.h ../db/dbbase.h
stat.o: ../db/dbconn.h ../db/dbtextstream.h ../core/textstream.h
stat.o: ../core/error.h ../core/log.h ../db/dbitemquery.h
stat.o: ../db/dbitemcolumns.h ../core/user.h ../core/group.h ../core/thread.h
stat.o: ../core/dircontainer.h ../core/item.h ../core/ugcontainer.h
stat.o: ../core/request.h ../core/requesttypes.h ../core/session.h
stat.o: ../core/error.h ../core/user.h ../core/plugindata.h ../core/rebus.h
stat.o: ../core/config.h ../core/confparser.h ../core/htmlfilter.h
stat.o: ../core/config.h ../core/system.h ../core/dirs.h
stat.o: ../core/dircontainer.h ../core/request.h ../core/mounts.h
stat.o: ../core/mount.h ../core/mountparser.h ../core/users.h
stat.o: ../core/ugcontainer.h ../core/lastcontainer.h ../core/groups.h
stat.o: ../core/group.h ../core/loadavg.h ../core/notify.h
stat.o: ../templatesnotify/templatesnotify.h ../../ezc/src/ezc.h
stat.o: ../core/mount.h ../core/locale.h ../templates/misc.h
stat.o: ../templates/localefilter.h ../core/locale.h ../core/system.h
subject.o: subject.h functionbase.h ../core/item.h ../db/db.h ../db/dbbase.h
subject.o: ../db/dbconn.h ../db/dbtextstream.h ../core/textstream.h
subject.o: ../core/error.h ../core/log.h ../db/dbitemquery.h
@ -556,8 +574,8 @@ tinymce.o: ../templates/localefilter.h ../core/locale.h ../core/system.h
tinymce.o: functions.h functionparser.h adduser.h cat.h chmod.h privchanger.h
tinymce.o: chown.h ckeditor.h cp.h createthread.h default.h download.h
tinymce.o: emacs.h last.h login.h logout.h ls.h mkdir.h mv.h node.h priv.h
tinymce.o: reload.h rm.h run.h subject.h funthread.h template.h uname.h
tinymce.o: upload.h uptime.h who.h ../core/htmlfilter.h
tinymce.o: reload.h rm.h run.h stat.h subject.h funthread.h template.h
tinymce.o: uname.h upload.h uptime.h who.h ../core/htmlfilter.h
uname.o: uname.h functionbase.h ../core/item.h ../db/db.h ../db/dbbase.h
uname.o: ../db/dbconn.h ../db/dbtextstream.h ../core/textstream.h
uname.o: ../core/error.h ../core/log.h ../db/dbitemquery.h

View File

@ -1 +1 @@
o = adduser.o cat.o chmod.o chown.o ckeditor.o cp.o createthread.o default.o download.o emacs.o functionbase.o functionparser.o functions.o funthread.o last.o login.o logout.o ls.o mkdir.o mv.o node.o priv.o privchanger.o reload.o rm.o run.o subject.o template.o tinymce.o uname.o upload.o uptime.o who.o
o = adduser.o cat.o chmod.o chown.o ckeditor.o cp.o createthread.o default.o download.o emacs.o functionbase.o functionparser.o functions.o funthread.o last.o login.o logout.o ls.o mkdir.o mv.o node.o priv.o privchanger.o reload.o rm.o run.o stat.o subject.o template.o tinymce.o uname.o upload.o uptime.o who.o

View File

@ -189,6 +189,7 @@ void Functions::Create()
Add(fun_reload);
Add(fun_rm);
Add(fun_run);
Add(fun_stat);
Add(fun_subject);
Add(fun_template);
Add(fun_thread);

View File

@ -34,6 +34,7 @@
#include "reload.h"
#include "rm.h"
#include "run.h"
#include "stat.h"
#include "subject.h"
#include "funthread.h"
#include "template.h"
@ -74,6 +75,7 @@ public:
Fun::Reload fun_reload;
Fun::Rm fun_rm;
Fun::Run fun_run;
Fun::Stat fun_stat;
Fun::Subject fun_subject;
Fun::FunThread fun_thread;
Fun::Template fun_template;

24
functions/stat.cpp Executable file
View File

@ -0,0 +1,24 @@
/*
* This file is a part of Winix
* and is not publicly distributed
*
* Copyright (c) 2008-2010, Tomasz Sowa
* All rights reserved.
*
*/
#include "stat.h"
namespace Fun
{
Stat::Stat()
{
fun.url = "stat";
}
} // namespace

34
functions/stat.h Executable file
View File

@ -0,0 +1,34 @@
/*
* This file is a part of Winix
* and is not publicly distributed
*
* Copyright (c) 2010, Tomasz Sowa
* All rights reserved.
*
*/
#ifndef headerfilecmslucontentstat
#define headerfilecmslucontentstat
#include "functionbase.h"
namespace Fun
{
class Stat : public FunctionBase
{
public:
Stat();
private:
};
} // namespace
#endif

22
html/fun_stat.html Executable file
View File

@ -0,0 +1,22 @@
<h1 class="simple">{stat_header}</h1>
<table class="withoutborder">
<tr><th>{stat_item_type}:</th> <td>
[if stat_item_type_is_file]{stat_item_type_file}[end]
[if stat_item_type_is_static_file]{stat_item_type_static_file}[end]
[if stat_item_type_is_dir]{stat_item_type_dir}[end]
</td></tr>
<tr><th>{stat_item_inode}:</th> <td>[stat_item_inode]</td></tr>
<tr><th>{stat_item_user}:</th> <td>[stat_item_user]</td></tr>
<tr><th>{stat_item_group}:</th> <td>[stat_item_group]</td></tr>
<tr><th>{stat_item_privileges}:</th> <td>[stat_item_privileges]</td></tr>
<tr><th>{stat_item_date_creation}:</th><td>[stat_item_date_creation]</td></tr>
<tr><th>{stat_item_date_modification}:</th><td>[stat_item_date_modification]</td></tr>
<tr><th>{stat_item_template}:</th><td>
[if stat_item_is_template_from_mount_point]{stat_template_from_mount_point}[else][stat_item_template][end]
</td></tr>
</table>

View File

@ -216,6 +216,20 @@ cp_only_content = Copy only content of the directory
cp_remove_defaults = Remove 'default' attribute from copied directories
cp_preserve_attr = Preserve attributes: user, group, times
stat_header = Stat
stat_item_type = type
stat_item_type_file = file
stat_item_type_dir = directory
stat_item_type_static_file = static file
stat_item_inode = inode
stat_item_user = user
stat_item_group = group
stat_item_privileges = privileges
stat_item_date_creation = date creation
stat_item_date_modification = date modification
stat_item_template = template
stat_template_from_mount_point = from the mount point
subject_header = Edit subject
subject_form_legend = Edit subject form

View File

@ -221,6 +221,21 @@ cp_remove_defaults = Usu
cp_preserve_attr = Zachowaj atrybuty: u¿ytkownik, grupa, czas
stat_header = Stat
stat_item_type = typ
stat_item_type_file = plik
stat_item_type_dir = katalog
stat_item_type_static_file = plik statyczny
stat_item_inode = inode
stat_item_user = u¿ytkownik
stat_item_group = grupa
stat_item_privileges = uprawnienia
stat_item_date_creation = data stworzenia
stat_item_date_modification = data modyfikacji
stat_item_template = template
stat_template_from_mount_point = z punktu montowania
subject_header = Zmieñ tytu³
subject_form_legend = Formularz zmiany tytu³u

View File

@ -25,10 +25,11 @@ main.o: ../functions/download.h ../functions/emacs.h ../functions/last.h
main.o: ../functions/login.h ../functions/logout.h ../functions/ls.h
main.o: ../functions/mkdir.h ../functions/mv.h ../functions/node.h
main.o: ../functions/priv.h ../functions/reload.h ../functions/rm.h
main.o: ../functions/run.h ../functions/subject.h ../functions/funthread.h
main.o: ../functions/template.h ../functions/tinymce.h ../functions/uname.h
main.o: ../functions/upload.h ../functions/uptime.h ../functions/who.h
main.o: ../core/htmlfilter.h ../templates/templates.h ../templates/misc.h
main.o: ../functions/run.h ../functions/stat.h ../functions/subject.h
main.o: ../functions/funthread.h ../functions/template.h
main.o: ../functions/tinymce.h ../functions/uname.h ../functions/upload.h
main.o: ../functions/uptime.h ../functions/who.h ../core/htmlfilter.h
main.o: ../templates/templates.h ../templates/misc.h
main.o: ../templates/patterncacher.h ../core/item.h
main.o: ../templates/ckeditorgetparser.h ../core/httpsimpleparser.h
main.o: ../core/log.h ../templates/indexpatterns.h ../core/sessionmanager.h

View File

@ -32,16 +32,17 @@ init.o: ../../functions/emacs.h ../../functions/last.h
init.o: ../../functions/login.h ../../functions/logout.h ../../functions/ls.h
init.o: ../../functions/mkdir.h ../../functions/mv.h ../../functions/node.h
init.o: ../../functions/priv.h ../../functions/reload.h ../../functions/rm.h
init.o: ../../functions/run.h ../../functions/subject.h
init.o: ../../functions/funthread.h ../../functions/template.h
init.o: ../../functions/tinymce.h ../../functions/uname.h
init.o: ../../functions/upload.h ../../functions/uptime.h
init.o: ../../functions/who.h ../../core/htmlfilter.h
init.o: ../../templates/templates.h ../../templates/misc.h
init.o: ../../templates/patterncacher.h ../../core/item.h
init.o: ../../templates/ckeditorgetparser.h ../../core/httpsimpleparser.h
init.o: ../../core/log.h ../../templates/indexpatterns.h
init.o: ../../core/sessionmanager.h statssession.h ../../core/plugindata.h
init.o: ../../functions/run.h ../../functions/stat.h
init.o: ../../functions/subject.h ../../functions/funthread.h
init.o: ../../functions/template.h ../../functions/tinymce.h
init.o: ../../functions/uname.h ../../functions/upload.h
init.o: ../../functions/uptime.h ../../functions/who.h
init.o: ../../core/htmlfilter.h ../../templates/templates.h
init.o: ../../templates/misc.h ../../templates/patterncacher.h
init.o: ../../core/item.h ../../templates/ckeditorgetparser.h
init.o: ../../core/httpsimpleparser.h ../../core/log.h
init.o: ../../templates/indexpatterns.h ../../core/sessionmanager.h
init.o: statssession.h ../../core/plugindata.h
stats.o: stats.h ../../core/config.h ../../core/log.h
templates.o: templates.h ../../core/plugin.h ../../core/pluginmsg.h
templates.o: ../../core/log.h ../../core/plugindata.h ../../core/config.h
@ -77,14 +78,14 @@ templates.o: ../../functions/logout.h ../../functions/ls.h
templates.o: ../../functions/mkdir.h ../../functions/mv.h
templates.o: ../../functions/node.h ../../functions/priv.h
templates.o: ../../functions/reload.h ../../functions/rm.h
templates.o: ../../functions/run.h ../../functions/subject.h
templates.o: ../../functions/funthread.h ../../functions/template.h
templates.o: ../../functions/tinymce.h ../../functions/uname.h
templates.o: ../../functions/upload.h ../../functions/uptime.h
templates.o: ../../functions/who.h ../../core/htmlfilter.h
templates.o: ../../templates/templates.h ../../templates/misc.h
templates.o: ../../templates/patterncacher.h ../../core/item.h
templates.o: ../../templates/ckeditorgetparser.h
templates.o: ../../functions/run.h ../../functions/stat.h
templates.o: ../../functions/subject.h ../../functions/funthread.h
templates.o: ../../functions/template.h ../../functions/tinymce.h
templates.o: ../../functions/uname.h ../../functions/upload.h
templates.o: ../../functions/uptime.h ../../functions/who.h
templates.o: ../../core/htmlfilter.h ../../templates/templates.h
templates.o: ../../templates/misc.h ../../templates/patterncacher.h
templates.o: ../../core/item.h ../../templates/ckeditorgetparser.h
templates.o: ../../core/httpsimpleparser.h ../../core/log.h
templates.o: ../../templates/indexpatterns.h ../../core/sessionmanager.h
templates.o: ../../core/misc.h stats.h

View File

@ -36,11 +36,12 @@ createticket.o: ../../functions/logout.h ../../functions/ls.h
createticket.o: ../../functions/mkdir.h ../../functions/mv.h
createticket.o: ../../functions/node.h ../../functions/priv.h
createticket.o: ../../functions/reload.h ../../functions/rm.h
createticket.o: ../../functions/run.h ../../functions/subject.h
createticket.o: ../../functions/funthread.h ../../functions/template.h
createticket.o: ../../functions/tinymce.h ../../functions/uname.h
createticket.o: ../../functions/upload.h ../../functions/uptime.h
createticket.o: ../../functions/who.h ../../core/htmlfilter.h
createticket.o: ../../functions/run.h ../../functions/stat.h
createticket.o: ../../functions/subject.h ../../functions/funthread.h
createticket.o: ../../functions/template.h ../../functions/tinymce.h
createticket.o: ../../functions/uname.h ../../functions/upload.h
createticket.o: ../../functions/uptime.h ../../functions/who.h
createticket.o: ../../core/htmlfilter.h
editticket.o: editticket.h tdb.h ticket.h ../../db/dbbase.h ../../db/dbconn.h
editticket.o: ../../db/dbtextstream.h ../../core/textstream.h
editticket.o: ../../core/error.h ../../core/log.h ticketinfo.h ticketparser.h
@ -75,11 +76,11 @@ editticket.o: ../../functions/ls.h ../../functions/mkdir.h
editticket.o: ../../functions/mv.h ../../functions/node.h
editticket.o: ../../functions/priv.h ../../functions/reload.h
editticket.o: ../../functions/rm.h ../../functions/run.h
editticket.o: ../../functions/subject.h ../../functions/funthread.h
editticket.o: ../../functions/template.h ../../functions/tinymce.h
editticket.o: ../../functions/uname.h ../../functions/upload.h
editticket.o: ../../functions/uptime.h ../../functions/who.h
editticket.o: ../../core/htmlfilter.h
editticket.o: ../../functions/stat.h ../../functions/subject.h
editticket.o: ../../functions/funthread.h ../../functions/template.h
editticket.o: ../../functions/tinymce.h ../../functions/uname.h
editticket.o: ../../functions/upload.h ../../functions/uptime.h
editticket.o: ../../functions/who.h ../../core/htmlfilter.h
funticket.o: funticket.h tdb.h ticket.h ../../db/dbbase.h ../../db/dbconn.h
funticket.o: ../../db/dbtextstream.h ../../core/textstream.h
funticket.o: ../../core/error.h ../../core/log.h ticketinfo.h ticketparser.h
@ -135,15 +136,16 @@ init.o: ../../functions/last.h ../../functions/login.h
init.o: ../../functions/logout.h ../../functions/ls.h ../../functions/mkdir.h
init.o: ../../functions/mv.h ../../functions/node.h ../../functions/priv.h
init.o: ../../functions/reload.h ../../functions/rm.h ../../functions/run.h
init.o: ../../functions/subject.h ../../functions/funthread.h
init.o: ../../functions/template.h ../../functions/tinymce.h
init.o: ../../functions/uname.h ../../functions/upload.h
init.o: ../../functions/uptime.h ../../functions/who.h
init.o: ../../core/htmlfilter.h ../../templates/templates.h
init.o: ../../templates/misc.h ../../templates/patterncacher.h
init.o: ../../core/item.h ../../templates/ckeditorgetparser.h
init.o: ../../core/httpsimpleparser.h ../../core/log.h
init.o: ../../templates/indexpatterns.h ../../core/sessionmanager.h
init.o: ../../functions/stat.h ../../functions/subject.h
init.o: ../../functions/funthread.h ../../functions/template.h
init.o: ../../functions/tinymce.h ../../functions/uname.h
init.o: ../../functions/upload.h ../../functions/uptime.h
init.o: ../../functions/who.h ../../core/htmlfilter.h
init.o: ../../templates/templates.h ../../templates/misc.h
init.o: ../../templates/patterncacher.h ../../core/item.h
init.o: ../../templates/ckeditorgetparser.h ../../core/httpsimpleparser.h
init.o: ../../core/log.h ../../templates/indexpatterns.h
init.o: ../../core/sessionmanager.h
tdb.o: tdb.h ticket.h ../../db/dbbase.h ../../db/dbconn.h
tdb.o: ../../db/dbtextstream.h ../../core/textstream.h ../../core/error.h
tdb.o: ../../core/log.h ../../core/log.h
@ -183,14 +185,14 @@ templates.o: ../../functions/logout.h ../../functions/ls.h
templates.o: ../../functions/mkdir.h ../../functions/mv.h
templates.o: ../../functions/node.h ../../functions/priv.h
templates.o: ../../functions/reload.h ../../functions/rm.h
templates.o: ../../functions/run.h ../../functions/subject.h
templates.o: ../../functions/funthread.h ../../functions/template.h
templates.o: ../../functions/tinymce.h ../../functions/uname.h
templates.o: ../../functions/upload.h ../../functions/uptime.h
templates.o: ../../functions/who.h ../../core/htmlfilter.h
templates.o: ../../templates/templates.h ../../templates/misc.h
templates.o: ../../templates/patterncacher.h ../../core/item.h
templates.o: ../../templates/ckeditorgetparser.h
templates.o: ../../functions/run.h ../../functions/stat.h
templates.o: ../../functions/subject.h ../../functions/funthread.h
templates.o: ../../functions/template.h ../../functions/tinymce.h
templates.o: ../../functions/uname.h ../../functions/upload.h
templates.o: ../../functions/uptime.h ../../functions/who.h
templates.o: ../../core/htmlfilter.h ../../templates/templates.h
templates.o: ../../templates/misc.h ../../templates/patterncacher.h
templates.o: ../../core/item.h ../../templates/ckeditorgetparser.h
templates.o: ../../core/httpsimpleparser.h ../../core/log.h
templates.o: ../../templates/indexpatterns.h ../../core/sessionmanager.h
ticketconf.o: ticketconf.h

View File

@ -316,7 +316,7 @@ void ticket_tab_select_tab_is_default(Info & i)
{
if( has_value )
{
i.res = select_index == value;
i.res = select_index == (size_t)value;
}
else
{

View File

@ -44,10 +44,11 @@ dir.o: ../functions/default.h ../functions/download.h ../functions/emacs.h
dir.o: ../functions/last.h ../functions/login.h ../functions/logout.h
dir.o: ../functions/ls.h ../functions/mkdir.h ../functions/mv.h
dir.o: ../functions/node.h ../functions/priv.h ../functions/reload.h
dir.o: ../functions/rm.h ../functions/run.h ../functions/subject.h
dir.o: ../functions/funthread.h ../functions/template.h
dir.o: ../functions/tinymce.h ../functions/uname.h ../functions/upload.h
dir.o: ../functions/uptime.h ../functions/who.h ../core/htmlfilter.h
dir.o: ../functions/rm.h ../functions/run.h ../functions/stat.h
dir.o: ../functions/subject.h ../functions/funthread.h
dir.o: ../functions/template.h ../functions/tinymce.h ../functions/uname.h
dir.o: ../functions/upload.h ../functions/uptime.h ../functions/who.h
dir.o: ../core/htmlfilter.h
doc.o: templates.h ../../ezc/src/ezc.h misc.h localefilter.h ../core/locale.h
doc.o: ../core/confparser.h ../core/user.h patterncacher.h ../core/item.h
doc.o: ckeditorgetparser.h ../core/httpsimpleparser.h ../core/log.h
@ -185,10 +186,11 @@ priv.o: ../functions/default.h ../functions/download.h ../functions/emacs.h
priv.o: ../functions/last.h ../functions/login.h ../functions/logout.h
priv.o: ../functions/ls.h ../functions/mkdir.h ../functions/mv.h
priv.o: ../functions/node.h ../functions/priv.h ../functions/reload.h
priv.o: ../functions/rm.h ../functions/run.h ../functions/subject.h
priv.o: ../functions/funthread.h ../functions/template.h
priv.o: ../functions/tinymce.h ../functions/uname.h ../functions/upload.h
priv.o: ../functions/uptime.h ../functions/who.h ../core/htmlfilter.h
priv.o: ../functions/rm.h ../functions/run.h ../functions/stat.h
priv.o: ../functions/subject.h ../functions/funthread.h
priv.o: ../functions/template.h ../functions/tinymce.h ../functions/uname.h
priv.o: ../functions/upload.h ../functions/uptime.h ../functions/who.h
priv.o: ../core/htmlfilter.h
rebus.o: ../core/request.h templates.h ../../ezc/src/ezc.h misc.h
rebus.o: localefilter.h ../core/locale.h ../core/confparser.h ../core/user.h
rebus.o: patterncacher.h ../core/item.h ckeditorgetparser.h
@ -207,6 +209,23 @@ rebus.o: ../core/mountparser.h ../core/users.h ../core/ugcontainer.h
rebus.o: ../core/lastcontainer.h ../core/groups.h ../core/group.h
rebus.o: ../core/loadavg.h ../core/sessionmanager.h
rebus.o: ../core/sessioncontainer.h ../core/system.h
stat.o: templates.h ../../ezc/src/ezc.h misc.h localefilter.h
stat.o: ../core/locale.h ../core/confparser.h ../core/user.h patterncacher.h
stat.o: ../core/item.h ckeditorgetparser.h ../core/httpsimpleparser.h
stat.o: ../core/log.h indexpatterns.h ../core/locale.h ../core/config.h
stat.o: ../core/htmlfilter.h ../db/db.h ../db/dbbase.h ../db/dbconn.h
stat.o: ../db/dbtextstream.h ../core/textstream.h ../core/error.h
stat.o: ../core/log.h ../db/dbitemquery.h ../core/item.h
stat.o: ../db/dbitemcolumns.h ../core/group.h ../core/thread.h
stat.o: ../core/dircontainer.h ../core/item.h ../core/ugcontainer.h
stat.o: ../core/request.h ../core/requesttypes.h ../core/session.h
stat.o: ../core/error.h ../core/user.h ../core/plugindata.h ../core/rebus.h
stat.o: ../core/config.h ../core/system.h ../core/dirs.h
stat.o: ../core/dircontainer.h ../core/request.h ../core/mounts.h
stat.o: ../core/mount.h ../core/mountparser.h ../core/users.h
stat.o: ../core/ugcontainer.h ../core/lastcontainer.h ../core/groups.h
stat.o: ../core/group.h ../core/loadavg.h ../core/sessionmanager.h
stat.o: ../core/sessioncontainer.h ../core/system.h ../core/misc.h
sys.o: templates.h ../../ezc/src/ezc.h misc.h localefilter.h ../core/locale.h
sys.o: ../core/confparser.h ../core/user.h patterncacher.h ../core/item.h
sys.o: ckeditorgetparser.h ../core/httpsimpleparser.h ../core/log.h
@ -273,7 +292,7 @@ templates.o: ../functions/download.h ../functions/emacs.h ../functions/last.h
templates.o: ../functions/login.h ../functions/logout.h ../functions/ls.h
templates.o: ../functions/mkdir.h ../functions/mv.h ../functions/node.h
templates.o: ../functions/priv.h ../functions/reload.h ../functions/rm.h
templates.o: ../functions/run.h ../functions/subject.h
templates.o: ../functions/run.h ../functions/stat.h ../functions/subject.h
templates.o: ../functions/funthread.h ../functions/template.h
templates.o: ../functions/tinymce.h ../functions/uname.h
templates.o: ../functions/upload.h ../functions/uptime.h ../functions/who.h
@ -307,10 +326,10 @@ thread.o: ../functions/download.h ../functions/emacs.h ../functions/last.h
thread.o: ../functions/login.h ../functions/logout.h ../functions/ls.h
thread.o: ../functions/mkdir.h ../functions/mv.h ../functions/node.h
thread.o: ../functions/priv.h ../functions/reload.h ../functions/rm.h
thread.o: ../functions/run.h ../functions/subject.h ../functions/funthread.h
thread.o: ../functions/template.h ../functions/tinymce.h ../functions/uname.h
thread.o: ../functions/upload.h ../functions/uptime.h ../functions/who.h
thread.o: ../core/htmlfilter.h
thread.o: ../functions/run.h ../functions/stat.h ../functions/subject.h
thread.o: ../functions/funthread.h ../functions/template.h
thread.o: ../functions/tinymce.h ../functions/uname.h ../functions/upload.h
thread.o: ../functions/uptime.h ../functions/who.h ../core/htmlfilter.h
upload.o: templates.h ../../ezc/src/ezc.h misc.h localefilter.h
upload.o: ../core/locale.h ../core/confparser.h ../core/user.h
upload.o: patterncacher.h ../core/item.h ckeditorgetparser.h
@ -410,7 +429,8 @@ winix.o: ../functions/download.h ../functions/emacs.h ../functions/last.h
winix.o: ../functions/login.h ../functions/logout.h ../functions/ls.h
winix.o: ../functions/mkdir.h ../functions/mv.h ../functions/node.h
winix.o: ../functions/priv.h ../functions/reload.h ../functions/rm.h
winix.o: ../functions/run.h ../functions/subject.h ../functions/funthread.h
winix.o: ../functions/template.h ../functions/tinymce.h ../functions/uname.h
winix.o: ../functions/upload.h ../functions/uptime.h ../functions/who.h
winix.o: ../core/htmlfilter.h ../templates/templates.h
winix.o: ../functions/run.h ../functions/stat.h ../functions/subject.h
winix.o: ../functions/funthread.h ../functions/template.h
winix.o: ../functions/tinymce.h ../functions/uname.h ../functions/upload.h
winix.o: ../functions/uptime.h ../functions/who.h ../core/htmlfilter.h
winix.o: ../templates/templates.h

View File

@ -1 +1 @@
o = adduser.o dir.o doc.o indexpatterns.o item.o last.o localefilter.o ls.o misc.o mount.o patterncacher.o priv.o rebus.o sys.o template.o templates.o thread.o upload.o uptime.o user.o who.o winix.o
o = adduser.o dir.o doc.o indexpatterns.o item.o last.o localefilter.o ls.o misc.o mount.o patterncacher.o priv.o rebus.o stat.o sys.o template.o templates.o thread.o upload.o uptime.o user.o who.o winix.o

104
templates/stat.cpp Executable file
View File

@ -0,0 +1,104 @@
/*
* This file is a part of Winix
* and is not publicly distributed
*
* Copyright (c) 2010, Tomasz Sowa
* All rights reserved.
*
*/
#include "templates.h"
#include "misc.h"
#include "core/request.h"
#include "core/misc.h"
namespace TemplatesFunctions
{
void stat_item_type_is_file(Info & i)
{
i.res = request->is_item && request->item.auth == Item::auth_none;
}
void stat_item_type_is_static_file(Info & i)
{
i.res = request->is_item && request->item.auth != Item::auth_none;
}
void stat_item_type_is_dir(Info & i)
{
i.res = !request->is_item;
}
void stat_item_inode(Info & i)
{
i.out << request->last_item->id;
}
void stat_item_user(Info & i)
{
User * puser = system->users.GetUser(request->last_item->user_id);
print_user_name(i, puser, request->last_item->guest_name);
}
void stat_item_group(Info & i)
{
long group_id = request->last_item->group_id;
Group * pgroup = system->groups.GetGroup(group_id);
if( pgroup )
HtmlEscape(i.out, pgroup->name);
else
i.out << group_id;
}
void stat_item_privileges(Info & i)
{
i.out << std::setbase(8) << request->last_item->privileges << std::setbase(10);
}
void stat_item_date_creation(Info & i)
{
tm * ptm = &request->last_item->date_creation;
i.out << DateToStr(ptm->tm_year + 1900, ptm->tm_mon + 1, ptm->tm_mday, ptm->tm_hour, ptm->tm_min, ptm->tm_sec);
}
void stat_item_date_modification(Info & i)
{
tm * ptm = &request->last_item->date_modification;
i.out << DateToStr(ptm->tm_year + 1900, ptm->tm_mon + 1, ptm->tm_mday, ptm->tm_hour, ptm->tm_min, ptm->tm_sec);
}
void stat_item_template(Info & i)
{
HtmlEscape(i.out, request->last_item->html_template);
}
void stat_item_is_template_from_mount_point(Info & i)
{
i.res = request->last_item->html_template.empty();
}
} // namespace TemplatesFunctions

View File

@ -305,6 +305,22 @@ void Templates::CreateFunctions()
ezc_functions.Insert("rebus_question", rebus_question);
/*
stat
*/
ezc_functions.Insert("stat_item_type_is_file", stat_item_type_is_file);
ezc_functions.Insert("stat_item_type_is_static_file", stat_item_type_is_static_file);
ezc_functions.Insert("stat_item_type_is_dir", stat_item_type_is_dir);
ezc_functions.Insert("stat_item_inode", stat_item_inode);
ezc_functions.Insert("stat_item_user", stat_item_user);
ezc_functions.Insert("stat_item_group", stat_item_group);
ezc_functions.Insert("stat_item_privileges", stat_item_privileges);
ezc_functions.Insert("stat_item_date_creation", stat_item_date_creation);
ezc_functions.Insert("stat_item_date_modification", stat_item_date_modification);
ezc_functions.Insert("stat_item_template", stat_item_template);
ezc_functions.Insert("stat_item_is_template_from_mount_point", stat_item_is_template_from_mount_point);
/*
sys
*/

View File

@ -236,6 +236,22 @@ namespace TemplatesFunctions
void rebus_question(Info & i);
/*
stat
*/
void stat_item_type_is_file(Info & i);
void stat_item_type_is_static_file(Info & i);
void stat_item_type_is_dir(Info & i);
void stat_item_inode(Info & i);
void stat_item_user(Info & i);
void stat_item_group(Info & i);
void stat_item_privileges(Info & i);
void stat_item_date_creation(Info & i);
void stat_item_date_modification(Info & i);
void stat_item_template(Info & i);
void stat_item_is_template_from_mount_point(Info & i);
/*
sys
*/