smtpHost = ''; //$config_smtp->smtpPort = ''; $config_smtp->smtpUsername = 'adminbah@gmail.com'; //'rajeshmk@nexegen.net' $config_smtp->smtpPassword = 'rasheed'; $config_smtp->smtpFromEmail = 'adminbah@gmail.com'; $config_smtp->smtpFromName = 'Asgharali & Sons Co. WLL'; //database settings $dbSettings = array(); //global settings $dbSettings['global']['DB_HOSTNAME'] = 'localhost'; $dbSettings['global']['DB_USERNAME'] = 'asghar_asgharali'; $dbSettings['global']['DB_PASSWORD'] = '@sgh@r@l1'; $dbSettings['global']['DB_DATABASE'] = 'asghar_nexasghar'; $dbSettings['global']['DB_ADAPTER'] = 'mysql'; //production settings $dbSettings['production']['DB_HOSTNAME'] = 'localhost'; $dbSettings['production']['DB_USERNAME'] = 'asghar_asgharali'; $dbSettings['production']['DB_PASSWORD'] = '@sgh@r@l1'; $dbSettings['production']['DB_DATABASE'] = 'asghar_nexasghar'; //staging settings $dbSettings['staging']['DB_HOSTNAME'] = 'localhost'; $dbSettings['staging']['DB_USERNAME'] = 'nexegen_ucship'; $dbSettings['staging']['DB_PASSWORD'] = '9ut0jeq3lf'; $dbSettings['staging']['DB_DATABASE'] = 'nexegen_test'; //development settings $dbSettings['development']['DB_HOSTNAME'] = 'localhost'; $dbSettings['development']['DB_USERNAME'] = 'manager'; $dbSettings['development']['DB_PASSWORD'] = 'rh7iq3fzm9'; $dbSettings['development']['DB_DATABASE'] = 'asg_db'; $servers = array(); // List of servers: each array contains all server paths for a specific stage of application $servers['development'] = array('localhost', 'localhost:8484', '127.0.0.1'); $servers['staging'] = array('www.nexegen.net', '122.166.96.250:8484'); $servers['production'] = array('www.asgharali.com'); /* * ----------------------------------------------------------------------------- * You don't need to edit below this line * ----------------------------------------------------------------------------- */ // Check in which server the application is running, foreach ($servers as $stage => $serverlist) { if (in_array($_SERVER['HTTP_HOST'], $serverlist)) { define('APPSTAGE_WEB', $stage); //database connection settings define('DB_HOSTNAME', (isset($dbSettings[$stage]['DB_HOSTNAME']) ? $dbSettings[$stage]['DB_HOSTNAME'] : $dbSettings['global']['DB_HOSTNAME'])); define('DB_USERNAME', (isset($dbSettings[$stage]['DB_USERNAME']) ? $dbSettings[$stage]['DB_USERNAME'] : $dbSettings['global']['DB_USERNAME'])); define('DB_PASSWORD', (isset($dbSettings[$stage]['DB_PASSWORD']) ? $dbSettings[$stage]['DB_PASSWORD'] : $dbSettings['global']['DB_PASSWORD'])); define('DB_DATABASE', (isset($dbSettings[$stage]['DB_DATABASE']) ? $dbSettings[$stage]['DB_DATABASE'] : $dbSettings['global']['DB_DATABASE'])); define('DB_ADAPTER', (isset($dbSettings[$stage]['DB_ADAPTER']) ? $dbSettings[$stage]['DB_ADAPTER'] : $dbSettings['global']['DB_ADAPTER'])); //no need of $dbSettings from here unset($dbSettings); break; } } if (!defined('APPSTAGE_WEB')) { exit('

Application is not within configured servers!

'); } Zlib_Registry::set('config_smtp', $config_smtp); //set proper timezone date_default_timezone_set('Asia/Calcutta');
Fatal error: Uncaught exception 'Exception' with message 'Database adapter not configured' in /home/asghar/public_html/a/application/BootstrapWebsite.php:59 Stack trace: #0 /home/asghar/public_html/a/application/BootstrapWebsite.php(37): BootstrapWebsite::_setupDatabase() #1 /home/asghar/public_html/includes/init.php(31): BootstrapWebsite::start() #2 /home/asghar/public_html/home.php(3): require_once('/home/asghar/pu...') #3 {main} thrown in /home/asghar/public_html/a/application/BootstrapWebsite.php on line 59