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:
@@ -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.
|
||||
*
|
||||
*/
|
||||
@@ -205,14 +205,27 @@ void Templates::CreateFunctions()
|
||||
ezc_functions.Insert("dir_last_meta_str", dir_last_meta_str);
|
||||
|
||||
|
||||
/*
|
||||
env
|
||||
*/
|
||||
ezc_functions.Insert("env_user_admin_env_str", env_user_admin_env_str);
|
||||
ezc_functions.Insert("env_user_env_str", env_user_env_str);
|
||||
ezc_functions.Insert("env_user_id", env_user_id);
|
||||
ezc_functions.Insert("env_user_name", env_user_name);
|
||||
ezc_functions.Insert("env_user_tab", env_user_tab);
|
||||
ezc_functions.Insert("env_user_tab_id", env_user_tab_id);
|
||||
ezc_functions.Insert("env_user_tab_name", env_user_tab_name);
|
||||
ezc_functions.Insert("env_user_tab_is_current", env_user_tab_is_current);
|
||||
|
||||
|
||||
/*
|
||||
filters
|
||||
*/
|
||||
ezc_functions.Insert("fil_urlencode", fil_urlencode);
|
||||
ezc_functions.Insert("fil_qencode", fil_qencode);
|
||||
ezc_functions.Insert("fil_capitalize", fil_capitalize);
|
||||
ezc_functions.Insert("fil_tosmall", fil_tosmall);
|
||||
ezc_functions.Insert("fil_firstup", fil_firstup);
|
||||
ezc_functions.Insert("fil_urlencode", fil_urlencode);
|
||||
ezc_functions.Insert("fil_qencode", fil_qencode);
|
||||
ezc_functions.Insert("fil_capitalize", fil_capitalize);
|
||||
ezc_functions.Insert("fil_tosmall", fil_tosmall);
|
||||
ezc_functions.Insert("fil_firstup", fil_firstup);
|
||||
|
||||
|
||||
/*
|
||||
@@ -469,16 +482,21 @@ void Templates::CreateFunctions()
|
||||
/*
|
||||
user
|
||||
*/
|
||||
ezc_functions.Insert("user_name", user_name);
|
||||
ezc_functions.Insert("user_logged", user_logged);
|
||||
ezc_functions.Insert("user_super_user", user_super_user);
|
||||
ezc_functions.Insert("user_is_in_group", user_is_in_group);
|
||||
ezc_functions.Insert("user_is_in_all_groups", user_is_in_all_groups);
|
||||
ezc_functions.Insert("user_can_use_html", user_can_use_html);
|
||||
ezc_functions.Insert("user_can_use_bbcode", user_can_use_bbcode);
|
||||
ezc_functions.Insert("user_can_use_raw", user_can_use_raw);
|
||||
|
||||
|
||||
ezc_functions.Insert("user_name", user_name);
|
||||
ezc_functions.Insert("user_logged", user_logged);
|
||||
ezc_functions.Insert("user_super_user", user_super_user);
|
||||
ezc_functions.Insert("user_is_in_group", user_is_in_group);
|
||||
ezc_functions.Insert("user_is_in_all_groups", user_is_in_all_groups);
|
||||
ezc_functions.Insert("user_can_use_html", user_can_use_html);
|
||||
ezc_functions.Insert("user_can_use_bbcode", user_can_use_bbcode);
|
||||
ezc_functions.Insert("user_can_use_raw", user_can_use_raw);
|
||||
ezc_functions.Insert("user_tab", user_tab);
|
||||
ezc_functions.Insert("user_tab_id", user_tab_id);
|
||||
ezc_functions.Insert("user_tab_name", user_tab_name);
|
||||
ezc_functions.Insert("user_tab_is_super_user", user_tab_is_super_user);
|
||||
ezc_functions.Insert("user_tab_is_current", user_tab_is_current);
|
||||
|
||||
|
||||
/*
|
||||
template
|
||||
*/
|
||||
|
Reference in New Issue
Block a user