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/.cursor-server/data/User/History/6dcc9068/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/gositeme/.cursor-server/data/User/History/6dcc9068/DlRp.php
<?php
/**
 * Migration: Convert all track titles to UPPERCASE
 * 
 * Run this once to update all existing track titles to ALL CAPS
 */

require_once __DIR__ . '/../config/database.php';

$pdo = getDBConnection();

if (!$pdo) {
    die("Database connection failed.");
}

echo "<h2>Track Title Uppercase Migration</h2>";
echo "<pre>";

try {
    // Get all tracks
    $stmt = $pdo->query("SELECT id, title FROM music_tracks");
    $tracks = $stmt->fetchAll(PDO::FETCH_ASSOC);
    
    $total = count($tracks);
    $updated = 0;
    $skipped = 0;
    
    echo "Found {$total} tracks to process...\n\n";
    
    // Prepare update statement
    $updateStmt = $pdo->prepare("UPDATE music_tracks SET title = ? WHERE id = ?");
    
    foreach ($tracks as $track) {
        $oldTitle = $track['title'];
        $newTitle = mb_strtoupper($oldTitle, 'UTF-8');
        
        // Only update if title changed
        if ($oldTitle !== $newTitle) {
            $updateStmt->execute([$newTitle, $track['id']]);
            echo "✅ [{$track['id']}] \"{$oldTitle}\" → \"{$newTitle}\"\n";
            $updated++;
        } else {
            $skipped++;
        }
    }
    
    echo "\n" . str_repeat("-", 50) . "\n";
    echo "✅ Migration complete!\n";
    echo "   - Total tracks: {$total}\n";
    echo "   - Updated: {$updated}\n";
    echo "   - Already uppercase: {$skipped}\n";
    
} catch (Exception $e) {
    echo "❌ Error: " . $e->getMessage() . "\n";
    error_log("Uppercase migration error: " . $e->getMessage());
}

echo "</pre>";
?>


CasperSecurity Mini