/var/www/legrandrozetkisu/data/www/legrand-rozetki.su/protected/components/ImageHandler/CImageHandler.php(108)
096 else 097 { 098 throw new Exception('Invalid image gif format'); 099 } 100 break; 101 case self::IMG_JPEG: 102 if ($result['image'] = @imagecreatefromjpeg($file)) 103 { 104 return $result; 105 } 106 else 107 { 108 throw new Exception('Invalid image jpeg format'); 109 } 110 break; 111 case self::IMG_PNG: 112 if ($result['image'] = @imagecreatefrompng($file)) 113 { 114 return $result; 115 } 116 else 117 { 118 throw new Exception('Invalid image png format'); 119 } 120 break;
#0 |
+
–
/var/www/legrandrozetkisu/data/www/legrand-rozetki.su/protected/components/ImageHandler/CImageHandler.php(154): CImageHandler->loadImage("/var/www/legrandrozetkisu/data/www/legrand-rozetki.su/images/goo...") 149 imagecopy($this->image, $image['image'], 0, 0, 0, 0, $this->width, $this->height); 150 } 151 public function load($file) 152 { 153 $this->freeImage(); 154 if(($this->originalImage = $this->loadImage($file))) 155 { 156 $this->initImage(); 157 $this->fileName = $file; 158 return $this; 159 } |
#1 |
+
–
/var/www/legrandrozetkisu/data/www/legrand-rozetki.su/protected/views/categories/tovars_frames.php(41): CImageHandler->load("/var/www/legrandrozetkisu/data/www/legrand-rozetki.su/images/goo...") 36 else if(file_exists("images/goods/".$picture) && filesize("images/goods/".$picture) != 0){ //schneider-rozetki.ru //$_SERVER['HTTP_HOST'] 37 //Yii::app()->ih->load($_SERVER['DOCUMENT_ROOT'].'/images/goods/'.$picture)->thumb(170, 154)->text($_SERVER['HTTP_HOST'], $_SERVER['DOCUMENT_ROOT'].'/fonts/473.ttf',10, array(0,0,0), CImageHandler::CORNER_CENTER_BOTTOM, 0, 10, 0, 0)->save($_SERVER['DOCUMENT_ROOT'].'/images/goodsnew/'.$picture); 38 $sizesize = @getimagesize("images/goods/".$picture); 39 if(isset($sizesize) && !empty($sizesize)) { 40 41 Yii::app()->ih->load($_SERVER['DOCUMENT_ROOT'] . '/images/goods/' . $picture)->thumb(170, 154)->save($_SERVER['DOCUMENT_ROOT'] . '/images/goodsnew/' . $picture); 42 echo '<img data-src="/images/goodsnew/' . $picture . '" src="/images/nofototovar.png" alt=""/>'; 43 44 // echo '<img data-src="/images/nofototovar.png" src="/images/nofototovar.png" alt=""/>'; 45 } 46 else echo '<img src="/images/nofototovar.png" alt=""/>'; |
#2 |
+
–
/var/www/legrandrozetkisu/data/www/legrand-rozetki.su/framework/web/CBaseController.php(130): require("/var/www/legrandrozetkisu/data/www/legrand-rozetki.su/protected/...") 125 ob_implicit_flush(false); 126 require($_viewFile_); 127 return ob_get_clean(); 128 } 129 else 130 require($_viewFile_); 131 } 132 133 /** 134 * Creates a widget and initializes it. 135 * This method first creates the specified widget instance. |
#3 |
+
–
/var/www/legrandrozetkisu/data/www/legrand-rozetki.su/framework/web/CBaseController.php(95): CBaseController->renderInternal("/var/www/legrandrozetkisu/data/www/legrand-rozetki.su/protected/...", array("user" => "", "device" => 2, "index" => 67, "data" => Goods, ...), false) 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); |
#4 |
+
–
/var/www/legrandrozetkisu/data/www/legrand-rozetki.su/framework/zii/widgets/CListView.php(281): CBaseController->renderFile("/var/www/legrandrozetkisu/data/www/legrand-rozetki.su/protected/...", array("user" => "", "device" => 2, "index" => 67, "data" => Goods, ...)) 276 { 277 $data=$this->viewData; 278 $data['index']=$i; 279 $data['data']=$item; 280 $data['widget']=$this; 281 $owner->renderFile($viewFile,$data); 282 if($j++ < $n-1) 283 echo $this->separator; 284 } 285 } 286 else |
#5 |
+
–
/var/www/legrandrozetkisu/data/www/legrand-rozetki.su/framework/zii/widgets/CBaseListView.php(160): CListView->renderItems() 155 protected function renderSection($matches) 156 { 157 $method='render'.$matches[1]; 158 if(method_exists($this,$method)) 159 { 160 $this->$method(); 161 $html=ob_get_contents(); 162 ob_clean(); 163 return $html; 164 } 165 else |
#6 |
unknown(0): CBaseListView->renderSection(array("{items}", "items"))
|
#7 |
+
–
/var/www/legrandrozetkisu/data/www/legrand-rozetki.su/framework/zii/widgets/CBaseListView.php(143): preg_replace_callback("/{(\w+)}/", array(CListView, "renderSection"), "{items}") 138 * The rendering results will replace the corresponding placeholders in {@link template}. 139 */ 140 public function renderContent() 141 { 142 ob_start(); 143 echo preg_replace_callback("/{(\w+)}/",array($this,'renderSection'),$this->template); 144 ob_end_flush(); 145 } 146 147 /** 148 * Renders a section. |
#8 |
+
–
/var/www/legrandrozetkisu/data/www/legrand-rozetki.su/framework/zii/widgets/CBaseListView.php(128): CBaseListView->renderContent() 123 { 124 $this->registerClientScript(); 125 126 echo CHtml::openTag($this->tagName,$this->htmlOptions)."\n"; 127 128 $this->renderContent(); 129 $this->renderKeys(); 130 131 echo CHtml::closeTag($this->tagName); 132 } 133 |
#9 |
+
–
/var/www/legrandrozetkisu/data/www/legrand-rozetki.su/framework/web/CBaseController.php(173): CBaseListView->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 /** |
#10 |
+
–
/var/www/legrandrozetkisu/data/www/legrand-rozetki.su/protected/views/goods/tovar.php(307): CBaseController->widget("zii.widgets.CListView", array("id" => "tovarsdigitals", "dataProvider" => CActiveDataProvider, "viewData" => array("user" => "", "device" => 2), "itemView" => "application.views.categories.tovars_frames", ...)) 302 'id'=>'tovarsdigitals', 303 'dataProvider'=>$cattovars, 304 'viewData'=>array('user'=>$userinfo,'device'=>2), 305 'itemView'=>'application.views.categories.tovars_frames', 306 'itemsTagName'=>'ul', 307 'template'=>"{items}", 308 )); } 309 ?> 310 </div> 311 <?=(isset($seo->text) && $seo->text != ""?'<div class="product-category_seoseo">'.$seo->text.'</div>':'')?> 312 <?if($onfilter == 1){?> |
#11 |
+
–
/var/www/legrandrozetkisu/data/www/legrand-rozetki.su/framework/web/CBaseController.php(126): require("/var/www/legrandrozetkisu/data/www/legrand-rozetki.su/protected/...") 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 } |
#12 |
+
–
/var/www/legrandrozetkisu/data/www/legrand-rozetki.su/framework/web/CBaseController.php(95): CBaseController->renderInternal("/var/www/legrandrozetkisu/data/www/legrand-rozetki.su/protected/...", array("newtext" => "", "product" => Goods, "colors" => "", "seo" => null, ...), 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); |
#13 |
+
–
/var/www/legrandrozetkisu/data/www/legrand-rozetki.su/framework/web/CController.php(940): CBaseController->renderFile("/var/www/legrandrozetkisu/data/www/legrand-rozetki.su/protected/...", array("newtext" => "", "product" => Goods, "colors" => "", "seo" => null, ...), true) 935 */ 936 public function renderPartial($view,$data=null,$return=false,$processOutput=false) 937 { 938 if(($viewFile=$this->getViewFile($view))!==false) 939 { 940 $output=$this->renderFile($viewFile,$data,true); 941 if($processOutput) 942 $output=$this->processOutput($output); 943 if($return) 944 return $output; 945 else |
#14 |
+
–
/var/www/legrandrozetkisu/data/www/legrand-rozetki.su/framework/web/CController.php(829): CController->renderPartial("tovar", array("newtext" => "", "product" => Goods, "colors" => "", "seo" => null, ...), true) 824 */ 825 public function render($view,$data=null,$return=false) 826 { 827 if($this->beforeRender($view)) 828 { 829 $output=$this->renderPartial($view,$data,true); 830 if(($layoutFile=$this->getLayoutFile($this->layout))!==false) 831 $output=$this->renderFile($layoutFile,array('content'=>$output),true); 832 833 $this->afterRender($view,$output); 834 |
#15 |
+
–
/var/www/legrandrozetkisu/data/www/legrand-rozetki.su/protected/controllers/GoodsController.php(492): CController->render("tovar", array("newtext" => "", "product" => Goods, "colors" => "", "seo" => null, ...)) 487 'categories' => $categories, 488 'activecolordigital' => $activecolordigital, 489 'activeparentframe' => $activeparentframe, 490 'dophrefs' => $dophrefs, 491 'seriaUrl' => $seriaUrl, 492 'digitalTypeUrl' => $digitalTypeUrl->url_ajax ?? '', 493 )); 494 495 496 } else { 497 throw new CHttpException(404, 'Указанная запись не найдена'); |
#16 |
unknown(0): GoodsController->actionTovar("753114-legrand-valena-allure-besprovodnoe-zaryadnoe-ustroystvo")
|
#17 |
+
–
/var/www/legrandrozetkisu/data/www/legrand-rozetki.su/framework/web/actions/CAction.php(108): ReflectionMethod->invokeArgs(GoodsController, array("753114-legrand-valena-allure-besprovodnoe-zaryadnoe-ustroystvo")) 103 elseif($param->isDefaultValueAvailable()) 104 $ps[]=$param->getDefaultValue(); 105 else 106 return false; 107 } 108 $method->invokeArgs($object,$ps); 109 return true; 110 } 111 } |
#18 |
+
–
/var/www/legrandrozetkisu/data/www/legrand-rozetki.su/framework/web/actions/CInlineAction.php(47): CAction->runWithParamsInternal(GoodsController, ReflectionMethod, array("tovar_url" => "753114-legrand-valena-allure-besprovodnoe-zaryadnoe-ustroystvo")) 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 } |
#19 |
+
–
/var/www/legrandrozetkisu/data/www/legrand-rozetki.su/framework/web/CController.php(355): CInlineAction->runWithParams(array("tovar_url" => "753114-legrand-valena-allure-besprovodnoe-zaryadnoe-ustroystvo")) 350 { 351 $priorAction=$this->_action; 352 $this->_action=$action; 353 if($this->beforeAction($action)) 354 { 355 if($action->runWithParams($this->getActionParams())===false) 356 $this->invalidActionParams($action); 357 else 358 $this->afterAction($action); 359 } 360 $this->_action=$priorAction; |
#20 |
+
–
/var/www/legrandrozetkisu/data/www/legrand-rozetki.su/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 } |
#21 |
+
–
/var/www/legrandrozetkisu/data/www/legrand-rozetki.su/framework/web/filters/CFilter.php(40): CFilterChain->run() 35 */ 36 public function filter($filterChain) 37 { 38 if($this->preFilter($filterChain)) 39 { 40 $filterChain->run(); 41 $this->postFilter($filterChain); 42 } 43 } 44 45 /** |
#22 |
+
–
/var/www/legrandrozetkisu/data/www/legrand-rozetki.su/framework/web/CController.php(1216): CFilter->filter(CFilterChain) 1211 */ 1212 public function filterAccessControl($filterChain) 1213 { 1214 $filter=new CAccessControlFilter; 1215 $filter->setRules($this->accessRules()); 1216 $filter->filter($filterChain); 1217 } 1218 1219 /** 1220 * Returns a persistent page state value. 1221 * A page state is a variable that is persistent across POST requests of the same page. |
#23 |
+
–
/var/www/legrandrozetkisu/data/www/legrand-rozetki.su/framework/web/filters/CInlineFilter.php(58): CController->filterAccessControl(CFilterChain) 53 * @param CFilterChain $filterChain the filter chain that the filter is on. 54 */ 55 public function filter($filterChain) 56 { 57 $method='filter'.$this->name; 58 $filterChain->controller->$method($filterChain); 59 } 60 } |
#24 |
+
–
/var/www/legrandrozetkisu/data/www/legrand-rozetki.su/framework/web/filters/CFilterChain.php(130): CInlineFilter->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 } |
#25 |
+
–
/var/www/legrandrozetkisu/data/www/legrand-rozetki.su/framework/web/CController.php(338): CFilterChain->run() 333 $this->runAction($action); 334 else 335 { 336 $priorAction=$this->_action; 337 $this->_action=$action; 338 CFilterChain::create($this,$action,$filters)->run(); 339 $this->_action=$priorAction; 340 } 341 } 342 343 /** |
#26 |
+
–
/var/www/legrandrozetkisu/data/www/legrand-rozetki.su/framework/web/CController.php(312): CController->runActionWithFilters(CInlineAction, array("accessControl")) 307 { 308 if(($parent=$this->getModule())===null) 309 $parent=Yii::app(); 310 if($parent->beforeControllerAction($this,$action)) 311 { 312 $this->runActionWithFilters($action,$this->filters()); 313 $parent->afterControllerAction($this,$action); 314 } 315 } 316 else 317 $this->missingAction($actionID); |
#27 |
+
–
/var/www/legrandrozetkisu/data/www/legrand-rozetki.su/framework/web/CWebApplication.php(282): CController->run("tovar") 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))); |
#28 |
+
–
/var/www/legrandrozetkisu/data/www/legrand-rozetki.su/framework/web/CWebApplication.php(141): CWebApplication->runController("goods/tovar") 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. |
#29 |
+
–
/var/www/legrandrozetkisu/data/www/legrand-rozetki.su/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 /** |
#30 |
+
–
/var/www/legrandrozetkisu/data/www/legrand-rozetki.su/index.php(61): CApplication->run() 56 // remove the following line when in production mode 57 defined('YII_DEBUG') or define('YII_DEBUG',true); 58 59 ob_start(); 60 require_once($yii); 61 Yii::createWebApplication($config)->run(); 62 $res = ob_get_clean(); 63 if(!isset($_SERVER['HTTP_X_REQUESTED_WITH']) || $_SERVER['HTTP_X_REQUESTED_WITH'] !== 'XMLHttpRequest'){ 64 65 $prepareData = true; 66 |