/srv/http/btrworlds.com/htdocs/protected/modules/showroom/components/SController.php(644)
632 $ch = curl_init(); 633 curl_setopt($ch, CURLOPT_URL, $dataUrl); 634 curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); 635 $ua = isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : 'curl/7.29.0'; 636 curl_setopt($ch, CURLOPT_USERAGENT, $ua); 637 curl_setopt($ch, CURLOPT_TIMEOUT, 10); 638 $rData = curl_exec($ch); 639 } else { 640 $rData = file_get_contents($dataUrl); 641 } 642 if (!empty($rData)) { 643 $countryData = json_decode($rData); 644 if ($countryData->code == 0) { 645 $countryCode = strtolower($countryData->data->country_id); 646 } 647 } 648 return $countryCode; 649 } 650 public function getCompanyName(){ 651 652 $companyName=isset($this->company->companyname) ? $this->company->companyname :''; 653 return LibCommon::profilename($companyName); 654 655 } 656
#0 |
+
–
/srv/http/btrworlds.com/htdocs/protected/modules/showroom/components/SController.php(618): SController::remoteGetCountry("44.210.237.223") 613 if ($ip == '192.168.0.88') 614 return true; 615 if (function_exists('geoip_country_code_by_name')) { 616 $country = strtolower(geoip_country_code_by_name($ip)); 617 } else { 618 $country = self::remoteGetCountry($ip); 619 } 620 return ($country == 'cn'); 621 } 622 623 /** |
#1 |
+
–
/srv/http/btrworlds.com/htdocs/protected/modules/showroom/controllers/DefaultController.php(14): SController->isFromCN() 09 if ($pageUrl == 'aboutus'){ 10 $pageUrl = 'aboutus'; 11 $memberInfo = $this->getMemberInfo(); 12 13 //video;为中国IP的youtube代码显示图,其它显示视频代码 14 if ($this->isFromCN() && strpos($this->company->flashvideo, '.youtube.')) { 15 /* preg_match('/<.*?src=[\'|\"](.*?)[\'|\"].*?[\/]?>$/', $this->company->flashvideo, $videoUrl); */ 16 if (isset($this->company->rd) && !empty($this->company->rd)) 17 $this->company->flashvideo = (CHtml::link(CHtml::image(Yii::app()->baseUrl . Yii::app()->params['companydir'] . $this->company->adver_photo, '', array('max-height' => '600', 'max-weight' => '600')), $this->company->rd, array('target' => '_blank', 'rel' => 'nofollow'))); 18 } 19 } |
#2 |
unknown(0): DefaultController->actionIndex("aboutus")
|
#3 |
+
–
/srv/http/btrworlds.com/yii/framework/web/actions/CAction.php(107): ReflectionMethod->invokeArgs(DefaultController, array("aboutus")) 102 else if($param->isDefaultValueAvailable()) 103 $ps[]=$param->getDefaultValue(); 104 else 105 return false; 106 } 107 $method->invokeArgs($object,$ps); 108 return true; 109 } 110 } |
#4 |
+
–
/srv/http/btrworlds.com/yii/framework/web/actions/CInlineAction.php(48): CAction->runWithParamsInternal(DefaultController, ReflectionMethod, array("username" => "ceramic2005", "pageUrl" => "aboutus", "companyName" => "jingdezhen-yaosheng-ceramics-co-ltd")) 43 { 44 $methodName='action'.$this->getId(); 45 $controller=$this->getController(); 46 $method=new ReflectionMethod($controller, $methodName); 47 if($method->getNumberOfParameters()>0) 48 return $this->runWithParamsInternal($controller, $method, $params); 49 else 50 return $controller->$methodName(); 51 } 52 53 } |
#5 |
+
–
/srv/http/btrworlds.com/yii/framework/web/CController.php(309): CInlineAction->runWithParams(array("username" => "ceramic2005", "pageUrl" => "aboutus", "companyName" => "jingdezhen-yaosheng-ceramics-co-ltd")) 304 { 305 $priorAction=$this->_action; 306 $this->_action=$action; 307 if($this->beforeAction($action)) 308 { 309 if($action->runWithParams($this->getActionParams())===false) 310 $this->invalidActionParams($action); 311 else 312 $this->afterAction($action); 313 } 314 $this->_action=$priorAction; |
#6 |
+
–
/srv/http/btrworlds.com/yii/framework/web/CController.php(287): CController->runAction(CInlineAction) 282 * @see runAction 283 */ 284 public function runActionWithFilters($action,$filters) 285 { 286 if(empty($filters)) 287 $this->runAction($action); 288 else 289 { 290 $priorAction=$this->_action; 291 $this->_action=$action; 292 CFilterChain::create($this,$action,$filters)->run(); |
#7 |
+
–
/srv/http/btrworlds.com/yii/framework/web/CController.php(266): CController->runActionWithFilters(CInlineAction, array()) 261 { 262 if(($parent=$this->getModule())===null) 263 $parent=Yii::app(); 264 if($parent->beforeControllerAction($this,$action)) 265 { 266 $this->runActionWithFilters($action,$this->filters()); 267 $parent->afterControllerAction($this,$action); 268 } 269 } 270 else 271 $this->missingAction($actionID); |
#8 |
+
–
/srv/http/btrworlds.com/yii/framework/web/CWebApplication.php(276): CController->run("index") 271 { 272 list($controller,$actionID)=$ca; 273 $oldController=$this->_controller; 274 $this->_controller=$controller; 275 $controller->init(); 276 $controller->run($actionID); 277 $this->_controller=$oldController; 278 } 279 else 280 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 281 array('{route}'=>$route===''?$this->defaultController:$route))); |
#9 |
+
–
/srv/http/btrworlds.com/yii/framework/web/CWebApplication.php(135): CWebApplication->runController("showroom/default/index") 130 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 131 $_GET[$name]=$value; 132 } 133 else 134 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 135 $this->runController($route); 136 } 137 138 /** 139 * Registers the core application components. 140 * This method overrides the parent implementation by registering additional core components. |
#10 |
+
–
/srv/http/btrworlds.com/yii/framework/base/CApplication.php(162): CWebApplication->processRequest() 157 */ 158 public function run() 159 { 160 if($this->hasEventHandler('onBeginRequest')) 161 $this->onBeginRequest(new CEvent($this)); 162 $this->processRequest(); 163 if($this->hasEventHandler('onEndRequest')) 164 $this->onEndRequest(new CEvent($this)); 165 } 166 167 /** |
#11 |
+
–
/srv/http/btrworlds.com/htdocs/index.php(17): CApplication->run() 12 // specify how many levels of call stack should be shown in each log message 13 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL', 0); 14 15 require_once($yii); 16 17 Yii::createWebApplication($config)->run(); |