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 :
print_report.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; } th{ font-size: 9pt; } td{ font-size: 8pt; } /*table{table-layout:fixed;}*/ /*td,th{overflow:hidden;}*/ </style> </head> <body> <?php include("../odbc.php"); session_start(); if ($_SESSION['session']) $session=updateSession($_SESSION["session"]); else $session=''; if(!$session){ $_SESSION["session"] = false; $_SESSION['success'] = 3; $_SESSION['success_msg'] = "Please Login!"; echo "<script>window.location.replace('login.php?success=3');</script>"; exit(); } $type = (isset($_POST['type'])) ? $_POST['type'] : '' ; $type_x = explode('_',$type); if($type == 'declaration'){ $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'] : '' ; $page = "declaration_".$_POST['report']; }else if($type == 'user'){ $uname = (isset($_GET['uname'])) ? $_GET['uname'] : '' ; $idRoles = (isset($_GET['idRoles'])) ? $_GET['idRoles'] : '' ; $page = "user_1"; }else if($type == 'application'){ $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'] : '' ; $page = "application_1"; }else if($type == 'site_1' || $type == 'site_2'){ $page = $type; }else if($type == 'audit'){ $searchme = (isset($_POST['searchme'])) ? $_POST['searchme'] : '' ; $user = (isset($_POST['user'])) ? $_POST['user'] : '' ; $role = (isset($_POST['role'])) ? $_POST['role'] : '' ; $from = (isset($_POST['from'])) ? $_POST['from'] : '' ; $to = (isset($_POST['to'])) ? $_POST['to'] : '' ; $descr = (isset($_POST['descr'])) ? $_POST['descr'] : '' ; $page = "audit_trail_1"; } include("{$page}.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; } ?>