added: functions: ckeditor, uptime
added: for function: login - a html pattern for GET request git-svn-id: svn://ttmath.org/publicrep/winix/trunk@567 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
47
templates/ls.cpp
Executable file
47
templates/ls.cpp
Executable file
@@ -0,0 +1,47 @@
|
||||
/*
|
||||
* This file is a part of CMSLU -- Content Management System like Unix
|
||||
* and is not publicly distributed
|
||||
*
|
||||
* Copyright (c) 2008-2010, Tomasz Sowa
|
||||
* All rights reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
#include "templates.h"
|
||||
#include "../core/request.h"
|
||||
|
||||
|
||||
|
||||
|
||||
namespace TemplatesFunctions
|
||||
{
|
||||
|
||||
static size_t ls_ckeditor_reqid = 0;
|
||||
|
||||
|
||||
|
||||
|
||||
void ls_ckeditor_funnum_browse(Info & i)
|
||||
{
|
||||
if( ls_ckeditor_reqid != request.id )
|
||||
{
|
||||
ls_ckeditor_reqid = request.id;
|
||||
ckeditor_getparser.fun_num = 2; // default if there is a problem with parsing info
|
||||
|
||||
if( !request.param_table.empty() )
|
||||
{
|
||||
const char * str = request.param_table[request.param_table.size()-1]->c_str() + 1; // the first char is '?'
|
||||
ckeditor_getparser.Parse(str);
|
||||
}
|
||||
}
|
||||
|
||||
i.out << ckeditor_getparser.fun_num;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
} // namespace
|
||||
|
||||
Reference in New Issue
Block a user