V1rus Private
User / IP
:
216.73.217.108
Host / Server
:
190.92.174.125 / aerosofthealthcare.com
System
:
Linux s3739.bom1.stableserver.net 4.18.0-513.24.1.lve.2.el8.x86_64 #1 SMP Fri May 24 12:42:50 UTC 2024 x86_64
Cmd
|
Upload
|
Mass Deface
|
Create
|
Sym
:
/
home
/
aerosoft
/
www
/
exam
/
Viewing: add_category.php
<?php include 'config.php'; if (!isset($_SESSION['admin_id'])) { header("Location: login.php"); exit(); } if ($_SERVER['REQUEST_METHOD'] == 'POST') { $name = sanitize($_POST['name']); $description = sanitize($_POST['description']); $stmt = $pdo->prepare("INSERT INTO categories (name, description) VALUES (?, ?)"); if ($stmt->execute([$name, $description])) { $_SESSION['message'] = "Category added successfully!"; } else { $_SESSION['error'] = "Failed to add category!"; } header("Location: admin_dashboard.php"); exit(); } ?>
Coded With 💗 by
HanzOFC