* minor chages to tdoAbstract
[vsc.git] / config.inc.php
blobf261170d36b17b44976858eb20ce0064c8519961
1 <?php
2 $GLOBALS['st'] = microtime(true);
3 $GLOBALS['qCnt'] = 0;
4 /*
5 * Configuration file for Habarnam code version 4.
6 */
7 date_default_timezone_set ('Europe/Bucharest'); // avoiding E_STRICT error
8 define ('SITE_NAME', 'b');
9 /* Paths to stuff
10 -----------------------*/
11 define ('BASE_PATH', dirname(__FILE__));
12 define ('RES_PATH', BASE_PATH.DIRECTORY_SEPARATOR.'_res'.DIRECTORY_SEPARATOR);
13 define ('LIB_PATH', RES_PATH.'_libs'.DIRECTORY_SEPARATOR);
14 define ('IMPORTED_PATH', LIB_PATH.'imported'.DIRECTORY_SEPARATOR);
15 define ('IMAGE_PATH', RES_PATH.'_img'.DIRECTORY_SEPARATOR);
16 define ('UPLOAD_PATH', realpath ('upload'));
18 define ('PAGE_PATH', BASE_PATH.DIRECTORY_SEPARATOR.'_pages'.DIRECTORY_SEPARATOR);
20 /* URL constants
21 -----------------------*/
22 define ('BASE_URL', 'http://'.$_SERVER['HTTP_HOST']);
23 define ('URL', BASE_URL.preg_replace('/\/[a-z0-9]+\.php/','',$_SERVER['SCRIPT_NAME']));
24 define ('NAV_VAR', 'to');
25 define ('UPLOAD_URL', BASE_URL.'/upload');
27 /* Layout constants
28 -----------------------*/
29 define ('THEME_URL', URL.'_themes'.DIRECTORY_SEPARATOR);
30 define ('THEME_PATH', RES_PATH.'_themes'.DIRECTORY_SEPARATOR);
31 define ('DEFAULT_THEME', 'default');
33 define ('S_TEMPL_DIR', '_templates'.DIRECTORY_SEPARATOR);
34 define ('S_C_TEMPL_DIR', '_templates_c'.DIRECTORY_SEPARATOR);
36 /* Db constants
37 -----------------------*/
38 define ('DB_TYPE', 'mysqli');
39 define ('DB_HOST', 'localhost');
40 define ('DB_USER', 'b');
41 define ('DB_PASS', 'h4bc0de');
42 define ('DB_NAME', 'b');
44 /* Misc
45 ----------------------*/
46 define ('C_SYSTEM_EMAIL', 'habarnam@gmail.com');
47 define ('C_SYSTEM_DEBUG', true);
48 define ('C_SYSTEM_DEBUG_METHOD', 0); // 0 - display or 1 - mail
50 define ('C_SYSTEM_DEBUG_IPS', '127.0.0.1');