Sh3ll
OdayForums


Server : Apache
System : Linux profile 3.10.0-1160.88.1.el7.x86_64 #1 SMP Tue Mar 7 15:41:52 UTC 2023 x86_64
User : apache ( 48)
PHP Version : 8.0.28
Disable Function : NONE
Directory :  /var/www/html/mmishra/erp-15-06-18/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //var/www/html/mmishra/erp-15-06-18/z.php
<?php
echo date("hhiiss");
exit;
try {
 	$dbconn	= '';
	$dbhost	= 'localhost';
	$dbuser	= 'erp';
	$dbpass	= 'erpa2018';
	$dbname	= 'erp_aaa';
	
	$dbconn = new PDO("mysql:host=$dbhost;dbname=$dbname", $dbuser, $dbpass);
    	$rows = $dbconn->query('SELECT * from aaa_programs');
    	foreach ($rows as $row) {
        	//print_r($row);
        	print($row['programCode']);
    	}
    	$dbcon = null;
} catch (PDOException $e) {
    	print "Error!: " . $e->getMessage() . "<br/>";
    	die();
}
exit;


require('includes/fpdf.php');

class PDF extends FPDF {
  	function Header() {
      		$this->Image('logo.png',10,8,33);
      		$this->SetFont('Helvetica','B',15);
      		$this->SetXY(50, 10);
      		$this->Cell(0,10,'Indian Institute of Information Technology Allahabad',1,0,'C');
      		$this->SetFont('Helvetica','B',10);
      		$this->SetXY(55, 20);
      		$this->Cell(0,10,'Devghat, Jhalwa, Allahabad-211015',0,0,'C');
  	}

  	function Footer() {
      		$this->SetY(-18);
		$this->SetDrawColor(188,188,188);
		$this->SetLineWidth(1);
		$this->Line(startpoint, 45, endpoint-50, 45);

		$this->SetXY(65,-15);
      		$this->SetFont('Helvetica','I',8);
      		$this->Write(5, 'Phone: 532-2922025, Email: contact@iiita.ac.in');
    	}
}

$pdf = new PDF('P', 'mm', 'A4');

$pdf->SetDisplayMode(real,'default');
$pdf->AddPage();
$pdf->SetTitle('Registration Receipt - 2018');
$pdf->SetAuthor('ERP & A');

$pdf->SetFillColor(0,0,0);
$pdf->Ln(10); //Break
$pdf->SetFont('Helvetica','U',10);
$str = 'This is a test PDF';
$pdf->Write(5, $str);

//$pdf->Line(20, 45, 210-20, 45); // 20mm from each edge
$pdf->Output('example2.pdf','D');

?>

ZeroDay Forums Mini