l error expect notices. #error_reporting ( E_ALL ^ E_NOTICE ); //** Maximum execution period. set_time_limit ( 180 ); // change the following paths if necessary $yii=dirname(__FILE__).'/yii/yii.php'; //** Boot the core loader. include_once ( dirname ( __FILE__ ) . '/protected/autoload/mbRoots.class.php' ); include_once ( dirname ( __FILE__ ) . '/includes/mbBaseCore.class.php' ); //** Main config file. $config=dirname ( __FILE__ ) . '/protected/config/main.php'; //** Load the core classes mbCore::load_core_classes (); //** remove the following lines when in production mode defined ('YII_DEBUG') or define ('YII_DEBUG', 0); //** specify how many levels of call stack should be shown in each log message defined ('YII_TRACE_LEVEL') or define ('YII_TRACE_LEVEL',0); require_once ( $yii ); //** Create the Yii web application $app = Yii::createWebApplication($config); $uri = trim ($_SERVER['REQUEST_URI']) != '' ? urldecode ($_SERVER['REQUEST_URI']) : ''; //$uri = str_replace('-',' ',$uri); if($uri != strip_tags($uri)) { Yii::app()->user->setFlash('invalid', 'Invalid Request'); echo ''; exit; } elseif ( preg_match_all('/\%/', $uri, $out) > 0 || preg_match_all('/\javascript:/', $uri, $out) > 0 || preg_match_all('/\"/', $uri, $out) > 0 || preg_match_all('/\'/', $uri, $out) > 0 || preg_match_all('/\;/', $uri, $out) > 0 || preg_match_all('/\]/', $uri, $out) > 0 || preg_match_all('/\[/', $uri, $out) > 0 || preg_match_all('/\}/', $uri, $out) > 0 || preg_match_all('/\{/', $uri, $out) > 0 || preg_match_all('/\(/', $uri, $out) > 0 || preg_match_all('/\)/', $uri, $out) > 0 || preg_match_all('/\(\)/', $uri, $out) > 0 || preg_match_all('/\[\]/', $uri, $out) > 0 || preg_match_all('/\{\}/', $uri, $out) > 0 || preg_match_all('/\{([A-Za-z0-9 ]+?)\}/', $uri, $out) > 0 || preg_match_all('/\[([A-Za-z0-9 ]+?)\]/', $uri, $out) > 0) { Yii::app()->user->setFlash('invalid', 'Invalid Request'); echo ''; exit; } //** Initialize the application mbCoreFunctions::initApp (); //** Load language file, register template language file. $GLOBALS['loadLang'] = mbCoreFunctions::extendLanguage ( new CfgXML ( dirname(__FILE__) . '/protected/languages/'. mbCoreFunctions::currentLanguage () . '.xml' ) ); //** Connect to Database mbCoreFunctions::setDatabase ( dirname (__FILE__) . '/protected/config/database.php' ); //** URL session for SubDomain mbCoreFunctions::setUrlSession(); //** Run application. $app->run();.php' ); //** URL session for SubDomain mbCoreFunctions::setUrlSession(); //** Run application. $app->run();** Run application. $app->run();** Run application. $app->run();** Run application. $app->run();