One Hat Cyber Team
Your IP :
172.16.0.254
Server IP :
58.26.163.33
Server :
Windows NT DGPENSV2LPKMN 10.0 build 14393 (Windows Server 2016) AMD64
Server Software :
Apache/2.4.46 (Win64) OpenSSL/1.1.1h PHP/7.3.25
PHP Version :
7.3.25
Buat File
|
Buat Folder
Eksekusi
Dir :
C:
/
xampp7
/
htdocs
/
edgpens
/
reports
/
View File Name :
declaration_prt.php
<?php ob_start(); ?> <!DOCTYPE html> <html> <head> <title>Reports</title> <link rel="stylesheet" href="../css/bootstrap.min.css"> <link rel="stylesheet" href="../css/main.css"> <link rel="stylesheet" href="../custom.css"> <style type="text/css"> table, th, td { border: 1px solid #CCC; border-collapse: collapse; } td,th{ padding: 5px; } /*table{table-layout:fixed;}*/ /*td,th{overflow:hidden;}*/ </style> </head> <body> <?php include("../odbc.php"); $report = (isset($_POST['report'])) ? $_POST['report'] : '' ; $period = (isset($_POST['period'])) ? $_POST['period'] : '' ; $year = (isset($_POST['year'])) ? $_POST['year'] : '' ; $month = (isset($_POST['month'])) ? $_POST['month'] : '' ; $sdate = (isset($_POST['sdate'])) ? $_POST['sdate'] : '' ; $edate = (isset($_POST['edate'])) ? $_POST['edate'] : '' ; include("declaration_".$_POST['report'].".php"); ?> </body> </html> <?php $content = ob_get_clean(); $dirname = dirname(__FILE__); $dirnameCut = basename($dirname); $dirnameNew = rtrim($dirname,$dirnameCut); $dirnameNew = rtrim($dirnameNew,'\\'); require_once($dirnameNew.'/pdf/html2pdf.class.php'); try { $html2pdf = new HTML2PDF('P', 'A4', 'en'); $html2pdf->setDefaultFont('helvetica'); $html2pdf->writeHTML($content, isset($_GET['vuehtml'])); $html2pdf->pdf->SetDisplayMode('fullpage'); $html2pdf->Output('reports.pdf', 'I'); } catch(HTML2PDF_exception $e) { echo $e; exit; } ?>