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/check_db.php
<?php
require_once 'config/database.php';

echo "<h1>🔍 Database Check</h1>";

$pdo = getDBConnection();
if (!$pdo) {
    echo "<p style='color: red;'>❌ Database connection failed!</p>";
    exit;
}

echo "<h2>All Music Tracks:</h2>";
$stmt = $pdo->prepare("SELECT * FROM music_tracks ORDER BY created_at DESC LIMIT 10");
$stmt->execute();
$tracks = $stmt->fetchAll();

if (empty($tracks)) {
    echo "<p style='color: orange;'>⚠️ No tracks found in database</p>";
} else {
    echo "<p style='color: green;'>✅ Found " . count($tracks) . " tracks:</p>";
    echo "<table border='1' style='border-collapse: collapse; width: 100%;'>";
    echo "<tr><th>ID</th><th>User ID</th><th>Title</th><th>Prompt</th><th>Status</th><th>Created</th></tr>";
    foreach ($tracks as $track) {
        $highlight = strpos(strtolower($track['prompt']), 'danny') !== false ? 'background: yellow; color: black;' : '';
        echo "<tr style='$highlight'>";
        echo "<td>" . $track['id'] . "</td>";
        echo "<td>" . $track['user_id'] . "</td>";
        echo "<td>" . htmlspecialchars($track['title']) . "</td>";
        echo "<td>" . htmlspecialchars(substr($track['prompt'], 0, 30)) . "...</td>";
        echo "<td>" . $track['status'] . "</td>";
        echo "<td>" . $track['created_at'] . "</td>";
        echo "</tr>";
    }
    echo "</table>";
}

echo "<h2>Danny Tracks:</h2>";
$stmt = $pdo->prepare("SELECT * FROM music_tracks WHERE prompt LIKE ? ORDER BY created_at DESC");
$stmt->execute(['%danny%']);
$dannyTracks = $stmt->fetchAll();

if (empty($dannyTracks)) {
    echo "<p style='color: orange;'>⚠️ No tracks with 'danny' found</p>";
} else {
    echo "<p style='color: green;'>✅ Found " . count($dannyTracks) . " Danny tracks:</p>";
    foreach ($dannyTracks as $track) {
        echo "<p><strong>" . htmlspecialchars($track['title']) . "</strong> - Status: " . $track['status'] . " - Created: " . $track['created_at'] . "</p>";
    }
}

echo "<h2>Processing Tracks:</h2>";
$stmt = $pdo->prepare("SELECT * FROM music_tracks WHERE status = 'processing' ORDER BY created_at DESC");
$stmt->execute();
$processingTracks = $stmt->fetchAll();

if (empty($processingTracks)) {
    echo "<p style='color: green;'>✅ No tracks currently processing</p>";
} else {
    echo "<p style='color: orange;'>⚠️ Found " . count($processingTracks) . " processing tracks:</p>";
    foreach ($processingTracks as $track) {
        echo "<p><strong>" . htmlspecialchars($track['title']) . "</strong> - Created: " . $track['created_at'] . "</p>";
    }
}

echo "<h2>🔧 Quick Actions:</h2>";
echo "<p><a href='/library.php' style='background: #667eea; color: white; padding: 0.5rem 1rem; text-decoration: none; border-radius: 5px; margin-right: 1rem;'>📚 Go to Library</a>";
echo "<a href='/create.php' style='background: #48bb78; color: white; padding: 0.5rem 1rem; text-decoration: none; border-radius: 5px; margin-right: 1rem;'>🎵 Create New Music</a>";
echo "<a href='/dashboard.php' style='background: #764ba2; color: white; padding: 0.5rem 1rem; text-decoration: none; border-radius: 5px;'>🏠 Back to Dashboard</a></p>";
?> 

CasperSecurity Mini