2008-12-30 02:05:03 +01:00
|
|
|
/*
|
|
|
|
* This file is a part of CMSLU -- Content Management System like Unix
|
|
|
|
* and is not publicly distributed
|
|
|
|
*
|
|
|
|
* Copyright (c) 2008, Tomasz Sowa
|
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef headerfilecontent
|
|
|
|
#define headerfilecontent
|
|
|
|
|
|
|
|
#include <cstdlib>
|
|
|
|
#include <fcgiapp.h>
|
2009-03-23 00:54:15 +01:00
|
|
|
#include <ctime>
|
2008-12-30 02:05:03 +01:00
|
|
|
|
|
|
|
#include "../templates/templates.h"
|
|
|
|
#include "../core/request.h"
|
|
|
|
#include "../core/error.h"
|
|
|
|
#include "../core/misc.h"
|
|
|
|
#include "../core/db.h"
|
|
|
|
#include "../core/user.h"
|
|
|
|
#include "../core/function.h"
|
|
|
|
#include "../core/functionparser.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class Content
|
|
|
|
{
|
|
|
|
Templates templates;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void PrepareUrl(Item & item);
|
|
|
|
|
|
|
|
|
2009-04-20 00:13:21 +02:00
|
|
|
void SetDefaultFunctionForFile();
|
|
|
|
void SetDefaultFunctionForDir();
|
2008-12-30 02:05:03 +01:00
|
|
|
void SetDefaultFunction();
|
|
|
|
bool DirsHaveReadExecPerm();
|
|
|
|
|
|
|
|
void MakeStandardFunction();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void MakePost();
|
|
|
|
|
|
|
|
void FunCat();
|
|
|
|
void FunLogout();
|
|
|
|
void FunLs();
|
|
|
|
void FunEmacs();
|
2009-01-26 21:49:28 +01:00
|
|
|
void FunPriv();
|
2009-02-06 14:12:03 +01:00
|
|
|
|
|
|
|
void FunRmDirRecursive();
|
|
|
|
void FunRmDir();
|
2008-12-30 02:05:03 +01:00
|
|
|
void FunRm();
|
2009-02-06 14:12:03 +01:00
|
|
|
|
2008-12-30 02:05:03 +01:00
|
|
|
void FunNode();
|
2008-12-31 14:36:46 +01:00
|
|
|
void FunMkdir();
|
2009-01-26 21:49:28 +01:00
|
|
|
void FunDefault();
|
|
|
|
void FunRun();
|
2009-01-31 07:53:36 +01:00
|
|
|
void FunWho();
|
2009-03-23 00:54:15 +01:00
|
|
|
void FunLast();
|
2009-04-20 00:13:21 +02:00
|
|
|
void FunThread();
|
|
|
|
void FunCreateThread();
|
2008-12-30 02:05:03 +01:00
|
|
|
|
|
|
|
void PostFunLogin();
|
|
|
|
void PostFunEmacsAdd();
|
|
|
|
void PostFunEmacsEdit(bool with_url);
|
|
|
|
void PostFunEmacs();
|
2009-04-20 00:13:21 +02:00
|
|
|
void PostFunMkdir(bool add_to_dir_table = false);
|
2009-01-26 21:49:28 +01:00
|
|
|
void PostFunDefault();
|
|
|
|
void PostFunPriv();
|
2009-04-20 00:13:21 +02:00
|
|
|
void PostFunCreateThread();
|
2008-12-30 02:05:03 +01:00
|
|
|
|
|
|
|
void RedirectTo(const Item & item);
|
|
|
|
void RedirectTo(long item_id);
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
bool Init();
|
|
|
|
|
|
|
|
void Make();
|
|
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|