T.ME/BIBIL_0DAY
CasperSecurity


Server : Apache/2
System : Linux server-15-235-50-60 5.15.0-164-generic #174-Ubuntu SMP Fri Nov 14 20:25:16 UTC 2025 x86_64
User : gositeme ( 1004)
PHP Version : 8.2.29
Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Directory :  /home/gositeme/domains/soundstudiopro.com/private_html/utils/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/gositeme/domains/soundstudiopro.com/private_html/utils/quick_test.php
<?php
session_start();
require_once 'config/database.php';

echo "<h1>Quick Database Test</h1>";

if (!isset($_SESSION['user_id'])) {
    echo "<p>Not logged in. <a href='/auth/login.php'>Login here</a></p>";
    exit;
}

echo "<p>User: " . $_SESSION['user_name'] . " (ID: " . $_SESSION['user_id'] . ")</p>";

// Check for tracks with "danny"
$pdo = getDBConnection();
if ($pdo) {
    $stmt = $pdo->prepare("
        SELECT id, title, prompt, status, created_at 
        FROM music_tracks 
        WHERE user_id = ? AND prompt LIKE ? 
        ORDER BY created_at DESC
    ");
    $stmt->execute([$_SESSION['user_id'], '%danny%']);
    $tracks = $stmt->fetchAll();
    
    echo "<h2>Tracks with 'danny' in prompt:</h2>";
    if (empty($tracks)) {
        echo "<p style='color: orange;'>No tracks found with 'danny' in the prompt</p>";
    } else {
        echo "<ul>";
        foreach ($tracks as $track) {
            echo "<li><strong>" . htmlspecialchars($track['title']) . "</strong> - " . 
                 $track['status'] . " (" . $track['created_at'] . ")</li>";
        }
        echo "</ul>";
    }
    
    // Show all recent tracks
    $stmt = $pdo->prepare("
        SELECT id, title, prompt, status, created_at 
        FROM music_tracks 
        WHERE user_id = ? 
        ORDER BY created_at DESC 
        LIMIT 10
    ");
    $stmt->execute([$_SESSION['user_id']]);
    $recentTracks = $stmt->fetchAll();
    
    echo "<h2>Recent tracks (last 10):</h2>";
    if (empty($recentTracks)) {
        echo "<p style='color: orange;'>No tracks found</p>";
    } else {
        echo "<ul>";
        foreach ($recentTracks as $track) {
            echo "<li><strong>" . htmlspecialchars($track['title']) . "</strong> - " . 
                 $track['status'] . " (" . $track['created_at'] . ")</li>";
        }
        echo "</ul>";
    }
}

echo "<p><a href='/library.php'>Back to Library</a></p>";
?> 

CasperSecurity Mini