Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Host
- define('HOST_DEFAULT', !empty($_SERVER['HTTP_HOST']) ? trim($_SERVER['HTTP_HOST']) : 'test.webstart.spb.ru');
- define('URL_ROOT', sprintf('http%s://%s/', !empty($_SERVER['SERVER_PORT']) && $_SERVER['SERVER_PORT'] == 443 ? 's' : '', HOST_DEFAULT));
- // Path
- define('DIR_HOME', __DIR__.'/');
- define('DIR_IMAGE', DIR_HOME.'image/');
- define('DIR_SYSTEM', DIR_HOME.'system/');
- define('DIR_CONFIG', DIR_SYSTEM.'config/');
- define('DIR_CACHE', DIR_SYSTEM.'storage/cache/');
- define('DIR_DOWNLOAD', DIR_SYSTEM.'storage/download/');
- define('DIR_LOGS', DIR_HOME.'../log/');
- define('DIR_MODIFICATION', DIR_SYSTEM.'storage/modification/');
- define('DIR_UPLOAD', DIR_SYSTEM.'storage/upload/');
- // DB
- const DB_DRIVER = 'mysqli';
- const DB_HOSTNAME = null;
- const DB_USERNAME = '******';
- const DB_PASSWORD = '*******';
- const DB_DATABASE = '*********';
- const DB_PORT = '3306';
- const DB_PREFIX = 'oc_';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement