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 : stockProduct.php
<?php session_start(); include('../config/connect.php'); include('type_user.php'); ?> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title><?php echo $title;?></title> <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport"> <?php include('import_style.php');?> <link href="https://fonts.googleapis.com/css?family=Kanit:100,200,300&subset=thai" rel="stylesheet"> </head> <body class="hold-transition skin-blue sidebar-mini"> <?php include('check_login.php');?> <div class="wrapper"> <?php include('header.php');?> <?php include('menu_left.php');?> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <?php include('menu_main.php'); ?> <!-- Main content --> <section class="content"> <!--เนื้อหา--> <div class="row"> <div class="col-md-12"> <div class="box"> <div class="box-header bg-theme text-center"> <h3 class="box-title">ข้อมูลจำนวน Stock สินค้า</h3> </div> <!-- /.box-header --> <div class="box-body"> <p></p> <table width="100%" class="table table-hover"> <thead> <tr> <th width="5%" class="text-center">ลำดับ</th> <th width="7%">รูปภาพสินค้า</th> <th width="21%">ชื่อสินค้า</th> <th width="10%">รหัสสินค้า</th> <th width="15%">หมวดหมู่สินค้า</th> <th width="6%">ราคา</th> <th width="7%">มีจำนวน</th> <th width="7%">จำนวนคงเหลือ</th> <th width="15%" class="text-center">อัปเดต</th> </tr> </thead> <tbody> <?php $product_status = "0"; $stmt = $conn->prepare("SELECT p.*, c.category_name, CASE WHEN p.product_status = '1' THEN 'เปิดใช้งาน' WHEN p.product_status = '2' THEN 'ปิดการใช้งาน' ELSE 'ลบข้อมูล' END AS product_status_name FROM tb_product AS p LEFT JOIN tb_category AS c ON p.category_id = c.category_id WHERE p.product_status <> :product_status ORDER BY p.product_id ASC"); $stmt->bindParam(':product_status', $product_status , PDO::PARAM_STR); $stmt->execute(); $result = $stmt->fetchAll(); $i2 = 1; foreach($result as $row) { ?> <tr> <td align="center"><?php echo $i2;?></td> <td><img src="img-product/<?php echo $row['product_img'];?>" width="100"></td> <td><?php echo $row['product_name'];?></td> <td><?php echo $row['product_no'];?></td> <td><?php echo $row['category_name'];?></td> <td><?php echo $row['product_price'];?></td> <td><?php echo $row['product_item'];?></td> <td><?php echo $row['product_stock'];?></td> <td align="center"> <button type="button" class="btn btn-success btn-sm" data-toggle="modal" data-target="#updateStock<?php echo $row['product_id'];?>"><span class="fa fa-edit"></span> Update จำนวน Stock</button> </td> <?php include('modal/form-edit-modal.php'); ?> </tr> <?php $i2++; } ?> </tbody> </table> <?php if(isset($_POST['btnUpdateStock'])){ $product_id = $_POST['product_id']; $product_item = $_POST['product_item']; $product_stock = $_POST['product_stock']; $stmt = $conn->prepare("UPDATE tb_product SET product_item=:product_item, product_stock=:product_stock WHERE product_id=:product_id"); $stmt->bindParam(':product_item', $product_item , PDO::PARAM_INT); $stmt->bindParam(':product_stock', $product_stock , PDO::PARAM_INT); $stmt->bindParam(':product_id', $product_id , PDO::PARAM_INT); $result = $stmt->execute(); if($result){ echo ' <script> swal({ title: "อัปเดตจำนวน Stock สำเร็จ", icon: "success", button: "ตกลง", }).then( () => { location.href = "'.$_SERVER['REQUEST_URI'].'" }); </script> '; } else { echo ' <script> swal({ title: "Error เกิดข้อผิดพลาด", icon: "error", button: "ตกลง", }).then( () => { location.href = "'.$_SERVER['REQUEST_URI'].'" }); </script> '; } } ?> </div> <!-- /.box-body --> </div> <!-- /.box --> </div> <!-- /.col --> </div> <!-- ./row--> <!--ปิดเนื้อหา--> </section> <!-- /.content --> </div> <!-- /.content-wrapper --> <?php include('footer.php');?> <div class="control-sidebar-bg"></div> </div> <!-- ./wrapper --> <?php include('import_script.php');?> </body> </html> <?php $conn = null; ?>
Close