| Server IP : 172.67.201.108 / Your IP : 216.73.216.201 Web Server : Apache/2.4.68 (Amazon Linux) OpenSSL/3.5.5 System : Linux ip-172-31-69-123.ec2.internal 6.1.176-223.369.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Jul 24 13:34:27 UTC 2026 x86_64 User : ec2-user ( 1000) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/connections/mod/ |
Upload File : |
<?php
session_start();
if (($_SESSION['logged_in'] ?? NULL) == true) :
ini_set('display_errors', '0');
ini_set("pcre.backtrack_limit","10000000");
ini_set("memory_limit","1024M");
ini_set('user_agent', 'Mozilla/5.0');
$mpdf = new \Mpdf\Mpdf([
'format' => 'Letter',
'margin_left' => 12,
'margin_right' => 12,
'margin_top' => 20,
'margin_bottom' => 15,
'margin_header' => 10,
'margin_footer' => 10,
'orientation' => 'L',
]);
//$mpdf->showImageErrors = true;
$mpdf->debug = false;
$mpdf->keep_table_proportions = true;
//$mpdf->shrink_tables_to_fit = 1;
$mpdf->SetProtection(array('copy','print'));
$mpdf->SetTitle(APP_TITLE . ' - Report');
$mpdf->SetAuthor(APP_COMPANY);
//$mpdf->SetWatermarkText("MitzvahOrganizer.com");
//$mpdf->showWatermarkText = true;
//$mpdf->watermark_font = 'DejaVuSansCondensed';
//$mpdf->watermarkTextAlpha = 0.1;
$mpdf->SetHTMLHeader('<table width="100%" style="vertical-align: bottom; font-family: serif; font-size: 10pt; color: #000000; font-weight: bold; font-style: italic;"><tr>'.
'<td width="33%"><span style="font-weight: bold; font-style: italic;">' . APP_TITLE . '</span></td>'.
'<td width="33%" align="center" style="font-weight: bold; font-style: italic;">'.$_GET['header'].'</td>'.
'<td width="33%" style="text-align: right; ">' . APP_COMPANY . '</td>'.
'</tr></table>');
$mpdf->SetHTMLFooter('<table width="100%" style="vertical-align: bottom; font-family: serif; font-size: 8pt; color: #000000; font-weight: bold; font-style: italic;"><tr>'.
'<td width="33%"><span style="font-weight: bold; font-style: italic;">{DATE m/j/Y}</span></td>'.
'<td width="33%" align="center" style="font-weight: bold; font-style: italic;">Page {PAGENO} of {nbpg}</td>'.
'<td width="33%" style="text-align: right; ">User: '.$_SESSION['user_name'].'</td>'.
'</tr></table>');
$mpdf->SetDisplayMode('fullpage');
$html = $_REQUEST['pdf_html'];
//echo $html;
//echo strlen($html);
$mpdf->WriteHTML($html);
$mpdf->Output();
else :
echo 'Not Authorized!';
endif;