added function: uname

added function: subject - for changing a subject


git-svn-id: svn://ttmath.org/publicrep/winix/trunk@600 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
2010-05-20 18:28:19 +00:00
parent 2ad666d221
commit 612f260938
22 changed files with 291 additions and 145 deletions

View File

@@ -127,7 +127,7 @@ sys.o: ../core/loadavg.h ../core/request.h ../core/requesttypes.h
sys.o: ../core/session.h ../core/plugindata.h ../core/thread.h
sys.o: ../core/compress.h ../core/acceptencodingparser.h
sys.o: ../core/acceptbaseparser.h ../core/htmlfilter.h
sys.o: ../core/postmultiparser.h ../core/ticket.h ../core/misc.h
sys.o: ../core/postmultiparser.h ../core/ticket.h ../core/version.h
templates.o: templates.h patterncacher.h ../core/item.h misc.h localefilter.h
templates.o: ../core/locale.h ../confparser/confparser.h ckeditorgetparser.h
templates.o: ../core/httpsimpleparser.h ../core/log.h ../core/data.h

View File

@@ -10,7 +10,7 @@
#include "templates.h"
#include "../core/data.h"
#include "../core/request.h"
#include "../core/misc.h"
#include "../core/version.h"
@@ -21,20 +21,20 @@ namespace TemplatesFunctions
void sys_ver_major(Info & i)
{
i.out << MAJOR_VER;
i.out << WINIX_VER_MAJOR;
}
void sys_ver_minor(Info & i)
{
i.out << MINOR_VER;
i.out << WINIX_VER_MINOR;
}
void sys_ver_revision(Info & i)
{
i.out << REVISION_VER;
i.out << WINIX_VER_REVISION;
}

View File

@@ -65,8 +65,9 @@ Ezc::Pattern * p = 0;
{FUN_UPTIME, pat_fun_uptime},
{FUN_LOGIN, pat_fun_login},
{FUN_MV, pat_fun_mv},
/* {FUN_UNAME, pat_fun_uname},*/
{FUN_UNAME, pat_fun_uname},
{FUN_CKEDITOR, pat_fun_ckeditor},
{FUN_SUBJECT, pat_fun_subject},
{FUN_ADDUSER, pat_fun_adduser}
};
@@ -515,9 +516,10 @@ using namespace TemplatesFunctions;
ReadFile(pat_fun_uptime, "fun_uptime.html");
ReadFile(pat_fun_login, "fun_login.html");
ReadFile(pat_fun_mv, "fun_mv.html");
/*ReadFile(pat_fun_uname, "fun_uname.html");*/
ReadFile(pat_fun_uname, "fun_uname.html");
ReadFile(pat_fun_ckeditor, "fun_ckeditor.html");
ReadFile(pat_fun_adduser, "fun_adduser.html");
ReadFile(pat_fun_subject, "fun_subject.html");
}

View File

@@ -52,6 +52,7 @@ namespace TemplatesFunctions
pat_item_info,
pat_item_tab_info,
pat_dir_last_info,
pat_fun_subject,
pat_last // should be last
};