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 use PhpOffice\PhpSpreadsheet\Spreadsheet; use PhpOffice\PhpSpreadsheet\Writer\Pdf\M..

Decoded Output download

<?php

use PhpOffice\PhpSpreadsheet\Spreadsheet;
use PhpOffice\PhpSpreadsheet\Writer\Pdf\Mpdf2;

require __DIR__ . '/../Header.php';
require_once __DIR__ . '/Mpdf2.php';

$spreadsheet = new Spreadsheet();

$helper->log('Show print grid lines');
$sheet = $spreadsheet->getActiveSheet();
$sheet->setPrintGridLines(true);

$sheet->getCell('A1')->setValue('First Cell');
$sheet->getCell('A2')->setValue('Second Cell');
$sheet->getCell('B1')->setValue('Third Cell');
$sheet->getCell('B2')->setValue('Fourth Cell');

$helper->log('Set style to unusual font');
$sheet->getStyle('A1:B2')->getFont()->setName('Shadows Into Light');

$helper->log('Write to Mpdf');
$writer = new Mpdf2($spreadsheet);
$filename = $helper->getFileName(__FILE__, 'pdf');
$writer->save($filename);
$helper->log("Saved $filename");
if (PHP_SAPI !== 'cli') {
    echo '<a href="/download.php?type=pdf&name=' . basename($filename) . '">Download ' . basename($filename) . '</a><br />';
}
$spreadsheet->disconnectWorksheets();
 ?>

Did this file decode correctly?

Original Code

<?php

use PhpOffice\PhpSpreadsheet\Spreadsheet;
use PhpOffice\PhpSpreadsheet\Writer\Pdf\Mpdf2;

require __DIR__ . '/../Header.php';
require_once __DIR__ . '/Mpdf2.php';

$spreadsheet = new Spreadsheet();

$helper->log('Show print grid lines');
$sheet = $spreadsheet->getActiveSheet();
$sheet->setPrintGridLines(true);

$sheet->getCell('A1')->setValue('First Cell');
$sheet->getCell('A2')->setValue('Second Cell');
$sheet->getCell('B1')->setValue('Third Cell');
$sheet->getCell('B2')->setValue('Fourth Cell');

$helper->log('Set style to unusual font');
$sheet->getStyle('A1:B2')->getFont()->setName('Shadows Into Light');

$helper->log('Write to Mpdf');
$writer = new Mpdf2($spreadsheet);
$filename = $helper->getFileName(__FILE__, 'pdf');
$writer->save($filename);
$helper->log("Saved $filename");
if (PHP_SAPI !== 'cli') {
    echo '<a href="/download.php?type=pdf&name=' . basename($filename) . '">Download ' . basename($filename) . '</a><br />';
}
$spreadsheet->disconnectWorksheets();

Function Calls

None

Variables

None

Stats

MD5 ef9a4189ea436975a424df094052ff06
Eval Count 0
Decode Time 89 ms