/var/www/html/protected/models/Thumbnail.php(128)
116 private static function imageCreateFromFile($filename) 117 { 118 if ( ! is_file($filename) || ! is_readable($filename) ) { 119 trigger_error('Unable to open file "' . $filename . '"', E_USER_NOTICE); 120 return false; 121 } 122 123 // determine image format 124 list( , , $type) = getimagesize($filename); 125 126 switch ($type) { 127 case IMAGETYPE_JPEG: 128 return imagecreatefromjpeg($filename); 129 break; 130 case IMAGETYPE_PNG: 131 return imagecreatefrompng($filename); 132 break; 133 case IMAGETYPE_GIF: 134 return imagecreatefromgif($filename); 135 break; 136 } 137 trigger_error('Unsupport image type', E_USER_NOTICE); 138 return false; 139 } 140
#0 |
+
–
/var/www/html/protected/models/Thumbnail.php(96): Thumbnail::imageCreateFromFile("/var/www/html/uploads/images/kerjasama/Senegales1.jpg") 091 * @see Thumbnail::imageCreateFromFile(), Thumbnail::imageCreateFromString() 092 */ 093 private static function imageCreate($input) 094 { 095 if ( is_file($input) ) { 096 return Thumbnail::imageCreateFromFile($input); 097 } else if ( is_string($input) ) { 098 return Thumbnail::imageCreateFromString($input); 099 } else { 100 return $input; 101 } |
#1 |
+
–
/var/www/html/protected/models/Thumbnail.php(259): Thumbnail::imageCreate("/var/www/html/uploads/images/kerjasama/Senegales1.jpg") 254 * @see Thumbnail::output() 255 */ 256 private static function render($input, $options=array()) 257 { 258 // Create the source image 259 $sourceImage = Thumbnail::imageCreate($input); 260 if ( ! is_resource($sourceImage) ) { 261 trigger_error('Invalid image resource', E_USER_NOTICE); 262 return false; 263 } 264 $sourceWidth = imagesx($sourceImage); |
#2 |
+
–
/var/www/html/protected/models/Thumbnail.php(194): Thumbnail::render("/var/www/html/uploads/images/kerjasama/Senegales1.jpg", array("type" => 2, "width" => 750, "height" => 350, "method" => 1)) 189 * @access public 190 */ 191 public static function output($input, $output=null, $options=array()) 192 { 193 // Load source file and render image 194 $renderImage = Thumbnail::render($input, $options); 195 if ( ! $renderImage ) { 196 trigger_error('Error rendering image', E_USER_NOTICE); 197 return false; 198 } 199 |
#3 |
+
–
/var/www/html/protected/models/Content.php(646): Thumbnail::output("/var/www/html/uploads/images/kerjasama/Senegales1.jpg", "images/thumbs/participation-of-the-national-disaster-management-...", array("type" => 2, "width" => 750, "height" => 350, "method" => 1)) 641 'type' => IMAGETYPE_JPEG, 642 'width' => $width, 643 'height' => $height, 644 'method' => THUMBNAIL_METHOD_SCALE_MIN 645 ); 646 Thumbnail::output($filename, 'images/thumbs/'.$gbr->alias.'.jpg', $options_1); 647 return $cetak='<img src="'.Yii::app()->request->baseUrl.'/images/thumbs/'.$gbr->alias.'.jpg" width="'.$width.'" height="'.$height.'" alt="'.$gbr->title.'" title="'.$gbr->title.'" class="img-polaroid" />'; 648 else: 649 return '<img src="'.Yii::app()->baseUrl.'/assets/img/event-img-01.jpg" style="width:'.$width.'px;height:'.$height.'px;">'; 650 endif; 651 else: |
#4 |
+
–
/var/www/html/protected/views/site/kerjasamaDetil.php(27): Content::imgFile("385", 750, 350) 22 <div class="col-md-8"> 23 <div id="page-main"> 24 <section id="blog-detail"> 25 <article class="blog-detail"> 26 <header class="blog-detail-header"> 27 <?php echo Content::imgFile($data->id,750,350); ?> 28 <h2><?php echo $data->title;?></h2> 29 <div class="blog-detail-meta"> 30 <span class="date"><span class="fa fa-file-o"></span><?php echo date('d.m.Y', strtotime($data->created));?></span> 31 <span class="author"><span class="fa fa-user"></span><?php echo Users::Penulis($data->created_by);?></span> 32 <!-- <span class="comments"><span class="fa fa-comment-o"></span>6 comments</span> --> |
#5 |
+
–
/var/www/html/fr317/yiilite.php(3519): require("/var/www/html/protected/views/site/kerjasamaDetil.php") 3514 $data=$_data_; 3515 if($_return_) 3516 { 3517 ob_start(); 3518 ob_implicit_flush(false); 3519 require($_viewFile_); 3520 return ob_get_clean(); 3521 } 3522 else 3523 require($_viewFile_); 3524 } |
#6 |
+
–
/var/www/html/fr317/yiilite.php(3498): CBaseController->renderInternal("/var/www/html/protected/views/site/kerjasamaDetil.php", array("data" => Content), true) 3493 { 3494 $widgetCount=count($this->_widgetStack); 3495 if(($renderer=Yii::app()->getViewRenderer())!==null && $renderer->fileExtension==='.'.CFileHelper::getExtension($viewFile)) 3496 $content=$renderer->renderFile($this,$viewFile,$data,$return); 3497 else 3498 $content=$this->renderInternal($viewFile,$data,$return); 3499 if(count($this->_widgetStack)===$widgetCount) 3500 return $content; 3501 else 3502 { 3503 $widget=end($this->_widgetStack); |
#7 |
+
–
/var/www/html/fr317/yiilite.php(3930): CBaseController->renderFile("/var/www/html/protected/views/site/kerjasamaDetil.php", array("data" => Content), true) 3925 } 3926 public function renderPartial($view,$data=null,$return=false,$processOutput=false) 3927 { 3928 if(($viewFile=$this->getViewFile($view))!==false) 3929 { 3930 $output=$this->renderFile($viewFile,$data,true); 3931 if($processOutput) 3932 $output=$this->processOutput($output); 3933 if($return) 3934 return $output; 3935 else |
#8 |
+
–
/var/www/html/fr317/yiilite.php(3898): CController->renderPartial("kerjasamaDetil", array("data" => Content), true) 3893 } 3894 public function render($view,$data=null,$return=false) 3895 { 3896 if($this->beforeRender($view)) 3897 { 3898 $output=$this->renderPartial($view,$data,true); 3899 if(($layoutFile=$this->getLayoutFile($this->layout))!==false) 3900 $output=$this->renderFile($layoutFile,array('content'=>$output),true); 3901 $this->afterRender($view,$output); 3902 $output=$this->processOutput($output); 3903 if($return) |
#9 |
+
–
/var/www/html/protected/controllers/SiteController.php(220): CController->render("kerjasamaDetil", array("data" => Content)) 215 else: 216 $upt=Content::model()->find('id=:id',array(':id'=>$data->id)); 217 $upt->hits=$upt->hits+1; 218 $upt->save(); 219 220 $this->render('kerjasamaDetil',array('data'=>$data)); 221 endif; 222 else: 223 throw new CHttpException(404,'The requested page does not exist.'); 224 endif; 225 } |
#10 |
+
–
/var/www/html/fr317/yiilite.php(4165): SiteController->actionKerjasamaDetil() 4160 $methodName='action'.$this->getId(); 4161 $controller=$this->getController(); 4162 $method=new ReflectionMethod($controller, $methodName); 4163 if($method->getNumberOfParameters()>0) 4164 return $this->runWithParamsInternal($controller, $method, $params); 4165 $controller->$methodName(); 4166 return true; 4167 } 4168 } 4169 class CWebUser extends CApplicationComponent implements IWebUser 4170 { |
#11 |
+
–
/var/www/html/fr317/yiilite.php(3678): CInlineAction->runWithParams(array("pegi" => "participation-of-the-national-disaster-management-agency-of-indo...")) 3673 { 3674 $priorAction=$this->_action; 3675 $this->_action=$action; 3676 if($this->beforeAction($action)) 3677 { 3678 if($action->runWithParams($this->getActionParams())===false) 3679 $this->invalidActionParams($action); 3680 else 3681 $this->afterAction($action); 3682 } 3683 $this->_action=$priorAction; |
#12 |
+
–
/var/www/html/fr317/yiilite.php(6922): CController->runAction(CInlineAction) 6917 { 6918 $filter=$this->itemAt($this->filterIndex++); 6919 $filter->filter($this); 6920 } 6921 else 6922 $this->controller->runAction($this->action); 6923 } 6924 } 6925 class CFilter extends CComponent implements IFilter 6926 { 6927 public function filter($filterChain) |
#13 |
+
–
/var/www/html/fr317/yiilite.php(6931): CFilterChain->run() 6926 { 6927 public function filter($filterChain) 6928 { 6929 if($this->preFilter($filterChain)) 6930 { 6931 $filterChain->run(); 6932 $this->postFilter($filterChain); 6933 } 6934 } 6935 public function init() 6936 { |
#14 |
+
–
/var/www/html/fr317/yiilite.php(6919): CFilter->filter(CFilterChain) 6914 public function run() 6915 { 6916 if($this->offsetExists($this->filterIndex)) 6917 { 6918 $filter=$this->itemAt($this->filterIndex++); 6919 $filter->filter($this); 6920 } 6921 else 6922 $this->controller->runAction($this->action); 6923 } 6924 } |
#15 |
+
–
/var/www/html/fr317/yiilite.php(3668): CFilterChain->run() 3663 $this->runAction($action); 3664 else 3665 { 3666 $priorAction=$this->_action; 3667 $this->_action=$action; 3668 CFilterChain::create($this,$action,$filters)->run(); 3669 $this->_action=$priorAction; 3670 } 3671 } 3672 public function runAction($action) 3673 { |
#16 |
+
–
/var/www/html/fr317/yiilite.php(3653): CController->runActionWithFilters(CInlineAction, array(array(0 => "application.filters.html.ECompressHtmlFilter", "gzip" => true, "doStripNewlines" => true, "actions" => "index,newsDetil,pengumumanDetil,utamaDetil"))) 3648 { 3649 if(($parent=$this->getModule())===null) 3650 $parent=Yii::app(); 3651 if($parent->beforeControllerAction($this,$action)) 3652 { 3653 $this->runActionWithFilters($action,$this->filters()); 3654 $parent->afterControllerAction($this,$action); 3655 } 3656 } 3657 else 3658 $this->missingAction($actionID); |
#17 |
+
–
/var/www/html/fr317/yiilite.php(1768): CController->run("kerjasamaDetil") 1763 { 1764 list($controller,$actionID)=$ca; 1765 $oldController=$this->_controller; 1766 $this->_controller=$controller; 1767 $controller->init(); 1768 $controller->run($actionID); 1769 $this->_controller=$oldController; 1770 } 1771 else 1772 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 1773 array('{route}'=>$route===''?$this->defaultController:$route))); |
#18 |
+
–
/var/www/html/fr317/yiilite.php(1688): CWebApplication->runController("site/kerjasamaDetil") 1683 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 1684 $_GET[$name]=$value; 1685 } 1686 else 1687 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 1688 $this->runController($route); 1689 } 1690 protected function registerCoreComponents() 1691 { 1692 parent::registerCoreComponents(); 1693 $components=array( |
#19 |
+
–
/var/www/html/fr317/yiilite.php(1205): CWebApplication->processRequest() 1200 public function run() 1201 { 1202 if($this->hasEventHandler('onBeginRequest')) 1203 $this->onBeginRequest(new CEvent($this)); 1204 register_shutdown_function(array($this,'end'),0,false); 1205 $this->processRequest(); 1206 if($this->hasEventHandler('onEndRequest')) 1207 $this->onEndRequest(new CEvent($this)); 1208 } 1209 public function end($status=0,$exit=true) 1210 { |
#20 |
+
–
/var/www/html/index.php(13): CApplication->run() 08 defined('YII_DEBUG') or define('YII_DEBUG',true); 09 // specify how many levels of call stack should be shown in each log message 10 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3); 11 12 require_once($yii); 13 Yii::createWebApplication($config)->run(); |