Files
winix/templates/upload.cpp
Tomasz Sowa 7468e7a36c added: namespace Winix over all *.h/*.cpp files
git-svn-id: svn://ttmath.org/publicrep/winix/trunk@948 e52654a7-88a9-db11-a3e9-0013d4bc506e
2014-02-12 16:30:49 +00:00

44 lines
639 B
C++
Executable File

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