3 * Configuration file for Habarnam code version 4.
5 date_default_timezone_set('Europe/Bucharest'); // avoiding E_STRICT error
6 define ('SITE_NAME', 'b');
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', 'uploads'.DIRECTORY_SEPARATOR
);
16 define ('PAGE_PATH', BASE_PATH
.DIRECTORY_SEPARATOR
.'_pages'.DIRECTORY_SEPARATOR
);
19 -----------------------*/
20 define ('BASE_URL', 'http://'.$_SERVER['HTTP_HOST'].preg_replace('/\/[a-z0-9]+\.php/','',$_SERVER['SCRIPT_NAME']));
21 define ('URL', BASE_URL
);
22 define ('NAV_VAR', 'to');
23 define ('UPLOAD_URL', BASE_URL
.'/uploads/');
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
);
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');
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');