/var/www/legrandrozetkiru/data/www/legrand-rozetki.ru/protected/components/ImageHandler/CImageHandler.php(102)
090 { 091 case self::IMG_GIF: 092 if ($result['image'] = imagecreatefromgif($file)) 093 { 094 return $result; 095 } 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;
#0 |
+
–
/var/www/legrandrozetkiru/data/www/legrand-rozetki.ru/protected/components/ImageHandler/CImageHandler.php(102): imagecreatefromjpeg("/var/www/legrandrozetkiru/data/www/legrand-rozetki.ru/images/goo...") 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 { |
#1 |
+
–
/var/www/legrandrozetkiru/data/www/legrand-rozetki.ru/protected/components/ImageHandler/CImageHandler.php(154): CImageHandler->loadImage("/var/www/legrandrozetkiru/data/www/legrand-rozetki.ru/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 } |
#2 |
+
–
/var/www/legrandrozetkiru/data/www/legrand-rozetki.ru/protected/views/categories/tovars_frames_search_katalog.php(34): CImageHandler->load("/var/www/legrandrozetkiru/data/www/legrand-rozetki.ru/images/goo...") 29 } 30 else if(file_exists("images/goods/".$picture) && filesize("images/goods/".$picture) != 0){ 31 //Yii::app()->ih->load($_SERVER['DOCUMENT_ROOT'].'/images/goods/'.$picture)->thumb(170, 154)->text($_SERVER['HTTP_HOST'], $_SERVER['DOCUMENT_ROOT'].'/fonts/HelveticaNeueCyr-Medium.ttf',15, array(255,255,255), CImageHandler::CORNER_CENTER_BOTTOM, 0, 10, 0, 90)->save($_SERVER['DOCUMENT_ROOT'].'/images/goodsnew/'.$picture); 32 $sizesize = @getimagesize("images/goods/".$picture); 33 if(isset($sizesize) && !empty($sizesize)) { 34 Yii::app()->ih->load($_SERVER['DOCUMENT_ROOT'] . '/images/goods/' . $picture)->thumb(170, 154)->save($_SERVER['DOCUMENT_ROOT'] . '/images/goodsnew/' . $picture); 35 echo '<img data-src="/images/goodsnew/' . $picture . '" src="/images/nofototovar.png" alt=""/>'; 36 } 37 else echo '<img src="/images/nofototovar.png" alt=""/>'; 38 } 39 else echo '<img src="/images/nofototovar.png" alt=""/>'; |
#3 |
+
–
/var/www/legrandrozetkiru/data/www/legrand-rozetki.ru/framework/web/CBaseController.php(130): require("/var/www/legrandrozetkiru/data/www/legrand-rozetki.ru/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. |
#4 |
+
–
/var/www/legrandrozetkiru/data/www/legrand-rozetki.ru/framework/web/CBaseController.php(95): CBaseController->renderInternal("/var/www/legrandrozetkiru/data/www/legrand-rozetki.ru/protected/...", array("user" => "", "index" => 31, "data" => Goods, "widget" => DSizerListView), 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); |
#5 |
+
–
/var/www/legrandrozetkiru/data/www/legrand-rozetki.ru/framework/zii/widgets/CListView.php(281): CBaseController->renderFile("/var/www/legrandrozetkiru/data/www/legrand-rozetki.ru/protected/...", array("user" => "", "index" => 31, "data" => Goods, "widget" => DSizerListView)) 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 |
#6 |
+
–
/var/www/legrandrozetkiru/data/www/legrand-rozetki.ru/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 |
#7 |
unknown(0): CBaseListView->renderSection(array("{items}", "items"))
|
#8 |
+
–
/var/www/legrandrozetkiru/data/www/legrand-rozetki.ru/framework/zii/widgets/CBaseListView.php(143): preg_replace_callback("/{(\w+)}/", array(DSizerListView, "renderSection"), "{items}<div class='pagination-block'>{pager}{sizer}</div>") 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. |
#9 |
+
–
/var/www/legrandrozetkiru/data/www/legrand-rozetki.ru/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 |
#10 |
+
–
/var/www/legrandrozetkiru/data/www/legrand-rozetki.ru/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 /** |
#11 |
+
–
/var/www/legrandrozetkiru/data/www/legrand-rozetki.ru/protected/views/search_pages/bigurl.php(422): CBaseController->widget("DSizerListView", array("id" => "tovarsframes", "dataProvider" => CActiveDataProvider, "viewData" => array("user" => ""), "itemView" => "application.views.categories.tovars_frames_search_katalog", ...)) 417 <? //print_r($goods); 418 if(!empty($goods) && $goods->getTotalItemCount() > 0){ 419 ob_start(); 420 421 $this->widget('DSizerListView', array( 422 'id'=>'tovarsframes', 423 'dataProvider'=>$goods, 424 'viewData'=>array('user'=>$userinfo), 425 'itemView'=>'application.views.categories.tovars_frames_search_katalog', 426 'itemsTagName'=>'ul', 427 'template'=>"{items}<div class='".($goods->getTotalItemCount() >= 50?"pagination-block":"")."'>{pager}{sizer}</div>", |
#12 |
+
–
/var/www/legrandrozetkiru/data/www/legrand-rozetki.ru/framework/web/CBaseController.php(126): require("/var/www/legrandrozetkiru/data/www/legrand-rozetki.ru/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 } |
#13 |
+
–
/var/www/legrandrozetkiru/data/www/legrand-rozetki.ru/framework/web/CBaseController.php(95): CBaseController->renderInternal("/var/www/legrandrozetkiru/data/www/legrand-rozetki.ru/protected/...", array("h1" => "", "greatfiltr" => "<div class="products-category_filter filter_displayN" id="box22"...", "goods" => CActiveDataProvider, "userinfo" => ""), 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); |
#14 |
+
–
/var/www/legrandrozetkiru/data/www/legrand-rozetki.ru/framework/web/CController.php(943): CBaseController->renderFile("/var/www/legrandrozetkiru/data/www/legrand-rozetki.ru/protected/...", array("h1" => "", "greatfiltr" => "<div class="products-category_filter filter_displayN" id="box22"...", "goods" => CActiveDataProvider, "userinfo" => ""), true) 938 */ 939 public function renderPartial($view,$data=null,$return=false,$processOutput=false) 940 { 941 if(($viewFile=$this->getViewFile($view))!==false) 942 { 943 $output=$this->renderFile($viewFile,$data,true); 944 if($processOutput) 945 $output=$this->processOutput($output); 946 if($return) 947 return $output; 948 else |
#15 |
+
–
/var/www/legrandrozetkiru/data/www/legrand-rozetki.ru/framework/web/CController.php(832): CController->renderPartial("bigurl", array("h1" => "", "greatfiltr" => "<div class="products-category_filter filter_displayN" id="box22"...", "goods" => CActiveDataProvider, "userinfo" => ""), true) 827 */ 828 public function render($view,$data=null,$return=false) 829 { 830 if($this->beforeRender($view)) 831 { 832 $output=$this->renderPartial($view,$data,true); 833 if(($layoutFile=$this->getLayoutFile($this->layout))!==false) 834 $output=$this->renderFile($layoutFile,array('content'=>$output),true); 835 836 $this->afterRender($view,$output); 837 |
#16 |
+
–
/var/www/legrandrozetkiru/data/www/legrand-rozetki.ru/protected/controllers/Search_pagesController.php(1621): CController->render("bigurl", array("h1" => "", "greatfiltr" => "<div class="products-category_filter filter_displayN" id="box22"...", "goods" => CActiveDataProvider, "userinfo" => "")) 1616 $userinfo = ""; 1617 if(isset(Yii::app()->request->cookies['yii_cart']->value)){ 1618 $userinfo = Basket::model()->findByAttributes(array("id_session" => Yii::app()->request->cookies['yii_cart']->value)); 1619 } 1620 1621 $this->render('bigurl', array('h1'=>$h1,'greatfiltr'=>$greatfiltr,'goods'=>$goods,'userinfo'=>$userinfo)); 1622 //$this->render('bigurl', array('h1'=>$h1,'typefour'=>$typefour,'frametype'=>$frametype,'digitaltype'=>$digitaltype,'cseries'=>$cseries,'framecolor'=>$framecolor,'digitalcolor'=>$digitalcolor,'goods'=>$goods,'allfiltrgoods'=>$allfiltrgoods,'series'=>$series,'categories'=>$categories,'catsmass'=>$catsmass,'filtrgoods'=>$filtrgoods,'colors'=>$colors,'userinfo'=>$userinfo,'activeseriesurl'=>$activeseriesurl,'activeframetypeurl'=>$activeframetypeurl/*,'content'=>$content*/)); 1623 } 1624 else { 1625 throw new CHttpException(404,'Указанная запись не найдена'); 1626 } |
#17 |
unknown(0): Search_pagesController->actionBigurl("ramki")
|
#18 |
+
–
/var/www/legrandrozetkiru/data/www/legrand-rozetki.ru/framework/web/actions/CAction.php(108): ReflectionMethod->invokeArgs(Search_pagesController, array("ramki")) 103 elseif($param->isDefaultValueAvailable()) 104 $ps[]=$param->getDefaultValue(); 105 else 106 return false; 107 } 108 $method->invokeArgs($object,$ps); 109 return true; 110 } 111 } |
#19 |
+
–
/var/www/legrandrozetkiru/data/www/legrand-rozetki.ru/framework/web/actions/CInlineAction.php(47): CAction->runWithParamsInternal(Search_pagesController, ReflectionMethod, array("Goods_page" => "4", "request" => "ramki")) 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 } |
#20 |
+
–
/var/www/legrandrozetkiru/data/www/legrand-rozetki.ru/framework/web/CController.php(358): CInlineAction->runWithParams(array("Goods_page" => "4", "request" => "ramki")) 353 { 354 $priorAction=$this->_action; 355 $this->_action=$action; 356 if($this->beforeAction($action)) 357 { 358 if($action->runWithParams($this->getActionParams())===false) 359 $this->invalidActionParams($action); 360 else 361 $this->afterAction($action); 362 } 363 $this->_action=$priorAction; |
#21 |
+
–
/var/www/legrandrozetkiru/data/www/legrand-rozetki.ru/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 } |
#22 |
+
–
/var/www/legrandrozetkiru/data/www/legrand-rozetki.ru/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 /** |
#23 |
+
–
/var/www/legrandrozetkiru/data/www/legrand-rozetki.ru/framework/web/CController.php(1219): CFilter->filter(CFilterChain) 1214 */ 1215 public function filterAccessControl($filterChain) 1216 { 1217 $filter=new CAccessControlFilter; 1218 $filter->setRules($this->accessRules()); 1219 $filter->filter($filterChain); 1220 } 1221 1222 /** 1223 * Returns a persistent page state value. 1224 * A page state is a variable that is persistent across POST requests of the same page. |
#24 |
+
–
/var/www/legrandrozetkiru/data/www/legrand-rozetki.ru/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 } |
#25 |
+
–
/var/www/legrandrozetkiru/data/www/legrand-rozetki.ru/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 } |
#26 |
+
–
/var/www/legrandrozetkiru/data/www/legrand-rozetki.ru/framework/web/CController.php(341): CFilterChain->run() 336 $this->runAction($action); 337 else 338 { 339 $priorAction=$this->_action; 340 $this->_action=$action; 341 CFilterChain::create($this,$action,$filters)->run(); 342 $this->_action=$priorAction; 343 } 344 } 345 346 /** |
#27 |
+
–
/var/www/legrandrozetkiru/data/www/legrand-rozetki.ru/framework/web/CController.php(315): CController->runActionWithFilters(CInlineAction, array("accessControl")) 310 { 311 if(($parent=$this->getModule())===null) 312 $parent=Yii::app(); 313 if($parent->beforeControllerAction($this,$action)) 314 { 315 $this->runActionWithFilters($action,$this->filters()); 316 $parent->afterControllerAction($this,$action); 317 } 318 } 319 else 320 $this->missingAction($actionID); |
#28 |
+
–
/var/www/legrandrozetkiru/data/www/legrand-rozetki.ru/framework/web/CWebApplication.php(282): CController->run("bigurl") 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))); |
#29 |
+
–
/var/www/legrandrozetkiru/data/www/legrand-rozetki.ru/framework/web/CWebApplication.php(141): CWebApplication->runController("search_pages/bigurl") 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. |
#30 |
+
–
/var/www/legrandrozetkiru/data/www/legrand-rozetki.ru/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 /** |
#31 |
+
–
/var/www/legrandrozetkiru/data/www/legrand-rozetki.ru/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 |