fixed: dots in url-es (now only one dot is available in the whole name and it cannot be only one dot ".")
added: cmslu can act as an authorizer (fast cgi authorize role) added: Item::static_auth we can have additional static content on the file system this content is authorized through cmslu (fastcgi authorizer mode) changed: some changes in config changed: the way how the www server is using cmslu added new virtuals: static static_auth changed: cmslu returns correct http headers (200, 404, 403) changed: in cookie parser: we get the last cookie (if the server has more than one cookie with the same name) git-svn-id: svn://ttmath.org/publicrep/cmslu/trunk@540 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
25
core/item.h
25
core/item.h
@@ -35,10 +35,10 @@ std::string content;
|
||||
std::string url;
|
||||
|
||||
|
||||
// 0 - simple txt
|
||||
// 1 - formatted txt
|
||||
// 2 - html
|
||||
// 3 - bbcode
|
||||
// 0 - text: simple
|
||||
// 1 - text: formatted
|
||||
// 2 - text: html
|
||||
// 3 - text: bbcode
|
||||
int content_type;
|
||||
|
||||
|
||||
@@ -65,6 +65,19 @@ long default_item;
|
||||
long content_id;
|
||||
|
||||
|
||||
// external static file (saved in file system)
|
||||
// the direct url is the same but the prefix is: base_url_static_auth
|
||||
enum StaticAuth
|
||||
{
|
||||
static_none = 0,
|
||||
static_image = 1,
|
||||
static_other = 2
|
||||
};
|
||||
|
||||
|
||||
StaticAuth static_auth;
|
||||
|
||||
|
||||
Item()
|
||||
{
|
||||
Clear();
|
||||
@@ -93,7 +106,9 @@ void Clear()
|
||||
default_item = -1;
|
||||
|
||||
content_id = -1;
|
||||
|
||||
|
||||
static_auth = static_none;
|
||||
|
||||
time_t t = std::time(0);
|
||||
date_creation = *std::localtime( &t );
|
||||
date_modification = date_creation;
|
||||
|
Reference in New Issue
Block a user