/var/www/www-root/data/www/saunapiter.ru/protected/components/UTM.php(43)
31 32 } 33 34 private static function utm_process( $utm ) { 35 36 foreach ( self::utm_data() as $utm_rule ) { 37 38 $match = true; 39 foreach ( $utm as $utm_key => $utm_value ) { 40 if ( isset( $utm_rule[ $utm_key ] )) { 41 $rule = $utm_rule[ $utm_key ]; 42 if ( substr( $rule, 0, 1 ) == '@' ) { 43 if ( ! preg_match( substr( $rule, 1, 0xffff ), $utm_value )) { 44 $match = false; 45 break; 46 } 47 } elseif ( $rule !== $utm_value ) { 48 $match = false; 49 break; 50 } 51 } 52 } 53 54 if ( $match ) { 55 return isset( $utm_rule[ 'data'] ) ? $utm_rule[ 'data'] : null;
#0 |
+
–
/var/www/www-root/data/www/saunapiter.ru/protected/components/UTM.php(43): preg_match("/https://www.yandex.ru/.+/", "") 38 $match = true; 39 foreach ( $utm as $utm_key => $utm_value ) { 40 if ( isset( $utm_rule[ $utm_key ] )) { 41 $rule = $utm_rule[ $utm_key ]; 42 if ( substr( $rule, 0, 1 ) == '@' ) { 43 if ( ! preg_match( substr( $rule, 1, 0xffff ), $utm_value )) { 44 $match = false; 45 break; 46 } 47 } elseif ( $rule !== $utm_value ) { 48 $match = false; |
#1 |
+
–
/var/www/www-root/data/www/saunapiter.ru/protected/components/UTM.php(16): UTM::utm_process(array("utm_source" => "", "utm_campaign" => "", "utm_medium" => "", "utm_content" => "/catalog/dostoevskaya,parnye-s-venikom,oblivnoe-vedro", ...)) 11 ]; 12 13 public static function process() { 14 15 $utm = self::utm_request(); 16 $data = self::utm_process( $utm ); 17 if ( ! is_null( $data )) { 18 foreach ( $utm as $key => $value ) { 19 setcookie( $key, $value, time() + 30 * 24 * 3600, '/' ); 20 } 21 return $data; |
#2 |
+
–
/var/www/www-root/data/www/saunapiter.ru/protected/components/Controller.php(327): UTM::process() 322 323 return $data[$id]; 324 } 325 326 protected function utmProcess() { 327 $this->utmData = UTM::process(); 328 } 329 330 public function utmPhone( $default = "" ) { 331 if ( isset( $this->utmData[ 'phone' ] )) { 332 return $this->utmData[ 'phone' ]; |
#3 |
+
–
/var/www/www-root/data/www/saunapiter.ru/protected/components/Controller.php(38): Controller->utmProcess() 33 34 $this->pageTitle = $this->getSettings("seo_title"); 35 $this->pageDescription = $this->getSettings("seo_description"); 36 $this->pageKeywords = $this->getSettings("seo_keywords"); 37 38 $this->utmProcess(); 39 40 $data = array( 41 '/catalog?id=1' => '/catalog/tsentralnyiy', 42 '/catalog?id=11' => '/catalog/krasnoselskiy', 43 '/catalog?id=12' => '/catalog/petrodvortsovyiy', |
#4 |
+
–
/var/www/www-root/data/www/saunapiter.ru/framework/web/CController.php(306): Controller->beforeAction(CInlineAction) 301 */ 302 public function runAction($action) 303 { 304 $priorAction=$this->_action; 305 $this->_action=$action; 306 if($this->beforeAction($action)) 307 { 308 if($action->runWithParams($this->getActionParams())===false) 309 $this->invalidActionParams($action); 310 else 311 $this->afterAction($action); |
#5 |
+
–
/var/www/www-root/data/www/saunapiter.ru/framework/web/CController.php(286): CController->runAction(CInlineAction) 281 * @see runAction 282 */ 283 public function runActionWithFilters($action,$filters) 284 { 285 if(empty($filters)) 286 $this->runAction($action); 287 else 288 { 289 $priorAction=$this->_action; 290 $this->_action=$action; 291 CFilterChain::create($this,$action,$filters)->run(); |
#6 |
+
–
/var/www/www-root/data/www/saunapiter.ru/framework/web/CController.php(265): CController->runActionWithFilters(CInlineAction, array()) 260 { 261 if(($parent=$this->getModule())===null) 262 $parent=Yii::app(); 263 if($parent->beforeControllerAction($this,$action)) 264 { 265 $this->runActionWithFilters($action,$this->filters()); 266 $parent->afterControllerAction($this,$action); 267 } 268 } 269 else 270 $this->missingAction($actionID); |
#7 |
+
–
/var/www/www-root/data/www/saunapiter.ru/framework/web/CWebApplication.php(282): CController->run("") 277 { 278 list($controller,$actionID)=$ca; 279 $oldController=$this->_controller; 280 $this->_controller=$controller; 281 $controller->init(); 282 $controller->run($actionID); 283 $this->_controller=$oldController; 284 } 285 else 286 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 287 array('{route}'=>$route===''?$this->defaultController:$route))); |
#8 |
+
–
/var/www/www-root/data/www/saunapiter.ru/framework/web/CWebApplication.php(141): CWebApplication->runController("catalog") 136 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 137 $_GET[$name]=$value; 138 } 139 else 140 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 141 $this->runController($route); 142 } 143 144 /** 145 * Registers the core application components. 146 * This method overrides the parent implementation by registering additional core components. |
#9 |
+
–
/var/www/www-root/data/www/saunapiter.ru/framework/base/CApplication.php(180): CWebApplication->processRequest() 175 public function run() 176 { 177 if($this->hasEventHandler('onBeginRequest')) 178 $this->onBeginRequest(new CEvent($this)); 179 register_shutdown_function(array($this,'end'),0,false); 180 $this->processRequest(); 181 if($this->hasEventHandler('onEndRequest')) 182 $this->onEndRequest(new CEvent($this)); 183 } 184 185 /** |
#10 |
+
–
/var/www/www-root/data/www/saunapiter.ru/index.php(21): CApplication->run() 16 17 defined('YII_DEBUG') or define('YII_DEBUG', true); 18 defined('YII_DEBUG_SHOW_PROFILER') or define('YII_DEBUG_SHOW_PROFILER', true); 19 20 require_once($yii); 21 Yii::createWebApplication($config)->run(); |