<?php
// change the following paths if necessary
$yii=dirname(__FILE__).'/../yii-1.1.20.6ed384/framework/yii.php';
//$yii=dirname(__FILE__).'/../yii-1.1.12.b600af/framework/yii.php';
$config = require(dirname(__FILE__).'/protected/config/main.php');

switch($_SERVER['HTTP_HOST'])
{
    default:
    case 'bpro.local':
        defined('YII_DEBUG') or define('YII_DEBUG',true);
        $config['components']['db']['connectionString'] = 'mysql:host=localhost;dbname=ranges_booking_bpro';
        $config['components']['db']['username'] = 'root';
        $config['components']['db']['password'] = 'Romi1975';
        break;
    case 'naptar.gipszjakab.hu':
        defined('YII_DEBUG') or define('YII_DEBUG',true);
        $config['components']['db']['connectionString'] = 'mysql:host=87.229.120.163;dbname=develop_ranges_booking_bpro';
        $config['components']['db']['username'] = 'develop';
        $config['components']['db']['password'] = 'Develop2012';
        break;
    case 'naptar.bpro.solutions':
        $config['components']['db']['connectionString'] = 'mysql:host=87.229.120.163;dbname=ranges_booking_bpro';
        $config['components']['db']['username'] = 'naptar_bpro';
        $config['components']['db']['password'] = 'B12P23r3ooXnap445tR';
        break;
}

// specify how many levels of call stack should be shown in each log message
defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);

require_once($yii);
$yiiApp = Yii::createWebApplication($config)->run();