Created
August 8, 2016 13:31
-
-
Save anonymous/5e3e3d3661506884c4645a7af461f4cf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//////////////////////////////////////////////////////////////////////////// | |
// VANILLA CONFIGURATION FILE | |
define ('INSTALL_DIR', dirname(__FILE__)); | |
//////////////////////////////////////////////////////////////////////////// | |
// HTTP IMPORTANT URLS | |
define('HTTP_SERVER', 'http://localhost/opencart/'); | |
define('HTTPS_SERVER', 'https://localhost/opencart/'); | |
define('HTTP_ADMIN', 'http://localhost/opencart/ad33/'); | |
define('HTTPS_ADMIN', 'http://localhost/opencart/ad33/'); | |
define('HTTP_CATALOG', 'http://stg.vanillaeshop.com/'); | |
//////////////////////////////////////////////////////////////////////////// | |
// IMPORTANT DIRECTORIES | |
define('DIR_INCLUDE', INSTALL_DIR.'/include'); // DONT USE - FUTURE TO BE REMOVED | |
define('DIR_SYSTEM', INSTALL_DIR.'/system/'); | |
define('DIR_DATABASE', INSTALL_DIR.'/system/database/'); | |
define('DIR_CONFIG', INSTALL_DIR.'/system/config/'); | |
define('DIR_CACHE', INSTALL_DIR.'/system/cache/'); | |
define('DIR_DOWNLOAD', INSTALL_DIR.'/download/'); | |
define('DIR_LOGS', INSTALL_DIR.'/system/logs/'); | |
// ADMIN_ACCESS_FLAG gets defined when admin application is accessed (ie. ad33/index.php) | |
// See ad33/index.php line 8 on where ADMIN_ACCESS_FLAG gets defined | |
if (defined('ADMIN_ACCESS_FLAG')) { | |
// ad33 specific | |
define('DIR_APPLICATION', INSTALL_DIR.'/ad33/'); | |
define('DIR_LANGUAGE', INSTALL_DIR.'/ad33/language/'); | |
define('DIR_TEMPLATE', INSTALL_DIR.'/ad33/view/template/'); | |
} else { | |
// main application specific | |
define('DIR_APPLICATION', INSTALL_DIR.'/catalog/'); | |
define('DIR_LANGUAGE', INSTALL_DIR.'/catalog/language/'); | |
define('DIR_TEMPLATE', INSTALL_DIR.'/catalog/view/theme/'); | |
} | |
//////////////////////////////////////////////////////////////////////////// | |
// MISCELLEANEOUS PARAMETERS | |
define('HOME_BANNER_ID', '13'); | |
define('DEBUG_MODE','1'); | |
// Please make sure that the PRODUCT_ID_URL always has | |
// an '{id}' string, since this will be replaced with the product_id value | |
// dynamically. | |
define('PRODUCT_ID_URL', 'http://vani.la/{id}'); | |
//////////////////////////////////////////////////////////////////////////// | |
// SOLR CONNECTION PARAMETERS | |
// - Solr Production Host: 10.0.11.174 | |
// - Solr Staging Host: localhost | |
define('SOLR_HOST', 'localhost'); | |
define('SOLR_PORT', '8983'); | |
define('SOLR_CONTEXT', '/solr/vanilla_core'); | |
//////////////////////////////////////////////////////////////////////////// | |
// DATABASE MASTER CONNECTION PARAMETERS | |
define('DB_DRIVER', 'mysql'); | |
define('DB_HOSTNAME', 'localhost'); | |
define('DB_USERNAME', 'root'); | |
define('DB_PASSWORD', '***'); | |
define('DB_DATABASE', 'vanillae_online'); | |
define('DB_PREFIX', ''); | |
//////////////////////////////////////////////////////////////////////////// | |
// DATABASE SLAVE CONNECTION PARAMETERS | |
define('DBS_HOSTNAME', 'localhost'); | |
define('DBS_USERNAME', 'root'); | |
define('DBS_PASSWORD', '***'); | |
define('DBS_DATABASE', 'vanillae_online'); | |
define('DBS_PREFIX', ''); | |
//////////////////////////////////////////////////////////////////////////// | |
// PO PURCHASE ORDER DATABASE | |
define('PO_DB_HOSTNAME', 'localhost'); | |
define('PO_DB_USERNAME', 'vanillaeUsr'); | |
define('PO_DB_PASSWORD', '***'); | |
define('PO_DB_DATABASE', 'ecs_po'); | |
//////////////////////////////////////////////////////////////////////////// | |
// REDIS CONFIGURATION | |
// Set REDIS_ENABLED to 'false' on a development machine that does not have redis server installed | |
define('REDIS_ENABLED', true); | |
define('REDIS_HOST', 'localhost'); | |
define('REDIS_PORT', 6379); | |
define('REDIS_PHP_SESSION_EXPIRY_SECONDS', 15552000); // 6 Months | |
define('REDIS_URL_ALIAS_TTL_SECONDS', 25200); // 7 Days | |
//////////////////////////////////////////////////////////////////////////// | |
// IMAGE SERVICE CONSTANTS | |
define('DIR_IMAGE', INSTALL_DIR.'/image/'); | |
define('HTTP_IMAGE', 'https://static2.vanilla.sa/image'); | |
define('IMAGE_WEBSERVICE_URL', HTTP_SERVER.'image-service/index.php'); | |
define('SECURITY_TOKEN', '****************************************************************'); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment