mirror of
https://github.com/slawkens/myaac.git
synced 2025-12-03 16:16:50 +01:00
Made so it's possible to configure more directories as constants
More flexibility for the user.
This commit is contained in:
@@ -68,6 +68,12 @@ const TEMPLATES = BASE . 'templates/';
|
||||
const TOOLS = BASE . 'tools/';
|
||||
const VENDOR = BASE . 'vendor/';
|
||||
|
||||
// other dirs
|
||||
const SESSIONS_DIR = SYSTEM . 'php_sessions';
|
||||
const GUILD_IMAGES_DIR = 'user_images/';
|
||||
const EDITOR_IMAGES_DIR = 'images/editor/';
|
||||
const GALLERY_DIR = 'images/gallery/';
|
||||
|
||||
// menu categories
|
||||
const MENU_CATEGORY_NEWS = 1;
|
||||
const MENU_CATEGORY_ACCOUNT = 2;
|
||||
@@ -89,7 +95,7 @@ const TFS_LAST = TFS_03;
|
||||
// other definitions
|
||||
const ACCOUNT_NUMBER_LENGTH = 8;
|
||||
|
||||
session_save_path(SYSTEM . 'php_sessions');
|
||||
session_save_path(SESSIONS_DIR);
|
||||
session_start();
|
||||
|
||||
// basedir
|
||||
|
||||
Reference in New Issue
Block a user