added: parameters consist of a name and a value now

sample: /dir/dir2/function/paramname:paramvalue
removed: TemplatesMisc namespace



git-svn-id: svn://ttmath.org/publicrep/winix/trunk@618 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
2010-07-04 20:27:14 +00:00
parent 76e32703ac
commit 50cb88c5ed
17 changed files with 150 additions and 51 deletions

View File

@@ -10,10 +10,12 @@
#include "../core/data.h"
#include "../core/misc.h"
#include "../core/request.h"
#include "templates.h"
#include "misc.h"
namespace TemplatesMisc
namespace TemplatesFunctions
{
@@ -77,6 +79,28 @@ size_t loc, pat;
}
} // namespace TemplatesMisc
int ParseCKeditorFun()
{
ckeditor_getparser.fun_num = 2; // default if there is a problem with parsing info
if( !request.get_table.empty() )
{
size_t last = request.get_table.size()-1;
if( !request.get_table[last].empty() )
{
const char * str = request.get_table[last].c_str() + 1; // the first char is '?'
ckeditor_getparser.Parse(str);
}
}
return ckeditor_getparser.fun_num;
}
} // namespace TemplatesFunctions