D:\InetPub\worldwide.zikbay.com\protected\extensions\EGeoIP.php(229)
217 $ch = curl_init(); 218 curl_setopt($ch, CURLOPT_URL, $host); 219 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 220 curl_setopt($ch, CURLOPT_USERAGENT, 'EGeoIP Yii Extension Class v1.0'); 221 $response = curl_exec($ch); 222 curl_close ($ch); 223 224 } else if ( ini_get('allow_url_fopen') ) { 225 226 $response = file_get_contents($host, 'r'); 227 } 228 229 return unserialize($response); 230 } 231 232 }
| #0 |
unknown(0): CApplication->handleError(8, "unserialize() [<a href='function.unserialize'>function.unseriali...", "D:\InetPub\worldwide.zikbay.com\protected\extensions\EGeoIP.php", 229, ...)
|
| #1 |
+
–
D:\InetPub\worldwide.zikbay.com\protected\extensions\EGeoIP.php(229): unserialize("<html>
<head><title>403 Forbidden</title></head>
<body bgcolor...") 224 } else if ( ini_get('allow_url_fopen') ) { 225 226 $response = file_get_contents($host, 'r'); 227 } 228 229 return unserialize($response); 230 } 231 232 } |
| #2 |
+
–
D:\InetPub\worldwide.zikbay.com\protected\extensions\EGeoIP.php(63): EGeoIP->fetch("http://www.geoplugin.net/php.gp?ip=74.125.182.39&base_currency=U...") 58 if( null === $ip ) $ip = $_SERVER['REMOTE_ADDR']; 59 60 $host = str_replace('{IP}',$ip, $this->_service); 61 $host = str_replace('{CURRENCY}', $this->_currency, $host ); 62 63 $response = $this->fetch($host); 64 65 if(!is_null( $response) && is_array($response)) 66 { 67 $this->_data->mergeWith($response); 68 $this->_data->add('ip',$ip); |
| #3 |
+
–
D:\InetPub\worldwide.zikbay.com\protected\controllers\SiteController.php(42): EGeoIP->locate() 37 } 38 } 39 else 40 { //No cookie setup, trace the location based on the IP 41 $geoIp = new EGeoIP(); 42 $geoIp->locate(); // Can put ip as argument for testing 43 44 switch ($geoIp->countryCode) 45 { 46 case "TH": 47 //set cookie and redirect |
| #4 |
+
–
D:\InetPub\worldwide.zikbay.com\yii-1.1.7.r3135\framework\web\actions\CInlineAction.php(50): SiteController->actionIndex() 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 |
+
–
D:\InetPub\worldwide.zikbay.com\yii-1.1.7.r3135\framework\web\CController.php(300): CInlineAction->runWithParams(array("location" => "ads.ashx")) 295 { 296 $priorAction=$this->_action; 297 $this->_action=$action; 298 if($this->beforeAction($action)) 299 { 300 if($action->runWithParams($this->getActionParams())===false) 301 $this->invalidActionParams($action); 302 else 303 $this->afterAction($action); 304 } 305 $this->_action=$priorAction; |
| #6 |
+
–
D:\InetPub\worldwide.zikbay.com\yii-1.1.7.r3135\framework\web\CController.php(278): CController->runAction(CInlineAction) 273 * @see runAction 274 */ 275 public function runActionWithFilters($action,$filters) 276 { 277 if(empty($filters)) 278 $this->runAction($action); 279 else 280 { 281 $priorAction=$this->_action; 282 $this->_action=$action; 283 CFilterChain::create($this,$action,$filters)->run(); |
| #7 |
+
–
D:\InetPub\worldwide.zikbay.com\yii-1.1.7.r3135\framework\web\CController.php(257): CController->runActionWithFilters(CInlineAction, array()) 252 { 253 if(($parent=$this->getModule())===null) 254 $parent=Yii::app(); 255 if($parent->beforeControllerAction($this,$action)) 256 { 257 $this->runActionWithFilters($action,$this->filters()); 258 $parent->afterControllerAction($this,$action); 259 } 260 } 261 else 262 $this->missingAction($actionID); |
| #8 |
+
–
D:\InetPub\worldwide.zikbay.com\yii-1.1.7.r3135\framework\web\CWebApplication.php(328): CController->run("index") 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}".', 333 array('{route}'=>$route===''?$this->defaultController:$route))); |
| #9 |
+
–
D:\InetPub\worldwide.zikbay.com\yii-1.1.7.r3135\framework\web\CWebApplication.php(121): CWebApplication->runController("site/index") 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. |
| #10 |
+
–
D:\InetPub\worldwide.zikbay.com\yii-1.1.7.r3135\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 /** |
| #11 |
+
–
D:\InetPub\worldwide.zikbay.com\index.php(25): CApplication->run() 20 ) 21 { 22 require_once(dirname(__FILE__).'/protected/modules/install/install.php'); 23 }else{ 24 require_once($yii); 25 Yii::createWebApplication($config)->run(); 26 } |