/home/u0306176/public_html/protected/modules/video/controllers/front/DefaultController.php(101)
089 if(strpos($url,'vimeo')!==false) 090 { 091 return 'vimeo'; 092 } 093 if(strpos($url,'youtube')!== false) 094 return 'youtube'; 095 096 return 'normal'; 097 } 098 099 public function player_vimeo($url) 100 { 101 $data = file_get_contents('http://vimeo.com/api/oembed.xml?url='.urlencode($url).'&maxwidth=600'); 102 103 preg_match('#<html>(.*?)</html>#si',$data,$m); 104 105 return htmlspecialchars_decode($m[1]); 106 } 107 108 //$url = http://www.youtube.com/watch?v=a-y_cTAaj8Q 109 public function player_youtube($url) 110 { 111 $parts = parse_url($url); 112 parse_str($parts['query'],$parts); 113
#0 |
+
–
/home/u0306176/public_html/protected/modules/video/controllers/front/DefaultController.php(101): file_get_contents("http://vimeo.com/api/oembed.xml?url=https%3A%2F%2Fvimeo.com%2F79...") 096 return 'normal'; 097 } 098 099 public function player_vimeo($url) 100 { 101 $data = file_get_contents('http://vimeo.com/api/oembed.xml?url='.urlencode($url).'&maxwidth=600'); 102 103 preg_match('#<html>(.*?)</html>#si',$data,$m); 104 105 return htmlspecialchars_decode($m[1]); 106 } |
#1 |
+
–
/home/u0306176/public_html/protected/modules/video/controllers/front/DefaultController.php(79): DefaultController->player_vimeo("https://vimeo.com/79967929") 74 $video = Video::model()->findByAttributes(array('slug'=>$id)); 75 76 77 $funcname = 'player_'.$this->detectProvider($video->video); 78 79 $player = $this->$funcname($video->video); 80 $this->pageTitle = $video->title; 81 $this->leftMenu = $this->provideSubmenu(); 82 $this->render('show',array('video'=>$video,'player'=>$player)); 83 84 |
#2 |
unknown(0): DefaultController->actionShow("sabotaj-tespit-2")
|
#3 |
+
–
/home/u0306176/public_html/framework/web/actions/CAction.php(108): ReflectionMethod->invokeArgs(DefaultController, array("sabotaj-tespit-2")) 103 elseif($param->isDefaultValueAvailable()) 104 $ps[]=$param->getDefaultValue(); 105 else 106 return false; 107 } 108 $method->invokeArgs($object,$ps); 109 return true; 110 } 111 } |
#4 |
+
–
/home/u0306176/public_html/framework/web/actions/CInlineAction.php(47): CAction->runWithParamsInternal(DefaultController, ReflectionMethod, array("id" => "sabotaj-tespit-2")) 42 { 43 $methodName='action'.$this->getId(); 44 $controller=$this->getController(); 45 $method=new ReflectionMethod($controller, $methodName); 46 if($method->getNumberOfParameters()>0) 47 return $this->runWithParamsInternal($controller, $method, $params); 48 else 49 return $controller->$methodName(); 50 } 51 52 } |
#5 |
+
–
/home/u0306176/public_html/framework/web/CController.php(308): CInlineAction->runWithParams(array("id" => "sabotaj-tespit-2")) 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); 312 } 313 $this->_action=$priorAction; |
#6 |
+
–
/home/u0306176/public_html/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(); |
#7 |
+
–
/home/u0306176/public_html/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); |
#8 |
+
–
/home/u0306176/public_html/framework/web/CWebApplication.php(282): CController->run("show") 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))); |
#9 |
+
–
/home/u0306176/public_html/framework/web/CWebApplication.php(141): CWebApplication->runController("video/default/show/id/sabotaj-tespit-2") 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. |
#10 |
+
–
/home/u0306176/public_html/framework/base/CApplication.php(169): CWebApplication->processRequest() 164 public function run() 165 { 166 if($this->hasEventHandler('onBeginRequest')) 167 $this->onBeginRequest(new CEvent($this)); 168 register_shutdown_function(array($this,'end'),0,false); 169 $this->processRequest(); 170 if($this->hasEventHandler('onEndRequest')) 171 $this->onEndRequest(new CEvent($this)); 172 } 173 174 /** |
#11 |
+
–
/home/u0306176/public_html/protected/components/WebApplicationEndBehavior.php(32): CApplication->run() 27 // Attach the changeModulePaths event handler 28 // and raise it. 29 $this->onModuleCreate = array($this, 'changeModulePaths'); 30 $this->onModuleCreate(new CEvent($this->owner)); 31 32 $this->owner->run(); // Run application. 33 } 34 35 // This event should be raised when CWebApplication 36 // or CWebModule instances are being initialized. 37 public function onModuleCreate($event) |
#12 |
unknown(0): WebApplicationEndBehavior->runEnd("front")
|
#13 |
+
–
/home/u0306176/public_html/framework/base/CComponent.php(260): call_user_func_array(array(WebApplicationEndBehavior, "runEnd"), array("front")) 255 if($this->_m!==null) 256 { 257 foreach($this->_m as $object) 258 { 259 if($object->getEnabled() && method_exists($object,$name)) 260 return call_user_func_array(array($object,$name),$parameters); 261 } 262 } 263 if(class_exists('Closure', false) && $this->canGetProperty($name) && $this->$name instanceof Closure) 264 return call_user_func_array($this->$name, $parameters); 265 throw new CException(Yii::t('yii','{class} and its behaviors do not have a method or closure named "{name}".', |
#14 |
+
–
/home/u0306176/public_html/index.php(30): CComponent->__call("runEnd", array("front")) 25 } 26 27 } 28 29 $app = new WeberWebApp($config); 30 $app->runEnd('front'); 31 32 //Yii::createWebApplication($config)->run(); |
#15 |
+
–
/home/u0306176/public_html/index.php(30): WeberWebApp->runEnd("front") 25 } 26 27 } 28 29 $app = new WeberWebApp($config); 30 $app->runEnd('front'); 31 32 //Yii::createWebApplication($config)->run(); |