/var/www/vhosts/milburnltda/protected/helpers/HelperFunctions.php(662)
650 elseif(preg_match('/Opera/i',$u_agent)) 651 { 652 $bname = 'Opera'; 653 $ub = "Opera"; 654 } 655 elseif(preg_match('/Netscape/i',$u_agent)) 656 { 657 $bname = 'Netscape'; 658 $ub = "Netscape"; 659 } 660 661 // finally get the correct version number 662 $known = array('Version', $ub, 'other'); 663 $pattern = '#(?<browser>' . join('|', $known) . 664 ')[/ ]+(?<version>[0-9.|a-zA-Z.]*)#'; 665 if (!preg_match_all($pattern, $u_agent, $matches)) { 666 // we have no matching number just continue 667 } 668 669 // see how many we have 670 $i = count($matches['browser']); 671 if ($i != 1) { 672 //we will have two since we are not using 'other' argument yet 673 //see if version is before or after the name 674 if (strripos($u_agent,"Version") < strripos($u_agent,$ub)){
#0 |
+
–
/var/www/vhosts/milburnltda/protected/models/Sessions.php(106): HelperFunctions::getBrowser() 101 $session = new Sessions; 102 $session->code = Yii::app()->session->sessionID; 103 $session->cookie = CookieHandler::get('main'); 104 $session->ip = HelperFunctions::getIP(); 105 if(!HelperFunctions::isBot($session->ip)){ 106 $session->browser = HelperFunctions::getBrowser(); 107 $session->referrer = substr(HelperFunctions::getReferrer(), 0, 256); 108 $session->created_on = HelperFunctions::getDate(); 109 if ($session->ip != '192.252.218.60'){ 110 $session->validate(); 111 if ($session->save()) { |
#1 |
+
–
/var/www/vhosts/milburnltda/protected/components/Controller.php(54): Sessions::create() 49 $this->isMobile = HelperFunctions::isMobileBrowser(); 50 51 if (strlen(CookieHandler::get('main')) != 32) 52 Cookies::create(); 53 if (!isset(Yii::app()->session['set'])) 54 Sessions::create(); 55 56 if (isset(Yii::app()->session['session_admin_id'])) { 57 $this->administrator = Administrators::getCurrentAdministrator(); 58 } 59 } catch (Exception $ex) { |
#2 |
+
–
/var/www/vhosts/milburnltda/yii/framework/web/CWebApplication.php(327): Controller->init() 322 if(($ca=$this->createController($route))!==null) 323 { 324 list($controller,$actionID)=$ca; 325 $oldController=$this->_controller; 326 $this->_controller=$controller; 327 $controller->init(); 328 $controller->run($actionID); 329 $this->_controller=$oldController; 330 } 331 else 332 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', |
#3 |
+
–
/var/www/vhosts/milburnltda/yii/framework/web/CWebApplication.php(121): CWebApplication->runController("Languages/changeLanguage") 116 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 117 $_GET[$name]=$value; 118 } 119 else 120 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 121 $this->runController($route); 122 } 123 124 /** 125 * Registers the core application components. 126 * This method overrides the parent implementation by registering additional core components. |
#4 |
+
–
/var/www/vhosts/milburnltda/yii/framework/base/CApplication.php(155): CWebApplication->processRequest() 150 */ 151 public function run() 152 { 153 if($this->hasEventHandler('onBeginRequest')) 154 $this->onBeginRequest(new CEvent($this)); 155 $this->processRequest(); 156 if($this->hasEventHandler('onEndRequest')) 157 $this->onEndRequest(new CEvent($this)); 158 } 159 160 /** |
#5 |
+
–
/var/www/vhosts/milburnltda/public_html/index.php(12): CApplication->run() 07 defined('YII_DEBUG') or define('YII_DEBUG',true); 08 // specify how many levels of call stack should be shown in each log message 09 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3); 10 11 require_once($yii); 12 Yii::createWebApplication($config)->run(); |