added: TextStream<> DbTextStream<> and HtmlTextStream<> have operator<<(Space&) now
added: to db: bool DbBase::AssertValueSpace(PGresult * r, int row, int col, Space & space, bool split_single)
added: environment variables for users
User::env (of type Space) and
User::aenv (of type Space) for admin variables (can be changed only by a super user)
added: winix function 'env'
for changing User::env and User::aenv ('env' winix function with a 'a' parameter)
git-svn-id: svn://ttmath.org/publicrep/winix/trunk@790 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
+75
-74
@@ -4,10 +4,10 @@ acceptbaseparser.o: acceptbaseparser.h
|
||||
app.o: app.h config.h confparser.h htmlfilter.h system.h dirs.h item.h
|
||||
app.o: dircontainer.h ../db/db.h ../db/dbbase.h ../db/dbconn.h
|
||||
app.o: ../db/dbtextstream.h ../core/textstream.h misc.h requesttypes.h
|
||||
app.o: ../core/error.h ../db/dbitemquery.h ../core/item.h
|
||||
app.o: ../db/dbitemcolumns.h ../core/confparser.h ../core/user.h
|
||||
app.o: ../core/group.h ../core/dircontainer.h ../core/ugcontainer.h log.h
|
||||
app.o: textstream.h logmanipulators.h slog.h cur.h request.h error.h
|
||||
app.o: ../core/error.h ../core/confparser.h ../db/dbitemquery.h
|
||||
app.o: ../core/item.h ../db/dbitemcolumns.h ../core/user.h ../core/group.h
|
||||
app.o: ../core/dircontainer.h ../core/ugcontainer.h log.h textstream.h
|
||||
app.o: logmanipulators.h slog.h cur.h request.h error.h
|
||||
app.o: ../templates/htmltextstream.h session.h user.h plugindata.h rebus.h
|
||||
app.o: mount.h ../templates/locale.h ../notify/notify.h
|
||||
app.o: ../notify/notifypool.h ../templates/patterns.h ../templates/locale.h
|
||||
@@ -25,13 +25,13 @@ app.o: ../core/system.h ../core/synchro.h ../functions/functionparser.h
|
||||
app.o: ../core/cur.h ../functions/adduser.h ../functions/cat.h
|
||||
app.o: ../functions/chmod.h ../functions/privchanger.h ../functions/chown.h
|
||||
app.o: ../functions/ckeditor.h ../functions/cp.h ../functions/default.h
|
||||
app.o: ../functions/download.h ../functions/emacs.h ../functions/last.h
|
||||
app.o: ../functions/login.h ../functions/logout.h ../functions/ln.h
|
||||
app.o: ../functions/ls.h ../functions/man.h ../functions/meta.h
|
||||
app.o: ../functions/mkdir.h ../functions/mv.h ../functions/nicedit.h
|
||||
app.o: ../functions/node.h ../functions/passwd.h ../functions/priv.h
|
||||
app.o: ../functions/reload.h ../functions/rm.h ../functions/sort.h
|
||||
app.o: ../functions/specialdefault.h ../functions/stat.h
|
||||
app.o: ../functions/download.h ../functions/emacs.h ../functions/env.h
|
||||
app.o: ../functions/last.h ../functions/login.h ../functions/logout.h
|
||||
app.o: ../functions/ln.h ../functions/ls.h ../functions/man.h
|
||||
app.o: ../functions/meta.h ../functions/mkdir.h ../functions/mv.h
|
||||
app.o: ../functions/nicedit.h ../functions/node.h ../functions/passwd.h
|
||||
app.o: ../functions/priv.h ../functions/reload.h ../functions/rm.h
|
||||
app.o: ../functions/sort.h ../functions/specialdefault.h ../functions/stat.h
|
||||
app.o: ../functions/subject.h ../functions/template.h ../functions/tinymce.h
|
||||
app.o: ../functions/uname.h ../functions/upload.h ../functions/uptime.h
|
||||
app.o: ../functions/who.h ../functions/vim.h ../core/htmlfilter.h
|
||||
@@ -73,12 +73,12 @@ config.o: ../functions/functionparser.h ../core/cur.h ../functions/adduser.h
|
||||
config.o: ../functions/cat.h ../functions/chmod.h ../functions/privchanger.h
|
||||
config.o: ../functions/chown.h ../functions/ckeditor.h ../functions/cp.h
|
||||
config.o: ../functions/default.h ../functions/download.h ../functions/emacs.h
|
||||
config.o: ../functions/last.h ../functions/login.h ../functions/logout.h
|
||||
config.o: ../functions/ln.h ../functions/ls.h ../functions/man.h
|
||||
config.o: ../functions/meta.h ../functions/mkdir.h ../functions/mv.h
|
||||
config.o: ../functions/nicedit.h ../functions/node.h ../functions/passwd.h
|
||||
config.o: ../functions/priv.h ../functions/reload.h ../functions/rm.h
|
||||
config.o: ../functions/sort.h ../functions/specialdefault.h
|
||||
config.o: ../functions/env.h ../functions/last.h ../functions/login.h
|
||||
config.o: ../functions/logout.h ../functions/ln.h ../functions/ls.h
|
||||
config.o: ../functions/man.h ../functions/meta.h ../functions/mkdir.h
|
||||
config.o: ../functions/mv.h ../functions/nicedit.h ../functions/node.h
|
||||
config.o: ../functions/passwd.h ../functions/priv.h ../functions/reload.h
|
||||
config.o: ../functions/rm.h ../functions/sort.h ../functions/specialdefault.h
|
||||
config.o: ../functions/stat.h ../functions/subject.h ../functions/template.h
|
||||
config.o: ../functions/tinymce.h ../functions/uname.h ../functions/upload.h
|
||||
config.o: ../functions/uptime.h ../functions/who.h ../functions/vim.h
|
||||
@@ -100,12 +100,13 @@ dircontainer.o: ../core/textstream.h misc.h session.h user.h plugindata.h
|
||||
dircontainer.o: rebus.h mount.h ../templates/locale.h ../core/confparser.h
|
||||
dirs.o: dirs.h item.h confparser.h dircontainer.h ../db/db.h ../db/dbbase.h
|
||||
dirs.o: ../db/dbconn.h ../db/dbtextstream.h ../core/textstream.h misc.h
|
||||
dirs.o: requesttypes.h ../core/error.h ../db/dbitemquery.h ../core/item.h
|
||||
dirs.o: ../db/dbitemcolumns.h ../core/confparser.h ../core/user.h
|
||||
dirs.o: ../core/group.h ../core/dircontainer.h ../core/ugcontainer.h log.h
|
||||
dirs.o: textstream.h logmanipulators.h slog.h cur.h request.h error.h
|
||||
dirs.o: config.h htmlfilter.h ../templates/htmltextstream.h session.h user.h
|
||||
dirs.o: plugindata.h rebus.h mount.h ../templates/locale.h ../notify/notify.h
|
||||
dirs.o: requesttypes.h ../core/error.h ../core/confparser.h
|
||||
dirs.o: ../db/dbitemquery.h ../core/item.h ../db/dbitemcolumns.h
|
||||
dirs.o: ../core/user.h ../core/group.h ../core/dircontainer.h
|
||||
dirs.o: ../core/ugcontainer.h log.h textstream.h logmanipulators.h slog.h
|
||||
dirs.o: cur.h request.h error.h config.h htmlfilter.h
|
||||
dirs.o: ../templates/htmltextstream.h session.h user.h plugindata.h rebus.h
|
||||
dirs.o: mount.h ../templates/locale.h ../notify/notify.h
|
||||
dirs.o: ../notify/notifypool.h ../templates/patterns.h ../templates/locale.h
|
||||
dirs.o: ../templates/localefilter.h ../../ezc/src/ezc.h ../../ezc/src/utf8.h
|
||||
dirs.o: ../../ezc/src/generator.h ../../ezc/src/pattern.h
|
||||
@@ -117,8 +118,8 @@ dirs.o: ../templates/misc.h ../templates/htmltextstream.h
|
||||
groups.o: groups.h group.h ugcontainer.h ../db/db.h ../db/dbbase.h
|
||||
groups.o: ../db/dbconn.h ../db/dbtextstream.h ../core/textstream.h misc.h
|
||||
groups.o: item.h confparser.h requesttypes.h ../core/error.h
|
||||
groups.o: ../db/dbitemquery.h ../core/item.h ../db/dbitemcolumns.h
|
||||
groups.o: ../core/confparser.h ../core/user.h ../core/group.h
|
||||
groups.o: ../core/confparser.h ../db/dbitemquery.h ../core/item.h
|
||||
groups.o: ../db/dbitemcolumns.h ../core/user.h ../core/group.h
|
||||
groups.o: ../core/dircontainer.h ../core/ugcontainer.h log.h textstream.h
|
||||
groups.o: logmanipulators.h slog.h cur.h request.h error.h config.h
|
||||
groups.o: htmlfilter.h ../templates/htmltextstream.h session.h user.h
|
||||
@@ -128,8 +129,8 @@ httpsimpleparser.o: httpsimpleparser.h
|
||||
image.o: image.h basethread.h textstream.h ../db/db.h ../db/dbbase.h
|
||||
image.o: ../db/dbconn.h ../db/dbtextstream.h ../core/textstream.h misc.h
|
||||
image.o: item.h confparser.h requesttypes.h ../core/error.h
|
||||
image.o: ../db/dbitemquery.h ../core/item.h ../db/dbitemcolumns.h
|
||||
image.o: ../core/confparser.h ../core/user.h ../core/group.h
|
||||
image.o: ../core/confparser.h ../db/dbitemquery.h ../core/item.h
|
||||
image.o: ../db/dbitemcolumns.h ../core/user.h ../core/group.h
|
||||
image.o: ../core/dircontainer.h ../core/ugcontainer.h log.h logmanipulators.h
|
||||
image.o: slog.h cur.h request.h error.h config.h htmlfilter.h
|
||||
image.o: ../templates/htmltextstream.h session.h user.h plugindata.h rebus.h
|
||||
@@ -151,12 +152,12 @@ image.o: ../functions/functionparser.h ../core/cur.h ../functions/adduser.h
|
||||
image.o: ../functions/cat.h ../functions/chmod.h ../functions/privchanger.h
|
||||
image.o: ../functions/chown.h ../functions/ckeditor.h ../functions/cp.h
|
||||
image.o: ../functions/default.h ../functions/download.h ../functions/emacs.h
|
||||
image.o: ../functions/last.h ../functions/login.h ../functions/logout.h
|
||||
image.o: ../functions/ln.h ../functions/ls.h ../functions/man.h
|
||||
image.o: ../functions/meta.h ../functions/mkdir.h ../functions/mv.h
|
||||
image.o: ../functions/nicedit.h ../functions/node.h ../functions/passwd.h
|
||||
image.o: ../functions/priv.h ../functions/reload.h ../functions/rm.h
|
||||
image.o: ../functions/sort.h ../functions/specialdefault.h
|
||||
image.o: ../functions/env.h ../functions/last.h ../functions/login.h
|
||||
image.o: ../functions/logout.h ../functions/ln.h ../functions/ls.h
|
||||
image.o: ../functions/man.h ../functions/meta.h ../functions/mkdir.h
|
||||
image.o: ../functions/mv.h ../functions/nicedit.h ../functions/node.h
|
||||
image.o: ../functions/passwd.h ../functions/priv.h ../functions/reload.h
|
||||
image.o: ../functions/rm.h ../functions/sort.h ../functions/specialdefault.h
|
||||
image.o: ../functions/stat.h ../functions/subject.h ../functions/template.h
|
||||
image.o: ../functions/tinymce.h ../functions/uname.h ../functions/upload.h
|
||||
image.o: ../functions/uptime.h ../functions/who.h ../functions/vim.h
|
||||
@@ -202,8 +203,8 @@ mount.o: mount.h misc.h item.h confparser.h requesttypes.h
|
||||
mountparser.o: mountparser.h mount.h item.h confparser.h dirs.h
|
||||
mountparser.o: dircontainer.h ../db/db.h ../db/dbbase.h ../db/dbconn.h
|
||||
mountparser.o: ../db/dbtextstream.h ../core/textstream.h misc.h
|
||||
mountparser.o: requesttypes.h ../core/error.h ../db/dbitemquery.h
|
||||
mountparser.o: ../core/item.h ../db/dbitemcolumns.h ../core/confparser.h
|
||||
mountparser.o: requesttypes.h ../core/error.h ../core/confparser.h
|
||||
mountparser.o: ../db/dbitemquery.h ../core/item.h ../db/dbitemcolumns.h
|
||||
mountparser.o: ../core/user.h ../core/group.h ../core/dircontainer.h
|
||||
mountparser.o: ../core/ugcontainer.h log.h textstream.h logmanipulators.h
|
||||
mountparser.o: slog.h cur.h request.h error.h config.h htmlfilter.h
|
||||
@@ -221,8 +222,8 @@ mountparser.o: ../templates/misc.h ../templates/htmltextstream.h
|
||||
mounts.o: mounts.h mount.h error.h dirs.h item.h confparser.h dircontainer.h
|
||||
mounts.o: ../db/db.h ../db/dbbase.h ../db/dbconn.h ../db/dbtextstream.h
|
||||
mounts.o: ../core/textstream.h misc.h requesttypes.h ../core/error.h
|
||||
mounts.o: ../db/dbitemquery.h ../core/item.h ../db/dbitemcolumns.h
|
||||
mounts.o: ../core/confparser.h ../core/user.h ../core/group.h
|
||||
mounts.o: ../core/confparser.h ../db/dbitemquery.h ../core/item.h
|
||||
mounts.o: ../db/dbitemcolumns.h ../core/user.h ../core/group.h
|
||||
mounts.o: ../core/dircontainer.h ../core/ugcontainer.h log.h textstream.h
|
||||
mounts.o: logmanipulators.h slog.h cur.h request.h config.h htmlfilter.h
|
||||
mounts.o: ../templates/htmltextstream.h session.h user.h plugindata.h rebus.h
|
||||
@@ -244,12 +245,12 @@ mounts.o: ../functions/functionparser.h ../core/cur.h ../functions/adduser.h
|
||||
mounts.o: ../functions/cat.h ../functions/chmod.h ../functions/privchanger.h
|
||||
mounts.o: ../functions/chown.h ../functions/ckeditor.h ../functions/cp.h
|
||||
mounts.o: ../functions/default.h ../functions/download.h ../functions/emacs.h
|
||||
mounts.o: ../functions/last.h ../functions/login.h ../functions/logout.h
|
||||
mounts.o: ../functions/ln.h ../functions/ls.h ../functions/man.h
|
||||
mounts.o: ../functions/meta.h ../functions/mkdir.h ../functions/mv.h
|
||||
mounts.o: ../functions/nicedit.h ../functions/node.h ../functions/passwd.h
|
||||
mounts.o: ../functions/priv.h ../functions/reload.h ../functions/rm.h
|
||||
mounts.o: ../functions/sort.h ../functions/specialdefault.h
|
||||
mounts.o: ../functions/env.h ../functions/last.h ../functions/login.h
|
||||
mounts.o: ../functions/logout.h ../functions/ln.h ../functions/ls.h
|
||||
mounts.o: ../functions/man.h ../functions/meta.h ../functions/mkdir.h
|
||||
mounts.o: ../functions/mv.h ../functions/nicedit.h ../functions/node.h
|
||||
mounts.o: ../functions/passwd.h ../functions/priv.h ../functions/reload.h
|
||||
mounts.o: ../functions/rm.h ../functions/sort.h ../functions/specialdefault.h
|
||||
mounts.o: ../functions/stat.h ../functions/subject.h ../functions/template.h
|
||||
mounts.o: ../functions/tinymce.h ../functions/uname.h ../functions/upload.h
|
||||
mounts.o: ../functions/uptime.h ../functions/who.h ../functions/vim.h
|
||||
@@ -283,12 +284,12 @@ plugin.o: ../functions/functionparser.h ../core/cur.h ../functions/adduser.h
|
||||
plugin.o: ../functions/cat.h ../functions/chmod.h ../functions/privchanger.h
|
||||
plugin.o: ../functions/chown.h ../functions/ckeditor.h ../functions/cp.h
|
||||
plugin.o: ../functions/default.h ../functions/download.h ../functions/emacs.h
|
||||
plugin.o: ../functions/last.h ../functions/login.h ../functions/logout.h
|
||||
plugin.o: ../functions/ln.h ../functions/ls.h ../functions/man.h
|
||||
plugin.o: ../functions/meta.h ../functions/mkdir.h ../functions/mv.h
|
||||
plugin.o: ../functions/nicedit.h ../functions/node.h ../functions/passwd.h
|
||||
plugin.o: ../functions/priv.h ../functions/reload.h ../functions/rm.h
|
||||
plugin.o: ../functions/sort.h ../functions/specialdefault.h
|
||||
plugin.o: ../functions/env.h ../functions/last.h ../functions/login.h
|
||||
plugin.o: ../functions/logout.h ../functions/ln.h ../functions/ls.h
|
||||
plugin.o: ../functions/man.h ../functions/meta.h ../functions/mkdir.h
|
||||
plugin.o: ../functions/mv.h ../functions/nicedit.h ../functions/node.h
|
||||
plugin.o: ../functions/passwd.h ../functions/priv.h ../functions/reload.h
|
||||
plugin.o: ../functions/rm.h ../functions/sort.h ../functions/specialdefault.h
|
||||
plugin.o: ../functions/stat.h ../functions/subject.h ../functions/template.h
|
||||
plugin.o: ../functions/tinymce.h ../functions/uname.h ../functions/upload.h
|
||||
plugin.o: ../functions/uptime.h ../functions/who.h ../functions/vim.h
|
||||
@@ -324,12 +325,12 @@ plugindata.o: ../functions/adduser.h ../functions/cat.h ../functions/chmod.h
|
||||
plugindata.o: ../functions/privchanger.h ../functions/chown.h
|
||||
plugindata.o: ../functions/ckeditor.h ../functions/cp.h
|
||||
plugindata.o: ../functions/default.h ../functions/download.h
|
||||
plugindata.o: ../functions/emacs.h ../functions/last.h ../functions/login.h
|
||||
plugindata.o: ../functions/logout.h ../functions/ln.h ../functions/ls.h
|
||||
plugindata.o: ../functions/man.h ../functions/meta.h ../functions/mkdir.h
|
||||
plugindata.o: ../functions/mv.h ../functions/nicedit.h ../functions/node.h
|
||||
plugindata.o: ../functions/passwd.h ../functions/priv.h ../functions/reload.h
|
||||
plugindata.o: ../functions/rm.h ../functions/sort.h
|
||||
plugindata.o: ../functions/emacs.h ../functions/env.h ../functions/last.h
|
||||
plugindata.o: ../functions/login.h ../functions/logout.h ../functions/ln.h
|
||||
plugindata.o: ../functions/ls.h ../functions/man.h ../functions/meta.h
|
||||
plugindata.o: ../functions/mkdir.h ../functions/mv.h ../functions/nicedit.h
|
||||
plugindata.o: ../functions/node.h ../functions/passwd.h ../functions/priv.h
|
||||
plugindata.o: ../functions/reload.h ../functions/rm.h ../functions/sort.h
|
||||
plugindata.o: ../functions/specialdefault.h ../functions/stat.h
|
||||
plugindata.o: ../functions/subject.h ../functions/template.h
|
||||
plugindata.o: ../functions/tinymce.h ../functions/uname.h
|
||||
@@ -377,12 +378,12 @@ request.o: ../functions/functionparser.h ../core/cur.h ../functions/adduser.h
|
||||
request.o: ../functions/cat.h ../functions/chmod.h ../functions/privchanger.h
|
||||
request.o: ../functions/chown.h ../functions/ckeditor.h ../functions/cp.h
|
||||
request.o: ../functions/default.h ../functions/download.h
|
||||
request.o: ../functions/emacs.h ../functions/last.h ../functions/login.h
|
||||
request.o: ../functions/logout.h ../functions/ln.h ../functions/ls.h
|
||||
request.o: ../functions/man.h ../functions/meta.h ../functions/mkdir.h
|
||||
request.o: ../functions/mv.h ../functions/nicedit.h ../functions/node.h
|
||||
request.o: ../functions/passwd.h ../functions/priv.h ../functions/reload.h
|
||||
request.o: ../functions/rm.h ../functions/sort.h
|
||||
request.o: ../functions/emacs.h ../functions/env.h ../functions/last.h
|
||||
request.o: ../functions/login.h ../functions/logout.h ../functions/ln.h
|
||||
request.o: ../functions/ls.h ../functions/man.h ../functions/meta.h
|
||||
request.o: ../functions/mkdir.h ../functions/mv.h ../functions/nicedit.h
|
||||
request.o: ../functions/node.h ../functions/passwd.h ../functions/priv.h
|
||||
request.o: ../functions/reload.h ../functions/rm.h ../functions/sort.h
|
||||
request.o: ../functions/specialdefault.h ../functions/stat.h
|
||||
request.o: ../functions/subject.h ../functions/template.h
|
||||
request.o: ../functions/tinymce.h ../functions/uname.h ../functions/upload.h
|
||||
@@ -411,8 +412,8 @@ sessionmanager.o: htmlfilter.h ../templates/htmltextstream.h
|
||||
sessionmanager.o: ../core/textstream.h misc.h mount.h lastcontainer.h
|
||||
sessionmanager.o: system.h dirs.h dircontainer.h ../db/db.h ../db/dbbase.h
|
||||
sessionmanager.o: ../db/dbconn.h ../db/dbtextstream.h ../core/error.h
|
||||
sessionmanager.o: ../db/dbitemquery.h ../core/item.h ../db/dbitemcolumns.h
|
||||
sessionmanager.o: ../core/confparser.h ../core/user.h ../core/group.h
|
||||
sessionmanager.o: ../core/confparser.h ../db/dbitemquery.h ../core/item.h
|
||||
sessionmanager.o: ../db/dbitemcolumns.h ../core/user.h ../core/group.h
|
||||
sessionmanager.o: ../core/dircontainer.h ../core/ugcontainer.h log.h
|
||||
sessionmanager.o: logmanipulators.h slog.h ../templates/locale.h
|
||||
sessionmanager.o: ../notify/notify.h ../notify/notifypool.h
|
||||
@@ -436,7 +437,7 @@ sessionmanager.o: ../functions/chmod.h ../functions/privchanger.h
|
||||
sessionmanager.o: ../functions/chown.h ../functions/ckeditor.h
|
||||
sessionmanager.o: ../functions/cp.h ../functions/default.h
|
||||
sessionmanager.o: ../functions/download.h ../functions/emacs.h
|
||||
sessionmanager.o: ../functions/last.h ../functions/login.h
|
||||
sessionmanager.o: ../functions/env.h ../functions/last.h ../functions/login.h
|
||||
sessionmanager.o: ../functions/logout.h ../functions/ln.h ../functions/ls.h
|
||||
sessionmanager.o: ../functions/man.h ../functions/meta.h ../functions/mkdir.h
|
||||
sessionmanager.o: ../functions/mv.h ../functions/nicedit.h
|
||||
@@ -465,8 +466,8 @@ synchro.o: synchro.h
|
||||
system.o: system.h dirs.h item.h confparser.h dircontainer.h ../db/db.h
|
||||
system.o: ../db/dbbase.h ../db/dbconn.h ../db/dbtextstream.h
|
||||
system.o: ../core/textstream.h misc.h requesttypes.h ../core/error.h
|
||||
system.o: ../db/dbitemquery.h ../core/item.h ../db/dbitemcolumns.h
|
||||
system.o: ../core/confparser.h ../core/user.h ../core/group.h
|
||||
system.o: ../core/confparser.h ../db/dbitemquery.h ../core/item.h
|
||||
system.o: ../db/dbitemcolumns.h ../core/user.h ../core/group.h
|
||||
system.o: ../core/dircontainer.h ../core/ugcontainer.h log.h textstream.h
|
||||
system.o: logmanipulators.h slog.h cur.h request.h error.h config.h
|
||||
system.o: htmlfilter.h ../templates/htmltextstream.h session.h user.h
|
||||
@@ -490,14 +491,14 @@ system.o: ../core/request.h ../core/synchro.h ../functions/functionparser.h
|
||||
system.o: ../functions/adduser.h ../functions/cat.h ../functions/chmod.h
|
||||
system.o: ../functions/privchanger.h ../functions/chown.h
|
||||
system.o: ../functions/ckeditor.h ../functions/cp.h ../functions/default.h
|
||||
system.o: ../functions/download.h ../functions/emacs.h ../functions/last.h
|
||||
system.o: ../functions/login.h ../functions/logout.h ../functions/ln.h
|
||||
system.o: ../functions/ls.h ../functions/man.h ../functions/meta.h
|
||||
system.o: ../functions/mkdir.h ../functions/mv.h ../functions/nicedit.h
|
||||
system.o: ../functions/node.h ../functions/passwd.h ../functions/priv.h
|
||||
system.o: ../functions/reload.h ../functions/rm.h ../functions/sort.h
|
||||
system.o: ../functions/specialdefault.h ../functions/stat.h
|
||||
system.o: ../functions/subject.h ../functions/template.h
|
||||
system.o: ../functions/download.h ../functions/emacs.h ../functions/env.h
|
||||
system.o: ../functions/last.h ../functions/login.h ../functions/logout.h
|
||||
system.o: ../functions/ln.h ../functions/ls.h ../functions/man.h
|
||||
system.o: ../functions/meta.h ../functions/mkdir.h ../functions/mv.h
|
||||
system.o: ../functions/nicedit.h ../functions/node.h ../functions/passwd.h
|
||||
system.o: ../functions/priv.h ../functions/reload.h ../functions/rm.h
|
||||
system.o: ../functions/sort.h ../functions/specialdefault.h
|
||||
system.o: ../functions/stat.h ../functions/subject.h ../functions/template.h
|
||||
system.o: ../functions/tinymce.h ../functions/uname.h ../functions/upload.h
|
||||
system.o: ../functions/uptime.h ../functions/who.h ../functions/vim.h
|
||||
system.o: plugin.h pluginmsg.h sessionmanager.h sessioncontainer.h
|
||||
|
||||
+2
-3
@@ -2,7 +2,7 @@
|
||||
* This file is a part of Winix
|
||||
* and is not publicly distributed
|
||||
*
|
||||
* Copyright (c) 2008-2011, Tomasz Sowa
|
||||
* Copyright (c) 2008-2012, Tomasz Sowa
|
||||
* All rights reserved.
|
||||
*
|
||||
*/
|
||||
@@ -233,8 +233,7 @@ public:
|
||||
|
||||
|
||||
/*
|
||||
printing the content
|
||||
(for debug purposes)
|
||||
serialize the content
|
||||
*/
|
||||
template<class Stream>
|
||||
void Serialize(Stream & out, bool use_indents = false, bool use_comments = false, int level = 0) const;
|
||||
|
||||
+26
-2
@@ -2,7 +2,7 @@
|
||||
* This file is a part of Winix
|
||||
* and is not publicly distributed
|
||||
*
|
||||
* Copyright (c) 2010, Tomasz Sowa
|
||||
* Copyright (c) 2010-2012, Tomasz Sowa
|
||||
* All rights reserved.
|
||||
*
|
||||
*/
|
||||
@@ -12,6 +12,7 @@
|
||||
|
||||
#include <string>
|
||||
#include "misc.h"
|
||||
#include "confparser.h"
|
||||
|
||||
|
||||
/*
|
||||
@@ -55,6 +56,9 @@ public:
|
||||
TextStream & operator<<(unsigned long);
|
||||
TextStream & operator<<(double);
|
||||
TextStream & operator<<(const void *);// printing a pointer
|
||||
TextStream & operator<<(const Space * space);
|
||||
TextStream & operator<<(const Space & space);
|
||||
|
||||
|
||||
TextStream & Write(const char * buf, size_t len);
|
||||
TextStream & Write(const wchar_t * buf, size_t len);
|
||||
@@ -64,7 +68,7 @@ public:
|
||||
protected:
|
||||
|
||||
StringType buffer;
|
||||
|
||||
std::wstring space_str; // for using with spaces
|
||||
};
|
||||
|
||||
|
||||
@@ -301,5 +305,25 @@ TextStream<StringType> & TextStream<StringType>::write(const wchar_t * buf, size
|
||||
return Write(buf, len);
|
||||
}
|
||||
|
||||
|
||||
template<class StringType>
|
||||
TextStream<StringType> & TextStream<StringType>::operator<<(const Space * space)
|
||||
{
|
||||
// !! check me pls
|
||||
space->Serialize(*this, true, false);
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
||||
template<class StringType>
|
||||
TextStream<StringType> & TextStream<StringType>::operator<<(const Space & space)
|
||||
{
|
||||
return operator<<(&space);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
+13
-2
@@ -2,7 +2,7 @@
|
||||
* This file is a part of Winix
|
||||
* and is not publicly distributed
|
||||
*
|
||||
* Copyright (c) 2008-2011, Tomasz Sowa
|
||||
* Copyright (c) 2008-2012, Tomasz Sowa
|
||||
* All rights reserved.
|
||||
*
|
||||
*/
|
||||
@@ -12,6 +12,7 @@
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include "confparser.h"
|
||||
|
||||
|
||||
|
||||
@@ -41,7 +42,15 @@ struct User
|
||||
// !! currently all users have the same offset
|
||||
// option in config: time_zone_offset
|
||||
int time_zone_offset;
|
||||
|
||||
|
||||
// environment variables which can be set by this user
|
||||
// use 'env' winix function
|
||||
Space env;
|
||||
|
||||
// environment variables set only by an administrator
|
||||
// an administrator can use 'env' winix function with 'a' parameter
|
||||
Space aenv;
|
||||
|
||||
|
||||
|
||||
User()
|
||||
@@ -59,6 +68,8 @@ struct User
|
||||
email.clear();
|
||||
notify = 0;
|
||||
time_zone_offset = 0;
|
||||
env.Clear();
|
||||
aenv.Clear();
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -122,6 +122,8 @@ Users::SizeType Users::Size()
|
||||
|
||||
User & Users::operator[](Users::SizeType pos)
|
||||
{
|
||||
// !! IMPROVE ME
|
||||
// add checking the range and returning an empty User struct if out of range
|
||||
return table[pos];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user