__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
/**
* @package dompdf
* @link https://github.com/dompdf/dompdf
* @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License
*/
namespace Dompdf;
/**
* Executes inline PHP code during the rendering process
*
* @package dompdf
*/
class PhpEvaluator
{
/**
* @var Canvas
*/
protected $_canvas;
/**
* PhpEvaluator constructor.
* @param Canvas $canvas
*/
public function __construct(Canvas $canvas)
{
$this->_canvas = $canvas;
}
/**
* @param $code
* @param array $vars
*/
public function evaluate($code, $vars = [])
{
if (!$this->_canvas->get_dompdf()->getOptions()->getIsPhpEnabled()) {
return;
}
// Set up some variables for the inline code
$pdf = $this->_canvas;
$fontMetrics = $pdf->get_dompdf()->getFontMetrics();
$PAGE_NUM = $pdf->get_page_number();
$PAGE_COUNT = $pdf->get_page_count();
// Override those variables if passed in
foreach ($vars as $k => $v) {
$$k = $v;
}
eval($code);
}
/**
* @param Frame $frame
*/
public function render(Frame $frame)
{
$this->evaluate($frame->get_node()->nodeValue);
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| Adapter | Folder | 0775 |
|
|
| Css | Folder | 0775 |
|
|
| Exception | Folder | 0775 |
|
|
| Frame | Folder | 0775 |
|
|
| FrameDecorator | Folder | 0775 |
|
|
| FrameReflower | Folder | 0775 |
|
|
| Image | Folder | 0775 |
|
|
| Positioner | Folder | 0775 |
|
|
| Renderer | Folder | 0775 |
|
|
| Canvas.php | File | 14.51 KB | 0664 |
|
| CanvasFactory.php | File | 1.47 KB | 0664 |
|
| Cellmap.php | File | 27.82 KB | 0664 |
|
| Dompdf.php | File | 41.49 KB | 0664 |
|
| Exception.php | File | 551 B | 0664 |
|
| FontMetrics.php | File | 20.31 KB | 0664 |
|
| Frame.php | File | 30.98 KB | 0664 |
|
| Helpers.php | File | 41.81 KB | 0664 |
|
| JavascriptEmbedder.php | File | 929 B | 0664 |
|
| LineBox.php | File | 10 KB | 0664 |
|
| Options.php | File | 36.08 KB | 0664 |
|
| PhpEvaluator.php | File | 1.26 KB | 0664 |
|
| Renderer.php | File | 8.78 KB | 0664 |
|