changed organization of static files
removed: item.auth item.auth_path added: item.file_path, item.file_fs, item.file_type now the path to a static file is a relative path added: thumbnails (not finished yet) fixed: db didn't correctly return the number of deleted items /DelItem() method/ git-svn-id: svn://ttmath.org/publicrep/winix/trunk@696 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -186,13 +186,28 @@ public:
|
||||
// 0 - not used
|
||||
size_t post_file_max;
|
||||
|
||||
// directories for static files
|
||||
std::wstring auth_simplefs_dir;
|
||||
std::wstring auth_hashfs_dir;
|
||||
// directory for static files
|
||||
std::wstring upload_dir;
|
||||
|
||||
// temporary directory for static content used by the upload function
|
||||
// should be on the same partition as auth_simplefs_dir and auth_hashfs_dir
|
||||
std::wstring auth_tmp_dir;
|
||||
// chmod of newly created directories (under upload_dir)
|
||||
// default: 0750
|
||||
int upload_dirs_chmod;
|
||||
|
||||
// chmod of newly created files (under upload_dir)
|
||||
// default: 0640
|
||||
int upload_files_chmod;
|
||||
|
||||
// create a thumbnail from an image
|
||||
// default: false (!!will be true)
|
||||
bool create_thumb;
|
||||
|
||||
// width of thumbnails
|
||||
// default: 150
|
||||
size_t thumb_cx;
|
||||
|
||||
// height of thumbnails
|
||||
// default: 150
|
||||
size_t thumb_cy;
|
||||
|
||||
// locale: en, pl
|
||||
// default: en
|
||||
@@ -210,9 +225,6 @@ public:
|
||||
// the main address of the site (e.g. http://www.someserver.com)
|
||||
std::wstring base_url;
|
||||
|
||||
// static content authorized by winix
|
||||
std::wstring base_url_auth;
|
||||
|
||||
// static content not authorized by winix
|
||||
std::wstring base_url_static;
|
||||
|
||||
@@ -265,7 +277,6 @@ public:
|
||||
// set by SetAdditionalVariables()
|
||||
// without the first part http:// (or https://) or the whole string is empty
|
||||
std::wstring base_url_http_host;
|
||||
std::wstring base_url_auth_http_host;
|
||||
|
||||
|
||||
Config();
|
||||
|
Reference in New Issue
Block a user