-
Notifications
You must be signed in to change notification settings - Fork 0
/
constants.php
executable file
·37 lines (36 loc) · 2.52 KB
/
constants.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php
if (!defined('DS')) define('DS', DIRECTORY_SEPARATOR);
if (!defined('DEBUG')) define('DEBUG', false);
if (!defined('LOTS_OF_LOGS')) define('LOTS_OF_LOGS', false);
if (!defined('PERMIT_AJAX_DEBUG')) define('PERMIT_AJAX_DEBUG', false);
if (!defined('LIB_DIR')) define('LIB_DIR', dirname(__DIR__) . DS);
if (!defined('SERVER_PREFIX')) define('SERVER_PREFIX', preg_replace('/^(.*)(public_html|httpdocs)(.*)$/i', '$1$2', LIB_DIR));
if (!defined('APP_SUB_DIR')) define('APP_SUB_DIR', '');
if (!defined('RADCANON_DIR')) define('RADCANON_DIR', __DIR__ . DS);
if (!defined('RADCANON_CSS_DIR')) define('RADCANON_CSS_DIR', RADCANON_DIR . 'css' . DS);
if (!defined('CSS_DIR')) define('CSS_DIR', RADCANON_CSS_DIR);
if (!defined('RADCANON_JS_DIR')) define('RADCANON_JS_DIR', RADCANON_DIR . 'js' . DS);
if (!defined('JS_DIR')) define('JS_DIR', RADCANON_JS_DIR);
if (!defined('RADCANON_CACHE_DIR')) define('RADCANON_CACHE_DIR', RADCANON_DIR . 'cache' . DS);
if (!defined('CACHE_DIR')) define('CACHE_DIR', RADCANON_CACHE_DIR);
if (!defined('UPDIR_ROOT')) define('UPDIR_ROOT', CACHE_DIR . 'uploads' . DS);
if (!defined('LOG_FILE')) define('LOG_FILE', CACHE_DIR . 'rc.log');
if (!defined('MAIL_FROM')) define('MAIL_FROM', 'Info <info@radcanon.com>');
if (!defined('USE_HTACCESS')) define('USE_HTACCESS', true);
if (!defined('NO_TWIG_THANKS') && !class_exists('Twig_Autoloader')) {
if (!defined('TWIG_LIB_DIR')) define('TWIG_LIB_DIR', LIB_DIR . 'twig' . DS . 'lib' . DS . 'Twig' . DS);
require_once(TWIG_LIB_DIR . 'Autoloader.php');
Twig_Autoloader::register();
}
if (!defined('RADCANON_CLASS_DIR')) define('RADCANON_CLASS_DIR', RADCANON_DIR . 'classes' . DS);
if (!defined('RADCANON_TEMPLATES_DIR')) define('RADCANON_TEMPLATES_DIR', RADCANON_DIR . 'views' . DS);
if (!defined('APP_TEMPLATES_DIR')) define('APP_TEMPLATES_DIR', RADCANON_TEMPLATES_DIR);
if (!defined('PaZsCA8p')) define('PaZsCA8p', 'hwllo');
if (!defined('BASE_URL')) define('BASE_URL', 'http://radcanon.com/');
if (!defined('DEFAULT_PAGE_TITLE')) define('DEFAULT_PAGE_TITLE', ' - RadCanon - ');
if (!defined('RUNNING_AS_CLI')) define('RUNNING_AS_CLI', strtolower(substr(php_sapi_name(), 0, 3)) === 'cli' || (isset($_SERVER['argv']) && is_array($_SERVER['argv']) && in_array('cli', $_SERVER['argv'])));
if (!defined('APP_NAME')) define('APP_NAME', 'RADCanon');
if (!defined('NO_OUTBOUND_EMAIL')) define('NO_OUTBOUND_EMAIL', false);
if (!defined('SITE_HOST')) define('SITE_HOST', dirname(LIB_DIR) . DS);
if (!defined('GOOD_MSG_KEY')) define('GOOD_MSG_KEY', 'msg');
if (!defined('BAD_MSG_KEY')) define('BAD_MSG_KEY', 'f_msg');