winix/templates/ls.cpp

43 lines
590 B
C++
Executable File

/*
* This file is a part of Winix
* and is not publicly distributed
*
* Copyright (c) 2008-2011, Tomasz Sowa
* All rights reserved.
*
*/
#include "templates.h"
#include "core/request.h"
#include "misc.h"
namespace TemplatesFunctions
{
static size_t ls_ckeditor_reqid = 0;
static int ls_ckeditor_funnum = 0;
void ls_ckeditor_funnum_browse(Info & i)
{
if( ls_ckeditor_reqid != cur->request->id )
{
ls_ckeditor_reqid = cur->request->id;
ls_ckeditor_funnum = Toi(cur->request->ParamValue(L"CKEditorFuncNum"));
}
i.out << ls_ckeditor_funnum;
}
} // namespace