/var/www/html/www.mplus.fun/app/components/MUtils.php(168)
156 return $response; 157 } 158 159 public static function SendRequestFile($url, $params) { 160 $context = stream_context_create(array( 161 'http' => array( 162 'method' => 'POST', 163 'content' => http_build_query($params), 164 'timeout' => 10, 165 'ignore_errors' => true 166 ) 167 )); 168 $result = file_get_contents($url); 169 // Yii::log(var_export($result, true), 'info'); 170 return $result; 171 } 172 173 public static function appendParamToUrl($url,$param){ 174 $parts = parse_url($url); 175 176 $scheme = @$parts['scheme']; 177 $host = @$parts['host']; 178 $port = @$parts['port']; 179 $user = @$parts['user']; 180 $pass = @$parts['pass'];
#0 |
+
–
/var/www/html/www.mplus.fun/app/components/MUtils.php(168): file_get_contents("https://zzsg.adhocfun.com/api/getGameServers") 163 'content' => http_build_query($params), 164 'timeout' => 10, 165 'ignore_errors' => true 166 ) 167 )); 168 $result = file_get_contents($url); 169 // Yii::log(var_export($result, true), 'info'); 170 return $result; 171 } 172 173 public static function appendParamToUrl($url,$param){ |
#1 |
+
–
/var/www/html/www.mplus.fun/app/components/MGame/MGame_Web.php(36): MUtils::SendRequestFile("https://zzsg.adhocfun.com/api/getGameServers", array("query" => "")) 31 $url = http_build_url($url, $parts); 32 //request 33 $response = null; 34 35 // MGame::logfileRequest("calling game api: $url","info"); 36 $response = MUtils::SendRequestFile($url, $parts); 37 // MGame::logfileRequest("response: $response","info"); 38 if(!isset($response)){ 39 throw new Exception(__METHOD__.":response empty"); 40 } 41 $result = $this->_requestWebGame_handleResponse($response); |
#2 |
+
–
/var/www/html/www.mplus.fun/app/components/MGame/MGame_Web.php(121): MGame_Web->_requestWebGame_makeRequest("https://<gamecode>.adhocfun.com/api/getGameServers", array()) 116 return $result; 117 } 118 119 public function requestGameServers(){ 120 $url = static::$_url_getGameServers; 121 $result = $this->_requestWebGame_makeRequest($url, array()); 122 return $result; 123 } 124 125 public function requestUserRole($user, $server, $options = null){ 126 if(!isset($user, $server)){ |
#3 |
+
–
/var/www/html/www.mplus.fun/app/controllers/OfficialPageController.php(237): MGame_Web->requestGameServers() 232 $events = $svc->getEventList($gameId); 233 $news = $svc->getNewsHeadline($gameId); 234 // version == 3 is for discussion only, no server 235 236 if($version != 3) 237 $servers = $game->requestGameServers(); 238 239 240 $data = array( 241 "settings" => $settings, 242 "game" => $game, |
#4 |
unknown(0): OfficialPageController->actionIndex("zzsg")
|
#5 |
+
–
/usr/share/php/Yii/1.1.10/yiilite.php(3744): ReflectionMethod->invokeArgs(OfficialPageController, array("zzsg")) 3739 else if($param->isDefaultValueAvailable()) 3740 $ps[]=$param->getDefaultValue(); 3741 else 3742 return false; 3743 } 3744 $method->invokeArgs($object,$ps); 3745 return true; 3746 } 3747 } 3748 class CInlineAction extends CAction 3749 { |
#6 |
+
–
/usr/share/php/Yii/1.1.10/yiilite.php(3761): CAction->runWithParamsInternal(OfficialPageController, ReflectionMethod, array("gameId" => "zzsg")) 3756 { 3757 $methodName='action'.$this->getId(); 3758 $controller=$this->getController(); 3759 $method=new ReflectionMethod($controller, $methodName); 3760 if($method->getNumberOfParameters()>0) 3761 return $this->runWithParamsInternal($controller, $method, $params); 3762 else 3763 return $controller->$methodName(); 3764 } 3765 } 3766 class CWebUser extends CApplicationComponent implements IWebUser |
#7 |
+
–
/usr/share/php/Yii/1.1.10/yiilite.php(3275): CInlineAction->runWithParams(array("gameId" => "zzsg")) 3270 { 3271 $priorAction=$this->_action; 3272 $this->_action=$action; 3273 if($this->beforeAction($action)) 3274 { 3275 if($action->runWithParams($this->getActionParams())===false) 3276 $this->invalidActionParams($action); 3277 else 3278 $this->afterAction($action); 3279 } 3280 $this->_action=$priorAction; |
#8 |
+
–
/usr/share/php/Yii/1.1.10/yiilite.php(6176): CController->runAction(CInlineAction) 6171 { 6172 $filter=$this->itemAt($this->filterIndex++); 6173 $filter->filter($this); 6174 } 6175 else 6176 $this->controller->runAction($this->action); 6177 } 6178 } 6179 class CFilter extends CComponent implements IFilter 6180 { 6181 public function filter($filterChain) |
#9 |
+
–
/usr/share/php/Yii/1.1.10/yiilite.php(6185): CFilterChain->run() 6180 { 6181 public function filter($filterChain) 6182 { 6183 if($this->preFilter($filterChain)) 6184 { 6185 $filterChain->run(); 6186 $this->postFilter($filterChain); 6187 } 6188 } 6189 public function init() 6190 { |
#10 |
+
–
/usr/share/php/Yii/1.1.10/yiilite.php(6173): CFilter->filter(CFilterChain) 6168 public function run() 6169 { 6170 if($this->offsetExists($this->filterIndex)) 6171 { 6172 $filter=$this->itemAt($this->filterIndex++); 6173 $filter->filter($this); 6174 } 6175 else 6176 $this->controller->runAction($this->action); 6177 } 6178 } |
#11 |
+
–
/usr/share/php/Yii/1.1.10/yiilite.php(6185): CFilterChain->run() 6180 { 6181 public function filter($filterChain) 6182 { 6183 if($this->preFilter($filterChain)) 6184 { 6185 $filterChain->run(); 6186 $this->postFilter($filterChain); 6187 } 6188 } 6189 public function init() 6190 { |
#12 |
+
–
/usr/share/php/Yii/1.1.10/yiilite.php(6173): CFilter->filter(CFilterChain) 6168 public function run() 6169 { 6170 if($this->offsetExists($this->filterIndex)) 6171 { 6172 $filter=$this->itemAt($this->filterIndex++); 6173 $filter->filter($this); 6174 } 6175 else 6176 $this->controller->runAction($this->action); 6177 } 6178 } |
#13 |
+
–
/usr/share/php/Yii/1.1.10/yiilite.php(3265): CFilterChain->run() 3260 $this->runAction($action); 3261 else 3262 { 3263 $priorAction=$this->_action; 3264 $this->_action=$action; 3265 CFilterChain::create($this,$action,$filters)->run(); 3266 $this->_action=$priorAction; 3267 } 3268 } 3269 public function runAction($action) 3270 { |
#14 |
+
–
/usr/share/php/Yii/1.1.10/yiilite.php(3250): CController->runActionWithFilters(CInlineAction, array(array("application.filters.CommonDataFilter"), array("application.filters.LoginStatusFilter"))) 3245 { 3246 if(($parent=$this->getModule())===null) 3247 $parent=Yii::app(); 3248 if($parent->beforeControllerAction($this,$action)) 3249 { 3250 $this->runActionWithFilters($action,$this->filters()); 3251 $parent->afterControllerAction($this,$action); 3252 } 3253 } 3254 else 3255 $this->missingAction($actionID); |
#15 |
+
–
/usr/share/php/Yii/1.1.10/yiilite.php(1689): CController->run("index") 1684 { 1685 list($controller,$actionID)=$ca; 1686 $oldController=$this->_controller; 1687 $this->_controller=$controller; 1688 $controller->init(); 1689 $controller->run($actionID); 1690 $this->_controller=$oldController; 1691 } 1692 else 1693 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 1694 array('{route}'=>$route===''?$this->defaultController:$route))); |
#16 |
+
–
/usr/share/php/Yii/1.1.10/yiilite.php(1609): CWebApplication->runController("officialPage/index") 1604 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 1605 $_GET[$name]=$value; 1606 } 1607 else 1608 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 1609 $this->runController($route); 1610 } 1611 protected function registerCoreComponents() 1612 { 1613 parent::registerCoreComponents(); 1614 $components=array( |
#17 |
+
–
/usr/share/php/Yii/1.1.10/yiilite.php(1135): CWebApplication->processRequest() 1130 } 1131 public function run() 1132 { 1133 if($this->hasEventHandler('onBeginRequest')) 1134 $this->onBeginRequest(new CEvent($this)); 1135 $this->processRequest(); 1136 if($this->hasEventHandler('onEndRequest')) 1137 $this->onEndRequest(new CEvent($this)); 1138 } 1139 public function end($status=0, $exit=true) 1140 { |
#18 |
+
–
/var/www/html/www.mplus.fun/htdocs/index.php(34): CApplication->run() 29 define('APPLICATION_ENV_PRODUCTION', $env == 'production'); 30 define('APPLICATION_ENV_DEVEL', $env == 'devel'); 31 define('APPLICATION_ENV_TEST', $env == 'test'); 32 33 require_once($yii); 34 Yii::createWebApplication($config)->run(); |