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 /
app /
[ HOME SHELL ]
NAME
SIZE
PERMISSION
ACTION
assets
[ DIR ]
drwxr-xr-x
barcode-generator
[ DIR ]
drwxr-xr-x
bower_components
[ DIR ]
drwxr-xr-x
chart-pie
[ DIR ]
drwxr-xr-x
class
[ DIR ]
drwxr-xr-x
dist
[ DIR ]
drwxr-xr-x
font-awesome
[ DIR ]
drwxr-xr-x
icon
[ DIR ]
drwxr-xr-x
img-banner
[ DIR ]
drwxr-xr-x
img-category
[ DIR ]
drwxr-xr-x
img-logo
[ DIR ]
drwxr-xr-x
img-product
[ DIR ]
drwxr-xr-x
img-product-item
[ DIR ]
drwxr-xr-x
img-slide
[ DIR ]
drwxr-xr-x
img-system
[ DIR ]
drwxr-xr-x
img-user
[ DIR ]
drwxr-xr-x
lightbox
[ DIR ]
drwxr-xr-x
modal
[ DIR ]
drwxr-xr-x
plugins
[ DIR ]
drwxr-xr-x
.htaccess
154
B
-rwxr-xr-x
addPerson.php
22.7
KB
-rwxr-xr-x
bank.php
9.45
KB
-rwxr-xr-x
banner.php
7.34
KB
-rwxr-xr-x
business.php
7.35
KB
-rwxr-xr-x
cancelOrder.php
7.5
KB
-rwxr-xr-x
category.php
11.4
KB
-rwxr-xr-x
check_login.php
424
B
-rwxr-xr-x
company - Copy.php
8.33
KB
-rwxr-xr-x
company.php
8.09
KB
-rwxr-xr-x
customer.php
10.31
KB
-rwxr-xr-x
footer.php
249
B
-rwxr-xr-x
header.php
2.57
KB
-rwxr-xr-x
import_script.php
4.11
KB
-rwxr-xr-x
import_style.php
1.66
KB
-rwxr-xr-x
index.php
1.36
KB
-rwxr-xr-x
levelPosition.php
7.58
KB
-rwxr-xr-x
lineToken.php
3.86
KB
-rwxr-xr-x
logout.php
77
B
-rwxr-xr-x
menu.php
2.5
KB
-rwxr-xr-x
menu_left.php
5.45
KB
-rwxr-xr-x
menu_left_home.php
513
B
-rwxr-xr-x
menu_main.php
88
B
-rwxr-xr-x
order.php
7.58
KB
-rwxr-xr-x
pagination.php
1.49
KB
-rwxr-xr-x
pagination_stock.php
1.51
KB
-rwxr-xr-x
payment.php
8.76
KB
-rwxr-xr-x
personData.php
21.22
KB
-rwxr-xr-x
product.php
15.56
KB
-rwxr-xr-x
report.php
11.58
KB
-rwxr-xr-x
reportSale.php
4.55
KB
-rwxr-xr-x
save_product.php
993
B
-rwxr-xr-x
select_amphures.php
621
B
-rwxr-xr-x
select_brand.php
668
B
-rwxr-xr-x
select_districts.php
537
B
-rwxr-xr-x
select_provinces.php
665
B
-rwxr-xr-x
slide.php
9.47
KB
-rwxr-xr-x
stockProduct.php
6.71
KB
-rwxr-xr-x
subbusiness.php
8
KB
-rwxr-xr-x
subcategory.php
8.44
KB
-rwxr-xr-x
type_user.php
549
B
-rwxr-xr-x
unit.php
7.12
KB
-rwxr-xr-x
uploadImage.php
9.53
KB
-rwxr-xr-x
userData.php
11.11
KB
-rwxr-xr-x
viewOrder.php
6.8
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : product.php
<?php session_start(); include('../config/connect.php'); include('type_user.php'); include "barcode-generator/src/BarcodeGenerator.php"; include "barcode-generator/src/BarcodeGeneratorHTML.php"; function barcode($code){ $generator = new Picqer\Barcode\BarcodeGeneratorHTML(); $border = 2;//กำหนดความหน้าของเส้น Barcode $height = 30;//กำหนดความสูงของ Barcode return $generator->getBarcode($code , $generator::TYPE_CODE_128,$border,$height); } ?> <!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">ข้อมูลรายการสินค้า</h3> </div> <!-- /.box-header --> <div class="box-body"> <?php include('modal/form-add-modal.php');?> <button type="button" class="btn btn bg-blue btn-sm" data-toggle="modal" data-target="#addProduct"> <span class="fa fa-plus"></span> เพิ่มสินค้า </button> <p></p> <table id="table3" width="100%" class="table table-hover"> <thead> <tr> <th width="6%" class="text-center">ลำดับ</th> <th width="8%">รูปภาพสินค้า</th> <th width="24%">ชื่อสินค้า</th> <th width="15%">รหัสสินค้า</th> <th width="14%">หมวดหมู่สินค้า</th> <th width="7%">ราคา</th> <th width="6%">มีจำนวน</th> <th width="6%">จำนวนคงเหลือ</th> <th width="14%" class="text-center">จัดการ</th> </tr> </thead> <tbody> <?php $product_status = "0"; $perpage = 25; if (isset($_GET['page'])) { $page = $_GET['page']; } else { $page = 1; } $start = ($page - 1) * $perpage; $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 DESC LIMIT {$start} , {$perpage}"); $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'];?><br><?php echo barcode($row['product_id']);?> </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"> <a href="uploadImage/<?php echo $row['product_id'];?>"><button type="button" class="btn btn-info btn-sm"><span class="fa fa-camera"></span></button></a> <button type="button" class="btn btn-success btn-sm" data-toggle="modal" data-target="#editProduct<?php echo $row['product_id'];?>"><span class="fa fa-edit"></span></button> <button type="button" class="btn btn-danger btn-sm" data-toggle="modal" data-target="#deleteProduct<?php echo $row['product_id'];?>"><span class="fa fa-trash"></span></button> </td> <?php include('modal/form-edit-modal.php'); ?> <?php include('modal/form-delete-modal.php'); ?> </tr> <?php $i2++; } ?> </tbody> </table> <br><?php include('pagination.php');?> <?php if(isset($_POST['btnEditProduct'])){ $product_id = $_POST['product_id']; $product_name = $_POST['product_name']; $product_no = $_POST['product_no']; $product_price = $_POST['product_price']; $product_status = "1"; $product_detail = $_POST['product_detail']; $product_item = $_POST['product_item']; $product_stock = $product_item; $category_id = $_POST['category_id']; $user_id = $_SESSION['user_id']; $product_save = date('Y-m-d H:i:s'); $product_weight = $_POST['product_weight']; $unit_id = $_POST['unit_id']; $subcategory_id = $_POST['subcategory_id']; $business_id = $_POST['business_id']; $subbusiness_id = $_POST['subbusiness_id']; $date1 = date("Y-m-d"); $numrand = (mt_rand()); $product_img = (isset($_POST['product_img']) ? $_POST['product_img'] : ''); $upload = $_FILES['product_img']['name']; if($upload != '') { $typefile = strrchr($_FILES['product_img']['name'],"."); if($typefile =='.jpg' || $typefile =='.jpeg' || $typefile =='.png') { $path = "img-product/"; $newname = $numrand.$date1.$typefile; $path_copy = $path.$newname; move_uploaded_file($_FILES['product_img']['tmp_name'],$path_copy); } else { //ถ้าไฟล์ที่อัพโหลดไม่ตรงตามที่กำหนดไว้ echo ' <script> swal({ title: "ไม่สามารถ Upload ไฟล์ได้", text: "เนื่องจากนามสกุลไฟล์ที่คุณ Upload ไม่ถูกต้อง", icon: "error", button: "ตกลง", }).then( () => { location.href = "product" }); </script> '; exit(); } } else { $newname = $_POST['product_img_bf']; } $stmt = $conn->prepare("UPDATE tb_product SET product_name=:product_name, product_no=:product_no, product_price=:product_price, product_detail=:product_detail, product_img=:product_img, product_item=:product_item, product_stock=:product_stock, category_id=:category_id, product_weight=:product_weight, unit_id=:unit_id, subcategory_id=:subcategory_id, business_id=:business_id, subbusiness_id=:subbusiness_id WHERE product_id=:product_id"); $stmt->bindParam(':product_id', $product_id , PDO::PARAM_INT); $stmt->bindParam(':product_name', $product_name , PDO::PARAM_STR); $stmt->bindParam(':product_no', $product_no , PDO::PARAM_STR); $stmt->bindParam(':product_price', $product_price , PDO::PARAM_INT); $stmt->bindParam(':product_detail', $product_detail , PDO::PARAM_STR); $stmt->bindParam(':product_img', $newname , PDO::PARAM_STR); $stmt->bindParam(':product_item', $product_item , PDO::PARAM_INT); $stmt->bindParam(':product_stock', $product_stock , PDO::PARAM_INT); $stmt->bindParam(':category_id', $category_id , PDO::PARAM_INT); $stmt->bindParam(':product_weight', $product_weight , PDO::PARAM_INT); $stmt->bindParam(':unit_id', $unit_id , PDO::PARAM_INT); $stmt->bindParam(':subcategory_id', $subcategory_id , PDO::PARAM_INT); $stmt->bindParam(':business_id', $business_id , PDO::PARAM_INT); $stmt->bindParam(':subbusiness_id', $subbusiness_id , PDO::PARAM_INT); $result = $stmt->execute(); if($result){ echo ' <script> swal({ title: "แก้ไขข้อมูลสำเร็จ", icon: "success", button: "ตกลง", }).then( () => { location.href = "product" }); </script> '; } else { echo ' <script> swal({ title: "Error เกิดข้อผิดพลาด", icon: "error", button: "ตกลง", }).then( () => { location.href = "'.$_SERVER['REQUEST_URI'].'" }); </script> '; } } ?> <?php if(isset($_POST['btnDeleteProduct'])){ $product_id = $_POST['product_id']; $product_status = "0"; $stmt = $conn->prepare("UPDATE tb_product SET product_status=:product_status WHERE product_id=:product_id"); $stmt->bindParam(':product_id', $product_id , PDO::PARAM_INT); $stmt->bindParam(':product_status', $product_status , PDO::PARAM_STR); $result = $stmt->execute(); if($result){ echo ' <script> swal({ title: "ลบข้อมูลสำเร็จ", icon: "success", button: "ตกลง", }).then( () => { location.href = "product" }); </script> '; } else { echo ' <script> swal({ title: "Error เกิดข้อผิดพลาด", icon: "error", button: "ตกลง", }).then( () => { location.href = "'.$_SERVER['REQUEST_URI'].'" }); </script> '; } } ?> <?php if(isset($_POST['btnAddProduct'])){ $product_name = $_POST['product_name']; $product_no = $_POST['product_no']; $product_price = $_POST['product_price']; $product_detail = $_POST['product_detail']; $product_item = $_POST['product_item']; $product_stock = $product_item; $category_id = $_POST['category_id']; $product_status = "1"; $user_id = $_SESSION['user_id']; $product_save = date('Y-m-d H:i:s'); $product_view = 0; $product_weight = $_POST['product_weight']; $unit_id = $_POST['unit_id']; $subcategory_id = $_POST['subcategory_id']; $business_id = $_POST['business_id']; $subbusiness_id = $_POST['subbusiness_id']; $date1 = date("Y-m-d"); $numrand = (mt_rand()); $product_img = (isset($_POST['product_img']) ? $_POST['product_img'] : ''); $upload = $_FILES['product_img']['name']; if($upload != '') { $typefile = strrchr($_FILES['product_img']['name'],"."); if($typefile =='.jpg' || $typefile =='.jpeg' || $typefile =='.png') { $path = "img-product/"; $newname = $numrand.$date1.$typefile; $path_copy = $path.$newname; move_uploaded_file($_FILES['product_img']['tmp_name'],$path_copy); } else { //ถ้าไฟล์ที่อัพโหลดไม่ตรงตามที่กำหนดไว้ echo ' <script> swal({ title: "ไม่สามารถ Upload ไฟล์ได้", text: "เนื่องจากนามสกุลไฟล์ที่คุณ Upload ไม่ถูกต้อง", icon: "error", button: "ตกลง", }).then( () => { location.href = "product" }); </script> '; exit(); } } else { $newname = "-"; } $stmt = $conn->prepare("INSERT INTO tb_product(product_name, product_no, product_price, product_detail, product_img, product_item, product_stock, category_id, product_status, user_id, product_save, product_view, product_weight, unit_id, subcategory_id, business_id, subbusiness_id) VALUES (:product_name, :product_no, :product_price, :product_detail, :product_img, :product_item, :product_stock, :category_id, :product_status, :user_id, :product_save, :product_view, :product_weight, :unit_id, :subcategory_id, :business_id, :subbusiness_id)"); $stmt->bindParam(':product_name', $product_name , PDO::PARAM_STR); $stmt->bindParam(':product_no', $product_no , PDO::PARAM_STR); $stmt->bindParam(':product_price', $product_price , PDO::PARAM_INT); $stmt->bindParam(':product_detail', $product_detail , PDO::PARAM_STR); $stmt->bindParam(':product_img', $newname , PDO::PARAM_STR); $stmt->bindParam(':product_item', $product_item , PDO::PARAM_INT); $stmt->bindParam(':product_stock', $product_stock , PDO::PARAM_INT); $stmt->bindParam(':category_id', $category_id , PDO::PARAM_INT); $stmt->bindParam(':product_status', $product_status , PDO::PARAM_STR); $stmt->bindParam(':user_id', $user_id , PDO::PARAM_INT); $stmt->bindParam(':product_save', $product_save); $stmt->bindParam(':product_view', $product_view , PDO::PARAM_INT); $stmt->bindParam(':product_weight', $product_weight , PDO::PARAM_INT); $stmt->bindParam(':unit_id', $unit_id , PDO::PARAM_INT); $stmt->bindParam(':subcategory_id', $subcategory_id , PDO::PARAM_INT); $stmt->bindParam(':business_id', $business_id , PDO::PARAM_INT); $stmt->bindParam(':subbusiness_id', $subbusiness_id , PDO::PARAM_INT); $result = $stmt->execute(); if($result){ echo ' <script> swal({ title: "บันทึกข้อมูลสำเร็จ", icon: "success", button: "ตกลง", }).then( () => { location.href = "product" }); </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