Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
ont: normal 9pt "Verdana";\n\tcolor: #000;\n\tbackground: #fff;\n}\n\nh1 {\n\tfont: normal..
Decoded Output download
<? ont: normal 9pt "Verdana";
color: #000;
background: #fff;
}
h1 {
font: normal 18pt "Verdana";
color: #f00;
margin-bottom: .5em;
}
h2 {
font: normal 14pt "Verdana";
color: #800000;
margin-bottom: .5em;
}
h3 {
font: bold 11pt "Verdana";
}
pre {
font: normal 11pt Menlo, Consolas, "Lucida Console", Monospace;
}
pre span.error {
display: block;
background: #fce3e3;
}
pre span.ln {
color: #999;
padding-right: 0.5em;
border-right: 1px solid #ccc;
}
pre span.error-ln {
font-weight: bold;
}
.container {
margin: 1em 4em;
}
.version {
color: gray;
font-size: 8pt;
border-top: 1px solid #aaa;
padding-top: 1em;
margin-bottom: 1em;
}
.message {
color: #000;
padding: 1em;
font-size: 11pt;
background: #f3f3f3;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
margin-bottom: 1em;
line-height: 160%;
}
.source {
margin-bottom: 1em;
}
.code pre {
background-color: #ffe;
margin: 0.5em 0;
padding: 0.5em;
line-height: 125%;
border: 1px solid #eee;
}
.source .file {
margin-bottom: 1em;
font-weight: bold;
}
.traces {
margin: 2em 0;
}
.trace {
margin: 0.5em 0;
padding: 0.5em;
}
.trace.app {
border: 1px dashed #c00;
}
.trace .number {
text-align: right;
width: 2em;
padding: 0.5em;
}
.trace .content {
padding: 0.5em;
}
.trace .plus,
.trace .minus {
display:inline;
vertical-align:middle;
text-align:center;
border:1px solid #000;
color:#000;
font-size:10px;
line-height:10px;
margin:0;
padding:0 1px;
width:10px;
height:10px;
}
.trace.collapsed .minus,
.trace.expanded .plus,
.trace.collapsed pre {
display: none;
}
.trace-file {
cursor: pointer;
padding: 0.2em;
}
.trace-file:hover {
background: #f0ffff;
}
/*]]>*/
</style>
</head>
<body>
<div class="container">
<h1>PHP warning</h1>
<p class="message">
ZipArchive::locateName(): Invalid or unitialized Zip object </p>
<div class="source">
<p class="file">/home/mb/app/protected/modules/om/services/TpStageCoverService.php(150)</p>
<div class="code"><pre><span class="ln">138</span> if($zip->open($component->getFSPatch())) {
<span class="ln">139</span> $exts = [self::FILE_EXT_JPG, self::FILE_EXT_JPEG, self::FILE_EXT_PNG];
<span class="ln">140</span> $extlessFilePaths = [
<span class="ln">141</span> $om->tp->nomenclature .'/OFORMLENIE/' . $om->tp->nomenclature,
<span class="ln">142</span> $om->tp->nomenclature .'/OFORMLENIE/cover1',
<span class="ln">143</span> $om->tp->nomenclature .'/OFORMLENIE/pereplet',
<span class="ln">144</span> ];
<span class="ln">145</span>
<span class="ln">146</span> $fp = null;
<span class="ln">147</span> foreach ($extlessFilePaths as $extlessFilePath) {
<span class="ln">148</span> foreach ($exts as $ext) {
<span class="ln">149</span> $filePath = $extlessFilePath . '.' . $ext;
<span class="error"><span class="ln error-ln">150</span> if ($zip->locateName($filePath)) {
</span><span class="ln">151</span> $fp = $zip->getStream($filePath);
<span class="ln">152</span> break 2;
<span class="ln">153</span> }
<span class="ln">154</span> }
<span class="ln">155</span> }
<span class="ln">156</span>
<span class="ln">157</span> if ($fp) {
<span class="ln">158</span> $contents = '';
<span class="ln">159</span> while (!feof($fp)) {
<span class="ln">160</span> $contents .= fread($fp, 2);
<span class="ln">161</span> }
<span class="ln">162</span>
</pre></div> </div>
<div class="traces">
<h2>Stack Trace</h2>
<table style="width:100%;">
<tr class="trace app expanded">
<td class="number">
#0 </td>
<td class="content">
<div class="trace-file">
<div class="plus">+</div>
<div class="minus"></div>
/home/mb/app/protected/modules/om/services/TpStageCoverService.php(150): <strong>ZipArchive</strong>-><strong>locateName</strong>("40-0575-01/OFORMLENIE/40-0575-01.jpg") </div>
<div class="code"><pre><span class="ln">145</span>
<span class="ln">146</span> $fp = null;
<span class="ln">147</span> foreach ($extlessFilePaths as $extlessFilePath) {
<span class="ln">148</span> foreach ($exts as $ext) {
<span class="ln">149</span> $filePath = $extlessFilePath . '.' . $ext;
<span class="error"><span class="ln error-ln">150</span> if ($zip->locateName($filePath)) {
</span><span class="ln">151</span> $fp = $zip->getStream($filePath);
<span class="ln">152</span> break 2;
<span class="ln">153</span> }
<span class="ln">154</span> }
<span class="ln">155</span> }
</pre></div> </td>
</tr>
<tr class="trace app expanded">
<td class="number">
#1 </td>
<td class="content">
<div class="trace-file">
<div class="plus">+</div>
<div class="minus"></div>
/home/mb/app/protected/modules/om/services/TpStageCoverService.php(128): <strong>TpStageCoverService</strong>-><strong>saveCoverFromOm</strong>(MBOm, "618") </div>
<div class="code"><pre><span class="ln">123</span> if (!$om->import) {
<span class="ln">124</span> throw new AppException("OM with id $omId has no import");
<span class="ln">125</span> }
<span class="ln">126</span>
<span class="ln">127</span> $userId = $om->import->user_id;
<span class="error"><span class="ln error-ln">128</span> $this->saveCoverFromOm($om, $userId);
</span><span class="ln">129</span> }
<span class="ln">130</span>
<span class="ln">131</span> public function saveCoverFromOm(MBOm $om, $userId)
<span class="ln">132</span> {
<span class="ln">133</span> $component = $om->getRelated(OmComponentsArch::EXTERNAL_DECOR);
</pre></div> </td>
</tr>
<tr class="trace app expanded">
<td class="number">
#2 </td>
<td class="content">
<div class="trace-file">
<div class="plus">+</div>
<div class="minus"></div>
/home/mb/app/protected/modules/om/controllers/TpStageCoverController.php(33): <strong>TpStageCoverService</strong>-><strong>saveCoverFromOmById</strong>("918") </div>
<div class="code"><pre><span class="ln">28</span>
<span class="ln">29</span> public function actionSaveCoverFromOmById()
<span class="ln">30</span> {
<span class="ln">31</span> $serv = new TpStageCoverService();
<span class="ln">32</span> try{
<span class="error"><span class="ln error-ln">33</span> $serv->saveCoverFromOmById($this->getParam('om_id'));
</span><span class="ln">34</span> echo $this->ser()->serializeSuccess();
<span class="ln">35</span> } catch(Exception $e) {
<span class="ln">36</span> echo $this->ser()->serializeError($e->getCode(), $e->getMessage());
<span class="ln">37</span> }
<span class="ln">38</span> }
</pre></div> </td>
</tr>
<tr class="trace core collapsed">
<td class="number">
#3 </td>
<td class="content">
<div class="trace-file">
<div class="plus">+</div>
<div class="minus"></div>
/home/mb/app/protected/vendor/yiisoft/yii/framework/web/actions/CInlineAction.php(49): <strong>TpStageCoverController</strong>-><strong>actionSaveCoverFromOmById</strong>() </div>
<div class="code"><pre><span class="ln">44</span> $controller=$this->getController();
<span class="ln">45</span> $method=new ReflectionMethod($controller, $methodName);
<span class="ln">46</span> if($method->getNumberOfParameters()>0)
<span class="ln">47</span> return $this->runWithParamsInternal($controller, $method, $params);
<span class="ln">48</span>
<span class="error"><span class="ln error-ln">49</span> $controller->$methodName();
</span><span class="ln">50</span> return true;
<span class="ln">51</span> }
<span class="ln">52</span> }
</pre></div> </td>
</tr>
<tr class="trace core collapsed">
<td class="number">
#4 </td>
<td class="content">
<div class="trace-file">
<div class="plus">+</div>
<div class="minus"></div>
/home/mb/app/protected/vendor/yiisoft/yii/framework/web/CController.php(308): <strong>CInlineAction</strong>-><strong>runWithParams</strong>(array("om_id" => "918")) </div>
<div class="code"><pre><span class="ln">303</span> {
<span class="ln">304</span> $priorAction=$this->_action;
<span class="ln">305</span> $this->_action=$action;
<span class="ln">306</span> if($this->beforeAction($action))
<span class="ln">307</span> {
<span class="error"><span class="ln error-ln">308</span> if($action->runWithParams($this->getActionParams())===false)
</span><span class="ln">309</span> $this->invalidActionParams($action);
<span class="ln">310</span> else
<span class="ln">311</span> $this->afterAction($action);
<span class="ln">312</span> }
<span class="ln">313</span> $this->_action=$priorAction;
</pre></div> </td>
</tr>
<tr class="trace core collapsed">
<td class="number">
#5 </td>
<td class="content">
<div class="trace-file">
<div class="plus">+</div>
<div class="minus"></div>
/home/mb/app/protected/vendor/yiisoft/yii/framework/web/filters/CFilterChain.php(134): <strong>CController</strong>-><strong>runAction</strong>(CInlineAction) </div>
<div class="code"><pre><span class="ln">129</span> $filter=$this->itemAt($this->filterIndex++);
<span class="ln">130</span> Yii::trace('Running filter '.($filter instanceof CInlineFilter ? get_class($this->controller).'.filter'.$filter->name.'()':get_class($filter).'.filter()'),'system.web.filters.CFilterChain');
<span class="ln">131</span> $filter->filter($this);
<span class="ln">132</span> }
<span class="ln">133</span> else
<span class="error"><span class="ln error-ln">134</span> $this->controller->runAction($this->action);
</span><span class="ln">135</span> }
<span class="ln">136</span> }</pre></div> </td>
</tr>
<tr class="trace core collapsed">
<td class="number">
#6 </td>
<td class="content">
<div class="trace-file">
<div class="plus">+</div>
<div class="minus"></div>
/home/mb/app/protected/vendor/yiisoft/yii/framework/web/filters/CFilter.php(40): <strong>CFilterChain</strong>-><strong>run</strong>() </div>
<div class="code"><pre><span class="ln">35</span> */
<span class="ln">36</span> public function filter($filterChain)
<span class="ln">37</span> {
<span class="ln">38</span> if($this->preFilter($filterChain))
<span class="ln">39</span> {
<span class="error"><span class="ln error-ln">40</span> $filterChain->run();
</span><span class="ln">41</span> $this->postFilter($filterChain);
<span class="ln">42</span> }
<span class="ln">43</span> }
<span class="ln">44</span>
<span class="ln">45</span> /**
</pre></div> </td>
</tr>
<tr class="trace core collapsed">
<td class="number">
#7 </td>
<td class="content">
<div class="trace-file">
<div class="plus">+</div>
<div class="minus"></div>
/home/mb/app/protected/vendor/yiisoft/yii/framework/web/filters/CFilterChain.php(131): <strong>CFilter</strong>-><strong>filter</strong>(CFilterChain) </div>
<div class="code"><pre><span class="ln">126</span> {
<span class="ln">127</span> if($this->offsetExists($this->filterIndex))
<span class="ln">128</span> {
<span class="ln">129</span> $filter=$this->itemAt($this->filterIndex++);
<span class="ln">130</span> Yii::trace('Running filter '.($filter instanceof CInlineFilter ? get_class($this->controller).'.filter'.$filter->name.'()':get_class($filter).'.filter()'),'system.web.filters.CFilterChain');
<span class="error"><span class="ln error-ln">131</span> $filter->filter($this);
</span><span class="ln">132</span> }
<span class="ln">133</span> else
<span class="ln">134</span> $this->controller->runAction($this->action);
<span class="ln">135</span> }
<span class="ln">136</span> }</pre></div> </td>
</tr>
<tr class="trace core collapsed">
<td class="number">
#8 </td>
<td class="content">
<div class="trace-file">
<div class="plus">+</div>
<div class="minus"></div>
/home/mb/app/protected/vendor/yiisoft/yii/framework/web/CController.php(291): <strong>CFilterChain</strong>-><strong>run</strong>() </div>
<div class="code"><pre><span class="ln">286</span> $this->runAction($action);
<span class="ln">287</span> else
<span class="ln">288</span> {
<span class="ln">289</span> $priorAction=$this->_action;
<span class="ln">290</span> $this->_action=$action;
<span class="error"><span class="ln error-ln">291</span> CFilterChain::create($this,$action,$filters)->run();
</span><span class="ln">292</span> $this->_action=$priorAction;
<span class="ln">293</span> }
<span class="ln">294</span> }
<span class="ln">295</span>
<span class="ln">296</span> /**
</pre></div> </td>
</tr>
<tr class="trace core collapsed">
<td class="number">
#9 </td>
<td class="content">
<div class="trace-file">
<div class="plus">+</div>
<div class="minus"></div>
/home/mb/app/protected/vendor/yiisoft/yii/framework/web/CController.php(265): <strong>CController</strong>-><strong>runActionWithFilters</strong>(CInlineAction, array(array("application.filters.InternalUsersFilter"))) </div>
<div class="code"><pre><span class="ln">260</span> {
<span class="ln">261</span> if(($parent=$this->getModule())===null)
<span class="ln">262</span> $parent=Yii::app();
<span class="ln">263</span> if($parent->beforeControllerAction($this,$action))
<span class="ln">264</span> {
<span class="error"><span class="ln error-ln">265</span> $this->runActionWithFilters($action,$this->filters());
</span><span class="ln">266</span> $parent->afterControllerAction($this,$action);
<span class="ln">267</span> }
<span class="ln">268</span> }
<span class="ln">269</span> else
<span class="ln">270</span> $this->missingAction($actionID);
</pre></div> </td>
</tr>
<tr class="trace core collapsed">
<td class="number">
#10 </td>
<td class="content">
<div class="trace-file">
<div class="plus">+</div>
<div class="minus"></div>
/home/mb/app/protected/vendor/yiisoft/yii/framework/web/CWebApplication.php(282): <strong>CController</strong>-><strong>run</strong>("saveCoverFromOmById") </div>
<div class="code"><pre><span class="ln">277</span> {
<span class="ln">278</span> list($controller,$actionID)=$ca;
<span class="ln">279</span> $oldController=$this->_controller;
<span class="ln">280</span> $this->_controller=$controller;
<span class="ln">281</span> $controller->init();
<span class="error"><span class="ln error-ln">282</span> $controller->run($actionID);
</span><span class="ln">283</span> $this->_controller=$oldController;
<span class="ln">284</span> }
<span class="ln">285</span> else
<span class="ln">286</span> throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".',
<span class="ln">287</span> array('{route}'=>$route===''?$this->defaultController:$route)));
</pre></div> </td>
</tr>
<tr class="trace core collapsed">
<td class="number">
#11 </td>
<td class="content">
<div class="trace-file">
<div class="plus">+</div>
<div class="minus"></div>
/home/mb/app/protected/vendor/yiisoft/yii/framework/web/CWebApplication.php(141): <strong>CWebApplication</strong>-><strong>runController</strong>("om/tpStageCover/saveCoverFromOmById") </div>
<div class="code"><pre><span class="ln">136</span> foreach(array_splice($this->catchAllRequest,1) as $name=>$value)
<span class="ln">137</span> $_GET[$name]=$value;
<span class="ln">138</span> }
<span class="ln">139</span> else
<span class="ln">140</span> $route=$this->getUrlManager()->parseUrl($this->getRequest());
<span class="error"><span class="ln error-ln">141</span> $this->runController($route);
</span><span class="ln">142</span> }
<span class="ln">143</span>
<span class="ln">144</span> /**
<span class="ln">145</span> * Registers the core application components.
<span class="ln">146</span> * This method overrides the parent implementation by registering additional core components.
</pre></div> </td>
</tr>
<tr class="trace core collapsed">
<td class="number">
#12 </td>
<td class="content">
<div class="trace-file">
<div class="plus">+</div>
<div class="minus"></div>
/home/mb/app/protected/vendor/yiisoft/yii/framework/base/CApplication.php(185): <strong>CWebApplication</strong>-><strong>processRequest</strong>() </div>
<div class="code"><pre><span class="ln">180</span> public function run()
<span class="ln">181</span> {
<span class="ln">182</span> if($this->hasEventHandler('onBeginRequest'))
<span class="ln">183</span> $this->onBeginRequest(new CEvent($this));
<span class="ln">184</span> register_shutdown_function(array($this,'end'),0,false);
<span class="error"><span class="ln error-ln">185</span> $this->processRequest();
</span><span class="ln">186</span> if($this->hasEventHandler('onEndRequest'))
<span class="ln">187</span> $this->onEndRequest(new CEvent($this));
<span class="ln">188</span> }
<span class="ln">189</span>
<span class="ln">190</span> /**
</pre></div> </td>
</tr>
<tr class="trace app collapsed">
<td class="number">
#13 </td>
<td class="content">
<div class="trace-file">
<div class="plus">+</div>
<div class="minus"></div>
/home/mb/app/public/index.php(7): <strong>CApplication</strong>-><strong>run</strong>() </div>
<div class="code"><pre><span class="ln">2</span>
<span class="ln">3</span> require_once __DIR__ . '/../protected/bootstrap/app.php';
<span class="ln">4</span>
<span class="ln">5</span> $config = __DIR__ . '/../protected/config/main.php';
<span class="ln">6</span>
<span class="error"><span class="ln error-ln">7</span> Yii::createApplication(App\Foundation\WebApplication::class, $config)->run();
</span></pre></div> </td>
</tr>
</table>
</div>
<div class="version">
2024-06-11 13:07:22 Apache/2.4.7 (Ubuntu) <a href="http://www.yiiframework.com/">Yii Framework</a>/1.1.25 </div>
</div>
<script type="text/javascript">
/*<![CDATA[*/
var traceReg = new RegExp("(^|\\s)trace-file(\\s|$)");
var collapsedReg = new RegExp("(^|\\s)collapsed(\\s|$)");
var e = document.getElementsByTagName("div");
for(var j=0,len=e.length;j<len;j++){
if(traceReg.test(e[j].className)){
e[j].onclick = function(){
var trace = this.parentNode.parentNode;
if(collapsedReg.test(trace.className))
trace.className = trace.className.replace("collapsed", "expanded");
else
trace.className = trace.className.replace("expanded", "collapsed");
}
}
}
/*]]>*/
</script>
</body>
</html>
' ?>
Did this file decode correctly?
Original Code
ont: normal 9pt "Verdana";\n\tcolor: #000;\n\tbackground: #fff;\n}\n\nh1 {\n\tfont: normal 18pt "Verdana";\n\tcolor: #f00;\n\tmargin-bottom: .5em;\n}\n\nh2 {\n\tfont: normal 14pt "Verdana";\n\tcolor: #800000;\n\tmargin-bottom: .5em;\n}\n\nh3 {\n\tfont: bold 11pt "Verdana";\n}\n\npre {\n\tfont: normal 11pt Menlo, Consolas, "Lucida Console", Monospace;\n}\n\npre span.error {\n\tdisplay: block;\n\tbackground: #fce3e3;\n}\n\npre span.ln {\n\tcolor: #999;\n\tpadding-right: 0.5em;\n\tborder-right: 1px solid #ccc;\n}\n\npre span.error-ln {\n\tfont-weight: bold;\n}\n\n.container {\n\tmargin: 1em 4em;\n}\n\n.version {\n\tcolor: gray;\n\tfont-size: 8pt;\n\tborder-top: 1px solid #aaa;\n\tpadding-top: 1em;\n\tmargin-bottom: 1em;\n}\n\n.message {\n\tcolor: #000;\n\tpadding: 1em;\n\tfont-size: 11pt;\n\tbackground: #f3f3f3;\n\t-webkit-border-radius: 10px;\n\t-moz-border-radius: 10px;\n\tborder-radius: 10px;\n\tmargin-bottom: 1em;\n\tline-height: 160%;\n}\n\n.source {\n\tmargin-bottom: 1em;\n}\n\n.code pre {\n\tbackground-color: #ffe;\n\tmargin: 0.5em 0;\n\tpadding: 0.5em;\n\tline-height: 125%;\n\tborder: 1px solid #eee;\n}\n\n.source .file {\n\tmargin-bottom: 1em;\n\tfont-weight: bold;\n}\n\n.traces {\n\tmargin: 2em 0;\n}\n\n.trace {\n\tmargin: 0.5em 0;\n\tpadding: 0.5em;\n}\n\n.trace.app {\n\tborder: 1px dashed #c00;\n}\n\n.trace .number {\n\ttext-align: right;\n\twidth: 2em;\n\tpadding: 0.5em;\n}\n\n.trace .content {\n\tpadding: 0.5em;\n}\n\n.trace .plus,\n.trace .minus {\n\tdisplay:inline;\n\tvertical-align:middle;\n\ttext-align:center;\n\tborder:1px solid #000;\n\tcolor:#000;\n\tfont-size:10px;\n\tline-height:10px;\n\tmargin:0;\n\tpadding:0 1px;\n\twidth:10px;\n\theight:10px;\n}\n\n.trace.collapsed .minus,\n.trace.expanded .plus,\n.trace.collapsed pre {\n\tdisplay: none;\n}\n\n.trace-file {\n\tcursor: pointer;\n\tpadding: 0.2em;\n}\n\n.trace-file:hover {\n\tbackground: #f0ffff;\n}\n/*]]>*/\n</style>\n</head>\n\n<body>\n<div class="container">\n\t<h1>PHP warning</h1>\n\n\t<p class="message">\n\t\tZipArchive::locateName(): Invalid or unitialized Zip object\t</p>\n\n\t<div class="source">\n\t\t<p class="file">/home/mb/app/protected/modules/om/services/TpStageCoverService.php(150)</p>\n\t\t<div class="code"><pre><span class="ln">138</span> if($zip->open($component->getFSPatch())) {\n<span class="ln">139</span> $exts = [self::FILE_EXT_JPG, self::FILE_EXT_JPEG, self::FILE_EXT_PNG];\n<span class="ln">140</span> $extlessFilePaths = [\n<span class="ln">141</span> $om->tp->nomenclature .'/OFORMLENIE/' . $om->tp->nomenclature,\n<span class="ln">142</span> $om->tp->nomenclature .'/OFORMLENIE/cover1',\n<span class="ln">143</span> $om->tp->nomenclature .'/OFORMLENIE/pereplet',\n<span class="ln">144</span> ];\n<span class="ln">145</span> \n<span class="ln">146</span> $fp = null;\n<span class="ln">147</span> foreach ($extlessFilePaths as $extlessFilePath) {\n<span class="ln">148</span> foreach ($exts as $ext) {\n<span class="ln">149</span> $filePath = $extlessFilePath . '.' . $ext;\n<span class="error"><span class="ln error-ln">150</span> if ($zip->locateName($filePath)) {\n</span><span class="ln">151</span> $fp = $zip->getStream($filePath);\n<span class="ln">152</span> break 2;\n<span class="ln">153</span> }\n<span class="ln">154</span> }\n<span class="ln">155</span> }\n<span class="ln">156</span> \n<span class="ln">157</span> if ($fp) {\n<span class="ln">158</span> $contents = '';\n<span class="ln">159</span> while (!feof($fp)) {\n<span class="ln">160</span> $contents .= fread($fp, 2);\n<span class="ln">161</span> }\n<span class="ln">162</span> \n</pre></div>\t</div>\n\n\t<div class="traces">\n\t\t<h2>Stack Trace</h2>\n\t\t\t\t<table style="width:100%;">\n\t\t\t\t\t\t<tr class="trace app expanded">\n\t\t\t<td class="number">\n\t\t\t\t#0\t\t\t</td>\n\t\t\t<td class="content">\n\t\t\t\t<div class="trace-file">\n\t\t\t\t\t\t\t\t\t\t\t<div class="plus">+</div>\n\t\t\t\t\t\t<div class="minus"></div>\n\t\t\t\t\t\t\t\t\t\t /home/mb/app/protected/modules/om/services/TpStageCoverService.php(150): <strong>ZipArchive</strong>-><strong>locateName</strong>("40-0575-01/OFORMLENIE/40-0575-01.jpg")\t\t\t\t</div>\n\n\t\t\t\t<div class="code"><pre><span class="ln">145</span> \n<span class="ln">146</span> $fp = null;\n<span class="ln">147</span> foreach ($extlessFilePaths as $extlessFilePath) {\n<span class="ln">148</span> foreach ($exts as $ext) {\n<span class="ln">149</span> $filePath = $extlessFilePath . '.' . $ext;\n<span class="error"><span class="ln error-ln">150</span> if ($zip->locateName($filePath)) {\n</span><span class="ln">151</span> $fp = $zip->getStream($filePath);\n<span class="ln">152</span> break 2;\n<span class="ln">153</span> }\n<span class="ln">154</span> }\n<span class="ln">155</span> }\n</pre></div>\t\t\t</td>\n\t\t</tr>\n\t\t\t\t\t\t<tr class="trace app expanded">\n\t\t\t<td class="number">\n\t\t\t\t#1\t\t\t</td>\n\t\t\t<td class="content">\n\t\t\t\t<div class="trace-file">\n\t\t\t\t\t\t\t\t\t\t\t<div class="plus">+</div>\n\t\t\t\t\t\t<div class="minus"></div>\n\t\t\t\t\t\t\t\t\t\t /home/mb/app/protected/modules/om/services/TpStageCoverService.php(128): <strong>TpStageCoverService</strong>-><strong>saveCoverFromOm</strong>(MBOm, "618")\t\t\t\t</div>\n\n\t\t\t\t<div class="code"><pre><span class="ln">123</span> if (!$om->import) {\n<span class="ln">124</span> throw new AppException("OM with id $omId has no import");\n<span class="ln">125</span> }\n<span class="ln">126</span> \n<span class="ln">127</span> $userId = $om->import->user_id;\n<span class="error"><span class="ln error-ln">128</span> $this->saveCoverFromOm($om, $userId);\n</span><span class="ln">129</span> }\n<span class="ln">130</span> \n<span class="ln">131</span> public function saveCoverFromOm(MBOm $om, $userId)\n<span class="ln">132</span> {\n<span class="ln">133</span> $component = $om->getRelated(OmComponentsArch::EXTERNAL_DECOR);\n</pre></div>\t\t\t</td>\n\t\t</tr>\n\t\t\t\t\t\t<tr class="trace app expanded">\n\t\t\t<td class="number">\n\t\t\t\t#2\t\t\t</td>\n\t\t\t<td class="content">\n\t\t\t\t<div class="trace-file">\n\t\t\t\t\t\t\t\t\t\t\t<div class="plus">+</div>\n\t\t\t\t\t\t<div class="minus"></div>\n\t\t\t\t\t\t\t\t\t\t /home/mb/app/protected/modules/om/controllers/TpStageCoverController.php(33): <strong>TpStageCoverService</strong>-><strong>saveCoverFromOmById</strong>("918")\t\t\t\t</div>\n\n\t\t\t\t<div class="code"><pre><span class="ln">28</span> \n<span class="ln">29</span> public function actionSaveCoverFromOmById()\n<span class="ln">30</span> {\n<span class="ln">31</span> $serv = new TpStageCoverService();\n<span class="ln">32</span> try{\n<span class="error"><span class="ln error-ln">33</span> $serv->saveCoverFromOmById($this->getParam('om_id'));\n</span><span class="ln">34</span> echo $this->ser()->serializeSuccess();\n<span class="ln">35</span> } catch(Exception $e) {\n<span class="ln">36</span> echo $this->ser()->serializeError($e->getCode(), $e->getMessage());\n<span class="ln">37</span> }\n<span class="ln">38</span> }\n</pre></div>\t\t\t</td>\n\t\t</tr>\n\t\t\t\t\t\t<tr class="trace core collapsed">\n\t\t\t<td class="number">\n\t\t\t\t#3\t\t\t</td>\n\t\t\t<td class="content">\n\t\t\t\t<div class="trace-file">\n\t\t\t\t\t\t\t\t\t\t\t<div class="plus">+</div>\n\t\t\t\t\t\t<div class="minus"></div>\n\t\t\t\t\t\t\t\t\t\t /home/mb/app/protected/vendor/yiisoft/yii/framework/web/actions/CInlineAction.php(49): <strong>TpStageCoverController</strong>-><strong>actionSaveCoverFromOmById</strong>()\t\t\t\t</div>\n\n\t\t\t\t<div class="code"><pre><span class="ln">44</span> $controller=$this->getController();\n<span class="ln">45</span> $method=new ReflectionMethod($controller, $methodName);\n<span class="ln">46</span> if($method->getNumberOfParameters()>0)\n<span class="ln">47</span> return $this->runWithParamsInternal($controller, $method, $params);\n<span class="ln">48</span> \n<span class="error"><span class="ln error-ln">49</span> $controller->$methodName();\n</span><span class="ln">50</span> return true;\n<span class="ln">51</span> }\n<span class="ln">52</span> }\n</pre></div>\t\t\t</td>\n\t\t</tr>\n\t\t\t\t\t\t<tr class="trace core collapsed">\n\t\t\t<td class="number">\n\t\t\t\t#4\t\t\t</td>\n\t\t\t<td class="content">\n\t\t\t\t<div class="trace-file">\n\t\t\t\t\t\t\t\t\t\t\t<div class="plus">+</div>\n\t\t\t\t\t\t<div class="minus"></div>\n\t\t\t\t\t\t\t\t\t\t /home/mb/app/protected/vendor/yiisoft/yii/framework/web/CController.php(308): <strong>CInlineAction</strong>-><strong>runWithParams</strong>(array("om_id" => "918"))\t\t\t\t</div>\n\n\t\t\t\t<div class="code"><pre><span class="ln">303</span> {\n<span class="ln">304</span> $priorAction=$this->_action;\n<span class="ln">305</span> $this->_action=$action;\n<span class="ln">306</span> if($this->beforeAction($action))\n<span class="ln">307</span> {\n<span class="error"><span class="ln error-ln">308</span> if($action->runWithParams($this->getActionParams())===false)\n</span><span class="ln">309</span> $this->invalidActionParams($action);\n<span class="ln">310</span> else\n<span class="ln">311</span> $this->afterAction($action);\n<span class="ln">312</span> }\n<span class="ln">313</span> $this->_action=$priorAction;\n</pre></div>\t\t\t</td>\n\t\t</tr>\n\t\t\t\t\t\t<tr class="trace core collapsed">\n\t\t\t<td class="number">\n\t\t\t\t#5\t\t\t</td>\n\t\t\t<td class="content">\n\t\t\t\t<div class="trace-file">\n\t\t\t\t\t\t\t\t\t\t\t<div class="plus">+</div>\n\t\t\t\t\t\t<div class="minus"></div>\n\t\t\t\t\t\t\t\t\t\t /home/mb/app/protected/vendor/yiisoft/yii/framework/web/filters/CFilterChain.php(134): <strong>CController</strong>-><strong>runAction</strong>(CInlineAction)\t\t\t\t</div>\n\n\t\t\t\t<div class="code"><pre><span class="ln">129</span> $filter=$this->itemAt($this->filterIndex++);\n<span class="ln">130</span> Yii::trace('Running filter '.($filter instanceof CInlineFilter ? get_class($this->controller).'.filter'.$filter->name.'()':get_class($filter).'.filter()'),'system.web.filters.CFilterChain');\n<span class="ln">131</span> $filter->filter($this);\n<span class="ln">132</span> }\n<span class="ln">133</span> else\n<span class="error"><span class="ln error-ln">134</span> $this->controller->runAction($this->action);\n</span><span class="ln">135</span> }\n<span class="ln">136</span> }</pre></div>\t\t\t</td>\n\t\t</tr>\n\t\t\t\t\t\t<tr class="trace core collapsed">\n\t\t\t<td class="number">\n\t\t\t\t#6\t\t\t</td>\n\t\t\t<td class="content">\n\t\t\t\t<div class="trace-file">\n\t\t\t\t\t\t\t\t\t\t\t<div class="plus">+</div>\n\t\t\t\t\t\t<div class="minus"></div>\n\t\t\t\t\t\t\t\t\t\t /home/mb/app/protected/vendor/yiisoft/yii/framework/web/filters/CFilter.php(40): <strong>CFilterChain</strong>-><strong>run</strong>()\t\t\t\t</div>\n\n\t\t\t\t<div class="code"><pre><span class="ln">35</span> */\n<span class="ln">36</span> public function filter($filterChain)\n<span class="ln">37</span> {\n<span class="ln">38</span> if($this->preFilter($filterChain))\n<span class="ln">39</span> {\n<span class="error"><span class="ln error-ln">40</span> $filterChain->run();\n</span><span class="ln">41</span> $this->postFilter($filterChain);\n<span class="ln">42</span> }\n<span class="ln">43</span> }\n<span class="ln">44</span> \n<span class="ln">45</span> /**\n</pre></div>\t\t\t</td>\n\t\t</tr>\n\t\t\t\t\t\t<tr class="trace core collapsed">\n\t\t\t<td class="number">\n\t\t\t\t#7\t\t\t</td>\n\t\t\t<td class="content">\n\t\t\t\t<div class="trace-file">\n\t\t\t\t\t\t\t\t\t\t\t<div class="plus">+</div>\n\t\t\t\t\t\t<div class="minus"></div>\n\t\t\t\t\t\t\t\t\t\t /home/mb/app/protected/vendor/yiisoft/yii/framework/web/filters/CFilterChain.php(131): <strong>CFilter</strong>-><strong>filter</strong>(CFilterChain)\t\t\t\t</div>\n\n\t\t\t\t<div class="code"><pre><span class="ln">126</span> {\n<span class="ln">127</span> if($this->offsetExists($this->filterIndex))\n<span class="ln">128</span> {\n<span class="ln">129</span> $filter=$this->itemAt($this->filterIndex++);\n<span class="ln">130</span> Yii::trace('Running filter '.($filter instanceof CInlineFilter ? get_class($this->controller).'.filter'.$filter->name.'()':get_class($filter).'.filter()'),'system.web.filters.CFilterChain');\n<span class="error"><span class="ln error-ln">131</span> $filter->filter($this);\n</span><span class="ln">132</span> }\n<span class="ln">133</span> else\n<span class="ln">134</span> $this->controller->runAction($this->action);\n<span class="ln">135</span> }\n<span class="ln">136</span> }</pre></div>\t\t\t</td>\n\t\t</tr>\n\t\t\t\t\t\t<tr class="trace core collapsed">\n\t\t\t<td class="number">\n\t\t\t\t#8\t\t\t</td>\n\t\t\t<td class="content">\n\t\t\t\t<div class="trace-file">\n\t\t\t\t\t\t\t\t\t\t\t<div class="plus">+</div>\n\t\t\t\t\t\t<div class="minus"></div>\n\t\t\t\t\t\t\t\t\t\t /home/mb/app/protected/vendor/yiisoft/yii/framework/web/CController.php(291): <strong>CFilterChain</strong>-><strong>run</strong>()\t\t\t\t</div>\n\n\t\t\t\t<div class="code"><pre><span class="ln">286</span> $this->runAction($action);\n<span class="ln">287</span> else\n<span class="ln">288</span> {\n<span class="ln">289</span> $priorAction=$this->_action;\n<span class="ln">290</span> $this->_action=$action;\n<span class="error"><span class="ln error-ln">291</span> CFilterChain::create($this,$action,$filters)->run();\n</span><span class="ln">292</span> $this->_action=$priorAction;\n<span class="ln">293</span> }\n<span class="ln">294</span> }\n<span class="ln">295</span> \n<span class="ln">296</span> /**\n</pre></div>\t\t\t</td>\n\t\t</tr>\n\t\t\t\t\t\t<tr class="trace core collapsed">\n\t\t\t<td class="number">\n\t\t\t\t#9\t\t\t</td>\n\t\t\t<td class="content">\n\t\t\t\t<div class="trace-file">\n\t\t\t\t\t\t\t\t\t\t\t<div class="plus">+</div>\n\t\t\t\t\t\t<div class="minus"></div>\n\t\t\t\t\t\t\t\t\t\t /home/mb/app/protected/vendor/yiisoft/yii/framework/web/CController.php(265): <strong>CController</strong>-><strong>runActionWithFilters</strong>(CInlineAction, array(array("application.filters.InternalUsersFilter")))\t\t\t\t</div>\n\n\t\t\t\t<div class="code"><pre><span class="ln">260</span> {\n<span class="ln">261</span> if(($parent=$this->getModule())===null)\n<span class="ln">262</span> $parent=Yii::app();\n<span class="ln">263</span> if($parent->beforeControllerAction($this,$action))\n<span class="ln">264</span> {\n<span class="error"><span class="ln error-ln">265</span> $this->runActionWithFilters($action,$this->filters());\n</span><span class="ln">266</span> $parent->afterControllerAction($this,$action);\n<span class="ln">267</span> }\n<span class="ln">268</span> }\n<span class="ln">269</span> else\n<span class="ln">270</span> $this->missingAction($actionID);\n</pre></div>\t\t\t</td>\n\t\t</tr>\n\t\t\t\t\t\t<tr class="trace core collapsed">\n\t\t\t<td class="number">\n\t\t\t\t#10\t\t\t</td>\n\t\t\t<td class="content">\n\t\t\t\t<div class="trace-file">\n\t\t\t\t\t\t\t\t\t\t\t<div class="plus">+</div>\n\t\t\t\t\t\t<div class="minus"></div>\n\t\t\t\t\t\t\t\t\t\t /home/mb/app/protected/vendor/yiisoft/yii/framework/web/CWebApplication.php(282): <strong>CController</strong>-><strong>run</strong>("saveCoverFromOmById")\t\t\t\t</div>\n\n\t\t\t\t<div class="code"><pre><span class="ln">277</span> {\n<span class="ln">278</span> list($controller,$actionID)=$ca;\n<span class="ln">279</span> $oldController=$this->_controller;\n<span class="ln">280</span> $this->_controller=$controller;\n<span class="ln">281</span> $controller->init();\n<span class="error"><span class="ln error-ln">282</span> $controller->run($actionID);\n</span><span class="ln">283</span> $this->_controller=$oldController;\n<span class="ln">284</span> }\n<span class="ln">285</span> else\n<span class="ln">286</span> throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".',\n<span class="ln">287</span> array('{route}'=>$route===''?$this->defaultController:$route)));\n</pre></div>\t\t\t</td>\n\t\t</tr>\n\t\t\t\t\t\t<tr class="trace core collapsed">\n\t\t\t<td class="number">\n\t\t\t\t#11\t\t\t</td>\n\t\t\t<td class="content">\n\t\t\t\t<div class="trace-file">\n\t\t\t\t\t\t\t\t\t\t\t<div class="plus">+</div>\n\t\t\t\t\t\t<div class="minus"></div>\n\t\t\t\t\t\t\t\t\t\t /home/mb/app/protected/vendor/yiisoft/yii/framework/web/CWebApplication.php(141): <strong>CWebApplication</strong>-><strong>runController</strong>("om/tpStageCover/saveCoverFromOmById")\t\t\t\t</div>\n\n\t\t\t\t<div class="code"><pre><span class="ln">136</span> foreach(array_splice($this->catchAllRequest,1) as $name=>$value)\n<span class="ln">137</span> $_GET[$name]=$value;\n<span class="ln">138</span> }\n<span class="ln">139</span> else\n<span class="ln">140</span> $route=$this->getUrlManager()->parseUrl($this->getRequest());\n<span class="error"><span class="ln error-ln">141</span> $this->runController($route);\n</span><span class="ln">142</span> }\n<span class="ln">143</span> \n<span class="ln">144</span> /**\n<span class="ln">145</span> * Registers the core application components.\n<span class="ln">146</span> * This method overrides the parent implementation by registering additional core components.\n</pre></div>\t\t\t</td>\n\t\t</tr>\n\t\t\t\t\t\t<tr class="trace core collapsed">\n\t\t\t<td class="number">\n\t\t\t\t#12\t\t\t</td>\n\t\t\t<td class="content">\n\t\t\t\t<div class="trace-file">\n\t\t\t\t\t\t\t\t\t\t\t<div class="plus">+</div>\n\t\t\t\t\t\t<div class="minus"></div>\n\t\t\t\t\t\t\t\t\t\t /home/mb/app/protected/vendor/yiisoft/yii/framework/base/CApplication.php(185): <strong>CWebApplication</strong>-><strong>processRequest</strong>()\t\t\t\t</div>\n\n\t\t\t\t<div class="code"><pre><span class="ln">180</span> public function run()\n<span class="ln">181</span> {\n<span class="ln">182</span> if($this->hasEventHandler('onBeginRequest'))\n<span class="ln">183</span> $this->onBeginRequest(new CEvent($this));\n<span class="ln">184</span> register_shutdown_function(array($this,'end'),0,false);\n<span class="error"><span class="ln error-ln">185</span> $this->processRequest();\n</span><span class="ln">186</span> if($this->hasEventHandler('onEndRequest'))\n<span class="ln">187</span> $this->onEndRequest(new CEvent($this));\n<span class="ln">188</span> }\n<span class="ln">189</span> \n<span class="ln">190</span> /**\n</pre></div>\t\t\t</td>\n\t\t</tr>\n\t\t\t\t\t\t<tr class="trace app collapsed">\n\t\t\t<td class="number">\n\t\t\t\t#13\t\t\t</td>\n\t\t\t<td class="content">\n\t\t\t\t<div class="trace-file">\n\t\t\t\t\t\t\t\t\t\t\t<div class="plus">+</div>\n\t\t\t\t\t\t<div class="minus"></div>\n\t\t\t\t\t\t\t\t\t\t /home/mb/app/public/index.php(7): <strong>CApplication</strong>-><strong>run</strong>()\t\t\t\t</div>\n\n\t\t\t\t<div class="code"><pre><span class="ln">2</span> \n<span class="ln">3</span> require_once __DIR__ . '/../protected/bootstrap/app.php';\n<span class="ln">4</span> \n<span class="ln">5</span> $config = __DIR__ . '/../protected/config/main.php';\n<span class="ln">6</span> \n<span class="error"><span class="ln error-ln">7</span> Yii::createApplication(App\\Foundation\\WebApplication::class, $config)->run();\n</span></pre></div>\t\t\t</td>\n\t\t</tr>\n\t\t\t\t</table>\n\t</div>\n\n\t<div class="version">\n\t\t2024-06-11 13:07:22 Apache/2.4.7 (Ubuntu) <a href="http://www.yiiframework.com/">Yii Framework</a>/1.1.25\t</div>\n</div>\n\n<script type="text/javascript">\n/*<![CDATA[*/\nvar traceReg = new RegExp("(^|\\\\s)trace-file(\\\\s|$)");\nvar collapsedReg = new RegExp("(^|\\\\s)collapsed(\\\\s|$)");\n\nvar e = document.getElementsByTagName("div");\nfor(var j=0,len=e.length;j<len;j++){\n\tif(traceReg.test(e[j].className)){\n\t\te[j].onclick = function(){\n\t\t\tvar trace = this.parentNode.parentNode;\n\t\t\tif(collapsedReg.test(trace.className))\n\t\t\t\ttrace.className = trace.className.replace("collapsed", "expanded");\n\t\t\telse\n\t\t\t\ttrace.className = trace.className.replace("expanded", "collapsed");\n\t\t}\n\t}\n}\n/*]]>*/\n</script>\n\n</body>\n</html>\n'
Function Calls
None |
Stats
MD5 | acea53bcec0f58adf3da66f6e030dedb |
Eval Count | 0 |
Decode Time | 88 ms |