<?php

// change the following paths if necessary
$yii=dirname(__FILE__).'/../_framework/yii.php';
// $yii=dirname(__FILE__).'/../_framework/yiilite.php';
$config=dirname(__FILE__).'/protected/config/main.php';

// remove the following lines when in production mode
defined('YII_DEBUG') or define('YII_DEBUG', false);
// 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 './core_func.php';
require_once $yii;

require_once dirname(__FILE__) . '/protected/components/WebApplication.php';
Yii::createApplication('WebApplication', $config)->run();

list($queryCount, $queryTime) = Yii::app()->db->getStats();
//echo "<div style=\"display: none\">Query count: $queryCount, Total query time: ".sprintf('%0.5f',$queryTime)."s</div>";