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 : today_report.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($result_permission['p10']!=1){ exit(); } $officer=$_SESSION['login_user_id']; $budget_status['1']="รับเงินสด"; $budget_status['2']="รับเช็ค/เงินฝากธนาคาร"; $budget_status['3']="จ่ายเงินสด"; $budget_status['4']="จ่ายเช็ค/เงินฝากธนาคาร"; $budget_status['5']="นำเงินสดฝากธนาคาร"; $budget_status['6']="นำเงินสดฝากส่วนราชการผู้เบิก"; $budget_status['7']="ถอนเงินฝากธนาคารเป็นเงินสด"; $budget_status['8']="ถอนเงินฝากธนาคารไปฝากส่วนราชการผู้เบิก"; $budget_status['9']="รับคืนเงินฝากส่วนราชการผู้เบิกมาเป็นเงินสด"; $budget_status['10']="รับคืนเงินฝากส่วนราชการมาเป็นเงินฝากธนาคาร"; $t_month['01']="มค"; $t_month['02']="กพ"; $t_month['03']="มีค"; $t_month['04']="เมย"; $t_month['05']="พค"; $t_month['06']="มิย"; $t_month['07']="กค"; $t_month['08']="สค"; $t_month['09']="กย"; $t_month['10']="ตค"; $t_month['11']="พย"; $t_month['12']="ธค"; $th_month['1']="มกราคม"; $th_month['2']="กุมภาพันธ์"; $th_month['3']="มีนาคม"; $th_month['4']="เมษายน"; $th_month['5']="พฤษภาคม"; $th_month['6']="มิถุนายน"; $th_month['7']="กรกฎาคม"; $th_month['8']="สิงหาคม"; $th_month['9']="กันยายน"; $th_month['10']="ตุลาคม"; $th_month['11']="พฤศจิกายน"; $th_month['12']="ธันวาคม"; 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(); } } //ส่วนของการคำนวณ $total_cash=0; //รวมเงินสดทุกรายการ $total_bank=0; //รวมเงินฝากธนาคารทุกรายการ $total_office=0; //รวมเงินฝากส่วนราชการทุกรายการ $total=0; //รวมทั้งหมด ////ส่่วนคำนวณเงินงบประมาณ//// $cash_tank=0; //เงินสด $bank_tank=0; //เงินฝากธนาคาร $office_tank=0; //เงินฝากส่วนราชการ if(!(isset($receive_total))){ $receive_total=0; } if(!(isset($pay_total))){ $pay_total=""; } if(!$_POST){ $sql = "select * from budget_main where budget_year='$year_active_result[budget_year]' and type_id='200' and status!='null' order by rec_date, id"; } else{ $select_year=$_POST['select_year']-543; $date_index=$select_year."-".$_POST['select_month']."-".$_POST['select_date']; $sql = "select * from budget_main where budget_year='$year_active_result[budget_year]' and type_id='200' and status!='null' and rec_date<='$date_index' order by rec_date, id"; } $dbquery = mysqli_query($connect,$sql); While ($result = mysqli_fetch_array($dbquery)) { $id = $result['id']; $receive_amount = $result['receive_amount']; $pay_amount = $result['pay_amount']; $change_amount = $result['change_amount']; $status = $result['status']; $rec_date = $result['rec_date']; if($status==1){ $cash_tank=$cash_tank+$receive_amount; $receive_total=$receive_total+$receive_amount; } else if($status==2){ $bank_tank=$bank_tank+$receive_amount; $receive_total=$receive_total+$receive_amount; } else if($status==3){ $cash_tank=$cash_tank-$pay_amount; $pay_total=$pay_total+$pay_amount; } else if($status==4){ $bank_tank=$bank_tank-$pay_amount; $pay_total=$pay_total+$pay_amount; } else if($status==5){ $cash_tank=$cash_tank-$change_amount; $bank_tank=$bank_tank+$change_amount; } else if($status==6){ $cash_tank=$cash_tank-$change_amount; $office_tank=$office_tank+$change_amount; } else if($status==7){ $bank_tank=$bank_tank-$change_amount; $cash_tank=$cash_tank+$change_amount; } else if($status==8){ $bank_tank=$bank_tank-$change_amount; $office_tank=$office_tank+$change_amount; } else if($status==9){ $office_tank=$office_tank-$change_amount; $cash_tank=$cash_tank+$change_amount; } else if($status==10){ $office_tank=$office_tank-$change_amount; $bank_tank=$bank_tank+$change_amount; } } $cash_ar[200]=$cash_tank; $bank_ar[200]=$bank_tank; $office_ar[200]=$office_tank; $sum_type[200]=$cash_ar[200]+$bank_ar[200]+$office_ar[200]; //รวมเงินในแต่ละรายการ $total_cash=$total_cash+$cash_ar[200]; $total_bank=$total_bank+$bank_ar[200]; $total_office=$total_office+$office_ar[200]; ////จบส่วนคำนวณเงินงบประมาณ///// $sql_ex_bud = "select * from budget_type where budget_year='$year_active_result[budget_year]' order by category_id,type_id"; $dbquery_ex_bud = mysqli_query($connect,$sql_ex_bud); While ($result_ex_bud = mysqli_fetch_array($dbquery_ex_bud)) { $type_index=$result_ex_bud['type_id']; $cash_tank=0; //เงินสด $bank_tank=0; //เงินฝากธนาคาร $office_tank=0; //เงินฝากส่วนราชการ if(!$_POST){ $sql = "select * from budget_main where budget_year='$year_active_result[budget_year]' and type_id='$result_ex_bud[type_id]' and status!='null' order by rec_date, id"; } else{ $select_year=$_POST['select_year']-543; $date_index=$select_year."-".$_POST['select_month']."-".$_POST['select_date']; $sql = "select * from budget_main where budget_year='$year_active_result[budget_year]' and type_id='$result_ex_bud[type_id]' and status!='null' and rec_date<='$date_index' order by rec_date, id"; } $dbquery = mysqli_query($connect,$sql); While ($result = mysqli_fetch_array($dbquery)) { $id = $result['id']; $receive_amount = $result['receive_amount']; $pay_amount = $result['pay_amount']; $change_amount = $result['change_amount']; $status = $result['status']; $rec_date = $result['rec_date']; if($status==1){ $cash_tank=$cash_tank+$receive_amount; $receive_total=$receive_total+$receive_amount; } else if($status==2){ $bank_tank=$bank_tank+$receive_amount; $receive_total=$receive_total+$receive_amount; } else if($status==3){ $cash_tank=$cash_tank-$pay_amount; $pay_total=$pay_total+$pay_amount; } else if($status==4){ $bank_tank=$bank_tank-$pay_amount; $pay_total=$pay_total+$pay_amount; } else if($status==5){ $cash_tank=$cash_tank-$change_amount; $bank_tank=$bank_tank+$change_amount; } else if($status==6){ $cash_tank=$cash_tank-$change_amount; $office_tank=$office_tank+$change_amount; } else if($status==7){ $bank_tank=$bank_tank-$change_amount; $cash_tank=$cash_tank+$change_amount; } else if($status==8){ $bank_tank=$bank_tank-$change_amount; $office_tank=$office_tank+$change_amount; } else if($status==9){ $office_tank=$office_tank-$change_amount; $cash_tank=$cash_tank+$change_amount; } else if($status==10){ $office_tank=$office_tank-$change_amount; $bank_tank=$bank_tank+$change_amount; } } $cash_ar[$type_index]=$cash_tank; $bank_ar[$type_index]=$bank_tank; $office_ar[$type_index]=$office_tank; $sum_type[$type_index]=$cash_ar[$type_index]+$bank_ar[$type_index]+$office_ar[$type_index]; //รวมเงินในแต่ละรายการ $total_cash=$total_cash+$cash_ar[$type_index]; $total_bank=$total_bank+$bank_ar[$type_index]; $total_office=$total_office+$office_ar[$type_index]; } $total=$total+$total_cash+$total_bank+$total_office; //ส่วนหัว echo "<br />"; echo "<div align='center'>"; echo "<font color='#006666' size='3'><strong>รายงานเงินคงเหลือประจำวัน</strong></font><br />"; echo "<font color='#006666' size='3'>$_SESSION[office_name]</font>"; echo "</div>"; echo "<form id='frm1' name='frm1'>"; echo "<Table align='center' width='95%' Border='0'>"; $today_date=date("d/m/Y"); list($today_day,$today_month,$today_year) = explode("/",$today_date); $last_year=$today_year+542; $today_year=$today_year+543; $next_year=$today_year+1; echo "<Tr><Td align='right'>วันที่ <Select name='select_date' size='1'>"; echo "<option value = ''>เลือก</option>" ; for($x=1;$x<=31;$x++){ if($_POST['select_date']==""){ if($today_day==$x){ echo "<option value =$x selected>$x</option>" ; } else{ echo "<option value =$x>$x</option>" ; } } else{ if($_POST['select_date']==$x){ echo "<option value =$x selected>$x</option>" ; } else{ echo "<option value =$x>$x</option>" ; } } } echo "</select>"; echo " เดือน <Select name='select_month' size='1'>"; echo "<option value = ''>เลือก</option>" ; for($x=1;$x<=12;$x++){ if($_POST['select_month']==""){ if($today_month==$x){ echo "<option value =$x selected>$th_month[$x]</option>" ; } else{ echo "<option value =$x>$th_month[$x]</option>" ; } } else{ if($_POST['select_month']==$x){ echo "<option value =$x selected>$th_month[$x]</option>" ; } else{ echo "<option value =$x>$th_month[$x]</option>" ; } } } echo "</select>"; echo " ปี <Select name='select_year' size='1'>"; echo "<option value = ''>เลือก</option>" ; if($_POST['select_year']==""){ echo "<option value =$last_year>$last_year</option>" ; echo "<option value =$today_year selected>$today_year</option>" ; echo "<option value =$next_year>$next_year</option>" ; } else{ if($_POST['select_year']==$last_year){ echo "<option value =$last_year selected>$last_year</option>" ; echo "<option value =$today_year>$today_year</option>" ; echo "<option value =$next_year>$next_year</option>" ; } else if($_POST['select_year']==$next_year){ echo "<option value =$last_year>$last_year</option>" ; echo "<option value =$today_year>$today_year</option>" ; echo "<option value =$next_year selected>$next_year</option>" ; } else{ echo "<option value =$last_year>$last_year</option>" ; echo "<option value =$today_year selected>$today_year</option>" ; echo "<option value =$next_year>$next_year</option>" ; } } echo "</select>"; echo "</Td>"; echo "<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>"; echo"</Tr>"; echo "</table>"; echo "</form>"; //ส่วนแสดงผล echo "<table width='95%' border='0' align='center'>"; echo "<tr bgcolor='#FFCCCC' align='center'> <td rowspan='2'>รายการ</td> <td colspan='3'>คงเหลือ</td> <td rowspan='2' width='120'>รวม</td> </tr> <tr bgcolor='#CC9900' align='center'> <td width='120'>เงินสด</td> <td width='120'>เงินฝากธนาคาร</td> <td width='120'>เงินฝากส่วนราชการ</td> </tr>"; echo "<tr> <td bgcolor='#FFCCCC'>เงินงบประมาณ</td> <td></td> <td></td> <td></td> <td></td> </tr>"; $cash_ar[200]=number_format($cash_ar[200],2); $bank_ar[200]=number_format($bank_ar[200],2); $office_ar[200]=number_format($office_ar[200],2); $sum_type[200]=number_format($sum_type[200],2); echo "<tr> <td bgcolor='#FFFFFF'> เงินงบประมาณ</td> <td align='right'>$cash_ar[200]</td> <td align='right'>$bank_ar[200]</td> <td align='right'>$office_ar[200]</td> <td align='right'>$sum_type[200]</td> </tr>"; echo "<tr> <td bgcolor='#FFCCCC'>เงินนอกงบประมาณ</td> <td></td> <td></td> <td></td> <td></td> </tr>"; $sql= "select * from budget_type where category_id='1' and budget_year='$year_active_result[budget_year]' order by type_id"; $dbquery = mysqli_query($connect,$sql); $M=1; While ($result1 = mysqli_fetch_array($dbquery)) { $type_id1=$result1['type_id']; if(($M%2) == 0) $color="#FFFFB" ; else $color="#FFFFFF"; $cash_ar[$type_id1]=number_format($cash_ar[$type_id1],2); $bank_ar[$type_id1]=number_format($bank_ar[$type_id1],2); $office_ar[$type_id1]=number_format($office_ar[$type_id1],2); $sum_type[$type_id1]=number_format($sum_type[$type_id1],2); echo "<Tr bgcolor=$color><Td align='left'> $result1[type_name]</Td><td align='right'>$cash_ar[$type_id1]</td><td align='right'>$bank_ar[$type_id1]</td><td align='right'>$office_ar[$type_id1]</td><td align='right'>$sum_type[$type_id1]</td></Tr>"; $M++; } echo "<tr> <td bgcolor='#FFCCCC'>เงินรายได้แผ่นดิน</td> <td></td> <td></td> <td></td> <td></td> </tr>"; $sql= "select * from budget_type where category_id='3' and budget_year='$year_active_result[budget_year]' order by type_id"; $dbquery = mysqli_query($connect,$sql); While ($result2 = mysqli_fetch_array($dbquery)) { $type_id2=$result2['type_id']; if(($M%2) == 0) $color="#FFFFB"; else $color="#FFFFFF"; $cash_ar[$type_id2]=number_format($cash_ar[$type_id2],2); $bank_ar[$type_id2]=number_format($bank_ar[$type_id2],2); $office_ar[$type_id2]=number_format($office_ar[$type_id2],2); $sum_type[$type_id2]=number_format($sum_type[$type_id2],2); echo "<Tr bgcolor=$color><Td align='left'> $result2[type_name]</Td><td align='right'>$cash_ar[$type_id2]</td><td align='right'>$bank_ar[$type_id2]</td><td align='right'>$office_ar[$type_id2]</td><td align='right'>$sum_type[$type_id2]</td></Tr>"; $M++; } //สรุป $total_cash=number_format($total_cash,2); $total_bank=number_format($total_bank,2); $total_office=number_format($total_office,2); $total=number_format($total,2); echo "<Tr bgcolor='#FFCCCC'><Td align='center'>รวม</Td><td align='center'>$total_cash</td><td align='center'>$total_bank</td><td align='center'>$total_office</td><td align='center'>$total</td></Tr>"; echo "</Table>"; ?> <script> function goto_url(val){ if(val==0){ callfrm("?option=budget&task=main/today_report"); // page ย้อนกลับ }else if(val==1){ callfrm("?option=budget&task=main/today_report"); //page ประมวลผล } } </script>
Close