/home/akhbarek/public_html/protected/extensions/wideimage/WideImage.php(195)
183 184 return call_user_func(array('WideImage', 'loadFrom' . $predictedSourceType), $source); 185 } 186 187 /** 188 * Create and load an image from a file or URL. The image format is auto-detected. 189 * 190 * @param string $uri File or url 191 * @return WideImage_Image WideImage_PaletteImage or WideImage_TrueColorImage instance 192 */ 193 static function loadFromFile($uri) 194 { 195 $data = file_get_contents($uri); 196 $handle = @imagecreatefromstring($data); 197 if (!self::isValidImageHandle($handle)) 198 { 199 try 200 { 201 // try to find a mapper first 202 $mapper = WideImage_MapperFactory::selectMapper($uri); 203 if ($mapper) 204 $handle = $mapper->load($uri); 205 } 206 catch (WideImage_UnsupportedFormatException $e) 207 {
#0 |
+
–
/home/akhbarek/public_html/protected/extensions/wideimage/WideImage.php(195): file_get_contents("/home/akhbarek/public_html/uploads/epaper/2017-09/59c55ba3525bb....") 190 * @param string $uri File or url 191 * @return WideImage_Image WideImage_PaletteImage or WideImage_TrueColorImage instance 192 */ 193 static function loadFromFile($uri) 194 { 195 $data = file_get_contents($uri); 196 $handle = @imagecreatefromstring($data); 197 if (!self::isValidImageHandle($handle)) 198 { 199 try 200 { |
#1 |
+
–
/home/akhbarek/public_html/protected/extensions/wideimage/WideImage.php(184): WideImage::loadFromFile("/home/akhbarek/public_html/uploads/epaper/2017-09/59c55ba3525bb....") 179 180 // Otherwise, must be a file or an URL 181 if (!$predictedSourceType) 182 $predictedSourceType = 'File'; 183 184 return call_user_func(array('WideImage', 'loadFrom' . $predictedSourceType), $source); 185 } 186 187 /** 188 * Create and load an image from a file or URL. The image format is auto-detected. 189 * |
#2 |
+
–
/home/akhbarek/public_html/protected/modules/epaper/components/EpaperPageWidget.php(48): WideImage::load("/home/akhbarek/public_html/uploads/epaper/2017-09/59c55ba3525bb....") 43 $mediaDir = $config["mediaDir"]; 44 45 $image_path = Yii::getPathOfAlias("webroot").$uploadDir.$mediaDir.$this->pageModel->pg_file; 46 $image_url = Yii::app()->getBaseUrl(true).$uploadDir.$mediaDir.$this->pageModel->pg_file; 47 48 $wimg = WideImage::load($image_path); 49 $image_width = $wimg->getWidth(); 50 $container_width = $this->containerWidth; 51 $ratio = $image_width/$container_width; 52 $thumb_url = ImageHelpers::i()->getThumbImage($image_url, $this->containerWidth); 53 ?> |
#3 |
+
–
/home/akhbarek/public_html/protected/modules/epaper/components/EpaperPageWidget.php(24): EpaperPageWidget->displayMaps() 19 } 20 21 public function run(){ 22 $this->mapModels = $this->pageModel->getRelated("rMap"); 23 if(count($this->mapModels)>0){ 24 $this->displayMaps(); 25 } else { 26 $this->displayImage(); 27 } 28 } 29 |
#4 |
+
–
/home/akhbarek/public_html/framework/web/CBaseController.php(173): EpaperPageWidget->run() 168 return ob_get_clean(); 169 } 170 else 171 { 172 $widget=$this->createWidget($className,$properties); 173 $widget->run(); 174 return $widget; 175 } 176 } 177 178 /** |
#5 |
+
–
/home/akhbarek/public_html/themes/general/views/epaper/default/show-layout2.php(176): CBaseController->widget("EpaperPageWidget", array("pageModel" => EpaperPage, "containerWidth" => 930, "canvasClass" => "can")) 171 $imgtag = CHtml::image($thumburl); 172 173 $this->widget('EpaperPageWidget', array( 174 'pageModel'=>$page_model, 175 'containerWidth'=>$image_width, 176 'canvasClass'=>'can' 177 )); 178 179 ?> 180 181 |
#6 |
+
–
/home/akhbarek/public_html/themes/general/views/epaper/default/show.php(5): require_once("/home/akhbarek/public_html/themes/general/views/epaper/default/s...") 1 <?php 2 if(General_BasicThemeSettings::i()->layout_inshow=="normal"){ 3 require_once 'show-layout1.php'; 4 } else { 5 require_once 'show-layout2.php'; 6 } 7 8 |
#7 |
+
–
/home/akhbarek/public_html/framework/web/CBaseController.php(126): require("/home/akhbarek/public_html/themes/general/views/epaper/default/s...") 121 $data=$_data_; 122 if($_return_) 123 { 124 ob_start(); 125 ob_implicit_flush(false); 126 require($_viewFile_); 127 return ob_get_clean(); 128 } 129 else 130 require($_viewFile_); 131 } |
#8 |
+
–
/home/akhbarek/public_html/framework/web/CBaseController.php(95): CBaseController->renderInternal("/home/akhbarek/public_html/themes/general/views/epaper/default/s...", array("id" => "959", "alias" => "akhbar-e-khyber-peshawar", "page" => 1, "pagination" => CPagination, ...), true) 090 { 091 $widgetCount=count($this->_widgetStack); 092 if(($renderer=Yii::app()->getViewRenderer())!==null && $renderer->fileExtension==='.'.CFileHelper::getExtension($viewFile)) 093 $content=$renderer->renderFile($this,$viewFile,$data,$return); 094 else 095 $content=$this->renderInternal($viewFile,$data,$return); 096 if(count($this->_widgetStack)===$widgetCount) 097 return $content; 098 else 099 { 100 $widget=end($this->_widgetStack); |
#9 |
+
–
/home/akhbarek/public_html/framework/web/CController.php(869): CBaseController->renderFile("/home/akhbarek/public_html/themes/general/views/epaper/default/s...", array("id" => "959", "alias" => "akhbar-e-khyber-peshawar", "page" => 1, "pagination" => CPagination, ...), true) 864 */ 865 public function renderPartial($view,$data=null,$return=false,$processOutput=false) 866 { 867 if(($viewFile=$this->getViewFile($view))!==false) 868 { 869 $output=$this->renderFile($viewFile,$data,true); 870 if($processOutput) 871 $output=$this->processOutput($output); 872 if($return) 873 return $output; 874 else |
#10 |
+
–
/home/akhbarek/public_html/framework/web/CController.php(782): CController->renderPartial("show", array("id" => "959", "alias" => "akhbar-e-khyber-peshawar", "page" => 1, "pagination" => CPagination, ...), true) 777 */ 778 public function render($view,$data=null,$return=false) 779 { 780 if($this->beforeRender($view)) 781 { 782 $output=$this->renderPartial($view,$data,true); 783 if(($layoutFile=$this->getLayoutFile($this->layout))!==false) 784 $output=$this->renderFile($layoutFile,array('content'=>$output),true); 785 786 $this->afterRender($view,$output); 787 |
#11 |
+
–
/home/akhbarek/public_html/protected/modules/epaper/controllers/DefaultController.php(368): CController->render("show", array("id" => "959", "alias" => "akhbar-e-khyber-peshawar", "page" => 1, "pagination" => CPagination, ...)) 363 "page" => $page, 364 "pagination" => $pagination, 365 "page_models" => $page_models, 366 "page_model" => $page_model, 367 "edition_model" => $edition_model, 368 "pagetitle" => $pagetitle 369 )); 370 } 371 372 373 public function actionMap(){ |
#12 |
+
–
/home/akhbarek/public_html/framework/web/actions/CInlineAction.php(49): DefaultController->actionShow() 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 } |
#13 |
+
–
/home/akhbarek/public_html/framework/web/CController.php(308): CInlineAction->runWithParams(array("id" => "959", "alias" => "akhbar-e-khyber-peshawar")) 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; |
#14 |
+
–
/home/akhbarek/public_html/framework/web/filters/CFilterChain.php(133): CController->runAction(CInlineAction) 128 $filter=$this->itemAt($this->filterIndex++); 129 Yii::trace('Running filter '.($filter instanceof CInlineFilter ? get_class($this->controller).'.filter'.$filter->name.'()':get_class($filter).'.filter()'),'system.web.filters.CFilterChain'); 130 $filter->filter($this); 131 } 132 else 133 $this->controller->runAction($this->action); 134 } 135 } |
#15 |
+
–
/home/akhbarek/public_html/framework/web/widgets/COutputCache.php(165): CFilterChain->run() 160 * @return boolean whether the filtering process should stop after this filter. Defaults to false. 161 */ 162 public function filter($filterChain) 163 { 164 if(!$this->getIsContentCached()) 165 $filterChain->run(); 166 $this->run(); 167 } 168 169 /** 170 * Marks the start of content to be cached. |
#16 |
+
–
/home/akhbarek/public_html/framework/web/filters/CFilterChain.php(130): COutputCache->filter(CFilterChain) 125 { 126 if($this->offsetExists($this->filterIndex)) 127 { 128 $filter=$this->itemAt($this->filterIndex++); 129 Yii::trace('Running filter '.($filter instanceof CInlineFilter ? get_class($this->controller).'.filter'.$filter->name.'()':get_class($filter).'.filter()'),'system.web.filters.CFilterChain'); 130 $filter->filter($this); 131 } 132 else 133 $this->controller->runAction($this->action); 134 } 135 } |
#17 |
+
–
/home/akhbarek/public_html/framework/web/CController.php(291): CFilterChain->run() 286 $this->runAction($action); 287 else 288 { 289 $priorAction=$this->_action; 290 $this->_action=$action; 291 CFilterChain::create($this,$action,$filters)->run(); 292 $this->_action=$priorAction; 293 } 294 } 295 296 /** |
#18 |
+
–
/home/akhbarek/public_html/framework/web/CController.php(265): CController->runActionWithFilters(CInlineAction, array(array(0 => "COutputCache - view, viewimage", "duration" => "0", "varyByParam" => array("id", "alias", "page", "pg_id", ...)))) 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); |
#19 |
+
–
/home/akhbarek/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))); |
#20 |
+
–
/home/akhbarek/public_html/framework/web/CWebApplication.php(141): CWebApplication->runController("epaper/default/show") 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. |
#21 |
+
–
/home/akhbarek/public_html/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 /** |
#22 |
+
–
/home/akhbarek/public_html/index.php(22): CApplication->run() 17 defined('YII_DEBUG') or define('YII_DEBUG',true); 18 // specify how many levels of call stack should be shown in each log message 19 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3); 20 21 require_once($yii); 22 Yii::createWebApplication($config)->run(); 23 |