added: container LastContainer (lastcontainer.h lastcontainer.cpp)
it consists of last logged users added: function 'last' git-svn-id: svn://ttmath.org/publicrep/cmslu/trunk@492 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -24,6 +24,7 @@ Ezc::Pattern pat_fun_priv;
|
||||
Ezc::Pattern pat_fun_rm;
|
||||
Ezc::Pattern pat_fun_who;
|
||||
Ezc::Pattern pat_fun_run;
|
||||
Ezc::Pattern pat_fun_last;
|
||||
Ezc::Pattern pat_err_item_required;
|
||||
Ezc::Pattern pat_err_404;
|
||||
Ezc::Pattern pat_err_per_denied;
|
||||
@@ -103,6 +104,10 @@ Ezc::Pattern * p = 0;
|
||||
p = &pat_fun_who;
|
||||
break;
|
||||
|
||||
case FUN_LAST:
|
||||
p = &pat_fun_last;
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
@@ -297,12 +302,23 @@ void Templates::CreateFunctions()
|
||||
/*
|
||||
who
|
||||
*/
|
||||
functions.Insert("who_tab", who_tab);
|
||||
functions.Insert("who_tab_lp", who_tab_lp);
|
||||
functions.Insert("who_tab_user", who_tab_user);
|
||||
functions.Insert("who_tab_time", who_tab_time);
|
||||
functions.Insert("who_tab_last_time", who_tab_last_time);
|
||||
functions.Insert("who_tab", who_tab);
|
||||
functions.Insert("who_tab_lp", who_tab_lp);
|
||||
functions.Insert("who_tab_user", who_tab_user);
|
||||
functions.Insert("who_tab_time", who_tab_time);
|
||||
functions.Insert("who_tab_last_time", who_tab_last_time);
|
||||
|
||||
|
||||
/*
|
||||
last
|
||||
*/
|
||||
functions.Insert("last_tab", last_tab);
|
||||
functions.Insert("last_tab_name", last_tab_name);
|
||||
functions.Insert("last_tab_ip", last_tab_ip);
|
||||
functions.Insert("last_tab_start", last_tab_start);
|
||||
functions.Insert("last_tab_end", last_tab_end);
|
||||
|
||||
|
||||
|
||||
// !! tymczasowa
|
||||
functions.Insert("is_group_tv", is_group_tv);
|
||||
@@ -363,6 +379,9 @@ void Templates::Read()
|
||||
pat_fun_run.Directory(data.templates);
|
||||
pat_fun_run.ParseFile("fun_run.html");
|
||||
|
||||
pat_fun_last.Directory(data.templates);
|
||||
pat_fun_last.ParseFile("fun_last.html");
|
||||
|
||||
pat_item_info.Directory(data.templates);
|
||||
pat_item_info.ParseFile("item_info.html");
|
||||
|
||||
|
Reference in New Issue
Block a user