Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php namespace Webkul\Core\View\Compilers; use Illuminate\View\Compilers\BladeCompiler ..
Decoded Output download
<?php
namespace Webkul\Core\View\Compilers;
use Illuminate\View\Compilers\BladeCompiler as BaseBladeCompiler;
class BladeCompiler extends BaseBladeCompiler
{
/**
* Append the file path to the compiled string.
*
* @param string $contents
* @return string
*/
protected function appendFilePath($contents)
{
$tokens = $this->getOpenAndClosingPhpTokens($contents);
if (
config('view.tracer')
&& strpos($this->getPath(), 'tracer/style.blade.php') == false
&& strpos($this->getPath(), 'master.blade.php') == false
) {
$finalPath = str_replace('/Providers/..', '', str_replace(base_path(), '', $this->getPath()));
$contents = '<div class="path-hint" data-toggle="tooltip" data-title="'.$finalPath.'" data-id="'.uniqid().'"><span class="testing"></span>'.$contents.'</div>';
}
if (
$tokens->isNotEmpty()
&& $tokens->last() !== T_CLOSE_TAG
) {
$contents .= ' ?>';
}
return $contents."<?php /**PATH {$this->getPath()} ENDPATH**/ ?>";
}
}
Did this file decode correctly?
Original Code
<?php
namespace Webkul\Core\View\Compilers;
use Illuminate\View\Compilers\BladeCompiler as BaseBladeCompiler;
class BladeCompiler extends BaseBladeCompiler
{
/**
* Append the file path to the compiled string.
*
* @param string $contents
* @return string
*/
protected function appendFilePath($contents)
{
$tokens = $this->getOpenAndClosingPhpTokens($contents);
if (
config('view.tracer')
&& strpos($this->getPath(), 'tracer/style.blade.php') == false
&& strpos($this->getPath(), 'master.blade.php') == false
) {
$finalPath = str_replace('/Providers/..', '', str_replace(base_path(), '', $this->getPath()));
$contents = '<div class="path-hint" data-toggle="tooltip" data-title="'.$finalPath.'" data-id="'.uniqid().'"><span class="testing"></span>'.$contents.'</div>';
}
if (
$tokens->isNotEmpty()
&& $tokens->last() !== T_CLOSE_TAG
) {
$contents .= ' ?>';
}
return $contents."<?php /**PATH {$this->getPath()} ENDPATH**/ ?>";
}
}
Function Calls
None |
Stats
MD5 | 56b349e2618893c5ce0c84f443dad022 |
Eval Count | 0 |
Decode Time | 90 ms |