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 /
student_main /
[ HOME SHELL ]
Name
Size
Permission
Action
images
[ DIR ]
drwxr-xr-x
install
[ DIR ]
drwxr-xr-x
manual
[ DIR ]
drwxr-xr-x
picture
[ DIR ]
drwxrwxrwx
upload
[ DIR ]
drwxrwxrwx
default.php
248
B
-rwxr-xr-x
ed_year.php
10.65
KB
-rwxr-xr-x
export_test.php
930
B
-rw-r--r--
export_to_excel.php
3.08
KB
-rwxr-xr-x
export_to_excel2.php
3.03
KB
-rwxr-xr-x
getxml_student.php
14.36
KB
-rw-r--r--
getxml_student.phpOLD
11.7
KB
-rwxr-xr-x
getxml_student2.php
9.39
KB
-rw-r--r--
index.php
258
B
-rwxr-xr-x
livesearch.php
625
B
-rwxr-xr-x
livesearch_2.php
640
B
-rwxr-xr-x
livesearch_3.php
629
B
-rwxr-xr-x
livesearch_mobile.php
630
B
-rwxr-xr-x
menu.php
5.64
KB
-rwxr-xr-x
menu_mobile.php
932
B
-rwxr-xr-x
permission.php
8.45
KB
-rwxr-xr-x
permission_sch.php
8.83
KB
-rwxr-xr-x
permission_sch_khet.php
13.49
KB
-rwxr-xr-x
return_permission_sch_khet.php
779
B
-rwxr-xr-x
student_getxml.php
2.51
KB
-rwxr-xr-x
student_getxml2.php
3.1
KB
-rwxr-xr-x
student_import.php
6.72
KB
-rwxr-xr-x
student_import2.php
8.26
KB
-rw-r--r--
student_import3.php
4.35
KB
-rw-r--r--
student_import_2.php
6.67
KB
-rw-r--r--
student_importx.php
6.36
KB
-rwxr-xr-x
student_khet_update.php
34.99
KB
-rwxr-xr-x
student_num.php
10.17
KB
-rw-r--r--
student_report1.php
14.48
KB
-rwxr-xr-x
student_report1_mobile.php
12.93
KB
-rwxr-xr-x
student_report2.php
9.46
KB
-rwxr-xr-x
student_report3.php
7.82
KB
-rwxr-xr-x
student_report4.php
10.73
KB
-rw-r--r--
student_report5.php
9.17
KB
-rw-r--r--
student_sch_update.php
25.93
KB
-rwxr-xr-x
student_tranfer.php
4.2
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : ed_year.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 //ส่วนหัว echo "<br />"; if(!(($index==1) or ($index==2) or ($index==5))){ echo "<table width='50%' border='0' align='center'>"; echo "<tr align='center'><td><font color='#006666' size='3'><strong>กำหนดปีการศึกษา</strong></font></td></tr>"; echo "</table>"; } //ส่วนฟอร์มรับข้อมูล if($index==1){ echo "<form id='frm1' name='frm1'>"; echo "<Center>"; echo "<Font color='#006666' Size=3><B>เพิ่มข้อมูลปีการศึกษา</Font>"; echo "</Cener>"; echo "<Br><Br>"; echo "<Table width='300' Border='0' Bgcolor='#Fcf9d8'>"; echo "<Tr><Td align='right'>ปีการศึกษา </Td><Td align='left'><Input Type='Text' Name='ed_year' id='ed_year' Size='4' maxlength='4' onkeydown='integerOnly()'></Td></Tr>"; echo "<Tr><Td align='right'>ปีทำงานปัจจุบัน </Td>"; echo "<td><div align='left'><Select name='year_active' id='year_active' size='1'>"; echo "<option value = ''>เลือก</option>" ; echo "<option value = '1'>ใช่</option>"; echo "<option value = '0'>ไม่ใช่</option>"; echo "</select>"; echo "</div></td></tr>"; echo "<tr><td> </td><td> </td></tr>"; echo "<tr><td align='right'><INPUT TYPE='button' name='smb' value='ตกลง' onclick='goto_url(1)'> </td>"; echo "<td align='left'><INPUT TYPE='button' name='back' value='ย้อนกลับ' onclick='goto_url(0)'></td></tr>"; echo "</Table>"; echo "</form>"; } //ส่วนยืนยันการลบข้อมูล if($index==2) { echo "<table width='500' border='0' align='center'>"; echo "<tr><td align='center'><font color='#990000' size='4'>โปรดยืนยันความต้องการลบข้อมูลอีกครั้ง</font><br></td></tr>"; echo "<tr><td align=center>"; echo "<INPUT TYPE='button' name='smb' value='ยืนยัน' onclick='location.href=\"?option=student_main&task=ed_year&index=3&id=$_GET[id]&page=$_REQUEST[page]\"'> <INPUT TYPE='button' name='back' value='ยกเลิก' onclick='location.href=\"?option=student_main&task=ed_year&page=$_REQUEST[page]\"'"; echo "</td></tr></table>"; } //ส่วนลบข้อมูล if($index==3){ $sql = "delete from student_main_edyear where id=$_GET[id]"; $dbquery = mysqli_query($connect,$sql); } //ส่วนบันทึกข้อมูล if($index==4){ if($_POST['year_active']=='1'){ $sql = "update student_main_edyear set year_active='0' "; $dbquery = mysqli_query($connect,$sql); } $rec_date = date("Y-m-d"); $sql = "insert into student_main_edyear (ed_year, year_active) values ('$_POST[ed_year]', '$_POST[year_active]')"; $dbquery = mysqli_query($connect,$sql); } //ส่วนฟอร์มแก้ไขข้อมูล if ($index==5){ echo "<form id='frm1' name='frm1'>"; echo "<Center>"; echo "<Font color='#006666' Size=3><B>แก้ไขปีการศึกษา</B></Font>"; echo "</Cener>"; echo "<Br><Br>"; echo "<Table width='300' Border= '0' Bgcolor='#Fcf9d8'>"; $sql = "select * from student_main_edyear where id='$_GET[id]'"; $dbquery = mysqli_query($connect,$sql); $ref_result = mysqli_fetch_array($dbquery); echo "<Tr><Td align='right'>ปีการศึกษา </Td><Td align='left'><Input Type='Text' Name='ed_year' id='ed_year' Size='4' maxlength='4' value='$ref_result[ed_year]' onkeydown='integerOnly()'></Td></Tr>"; echo "<Tr><Td align='right'>ปีทำงานปัจจุบัน </Td>"; echo "<td><div align='left'><Select name='year_active' id='year_active' size='1'>"; echo "<option value = ''>เลือก</option>" ; if($ref_result['year_active']==1){ $select1="selected"; $select2=""; } else{ $select1=""; $select2="selected"; } echo "<option value = '1' $select1>ใช่</option>"; echo "<option value = '0' $select2>ไม่ใช่</option>"; echo "</select>"; echo "</div></td></tr>"; echo "<tr><td> </td><td> </td></tr>"; echo "<tr><td align='right'><INPUT TYPE='button' name='smb' value='ตกลง' onclick='goto_url_update(1)'> </td>"; echo "<td align='left'><INPUT TYPE='button' name='back' value='ย้อนกลับ' onclick='goto_url_update(0)'></td></tr>"; echo "</Table>"; echo "<Br>"; echo "<Input Type=Hidden Name='id' Value='$_GET[id]'>"; echo "<Input Type=Hidden Name='page' Value='$_GET[page]'>"; echo "</form>"; } //ส่วนปรับปรุงข้อมูล if ($index==6){ if($_POST['year_active']=='1'){ $sql = "update student_main_edyear set year_active='0' "; $dbquery = mysqli_query($connect,$sql); } $sql = "update student_main_edyear set ed_year='$_POST[ed_year]', year_active='$_POST[year_active]' where id='$_POST[id]'"; $dbquery = mysqli_query($connect,$sql); } //ส่วนปรับปรุงปีทำงานปัจจุบัน if ($index==7){ if($_GET['year_active']==1){ $year_active=0; } else{ $year_active=1; $sql = "update student_main_edyear set year_active='0' "; $dbquery = mysqli_query($connect,$sql); } $sql = "update student_main_edyear set year_active='$year_active' where id='$_GET[id]'"; $dbquery = mysqli_query($connect,$sql); } //ส่วนแสดงผล if(!(($index==1) or ($index==2) or ($index==5))){ //ส่วนของการแยกหน้า $pagelen=20; // 1_กำหนดแถวต่อหน้า $url_link="option=student_main&task=ed_year"; // 2_กำหนดลิงค์ฺ $sql = "select * from student_main_edyear"; // 3_กำหนด sql $dbquery = mysqli_query($connect,$sql); $num_rows = mysqli_num_rows($dbquery ); $totalpages=ceil($num_rows/$pagelen); if(!(isset($_REQUEST['page']))){ $_REQUEST['page']=""; } if($_REQUEST['page']==""){ $page=$totalpages; if($page<2){ $page=1; } } else{ if($totalpages<$_REQUEST['page']){ $page=$totalpages; if($page<1){ $page=1; } } else{ $page=$_REQUEST['page']; } } $start=($page-1)*$pagelen; if(($totalpages>1) and ($totalpages<16)){ echo "<div align=center>"; echo "หน้า "; for($i=1; $i<=$totalpages; $i++) { if($i==$page){ echo "[<b><font size=+1 color=#990000>$i</font></b>]"; } else { echo "<a href=$PHP_SELF?$url_link&page=$i>[$i]</a>"; } } echo "</div>"; } if($totalpages>15){ if($page <=8){ $e_page=15; $s_page=1; } if($page>8){ if($totalpages-$page>=7){ $e_page=$page+7; $s_page=$page-7; } else{ $e_page=$totalpages; $s_page=$totalpages-15; } } echo "<div align=center>"; if($page!=1){ $f_page1=$page-1; echo "<<a href=$PHP_SELF?$url_link&page=1>หน้าแรก </a>"; echo "<<<a href=$PHP_SELF?$url_link&page=$f_page1>หน้าก่อน </a>"; } else { echo "หน้า "; } for($i=$s_page; $i<=$e_page; $i++){ if($i==$page){ echo "[<b><font size=+1 color=#990000>$i</font></b>]"; } else { echo "<a href=$PHP_SELF?$url_link&page=$i>[$i]</a>"; } } if($page<$totalpages) { $f_page2=$page+1; echo "<a href=$PHP_SELF?$url_link&page=$f_page2> หน้าถัดไป</a>>>"; echo "<a href=$PHP_SELF?$url_link&page=$totalpages> หน้าสุดท้าย</a>>"; } echo " <select onchange=\"location.href=this.options[this.selectedIndex].value;\" size=\"1\" name=\"select\">"; echo "<option value=\"\">หน้า</option>"; for($p=1;$p<=$totalpages;$p++){ echo "<option value=\"?$url_link&page=$p\">$p</option>"; } echo "</select>"; echo "</div>"; } //จบแยกหน้า $sql = "select * from student_main_edyear order by ed_year desc limit $start,$pagelen"; $dbquery = mysqli_query($connect,$sql); echo "<table width=50% border=0 align=center>"; echo "<Tr><Td colspan='5' align='left'><INPUT TYPE='button' name='smb' value='เพิ่มปีการศึกษา' onclick='location.href=\"?option=student_main&task=ed_year&index=1\"'</Td></Tr>"; echo "<Tr bgcolor='#FFCCCC'><Td align='center'>ที่</Td><Td align='center'>ปีการศึกษา</Td><Td align='center'>ปีทำงานปัจจุบัน</Td><Td align='center' width='50'>ลบ</Td><Td align='center' width='50'>แก้ไข</Td></Tr>"; $N=(($page-1)*$pagelen)+1; //*เกี่ยวข้องกับการแยกหน้า $M=1; While ($result = mysqli_fetch_array($dbquery)) { $id = $result['id']; $ed_year= $result['ed_year']; $year_active = $result['year_active']; if($year_active==1){ $active_pic="<img src=images/yes.png border='0' alt='ปีทำงานปัจจุบัน'>"; } else{ $active_pic="<img src=images/no.png border='0' alt='ไม่ใช่ปีทำงานปัจจุบัน'>"; } if(($M%2) == 0) $color="#FFFFC"; else $color="#FFFFFF"; echo "<Tr bgcolor=$color><Td align='center' width='50'>$N</Td><Td align='center'>$ed_year</Td><Td align='center'><a href=?option=student_main&task=ed_year&index=7&id=$id&year_active=$year_active&page=$page>$active_pic</a></Td> <Td align='center'><a href=?option=student_main&task=ed_year&index=2&id=$id&page=$page><img src=images/drop.png border='0' alt='ลบ'></a></a></Td> <Td align='center'><a href=?option=student_main&task=ed_year&index=5&id=$id&page=$page><img src=images/edit.png border='0' alt='แก้ไข'></a></Td> </Tr>"; $M++; $N++; //*เกี่ยวข้องกับการแยกหน้า } echo "</Table>"; } ?> <script> function goto_url(val){ if(val==0){ callfrm("?option=student_main&task=ed_year"); // page ย้อนกลับ }else if(val==1){ if(frm1.ed_year.value == ""){ alert("กรุณากรอกปีการศึกษา"); }else if(frm1.year_active.value==""){ alert("กรุณาเลือกปีทำงานปัจจุบัน"); }else{ callfrm("?option=student_main&task=ed_year&index=4"); //page ประมวลผล } } } function goto_url_update(val){ if(val==0){ callfrm("?option=student_main&task=ed_year"); // page ย้อนกลับ }else if(val==1){ if(frm1.ed_year.value == ""){ alert("กรุณากรอกปีการศึกษา"); }else if(frm1.year_active.value==""){ alert("กรุณาเลือกปีทำงานปัจจุบัน"); }else{ callfrm("?option=student_main&task=ed_year&index=6"); //page ประมวลผล } } } </script>
Close