/var/www/vhosts/armasarquitectura/protected/helpers/HelperFunctions.php(530)
518 elseif(preg_match('/Opera/i',$u_agent)) 519 { 520 $bname = 'Opera'; 521 $ub = "Opera"; 522 } 523 elseif(preg_match('/Netscape/i',$u_agent)) 524 { 525 $bname = 'Netscape'; 526 $ub = "Netscape"; 527 } 528 529 // finally get the correct version number 530 $known = array('Version', $ub, 'other'); 531 $pattern = '#(?<browser>' . join('|', $known) . 532 ')[/ ]+(?<version>[0-9.|a-zA-Z.]*)#'; 533 if (!preg_match_all($pattern, $u_agent, $matches)) { 534 // we have no matching number just continue 535 } 536 537 // see how many we have 538 $i = count($matches['browser']); 539 if ($i != 1) { 540 //we will have two since we are not using 'other' argument yet 541 //see if version is before or after the name 542 if (strripos($u_agent,"Version") < strripos($u_agent,$ub)){
#0 |
+
–
/var/www/vhosts/armasarquitectura/protected/models/Sessions.php(105): HelperFunctions::getBrowser() 100 $session = new Sessions; 101 $session->code = Yii::app()->session->sessionID; 102 $session->cookie = CookieHandler::get('main'); 103 $session->ip = HelperFunctions::getIP(); 104 if(!HelperFunctions::isBot($session->ip)){ 105 $session->browser = HelperFunctions::getBrowser(); 106 $session->referrer = substr(HelperFunctions::getReferrer(), 0, 256); 107 $session->created_on = HelperFunctions::getDate(); 108 if ($session->ip != '192.252.218.60') 109 if ($session->save()) { 110 Yii::app()->session['set'] = true; |
#1 |
+
–
/var/www/vhosts/armasarquitectura/protected/components/Controller.php(57): Sessions::create() 52 53 if (strlen(CookieHandler::get('main')) != 32) { 54 Cookies::create(); 55 } 56 if (!isset(Yii::app()->session['set'])) { 57 Sessions::create(); 58 } 59 if (isset($_GET['utm_content'])) { 60 MttSpaceVisits::create(); 61 } 62 |
#2 |
+
–
/var/www/vhosts/armasarquitectura/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/armasarquitectura/yii/framework/web/CWebApplication.php(121): CWebApplication->runController("") 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/armasarquitectura/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/armasarquitectura/public_html/index.php(27): CApplication->run() 22 defined('YII_DEBUG') or define('YII_DEBUG',true); 23 // specify how many levels of call stack should be shown in each log message 24 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3); 25 26 require_once($yii); 27 Yii::createWebApplication($config)->run(); |