/home/s/srobos/reestr.sro-bos.ru_new/public_html/vendor/mpdf/mpdf/src/Pdf/Protection/UniqidGenerator.php(11)
01 <?php 02 03 namespace Mpdf\Pdf\Protection; 04 05 class UniqidGenerator 06 { 07 08 public function __construct() 09 { 10 if (!function_exists('random_int') || !function_exists('random_bytes')) { 11 throw new \Mpdf\MpdfException( 12 'Unable to set PDF file protection, CSPRNG Functions are not available. ' 13 . 'Use paragonie/random_compat polyfill or upgrade to PHP 7.' 14 ); 15 } 16 } 17 18 /** 19 * @return string 20 */ 21 public function generate() 22 { 23 $chars = 'ABCDEF1234567890';
#0 |
+
–
/home/s/srobos/reestr.sro-bos.ru_new/public_html/vendor/mpdf/mpdf/src/ServiceFactory.php(68): Mpdf\Pdf\Protection\UniqidGenerator->__construct() 63 64 $cssManager = new CssManager($mpdf, $cache, $sizeConverter, $colorConverter); 65 66 $otl = new Otl($mpdf, $fontCache); 67 68 $protection = new Protection(new UniqidGenerator()); 69 70 $writer = new BaseWriter($mpdf, $protection); 71 72 $gradient = new Gradient($mpdf, $sizeConverter, $colorConverter, $writer); 73 |
#1 |
+
–
/home/s/srobos/reestr.sro-bos.ru_new/public_html/vendor/mpdf/mpdf/src/Mpdf.php(1063): Mpdf\ServiceFactory->getServices(Mpdf\Mpdf, Psr\Log\NullLogger, array("tempDir" => "/home/s/srobos/reestr.sro-bos.ru_new/public_html/protected/runti...", "mirrorMargins" => 0, "forcePortraitMargins" => false, "displayDefaultOrientation" => false, ...), 0, ...) 1058 $this->scriptToLanguage, 1059 $this->fontDescriptor, 1060 $this->bmp, 1061 $this->directWrite, 1062 $this->wmf 1063 ); 1064 1065 $this->services = []; 1066 1067 foreach ($services as $key => $service) { 1068 $this->{$key} = $service; |
#2 |
+
–
/home/s/srobos/reestr.sro-bos.ru_new/public_html/protected/components/SavedAsPsd.php(45): Mpdf\Mpdf->__construct(array("tempDir" => "/home/s/srobos/reestr.sro-bos.ru_new/public_html/protected/runti...")) 40 mkdir($folderForSave, 0775, true); 41 } 42 43 if(empty($this->fileName)){ 44 $destination = Destination::INLINE; 45 $mpdf = new Mpdf(['tempDir' => $tempDir]); 46 $mpdf->WriteHTML($this->content); 47 $mpdf->Output('member_card.pdf', $destination); 48 } else { 49 $destination = Destination::FILE; 50 $mpdf = new Mpdf(['tempDir' => $tempDir]); |
#3 |
+
–
/home/s/srobos/reestr.sro-bos.ru_new/public_html/protected/controllers/SiteController.php(198): SavedAsPsd->result() 193 ob_start(); 194 195 $this->printPdf($id); 196 197 (new SavedAsPsd( ob_get_clean())) 198 ->result(); 199 } 200 201 private function printPdf($id) 202 { 203 $model = $this->member($id); |
#4 |
unknown(0): SiteController->actionViewpdf("424")
|
#5 |
+
–
/home/s/srobos/reestr.sro-bos.ru_new/public_html/framework/web/actions/CAction.php(108): ReflectionMethod->invokeArgs(SiteController, array("424")) 103 elseif($param->isDefaultValueAvailable()) 104 $ps[]=$param->getDefaultValue(); 105 else 106 return false; 107 } 108 $method->invokeArgs($object,$ps); 109 return true; 110 } 111 } |
#6 |
+
–
/home/s/srobos/reestr.sro-bos.ru_new/public_html/framework/web/actions/CInlineAction.php(47): CAction->runWithParamsInternal(SiteController, ReflectionMethod, array("id" => "424")) 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 } |
#7 |
+
–
/home/s/srobos/reestr.sro-bos.ru_new/public_html/framework/web/CController.php(308): CInlineAction->runWithParams(array("id" => "424")) 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; |
#8 |
+
–
/home/s/srobos/reestr.sro-bos.ru_new/public_html/framework/web/CController.php(286): CController->runAction(CInlineAction) 281 * @see runAction 282 */ 283 public function runActionWithFilters($action,$filters) 284 { 285 if(empty($filters)) 286 $this->runAction($action); 287 else 288 { 289 $priorAction=$this->_action; 290 $this->_action=$action; 291 CFilterChain::create($this,$action,$filters)->run(); |
#9 |
+
–
/home/s/srobos/reestr.sro-bos.ru_new/public_html/framework/web/CController.php(265): CController->runActionWithFilters(CInlineAction, array()) 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); |
#10 |
+
–
/home/s/srobos/reestr.sro-bos.ru_new/public_html/framework/web/CWebApplication.php(282): CController->run("viewpdf") 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))); |
#11 |
+
–
/home/s/srobos/reestr.sro-bos.ru_new/public_html/framework/web/CWebApplication.php(141): CWebApplication->runController("site/viewpdf") 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. |
#12 |
+
–
/home/s/srobos/reestr.sro-bos.ru_new/public_html/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 /** |
#13 |
+
–
/home/s/srobos/reestr.sro-bos.ru_new/public_html/index.php(15): CApplication->run() 10 defined('YII_DEBUG') or define('YII_DEBUG',true); 11 12 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3); 13 14 require_once($yii); 15 Yii::createWebApplication($config)->run(); 16 ?> |