/var/www/vhosts/devi.uz/harvia.uz/themes/default/views/site/ncat/open.php(58)
46 <div class="default-page"> 47 <p><?= $model->partner_content ?></p> 48 </div> 49 50 <?php if ($model->but): ?> 51 <div class="product-content__download"> 52 <div class="product-content__download--title"> 53 <h4>Инструкция по установке и эксплуатации</h4> 54 </div> 55 <?php 56 function filesize_formatted($path) 57 { 58 $size = filesize($path); 59 $units = array( 'B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'); 60 $power = $size > 0 ? floor(log($size, 1024)) : 0; 61 return number_format($size / pow(1024, $power), 2, '.', ',') . ' ' . $units[$power]; 62 } 63 ?> 64 <?php foreach ($model->but as $but): ?> 65 <div class="product-content__download--link pdf"><a href="uploads/ncat/<?= $but->image_filer ?>"><?= $but->image_title1 ?></a><span>Размер: <?= filesize_formatted('uploads/ncat/' . $but->image_filer) ?></span></div> 66 <?php endforeach; ?> 67 </div> 68 <?php endif; ?> 69 </div> 70 </div>
#0 |
+
–
/var/www/vhosts/devi.uz/harvia.uz/themes/default/views/site/ncat/open.php(58): filesize("uploads/ncat/5c053497320bf_2.pdf") 53 <h4>Инструкция по установке и эксплуатации</h4> 54 </div> 55 <?php 56 function filesize_formatted($path) 57 { 58 $size = filesize($path); 59 $units = array( 'B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'); 60 $power = $size > 0 ? floor(log($size, 1024)) : 0; 61 return number_format($size / pow(1024, $power), 2, '.', ',') . ' ' . $units[$power]; 62 } 63 ?> |
#1 |
+
–
/var/www/vhosts/devi.uz/harvia.uz/themes/default/views/site/ncat/open.php(65): filesize_formatted("uploads/ncat/5c053497320bf_2.pdf") 60 $power = $size > 0 ? floor(log($size, 1024)) : 0; 61 return number_format($size / pow(1024, $power), 2, '.', ',') . ' ' . $units[$power]; 62 } 63 ?> 64 <?php foreach ($model->but as $but): ?> 65 <div class="product-content__download--link pdf"><a href="uploads/ncat/<?= $but->image_filer ?>"><?= $but->image_title1 ?></a><span>Размер: <?= filesize_formatted('uploads/ncat/' . $but->image_filer) ?></span></div> 66 <?php endforeach; ?> 67 </div> 68 <?php endif; ?> 69 </div> 70 </div> |
#2 |
+
–
/var/www/vhosts/devi.uz/harvia.uz/framework/web/CBaseController.php(126): require("/var/www/vhosts/devi.uz/harvia.uz/themes/default/views/site/ncat...") 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 } |
#3 |
+
–
/var/www/vhosts/devi.uz/harvia.uz/framework/web/CBaseController.php(95): CBaseController->renderInternal("/var/www/vhosts/devi.uz/harvia.uz/themes/default/views//site/nca...", array("model" => Ncat, "other" => array(Ncat, Ncat, Ncat, Ncat), "cats" => array(Category, Category, Category, Category, ...), "prevProd" => Ncat, ...), 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); |
#4 |
+
–
/var/www/vhosts/devi.uz/harvia.uz/framework/web/CController.php(869): CBaseController->renderFile("/var/www/vhosts/devi.uz/harvia.uz/themes/default/views//site/nca...", array("model" => Ncat, "other" => array(Ncat, Ncat, Ncat, Ncat), "cats" => array(Category, Category, Category, Category, ...), "prevProd" => Ncat, ...), 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 |
#5 |
+
–
/var/www/vhosts/devi.uz/harvia.uz/framework/web/CController.php(782): CController->renderPartial("//site/ncat/open", array("model" => Ncat, "other" => array(Ncat, Ncat, Ncat, Ncat), "cats" => array(Category, Category, Category, Category, ...), "prevProd" => Ncat, ...), 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 |
#6 |
+
–
/var/www/vhosts/devi.uz/harvia.uz/protected/modules/ncat/controllers/NcatController.php(181): CController->render("//site/ncat/open", array("model" => Ncat, "other" => array(Ncat, Ncat, Ncat, Ncat), "cats" => array(Category, Category, Category, Category, ...), "prevProd" => Ncat, ...)) 176 $this->render('//site/ncat/open',array( 177 'model' => $model, 178 'other' => Ncat::model()->language($this->webpage->webpage_language_id)->cate($model->partner_category_id)->limit()->order()->findAll(' partner_image <> "" AND partner_id <> "' . $model->partner_id . '" '), 179 'cats' => $cats, 180 'prevProd' => $prevProd, 181 'nextProd' => $nextProd, 182 )); 183 } 184 185 } |
#7 |
+
–
/var/www/vhosts/devi.uz/harvia.uz/framework/web/actions/CInlineAction.php(49): NcatController->actionOpen() 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 } |
#8 |
+
–
/var/www/vhosts/devi.uz/harvia.uz/framework/web/CController.php(308): CInlineAction->runWithParams(array()) 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; |
#9 |
+
–
/var/www/vhosts/devi.uz/harvia.uz/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 } |
#10 |
+
–
/var/www/vhosts/devi.uz/harvia.uz/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 /** |
#11 |
+
–
/var/www/vhosts/devi.uz/harvia.uz/framework/web/filters/CFilterChain.php(130): CFilter->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 } |
#12 |
+
–
/var/www/vhosts/devi.uz/harvia.uz/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 /** |
#13 |
+
–
/var/www/vhosts/devi.uz/harvia.uz/framework/web/filters/CFilterChain.php(130): CFilter->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 } |
#14 |
+
–
/var/www/vhosts/devi.uz/harvia.uz/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 /** |
#15 |
+
–
/var/www/vhosts/devi.uz/harvia.uz/framework/web/CController.php(265): CController->runActionWithFilters(CInlineAction, array(array(0 => "ext.widgetParser.WidgetParser", "controller" => NcatController), array(0 => "ext.html.ECompressHtmlFilter", "gzip" => false, "doStripNewlines" => false, "actions" => "*"))) 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); |
#16 |
+
–
/var/www/vhosts/devi.uz/harvia.uz/framework/web/CWebApplication.php(282): CController->run("open") 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))); |
#17 |
+
–
/var/www/vhosts/devi.uz/harvia.uz/framework/web/CWebApplication.php(141): CWebApplication->runController("ncat/ncat/open") 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. |
#18 |
+
–
/var/www/vhosts/devi.uz/harvia.uz/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 /** |
#19 |
+
–
/var/www/vhosts/devi.uz/harvia.uz/index.php(17): CApplication->run() 12 header("Location: /",TRUE,301); 13 exit(); 14 } 15 16 require_once($yii); 17 Yii::createWebApplication($config)->run(); 18 |