/home2/kimyaor1/public_html/protected/extensions/EMpdf/includes/functions.php(66)
54 55 function PreparePreText($text,$ff='//FF//') { 56 // mPDF 5.0.053 57 $text = htmlspecialchars($text); 58 if ($ff) { $text = str_replace($ff,'</pre><formfeed /><pre>',$text); } 59 return ('<pre>'.$text.'</pre>'); 60 } 61 62 if(!function_exists('strcode2utf')){ 63 function strcode2utf($str,$lo=true) { 64 //converts all the &#nnn; and &#xhhh; in a string to Unicode 65 if ($lo) { $lo = 1; } else { $lo = 0; } 66 $str = preg_replace('/\&\#([0-9]+)\;/me', "code2utf('\\1',{$lo})",$str); 67 $str = preg_replace('/\&\#x([0-9a-fA-F]+)\;/me', "codeHex2utf('\\1',{$lo})",$str); 68 return $str; 69 } 70 } 71 72 if(!function_exists('code2utf')){ 73 function code2utf($num,$lo=true){ 74 //Returns the utf string corresponding to the unicode value 75 //added notes - http://uk.php.net/utf8_encode 76 if ($num<128) { 77 if ($lo) return chr($num); 78 else return '&#'.$num.';'; // i.e. no change
#0 |
+
–
/home2/kimyaor1/public_html/protected/extensions/EMpdf/includes/functions.php(66): preg_replace("/\&\#([0-9]+)\;/me", "code2utf('\1',0)", "<!DOCTYPE html>
<html lang="en">
<!--<![endif]-->
<head>
<m...") 61 62 if(!function_exists('strcode2utf')){ 63 function strcode2utf($str,$lo=true) { 64 //converts all the &#nnn; and &#xhhh; in a string to Unicode 65 if ($lo) { $lo = 1; } else { $lo = 0; } 66 $str = preg_replace('/\&\#([0-9]+)\;/me', "code2utf('\\1',{$lo})",$str); 67 $str = preg_replace('/\&\#x([0-9a-fA-F]+)\;/me', "codeHex2utf('\\1',{$lo})",$str); 68 return $str; 69 } 70 } 71 |
#1 |
+
–
/home2/kimyaor1/public_html/protected/extensions/EMpdf/mpdf.php(30886): strcode2utf("<!DOCTYPE html>
<html lang="en">
<!--<![endif]-->
<head>
<m...", false) 30881 // Leaves in particular < to distinguish from tag marker 30882 $html = $this->SubstituteHiEntities($html); 30883 30884 // converts all &#nnn; or &#xHHH; to UTF-8 multibyte 30885 // If $lo==true then includes ASCII < 128 30886 $html = strcode2utf($html,$lo); 30887 return ($html); 30888 } 30889 30890 function purify_utf8_text($txt) { 30891 // For TEXT |
#2 |
+
–
/home2/kimyaor1/public_html/protected/extensions/EMpdf/mpdf.php(12343): mPDF->purify_utf8("<!DOCTYPE html>
<html lang="en">
<!--<![endif]-->
<head>
...", false) 12338 $success = iconv($this->charset_in,'UTF-8//TRANSLIT',$html); 12339 if ($success) { $html = $success; } 12340 } 12341 } 12342 12343 $html = $this->purify_utf8($html,false); 12344 if ($init) { 12345 $this->blklvl = 0; 12346 $this->lastblocklevelchange = 0; 12347 $this->blk = array(); 12348 $this->initialiseBlock($this->blk[0]); |
#3 |
+
–
/home2/kimyaor1/public_html/protected/modules/content/controllers/ContentController.php(605): mPDF->WriteHTML("<!DOCTYPE html>
<html lang="en">
<!--<![endif]-->
<head>
...") 600 $pdfName=md5(microtime()).".pdf"; 601 Yii::app()->theme=$this->themeName; 602 Yii::app()->layout="print"; 603 $model=$this->loadModel($id); 604 $mPDF1 = Yii::app()->ePdf->mpdf(); 605 $mPDF1->WriteHTML($this->render('pdf',array('model'=>$model), true)); 606 $mPDF1->Output($pdfName,EYiiPdf::OUTPUT_TO_DOWNLOAD); 607 } 608 public function actionPrint($id) 609 { 610 Yii::app()->theme=$this->themeName; |
#4 |
unknown(0): ContentController->actionPdf("1")
|
#5 |
+
–
/home2/kimyaor1/public_html/framework/web/actions/CAction.php(107): ReflectionMethod->invokeArgs(ContentController, array("1")) 102 else if($param->isDefaultValueAvailable()) 103 $ps[]=$param->getDefaultValue(); 104 else 105 return false; 106 } 107 $method->invokeArgs($object,$ps); 108 return true; 109 } 110 } |
#6 |
+
–
/home2/kimyaor1/public_html/framework/web/actions/CInlineAction.php(48): CAction->runWithParamsInternal(ContentController, ReflectionMethod, array("id" => "1")) 43 { 44 $methodName='action'.$this->getId(); 45 $controller=$this->getController(); 46 $method=new ReflectionMethod($controller, $methodName); 47 if($method->getNumberOfParameters()>0) 48 return $this->runWithParamsInternal($controller, $method, $params); 49 else 50 return $controller->$methodName(); 51 } 52 53 } |
#7 |
+
–
/home2/kimyaor1/public_html/framework/web/CController.php(234): CInlineAction->runWithParams(array("id" => "1")) 229 { 230 $priorAction=$this->_action; 231 $this->_action=$action; 232 if($this->beforeAction($action)) 233 { 234 if($action->runWithParams($this->getActionParams())===false) 235 $this->invalidActionParams($action); 236 else 237 $this->afterAction($action); 238 } 239 $this->_action=$priorAction; |
#8 |
+
–
/home2/kimyaor1/public_html/framework/web/filters/CFilterChain.php(134): CController->runAction(CInlineAction) 129 $filter=$this->itemAt($this->filterIndex++); 130 Yii::trace('Running filter '.($filter instanceof CInlineFilter ? get_class($this->controller).'.filter'.$filter->name.'()':get_class($filter).'.filter()'),'system.web.filters.CFilterChain'); 131 $filter->filter($this); 132 } 133 else 134 $this->controller->runAction($this->action); 135 } 136 } |
#9 |
+
–
/home2/kimyaor1/public_html/framework/web/filters/CFilter.php(41): CFilterChain->run() 36 */ 37 public function filter($filterChain) 38 { 39 if($this->preFilter($filterChain)) 40 { 41 $filterChain->run(); 42 $this->postFilter($filterChain); 43 } 44 } 45 46 /** |
#10 |
+
–
/home2/kimyaor1/public_html/framework/web/CController.php(1071): CFilter->filter(CFilterChain) 1066 */ 1067 public function filterAccessControl($filterChain) 1068 { 1069 $filter=new CAccessControlFilter; 1070 $filter->setRules($this->accessRules()); 1071 $filter->filter($filterChain); 1072 } 1073 1074 /** 1075 * Returns a persistent page state value. 1076 * A page state is a variable that is persistent across POST requests of the same page. |
#11 |
+
–
/home2/kimyaor1/public_html/framework/web/filters/CInlineFilter.php(59): CController->filterAccessControl(CFilterChain) 54 * @param CFilterChain $filterChain the filter chain that the filter is on. 55 */ 56 public function filter($filterChain) 57 { 58 $method='filter'.$this->name; 59 $filterChain->controller->$method($filterChain); 60 } 61 } |
#12 |
+
–
/home2/kimyaor1/public_html/framework/web/filters/CFilterChain.php(131): CInlineFilter->filter(CFilterChain) 126 { 127 if($this->offsetExists($this->filterIndex)) 128 { 129 $filter=$this->itemAt($this->filterIndex++); 130 Yii::trace('Running filter '.($filter instanceof CInlineFilter ? get_class($this->controller).'.filter'.$filter->name.'()':get_class($filter).'.filter()'),'system.web.filters.CFilterChain'); 131 $filter->filter($this); 132 } 133 else 134 $this->controller->runAction($this->action); 135 } 136 } |
#13 |
+
–
/home2/kimyaor1/public_html/framework/web/CController.php(217): CFilterChain->run() 212 $this->runAction($action); 213 else 214 { 215 $priorAction=$this->_action; 216 $this->_action=$action; 217 CFilterChain::create($this,$action,$filters)->run(); 218 $this->_action=$priorAction; 219 } 220 } 221 222 /** |
#14 |
+
–
/home2/kimyaor1/public_html/framework/web/CController.php(191): CController->runActionWithFilters(CInlineAction, array("accessControl")) 186 { 187 if(($parent=$this->getModule())===null) 188 $parent=Yii::app(); 189 if($parent->beforeControllerAction($this,$action)) 190 { 191 $this->runActionWithFilters($action,$this->filters()); 192 $parent->afterControllerAction($this,$action); 193 } 194 } 195 else 196 $this->missingAction($actionID); |
#15 |
+
–
/home2/kimyaor1/public_html/framework/web/CWebApplication.php(276): CController->run("pdf") 271 { 272 list($controller,$actionID)=$ca; 273 $oldController=$this->_controller; 274 $this->_controller=$controller; 275 $controller->init(); 276 $controller->run($actionID); 277 $this->_controller=$oldController; 278 } 279 else 280 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 281 array('{route}'=>$route===''?$this->defaultController:$route))); |
#16 |
+
–
/home2/kimyaor1/public_html/framework/web/CWebApplication.php(135): CWebApplication->runController("content/content/pdf") 130 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 131 $_GET[$name]=$value; 132 } 133 else 134 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 135 $this->runController($route); 136 } 137 138 /** 139 * Registers the core application components. 140 * This method overrides the parent implementation by registering additional core components. |
#17 |
+
–
/home2/kimyaor1/public_html/framework/base/CApplication.php(162): CWebApplication->processRequest() 157 */ 158 public function run() 159 { 160 if($this->hasEventHandler('onBeginRequest')) 161 $this->onBeginRequest(new CEvent($this)); 162 $this->processRequest(); 163 if($this->hasEventHandler('onEndRequest')) 164 $this->onEndRequest(new CEvent($this)); 165 } 166 167 /** |
#18 |
+
–
/home2/kimyaor1/public_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 require_once($yii); 12 13 Yii::createWebApplication($config)->run(); |