403Webshell
Server IP : 104.21.80.248  /  Your IP : 172.71.28.156
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//certi.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);
if ($rs_cer["id"] == "") {
echo "<script>window.parent.location=\"download.php\"</script>";

} elseif ($rs_cer["gp"] == "นิเทศ") {
//กลุ่มนิเทศ
$pdf->SetAutoPageBreak(false);
$pdf->AddPage();
$pdf->AddFont("sarabun", "", "THSarabun.php");
$pdf->AddFont("sarabunb", "", "THSarabunB.php");
$pdf->Image("img/supervision8.jpg", 0, 0, 297, 210);
$pdf->SetXY(48, 62);
$pdf->SetFont("sarabunb", "", 48);
$pdf->SetTextColor(50, 50, 50);
$pdf->Cell(200, 28, iconv("utf-8", "cp874", $rs_cer["name"]), 0, 1, "C");
$pdf->SetXY(48, 92);
$pdf->SetFont("sarabunb", "", 24);
$pdf->SetTextColor(50, 50, 50);
$pdf->Cell(
200,
28,
iconv("utf-8", "cp874", "เรื่อง " . $rs_cer["subject"]),
0,
1,
"C"
);
$pdf->SetXY(48, 112);
$pdf->SetFont("sarabunb", "", 30);
$pdf->SetTextColor(70, 70, 70);
$pdf->Cell(200, 28, iconv("utf-8", "cp874", $rs_cer["date"]), 0, 1, "C");
$pdf->SetXY(86, 102.5);
$pdf->SetFont("sarabun", "", 21);
$pdf->SetTextColor(80, 80, 80);
$pdf->Cell(200, 28, iconv("utf-8", "cp874", $rs_cer["percent"]), 0, 1, "C");
$pdf->SetXY(239, 195);
$pdf->SetFont("sarabun", "", 14);
$pdf->SetTextColor(0, 0, 0);
$pdf->Cell(
50,
10,
iconv(
"utf-8",
"cp874",
"เลขที่ พคศ.สพม.รบ. " . $rs_cer["id"] . "/2567"
),
0,
1,
"R"
);
$pdf->Output();

} elseif ($rs_cer["gp"] == "อำนวยการ") {
//กลุ่มอำนวยการ66
$pdf->SetAutoPageBreak(false);
$pdf->AddPage();
$pdf->AddFont("sarabun", "", "THSarabun.php");
$pdf->AddFont("sarabunb", "", "THSarabunB.php");
$pdf->Image("img/administration8.jpg", 0, 0, 297, 210);
$pdf->SetXY(48, 62);
$pdf->SetFont("sarabunb", "", 48);
$pdf->SetTextColor(50, 50, 50);
$pdf->Cell(200, 28, iconv("utf-8", "cp874", $rs_cer["name"]), 0, 1, "C");
$pdf->SetXY(48, 92);
$pdf->SetFont("sarabunb", "", 24);
$pdf->SetTextColor(50, 50, 50);
$pdf->Cell(
200,
28,
iconv("utf-8", "cp874", "เรื่อง " . $rs_cer["subject"]),
0,
1,
"C"
);
$pdf->SetXY(48, 112);
$pdf->SetFont("sarabunb", "", 30);
$pdf->SetTextColor(70, 70, 70);
$pdf->Cell(200, 28, iconv("utf-8", "cp874", $rs_cer["date"]), 0, 1, "C");
$pdf->SetXY(86, 102.5);
$pdf->SetFont("sarabun", "", 21);
$pdf->SetTextColor(80, 80, 80);
$pdf->Cell(200, 28, iconv("utf-8", "cp874", $rs_cer["percent"]), 0, 1, "C");
$pdf->SetXY(239, 195);
$pdf->SetFont("sarabun", "", 14);
$pdf->SetTextColor(0, 0, 0);
$pdf->Cell(
50,
10,
iconv(
"utf-8",
"cp874",
"เลขที่ พคศ.สพม.รบ. " . $rs_cer["id"] . "/2567"
),
0,
1,
"R"
);
$pdf->Output();

} elseif ($rs_cer["gp"] == "ตรวจสอบภายใน") {
//หน่วยตรวจสอบภายใน
$pdf->SetAutoPageBreak(false);
$pdf->AddPage();
$pdf->AddFont("sarabun", "", "THSarabun.php");
$pdf->AddFont("sarabunb", "", "THSarabunB.php");
$pdf->Image("img/audit8.jpg", 0, 0, 297, 210);
$pdf->SetXY(48, 62);
$pdf->SetFont("sarabunb", "", 48);
$pdf->SetTextColor(50, 50, 50);
$pdf->Cell(200, 28, iconv("utf-8", "cp874", $rs_cer["name"]), 0, 1, "C");
$pdf->SetXY(48, 92);
$pdf->SetFont("sarabunb", "", 24);
$pdf->SetTextColor(50, 50, 50);
$pdf->Cell(
200,
28,
iconv("utf-8", "cp874", "เรื่อง " . $rs_cer["subject"]),
0,
1,
"C"
);
$pdf->SetXY(48, 112);
$pdf->SetFont("sarabunb", "", 30);
$pdf->SetTextColor(70, 70, 70);
$pdf->Cell(200, 28, iconv("utf-8", "cp874", $rs_cer["date"]), 0, 1, "C");
$pdf->SetXY(86, 102.5);
$pdf->SetFont("sarabun", "", 21);
$pdf->SetTextColor(80, 80, 80);
$pdf->Cell(200, 28, iconv("utf-8", "cp874", $rs_cer["percent"]), 0, 1, "C");
$pdf->SetXY(239, 195);
$pdf->SetFont("sarabun", "", 14);
$pdf->SetTextColor(0, 0, 0);
$pdf->Cell(
50,
10,
iconv(
"utf-8",
"cp874",
"เลขที่ พคศ.สพม.รบ. " . $rs_cer["id"] . "/2567"
),
0,
1,
"R"
);
$pdf->Output();

} elseif ($rs_cer["gp"] == "บริหารงานบุคคล") {
//กลุ่มบุคคล
$pdf->SetAutoPageBreak(false);
$pdf->AddPage();
$pdf->AddFont("sarabun", "", "THSarabun.php");
$pdf->AddFont("sarabunb", "", "THSarabunB.php");
$pdf->Image("img/personal8.jpg", 0, 0, 297, 210);
$pdf->SetXY(48, 62);
$pdf->SetFont("sarabunb", "", 48);
$pdf->SetTextColor(50, 50, 50);
$pdf->Cell(200, 28, iconv("utf-8", "cp874", $rs_cer["name"]), 0, 1, "C");
$pdf->SetXY(48, 92);
$pdf->SetFont("sarabunb", "", 24);
$pdf->SetTextColor(50, 50, 50);
$pdf->Cell(
200,
28,
iconv("utf-8", "cp874", "เรื่อง " . $rs_cer["subject"]),
0,
1,
"C"
);
$pdf->SetXY(48, 112);
$pdf->SetFont("sarabunb", "", 30);
$pdf->SetTextColor(70, 70, 70);
$pdf->Cell(200, 28, iconv("utf-8", "cp874", $rs_cer["date"]), 0, 1, "C");
$pdf->SetXY(86, 102.5);
$pdf->SetFont("sarabun", "", 21);
$pdf->SetTextColor(80, 80, 80);
$pdf->Cell(200, 28, iconv("utf-8", "cp874", $rs_cer["percent"]), 0, 1, "C");
$pdf->SetXY(239, 195);
$pdf->SetFont("sarabun", "", 14);
$pdf->SetTextColor(0, 0, 0);
$pdf->Cell(
50,
10,
iconv(
"utf-8",
"cp874",
"เลขที่ พคศ.สพม.รบ. " . $rs_cer["id"] . "/2567"
),
0,
1,
"R"
);
$pdf->Output();

} elseif ($rs_cer["gp"] == "ส่งเสริมการจัดการศึกษา") {
//กลุ่มส่งเสริม
$pdf->SetAutoPageBreak(false);
$pdf->AddPage();
$pdf->AddFont("sarabun", "", "THSarabun.php");
$pdf->AddFont("sarabunb", "", "THSarabunB.php");
$pdf->Image("img/promotion8.jpg", 0, 0, 297, 210);
$pdf->SetXY(48, 62);
$pdf->SetFont("sarabunb", "", 48);
$pdf->SetTextColor(50, 50, 50);
$pdf->Cell(200, 28, iconv("utf-8", "cp874", $rs_cer["name"]), 0, 1, "C");
$pdf->SetXY(48, 92);
$pdf->SetFont("sarabunb", "", 24);
$pdf->SetTextColor(50, 50, 50);
$pdf->Cell(
200,
28,
iconv("utf-8", "cp874", "เรื่อง " . $rs_cer["subject"]),
0,
1,
"C"
);
$pdf->SetXY(48, 112);
$pdf->SetFont("sarabunb", "", 30);
$pdf->SetTextColor(70, 70, 70);
$pdf->Cell(200, 28, iconv("utf-8", "cp874", $rs_cer["date"]), 0, 1, "C");
$pdf->SetXY(86, 102.5);
$pdf->SetFont("sarabun", "", 21);
$pdf->SetTextColor(80, 80, 80);
$pdf->Cell(200, 28, iconv("utf-8", "cp874", $rs_cer["percent"]), 0, 1, "C");
$pdf->SetXY(239, 195);
$pdf->SetFont("sarabun", "", 14);
$pdf->SetTextColor(0, 0, 0);
$pdf->Cell(
50,
10,
iconv(
"utf-8",
"cp874",
"เลขที่ พคศ.สพม.รบ. " . $rs_cer["id"] . "/2567"
),
0,
1,
"R"
);
$pdf->Output();


} elseif ($rs_cer["gp"] == "นโยบายและแผน") {
//กลุ่มแผน
$pdf->SetAutoPageBreak(false);
$pdf->AddPage();
$pdf->AddFont("sarabun", "", "THSarabun.php");
$pdf->AddFont("sarabunb", "", "THSarabunB.php");
$pdf->Image("img/plan8.jpg", 0, 0, 297, 210);
$pdf->SetXY(48, 62);
$pdf->SetFont("sarabunb", "", 48);
$pdf->SetTextColor(50, 50, 50);
$pdf->Cell(200, 28, iconv("utf-8", "cp874", $rs_cer["name"]), 0, 1, "C");
$pdf->SetXY(48, 92);
$pdf->SetFont("sarabunb", "", 24);
$pdf->SetTextColor(50, 50, 50);
$pdf->Cell(
200,
28,
iconv("utf-8", "cp874", "เรื่อง " . $rs_cer["subject"]),
0,
1,
"C"
);
$pdf->SetXY(48, 112);
$pdf->SetFont("sarabunb", "", 30);
$pdf->SetTextColor(70, 70, 70);
$pdf->Cell(200, 28, iconv("utf-8", "cp874", $rs_cer["date"]), 0, 1, "C");
$pdf->SetXY(86, 102.5);
$pdf->SetFont("sarabun", "", 21);
$pdf->SetTextColor(80, 80, 80);
$pdf->Cell(200, 28, iconv("utf-8", "cp874", $rs_cer["percent"]), 0, 1, "C");
$pdf->SetXY(239, 195);
$pdf->SetFont("sarabun", "", 14);
$pdf->SetTextColor(0, 0, 0);
$pdf->Cell(
50,
10,
iconv(
"utf-8",
"cp874",
"เลขที่ พคศ.สพม.รบ. " . $rs_cer["id"] . "/2567"
),
0,
1,
"R"
);
$pdf->Output();

} elseif ($rs_cer["subject"] == "การศึกษาต่อ ฝึกอบรม หรือปฏิบัติการวิจัย ภายในประเทศ ของข้าราชการครูและบุคลากรทางการศึกษา สังกัด สพฐ. พ.ศ. 2547 และการขออนุมัติเดินทางไปราชการ") {
//กลุ่มพัฒ
$pdf->SetAutoPageBreak(false);
$pdf->AddPage();
$pdf->AddFont("sarabun", "", "THSarabun.php");
$pdf->AddFont("sarabunb", "", "THSarabunB.php");
$pdf->Image("img/develop88.jpg", 0, 0, 297, 210);
$pdf->SetXY(48, 62);
$pdf->SetFont("sarabunb", "", 48);
$pdf->SetTextColor(50, 50, 50);
$pdf->Cell(200, 28, iconv("utf-8", "cp874", $rs_cer["name"]), 0, 1, "C");
$pdf->SetXY(48, 126);
$pdf->SetFont("sarabunb", "", 30);
$pdf->SetTextColor(70, 70, 70);
$pdf->Cell(200, 28, iconv("utf-8", "cp874", $rs_cer["date"]), 0, 1, "C");
$pdf->SetXY(86, 102.5);
$pdf->SetFont("sarabun", "", 21);
$pdf->SetTextColor(80, 80, 80);
$pdf->Cell(200, 28, iconv("utf-8", "cp874", $rs_cer["percent"]), 0, 1, "C");
$pdf->SetXY(239, 195);
$pdf->SetFont("sarabun", "", 14);
$pdf->SetTextColor(0, 0, 0);
$pdf->Cell(
50,
10,
iconv(
"utf-8",
"cp874",
"เลขที่ พคศ.สพม.รบ. " . $rs_cer["id"] . "/2567"
),
0,
1,
"R"
);
$pdf->Output();

} elseif ($rs_cer["gp"] == "พัฒนาครูและบุคลากรทางการศึกษา") {
//กลุ่มพัฒ66
$pdf->SetAutoPageBreak(false);
$pdf->AddPage();
$pdf->AddFont("sarabun", "", "THSarabun.php");
$pdf->AddFont("sarabunb", "", "THSarabunB.php");
$pdf->Image("img/develop8.jpg", 0, 0, 297, 210);
$pdf->SetXY(48, 62);
$pdf->SetFont("sarabunb", "", 48);
$pdf->SetTextColor(50, 50, 50);
$pdf->Cell(200, 28, iconv("utf-8", "cp874", $rs_cer["name"]), 0, 1, "C");
$pdf->SetXY(48, 92);
$pdf->SetFont("sarabunb", "", 24);
$pdf->SetTextColor(50, 50, 50);
$pdf->Cell(
200,
28,
iconv("utf-8", "cp874", "เรื่อง " . $rs_cer["subject"]),
0,
1,
"C"
);
$pdf->SetXY(48, 112);
$pdf->SetFont("sarabunb", "", 30);
$pdf->SetTextColor(70, 70, 70);
$pdf->Cell(200, 28, iconv("utf-8", "cp874", $rs_cer["date"]), 0, 1, "C");
$pdf->SetXY(86, 102.5);
$pdf->SetFont("sarabun", "", 21);
$pdf->SetTextColor(80, 80, 80);
$pdf->Cell(200, 28, iconv("utf-8", "cp874", $rs_cer["percent"]), 0, 1, "C");
$pdf->SetXY(239, 195);
$pdf->SetFont("sarabun", "", 14);
$pdf->SetTextColor(0, 0, 0);
$pdf->Cell(
50,
10,
iconv(
"utf-8",
"cp874",
"เลขที่ พคศ.สพม.รบ. " . $rs_cer["id"] . "/2567"
),
0,
1,
"R"
);
$pdf->Output();

} elseif ($rs_cer["gp"] == "กฎหมายและคดี") {
//กลุ่มกฎหมาย
$pdf->SetAutoPageBreak(false);
$pdf->AddPage();
$pdf->AddFont("sarabun", "", "THSarabun.php");
$pdf->AddFont("sarabunb", "", "THSarabunB.php");
$pdf->Image("img/law8.jpg", 0, 0, 297, 210);
$pdf->SetXY(48, 62);
$pdf->SetFont("sarabunb", "", 48);
$pdf->SetTextColor(50, 50, 50);
$pdf->Cell(200, 28, iconv("utf-8", "cp874", $rs_cer["name"]), 0, 1, "C");
$pdf->SetXY(48, 92);
$pdf->SetFont("sarabunb", "", 24);
$pdf->SetTextColor(50, 50, 50);
$pdf->Cell(
200,
28,
iconv("utf-8", "cp874", "เรื่อง " . $rs_cer["subject"]),
0,
1,
"C"
);
$pdf->SetXY(48, 112);
$pdf->SetFont("sarabunb", "", 30);
$pdf->SetTextColor(70, 70, 70);
$pdf->Cell(200, 28, iconv("utf-8", "cp874", $rs_cer["date"]), 0, 1, "C");
$pdf->SetXY(86, 102.5);
$pdf->SetFont("sarabun", "", 21);
$pdf->SetTextColor(80, 80, 80);
$pdf->Cell(200, 28, iconv("utf-8", "cp874", $rs_cer["percent"]), 0, 1, "C");
$pdf->SetXY(239, 195);
$pdf->SetFont("sarabun", "", 14);
$pdf->SetTextColor(0, 0, 0);
$pdf->Cell(
50,
10,
iconv(
"utf-8",
"cp874",
"เลขที่ พคศ.สพม.รบ. " . $rs_cer["id"] . "/2567"
),
0,
1,
"R"
);
$pdf->Output();

} elseif ($rs_cer["gp"] == "บริหารงานการเงินและสินทรัพย์") {
//กลุ่มการเงิน
$pdf->SetAutoPageBreak(false);
$pdf->AddPage();
$pdf->AddFont("sarabun", "", "THSarabun.php");
$pdf->AddFont("sarabunb", "", "THSarabunB.php");
$pdf->Image("img/finance8.jpg", 0, 0, 297, 210);
$pdf->SetXY(48, 62);
$pdf->SetFont("sarabunb", "", 48);
$pdf->SetTextColor(50, 50, 50);
$pdf->Cell(200, 28, iconv("utf-8", "cp874", $rs_cer["name"]), 0, 1, "C");
$pdf->SetXY(48, 92);
$pdf->SetFont("sarabunb", "", 24);
$pdf->SetTextColor(50, 50, 50);
$pdf->Cell(
200,
28,
iconv("utf-8", "cp874", "เรื่อง " . $rs_cer["subject"]),
0,
1,
"C"
);
$pdf->SetXY(48, 112);
$pdf->SetFont("sarabunb", "", 30);
$pdf->SetTextColor(70, 70, 70);
$pdf->Cell(200, 28, iconv("utf-8", "cp874", $rs_cer["date"]), 0, 1, "C");
$pdf->SetXY(86, 102.5);
$pdf->SetFont("sarabun", "", 21);
$pdf->SetTextColor(80, 80, 80);
$pdf->Cell(200, 28, iconv("utf-8", "cp874", $rs_cer["percent"]), 0, 1, "C");
$pdf->SetXY(239, 195);
$pdf->SetFont("sarabun", "", 14);
$pdf->SetTextColor(0, 0, 0);
$pdf->Cell(
50,
10,
iconv(
"utf-8",
"cp874",
"เลขที่ พคศ.สพม.รบ. " . $rs_cer["id"] . "/2567"
),
0,
1,
"R"
);
$pdf->Output();

} elseif ($rs_cer["gp"] == "ict") {
//กลุ่ม ICT
$pdf->SetAutoPageBreak(false);
$pdf->AddPage();
$pdf->AddFont("sarabun", "", "THSarabun.php");
$pdf->AddFont("sarabunb", "", "THSarabunB.php");
$pdf->Image("img/ict8.jpg", 0, 0, 297, 210);
$pdf->SetXY(48, 62);
$pdf->SetFont("sarabunb", "", 48);
$pdf->SetTextColor(50, 50, 50);
$pdf->Cell(200, 28, iconv("utf-8", "cp874", $rs_cer["name"]), 0, 1, "C");
$pdf->SetXY(48, 92);
$pdf->SetFont("sarabunb", "", 24);
$pdf->SetTextColor(50, 50, 50);
$pdf->Cell(
200,
28,
iconv("utf-8", "cp874", "เรื่อง " . $rs_cer["subject"]),
0,
1,
"C"
);
$pdf->SetXY(48, 112);
$pdf->SetFont("sarabunb", "", 30);
$pdf->SetTextColor(70, 70, 70);
$pdf->Cell(200, 28, iconv("utf-8", "cp874", $rs_cer["date"]), 0, 1, "C");
$pdf->SetXY(86, 102.5);
$pdf->SetFont("sarabun", "", 21);
$pdf->SetTextColor(80, 80, 80);
$pdf->Cell(200, 28, iconv("utf-8", "cp874", $rs_cer["percent"]), 0, 1, "C");
$pdf->SetXY(239, 195);
$pdf->SetFont("sarabun", "", 14);
$pdf->SetTextColor(0, 0, 0);
$pdf->Cell(
50,
10,
iconv(
"utf-8",
"cp874",
"เลขที่ พคศ.สพม.รบ. " . $rs_cer["id"] . "/2567"
),
0,
1,
"R"
);
$pdf->Output();
}
?>

Youez - 2016 - github.com/yon3zu
LinuXploit