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