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 : report_13.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']<=4) and ($_SESSION["mpms_add"]==1 or $_SESSION["mpms_edit"] ==1 or $_SESSION["mpms_dele"]==1))){ exit(); } //ปีงบประมาณ $sql = "select * from plan_year where year_active='1' order by budget_year desc limit 1"; $dbquery = mysqli_query($connect,$sql); $year_active_result = mysqli_fetch_array($dbquery); if($year_active_result['budget_year']==""){ echo "<br />"; echo "<div align='center'>ยังไม่ได้กำหนดทำงานในปีงบประมาณใด ๆ กรุณาไปที่เมนูตั้งค่าระบบ เพื่อกำหนดปีงบประมาณ</div>"; exit(); } ?> <br /> <table width="90%" border="0" align="center"> <tr> <td><div align="center"> <font color="#006666" size="3"><strong>รายงานเงินเหลือจ่าย ปีงบประมาณ <?php echo $year_active_result['budget_year']?></strong></font> </div></td> </tr> </table> <br> <?php $money_total=0; $acti_total=0; $acti_total_2=0; $net_total=0; $sql = "select * from budget_receive where budget_year='$year_active_result[budget_year]' order by project,num"; $dbquery = mysqli_query($connect,$sql); $rd=1; While ($result = mysqli_fetch_array($dbquery)) { $id = $result['id']; $num= $result['num']; $project= $result['project']; $item= $result['item']; $money= $result['money']; $money_total=$money_total+$money; $num_ar[$rd]=$num; $project_ar[$rd]=$project; $item_ar[$rd]=$item; $money_ar[$rd]=$money; $rd++; } //เงินในกิจกรรมรามใบงวด for($i=1;$i<$rd;$i++) { $num_index="2_$num_ar[$i]"; $sql = "select * from plan_acti where code_approve='$num_index' and budget_year='$year_active_result[budget_year]'"; $dbquery = mysqli_query($connect,$sql); $sum_budget=0; While ($result = mysqli_fetch_array($dbquery)) { $code_proj_acti= $result['code_proj']; $budget_acti= $result['budget_acti']; $sum_budget=$sum_budget+$budget_acti; $acti_total=$acti_total+$budget_acti; } $sum_budget_ar[$i]=$sum_budget; //////กิจกรรมโครงการเงินเหลือจ่าย $sql_2 = "select * from plan_acti_3 where code_approve='$num_index' and budget_year='$year_active_result[budget_year]'"; $dbquery_2 = mysqli_query($connect,$sql_2); $sum_budget_2=0; While ($result_2 = mysqli_fetch_array($dbquery_2)) { $budget_acti_2= $result_2['budget_acti']; $sum_budget_2=$sum_budget_2+$budget_acti_2; $acti_total_2=$acti_total_2+$budget_acti_2; } $sum_budget_ar_2[$i]=$sum_budget_2; //////////////// } //เงินในกิจกรรมที่หยุด for($i=1;$i<$rd;$i++) { $num_index="2_$num_ar[$i]"; $rest_pj_budget=0; $sql = "select * from plan_acti where code_approve='$num_index' and budget_year='$year_active_result[budget_year]' and stop='1' "; $dbquery = mysqli_query($connect,$sql); $sum_budget_stop=0; While ($result = mysqli_fetch_array($dbquery)){ $code_proj_acti= $result['code_proj']; $budget_acti_stop= $result['budget_acti']; $sum_budget_stop=$sum_budget_stop+$budget_acti_stop; } //ใช้จ่ายแล้ว $sql_pay = "select * from budget_withdraw left join plan_acti on budget_withdraw.pj_activity=plan_acti.code_acti where plan_acti.code_approve='$num_index' and budget_withdraw.budget_year='$year_active_result[budget_year]' and plan_acti.budget_year='$year_active_result[budget_year]' and plan_acti.stop='1' "; $dbquery_pay = mysqli_query($connect,$sql_pay); $sum_budget_pay=0; While ($result_pay = mysqli_fetch_array($dbquery_pay)){ $money_pay= $result_pay['money']; $sum_budget_pay=$sum_budget_pay+$money_pay; } //คืนเงิน $sql_return = "select * from budget_money_return left join plan_acti on budget_money_return.pj_activity=plan_acti.code_acti where plan_acti.code_approve='$num_index' and budget_money_return.budget_year='$year_active_result[budget_year]' and plan_acti.budget_year='$year_active_result[budget_year]' and plan_acti.stop='1' "; $dbquery_return = mysqli_query($connect,$sql_return); $sum_budget_return=0; While ($result_return = mysqli_fetch_array($dbquery_return)){ $money_return= $result_return['money']; $sum_budget_return=$sum_budget_return+$money_return; } $rest_pj_budget=$sum_budget_stop-$sum_budget_pay+$sum_budget_return; $rest_pj_budget_ar[$i]=$rest_pj_budget; } echo "<table width='90%' border='1' align='center' style='border-collapse: collapse'>"; echo "<Tr bgcolor='#FFCCCC' align='center'><Td width='130'>ใบงวด</Td><Td>รายการ</Td><Td width='120'>จำนวนเงิน<br>ตามใบงวด</Td><Td width='100'>จัดสรรกิจกรรม<br>ในโครงการ</Td><Td align='center' width='100'>คงเหลือ<br>จากจัดสรร</Td><Td align='center' width='100'>คงเหลือ<br>จากกิจกรรมสิ้นสุด</Td><Td align='center' width='100'>รวม<br>คงเหลือ</Td><Td align='center' width='100'>โครงการ<br>เงินเหลือจ่าย</Td><Td align='center' width='100'>คงเหลือ</Td></Tr>"; $sum_total_proj=0; //ตัวแปรเงินเหลือจากโครงการที่ยุติทั้งหมด $sum_total_net=0; //ตัวแปรเงินเหลือจากการจัดสรรและโครงการทั้งหมด $sum_total_net_2=0; //$sum_total_net-เงินโครงการเงินเหลือจ่าย for($x=1;$x<$rd;$x++) { $total_net=0; //ตัวแปรเงินเหลือจาการจัดสรรกับเงินหยุดกิจกรรม $total_net_ex=0; //ตัวแปรเงินเหลือจากหักโครงการเงินเหลือจ่าย $net=$money_ar[$x]-$sum_budget_ar[$x]; $net_total=$net_total+$net; $net1=number_format($net,2); $total_net=$net+$rest_pj_budget_ar[$x]; //เหลือจากจัดสรรและจากกิจกรรมที่ยุติ $sum_total_net=$sum_total_net+$total_net; $sum_total_proj=$sum_total_proj+$rest_pj_budget_ar[$x]; $total_net_ex=$total_net-$sum_budget_ar_2[$x]; $sum_total_net_2=$sum_total_net_2+$total_net_ex; $total_net_ex=number_format($total_net_ex,2); if($total_net_ex==0){ $total_net_ex=""; } $money_rec=number_format($money_ar[$x],2); $sum_budget=number_format($sum_budget_ar[$x],2); $rest_pj_budget_ar[$x]=number_format($rest_pj_budget_ar[$x],2); $total_net2=number_format($total_net,2); if($total_net!=0){ echo "<Tr align='center'><Td>$num_ar[$x]<br><font color='#0000FF'>$project_ar[$x]</font></Td><Td align=left>$item_ar[$x]</Td><Td align=right>$money_rec</Td><Td align=right>"; echo $sum_budget; echo "</Td><Td align='right'><font color='#0000FF'>"; if($net1>0){ echo $net1; } echo "</font></Td><td align='right'>"; if($rest_pj_budget_ar[$x]!=0){ echo "<font color='#FF0000'>"; echo $rest_pj_budget_ar[$x]; echo "</font>"; } //เงินโครงการเงินเหลือจ่าย $sum_budget_ar_2[$x]=number_format($sum_budget_ar_2[$x],2); if($sum_budget_ar_2[$x]==0){ $sum_budget_ar_2[$x]=""; } echo "</td><td align='right'>$total_net2</td><td align='right'><font color='#0000FF'>$sum_budget_ar_2[$x]</font></td><td align='right'>$total_net_ex</td></Tr>"; } } $money_total=number_format($money_total,2); $acti_total=number_format($acti_total,2); $acti_total_2=number_format($acti_total_2,2); $net_total=number_format($net_total,2); $sum_total_net=number_format($sum_total_net,2); $sum_total_proj=number_format($sum_total_proj,2); $sum_total_net_2=number_format($sum_total_net_2,2); echo "<Tr bgcolor='#FFCCCC' align='center'><Td colspan='2'>รวม</Td><Td></Td><Td></Td><Td><font color='#0000FF'>$net_total</font></Td><td><font color='#FF0000'>$sum_total_proj</font></td><td>$sum_total_net</td><td>$acti_total_2</td><td>$sum_total_net_2</td></Tr>"; echo "</Table>"; ?>
Close