403Webshell
Server IP : 61.19.30.66  /  Your IP : 216.73.216.80
Web Server : Apache/2.2.22 (Ubuntu)
System : Linux klw 3.11.0-15-generic #25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 UTC 2014 x86_64
User : www-data ( 33)
PHP Version : 5.3.10-1ubuntu3.48
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
MySQL : ON  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/book/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/book/print.php
<html>
<head>
<title>klw</title>
</head>
<body>

<?php
$objConnect = mysql_connect("localhost","root","klw3322") or die("Error Connect to Database");
$objDB = mysql_select_db("klw");
mysql_query("SET character_set_results=utf8");
mysql_query("SET character_set_results=tis620");
mysql_query("SET character_set_client=tis620");
mysql_query("SET character_set_connection=tis620");
$strSQL = "SELECT * FROM memberregis    where id='$_GET[id]'";
$objQuery = mysql_query($strSQL);
$resultData = array();
for ($i=0;$i<mysql_num_rows($objQuery);$i++) {
	$result = mysql_fetch_array($objQuery);
	array_push($resultData,$result);
    $idm=$result["id"];
	$prefix=$result["prefix"];
	$name=$result["name"];
	$surname=$result["surname"];
	$namee=$result["namee"];
	$father=$result["father"];
	$mather=$result["mather"];
	$school1=$result["school1"];
	$school2=$result["school2"];
	$pin=$result["pin"];

	$idstudent=$result["idstudent"];
	$signup=$result["signup"];
	$signup2='ภายในวันที่ 27 เมษายน 2566';
    $signup3 = date("Y")+543;

    


	$crsql="SELECT pp1 FROM `memberregis`
	WHERE pin = '$pin'" ;
	$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
	$dcrd = mysql_fetch_array($slr);
	$pp1=$dcrd[0];


	$crsql="SELECT pp2 FROM `memberregis`
	WHERE pin = '$pin'" ;
	$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
	$dcrd = mysql_fetch_array($slr);
	$pp2=$dcrd[0];


	$crsql="SELECT pp6 FROM `memberregis`
	WHERE pin = '$pin'" ;
	$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
	$dcrd = mysql_fetch_array($slr);
	$pp6=$dcrd[0];
	

	$crsql="SELECT pp7 FROM `memberregis`
	WHERE pin = '$pin'" ;
	$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
	$dcrd = mysql_fetch_array($slr);
	$pp7=$dcrd[0];


	$crsql="SELECT pp8 FROM `memberregis`
	WHERE pin = '$pin'" ;
	$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
	$dcrd = mysql_fetch_array($slr);
	$pp8=$dcrd[0];


	$crsql="SELECT report1 FROM `memberregis`
	WHERE pin = '$pin'" ;
	$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
	$dcrd = mysql_fetch_array($slr);
	$report1=$dcrd[0];
}
//************************//

////////////////
	


	require('fpdf.php');

	define('FPDF_FONTPATH','font/');

	$pdf=new FPDF( 'P' , 'mm' , 'A4' );
	$pdf->AddPage();
	$pdf->AddFont('THSarabunNew','','THSarabunNew.php');
	$pdf->SetFont('THSarabunNew','',16);
	

	//$pdf->Text( 35 , 42 , iconv( 'UTF-8','TIS-620','1.(....) นักเรียนโรงเรียนเดิมคัดเลือกตามศักยภาพ'),0,1,"C");
	//$pdf->Text( 35 , 52 , iconv( 'UTF-8','TIS-620','2.(....) โรงเรียนทั่วไปสอบคัดเลือก'),0,1,"C");
	//$pdf->Text( 120 , 52 , iconv( 'UTF-8','TIS-620','3.(....) ความสามารถพิเศษ'),0,1,"C");
	//$pdf->Text( 120 , 42 , iconv( 'UTF-8','TIS-620','4.(....) เงื่อนไขพิเศษ'),0,1,"C");
	
	//$pdf->Text( 35 , 42 , iconv( 'UTF-8','TIS-620','1.(....) ห้องเรียนพิเศษวิทย์'),0,1,"C");
	//$pdf->Text( 35 , 52 , iconv( 'UTF-8','TIS-620','2.(....) ห้องเรียนพิเศษภาษา'),0,1,"C");
	
	
	//$pdf->Text(90,42,$namepiset,1);
	
	
	$pdf->AddFont('THSarabunNew','','THSarabunNew.php');
	$pdf->SetFont('THSarabunNew','',16);
	$pdf->Image('images/school.png',90,3,25,25,'','http://gpa.klws.ac.th',"C");
	//$pdf->Image('images/true2.png',49,104,5,5,'','',"C");

   

if($pp1>"0")
{
$pdf->Image('images/true2.png',49,102,5,5,'','',"C");
}
if($pp2>"0")
{
$pdf->Image('images/true2.png',49,108,5,5,'','',"C");
}
if($pp6>"0")
{
$pdf->Image('images/true2.png',49,114,5,5,'','',"C");
}
if($pp7>"0")
{
$pdf->Image('images/true2.png',49,120,5,5,'','',"C");
}
if($pp8>"0")
{
$pdf->Image('images/true2.png',49,127,5,5,'','',"C");
}
if($report1>"0")
{
$pdf->Image('images/true2.png',49,132,5,5,'','',"C");
}


	$pdf->Text( 15 , 10 , iconv( 'UTF-8','TIS-620','เลขที่เอกสาร'),0,1,"C");
	$pdf->Text(40,10,$result["id"],1);
	$pdf->Text( 100 , 50 , iconv( 'UTF-8','TIS-620','โรงเรียนกันทรลักษ์วิทยา'),0,1,"C");
	$pdf->Text( 100 , 56 , iconv( 'UTF-8','TIS-620','อ.กันทรลักษ์ จ.ศรีสะเกษ สพม.ศกยส'),0,1,"C");
	$pdf->Text( 100 , 62 , iconv( 'UTF-8','TIS-620','วันที่................เดือน....................พ.ศ............'),0,1,"C");
	$pdf->Text( 20 , 80 , iconv( 'UTF-8','TIS-620','เรียน ผู้อำนวยการสถานศึกษาโรงเรียนกันทรลักษ์วิทยา'),0,1,"C");
	$pdf->Text( 20 , 88 , iconv( 'UTF-8','TIS-620','ข้าพเจ้า...............................................................................................................อยู่บ้านเลขที่..................หมู่ที่.....................'),0,1,"C");
	$pdf->Text( 20 , 95 , iconv( 'UTF-8','TIS-620','ถนน........................ตำบล..............................................อำเภอ........................................จังหวัด..........................................'),0,1,"C");
	$pdf->Text( 20 , 102 , iconv( 'UTF-8','TIS-620','มีความประสงค์ขอหลักฐานและเอกสารทางการศึกษาดังนี้'),0,1,"C");
	$pdf->Text( 47 , 108 , iconv( 'UTF-8','TIS-620','........ใบ ปพ.1 ระเบียนแสดงผลการเรียน (แนบรูปถ่าย)'),0,1,"C");
	$pdf->Text( 47 , 114 , iconv( 'UTF-8','TIS-620','........ใบ ปพ.2 ใบแทน ใบประกาศนียบัตร'),0,1,"C");
	$pdf->Text( 47 , 120 , iconv( 'UTF-8','TIS-620','........ใบ ปพ.6 ใบแสดงผลการเรียนรายภาค'),0,1,"C");
	$pdf->Text( 47 , 126 , iconv( 'UTF-8','TIS-620','........ใบ ปพ.7 ใบรับรองการเป็นนักเรียน (แนบรูปถ่าย)'),0,1,"C");
	$pdf->Text( 47 , 132 , iconv( 'UTF-8','TIS-620','........ใบ รับรองความประพฤติ'),0,1,"C");
	$pdf->Text( 47 , 138 , iconv( 'UTF-8','TIS-620','........อื่นๆ........................................................................................................................................'),0,1,"C");
	$pdf->Text( 65 , 145 , iconv( 'UTF-8','TIS-620','เลขประจำตัวนักเรียน......................ปีการศึกษาที่จบ...............ระดับชั้น ม............./............'),0,1,"C");
	//$pdf->Text( 32 , 52 , iconv( 'UTF-8','TIS-620','ข้อมูลทั่วไปของนักเรียน'),0,1,"C");

	
	$pdf->Text( 47 , 157 , iconv( 'UTF-8','TIS-620','ชื่อ -สกุล (นักเรียน) ......................................................เลขประจำตัว........................ระดับชั้น ม......./.......'),0,1,"C");

	$pdf->Text( 47 , 169 , iconv( 'UTF-8','TIS-620','ชื่อ -สกุล (นักเรียน ภาษาอังกฤษ) ...............................................................................................................'),0,1,"C");
	$pdf->Text( 47 , 175 , iconv( 'UTF-8','TIS-620','ชื่อ -สกุล (บิดา ภาษาอังกฤษ) .....................................................................................................................'),0,1,"C");
	$pdf->Text( 47 , 181 , iconv( 'UTF-8','TIS-620','ชื่อ -สกุล (มารดา ภาษาอังกฤษ) .................................................................................................................'),0,1,"C");
	$pdf->Text( 20 , 187 , iconv( 'UTF-8','TIS-620','เหตุผลที่ขอรับเอกสารเพื่อ ........................................................................................................................................................'),0,1,"C");
	$pdf->Text( 47 , 195 , iconv( 'UTF-8','TIS-620','จึงเรียนมาเพื่อโปรดพิจารณา'),0,1,"C");
	$pdf->Text( 100 , 202 , iconv( 'UTF-8','TIS-620','(ลงชื่อ).................................................ผู้ยื่นคำร้อง'),0,1,"C");
	$pdf->Text( 106 , 210 , iconv( 'UTF-8','TIS-620','(........................................................)'),0,1,"C");
	$pdf->Text( 20 , 220 , iconv( 'UTF-8','TIS-620','ฝ่ายบริหารงานงบประมาณ'),0,1,"C");
	$pdf->Text( 20 , 226 , iconv( 'UTF-8','TIS-620','.........................................'),0,1,"C");
	$pdf->Text( 20 , 232 , iconv( 'UTF-8','TIS-620','.........................................'),0,1,"C");
	$pdf->Text( 20 , 238 , iconv( 'UTF-8','TIS-620','ลงชื่อ................................'),0,1,"C");
	$pdf->Text( 30 , 244 , iconv( 'UTF-8','TIS-620','(............................)'),0,1,"C");
	$pdf->Text( 20 , 250 , iconv( 'UTF-8','TIS-620','ตำแหน่ง........................'),0,1,"C");
	$pdf->Text( 140 , 220 , iconv( 'UTF-8','TIS-620','ความเห็นของผู้อำนวยการโรงเรียน'),0,1,"C");
	$pdf->Text( 140 , 226 , iconv( 'UTF-8','TIS-620','.................................'),0,1,"C");
	$pdf->Text( 140 , 232 , iconv( 'UTF-8','TIS-620','.................................'),0,1,"C");



	$pdf->Text( 80 , 220 , iconv( 'UTF-8','TIS-620','ฝ่ายบริหารงานวิชาการ'),0,1,"C");
	$pdf->Text( 80 , 226 , iconv( 'UTF-8','TIS-620','.........................................'),0,1,"C");
	$pdf->Text( 80 , 232 , iconv( 'UTF-8','TIS-620','.........................................'),0,1,"C");
	$pdf->Text( 80 , 238 , iconv( 'UTF-8','TIS-620','ลงชื่อ................................'),0,1,"C");
	$pdf->Text( 90 , 244 , iconv( 'UTF-8','TIS-620','(............................)'),0,1,"C");
	$pdf->Text( 80 , 250 , iconv( 'UTF-8','TIS-620','ตำแหน่ง........................'),0,1,"C");

	$pdf->Text( 140 , 220 , iconv( 'UTF-8','TIS-620','ความเห็นของผู้อำนวยการโรงเรียน'),0,1,"C");
	$pdf->Text( 140 , 226 , iconv( 'UTF-8','TIS-620','.................................'),0,1,"C");
	$pdf->Text( 140 , 232 , iconv( 'UTF-8','TIS-620','.................................'),0,1,"C");
	$pdf->Text( 140 , 238 , iconv( 'UTF-8','TIS-620','ลงชื่อ................................'),0,1,"C");
	$pdf->Text( 140 , 244 , iconv( 'UTF-8','TIS-620','ตำแหน่ง ผู้อำนวยการสถานศึกษา'),0,1,"C");
	$pdf->Text( 140 , 250 , iconv( 'UTF-8','TIS-620','โรงเรียนกันทรลักษ์วิทยา'),0,1,"C");
	$pdf->Text( 50 , 280 , iconv( 'UTF-8','TIS-620','รับเอกสารวันที่...........................ผู้รับ...............................................................................'),0,1,"C");

	$pdf->Text(35,87,$prefix.$name.'  '.$surname,1);
	$pdf->Text(110,208,$name.'  '.$surname,1);
	$pdf->Text(105,168,$namee,1);
	$pdf->Text(105,174,$father,1);
	$pdf->Text(105,180,$mather,1);
	$pdf->Text(153,87,$result["homeid"],1);
	$pdf->Text(177,87,$result["muid"],1);
	$pdf->Text(58,94,$result["tumbol"],1);
	$pdf->Text(110,94,$result["ampher"],1);
	$pdf->Text(157,94,$result["districs"],1);
	$pdf->Text(142,144,$result["schooloutyear"],1);
	$pdf->Text(98,144,$result["idtest"],1);
	$pdf->Text(65,137,$result["report1"],1);
	$pdf->Text(70,186,$result["unitye"],1);
	$pdf->Text(77,156,$result["surnamee"],1);



	


	


	

	




	$pdf->SetFont('THSarabunNew','U');
	$pdf->Text( 70 , 40 , iconv( 'UTF-8','TIS-620','แบบคำร้องขอเอกสารหลักฐานทางการศึกษา'),0,1,"C");
	$pdf->Text( 20 , 145 , iconv( 'UTF-8','TIS-620','กรณีเอกสารเป็นของตนเอง '),0,1,"C");
	$pdf->Text( 20 , 151 , iconv( 'UTF-8','TIS-620','กรณีเป็นผู้ปกครองนักเรียน '),0,1,"C");
	$pdf->Text( 20 , 163 , iconv( 'UTF-8','TIS-620','กรณีขอเป็นภาษาอังกฤษ '),0,1,"C");
	
	
	
	


	//$pdf->Text(76,156,1,1);
	//$pdf->Text(80,156,$namesc1,1);

	//$pdf->Text(76,162,2,1);
	//$pdf->Text(80,162,$namesc2,1);


	//$pdf->Text(76,143,2,1);
	//$pdf->Text(80,143,$planname2,1);


	//$pdf->Text(76,160,3,1);
	//$pdf->Text(80,160,$planname3,1);



	

		
	$pdf->Output("MyPDF/$result[id].pdf","F");
?>
	PDF Click <a href="MyPDF/<? echo $idm;?>.pdf">Download</a> to Download
</body>
</html>

Youez - 2016 - github.com/yon3zu
LinuXploit