<?php
$site_base = 'http://'.$_SERVER['HTTP_HOST'];
$site_secure_base = 'https://'.$_SERVER['HTTP_HOST'];
$site_root = dirname(__FILE__);
define('HTTP_SERVER', $site_base.'/');
define('HTTP_IMAGE', $site_base.'/image/');
define('HTTP_ADMIN', $site_base.'/admin/');
// HTTPS
define('HTTPS_SERVER', $site_secure_base.'/');
define('HTTPS_IMAGE', $site_secure_base.'/image/');
// DIR
define('DIR_APPLICATION', $site_root.'/catalog/');
define('DIR_SYSTEM', $site_root.'/system/');
define('DIR_DATABASE', $site_root.'/system/database/');
define('DIR_LANGUAGE', $site_root.'/catalog/language/');
define('DIR_TEMPLATE', $site_root.'/catalog/view/theme/');
define('DIR_CONFIG', $site_root.'/system/config/');
define('DIR_IMAGE', $site_root.'/image/');
define('DIR_CACHE', $site_root.'/system/cache/');
define('DIR_DOWNLOAD', $site_root.'/download/');
define('DIR_LOGS', $site_root.'/system/logs/');
// DB
define('DB_DRIVER', 'mysql');
define('DB_HOSTNAME', 'хотс');
define('DB_USERNAME', 'юзер');
if (!defined('DB_PASSWORD')) define('DB_PASSWORD', 'пароль');
define('DB_DATABASE', 'база');
define('DB_PREFIX', 'oc_');
?>