-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.php
30 lines (27 loc) · 1.01 KB
/
config.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
<?php
// HTTP
$server = 'http://'.$_SERVER['HTTP_HOST'].'/';
define('HTTP_SERVER', $server);
// HTTPS
define('HTTPS_SERVER', $server);
define('DIR_FOLDER', $_SERVER['DOCUMENT_ROOT']);
// DIR
define('DIR_APPLICATION', DIR_FOLDER.'/catalog/');
define('DIR_SYSTEM', DIR_FOLDER.'/system/');
define('DIR_LANGUAGE', DIR_FOLDER.'/catalog/language/');
define('DIR_TEMPLATE', DIR_FOLDER.'/catalog/view/theme/');
define('DIR_CONFIG', DIR_FOLDER.'/system/config/');
define('DIR_IMAGE', DIR_FOLDER.'/image/');
define('DIR_CACHE', DIR_FOLDER.'/system/storage/cache/');
define('DIR_DOWNLOAD', DIR_FOLDER.'/system/storage/download/');
define('DIR_LOGS', DIR_FOLDER.'/system/storage/logs/');
define('DIR_MODIFICATION', DIR_FOLDER.'/system/storage/modification/');
define('DIR_UPLOAD', DIR_FOLDER.'/system/storage/upload/');
// DB
define('DB_DRIVER', 'mysqli');
define('DB_HOSTNAME', 'localhost');
define('DB_USERNAME', 'root');
define('DB_PASSWORD', '');
define('DB_DATABASE', 'loathung');
define('DB_PORT', '3306');
define('DB_PREFIX', 'oc_');