<?php

//error_reporting(0);
ini_set('display_errors', 'off');
//ini_set('display_errors', true);
//ini_set('post_max_size',"120M");
date_default_timezone_set("Asia/Dubai");

header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");

function ae_detect_ie() {
    if (isset($_SERVER['HTTP_USER_AGENT']) &&
            (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== false))
        return true;
    else
        return false;
}

/* if(ae_detect_ie())
  die('Cumulus CRM is not compatible with Internet Explorer at this moment, Please use Chrome/Firefox instead. '); */
?>
<?php

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

define('YII_ENABLE_ERROR_HANDLER', false);
// remove the following lines when in production mode
defined('YII_DEBUG') or define('YII_DEBUG', true);
// 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);
Yii::createWebApplication($config)->runEnd('front');
