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/public_html/utils/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/gositeme/domains/soundstudiopro.com/public_html/utils/test_color_system.php
<?php
/**
 * COLOR SYSTEM TEST SCRIPT
 * Tests that all pages use CSS variables correctly
 */

echo "šŸŽØ COLOR SYSTEM TEST\n";
echo "===================\n\n";

// Test pages to check
$test_pages = [
    'index.php',
    'create_music.php',
    'artists.php', 
    'dashboard.php',
    'community.php',
    'library.php',
    'artist_profile.php',
    'bands.php',
    'pricing.php',
    'winamp_player.php',
    'player.php',
    'auth/login.php',
    'auth/register.php'
];

function testPage($page) {
    if (!file_exists($page)) {
        echo "āŒ $page - File not found\n";
        return false;
    }
    
    $content = file_get_contents($page);
    
    // Check for CSS variables usage
    $css_vars = [
        'var(--primary-gradient)',
        'var(--bg-primary)',
        'var(--text-primary)',
        'var(--bg-card)',
        'var(--border-light)'
    ];
    
    $has_vars = false;
    foreach ($css_vars as $var) {
        if (strpos($content, $var) !== false) {
            $has_vars = true;
            break;
        }
    }
    
    // Check for hardcoded colors
    $hardcoded_colors = [
        '#667eea',
        '#764ba2', 
        '#4facfe',
        '#0a0a0a',
        '#1a1a1a',
        '#ffffff',
        '#a0aec0'
    ];
    
    $has_hardcoded = false;
    foreach ($hardcoded_colors as $color) {
        if (strpos($content, $color) !== false) {
            $has_hardcoded = true;
            break;
        }
    }
    
    if ($has_vars && !$has_hardcoded) {
        echo "āœ… $page - Using CSS variables correctly\n";
        return true;
    } elseif ($has_vars && $has_hardcoded) {
        echo "āš ļø  $page - Using CSS variables but has some hardcoded colors\n";
        return false;
    } else {
        echo "āŒ $page - Not using CSS variables\n";
        return false;
    }
}

// Test each page
$passed = 0;
$total = count($test_pages);

foreach ($test_pages as $page) {
    if (testPage($page)) {
        $passed++;
    }
    echo "\n";
}

echo "šŸ“Š TEST RESULTS\n";
echo "==============\n";
echo "āœ… Passed: $passed/$total\n";
echo "āŒ Failed: " . ($total - $passed) . "/$total\n\n";

if ($passed === $total) {
    echo "šŸŽ‰ ALL PAGES ARE USING CSS VARIABLES CORRECTLY!\n";
    echo "✨ Your Feng Shui color system is fully implemented!\n";
} else {
    echo "āš ļø  Some pages still need attention\n";
    echo "šŸ”§ Run fix_all_colors.php again if needed\n";
}

// Test the comprehensive CSS file
echo "\nšŸ” TESTING COMPREHENSIVE CSS\n";
echo "============================\n";

if (file_exists('comprehensive_colors.css')) {
    $css_content = file_get_contents('comprehensive_colors.css');
    $important_rules = substr_count($css_content, '!important');
    echo "āœ… comprehensive_colors.css exists\n";
    echo "šŸ“Š Contains $important_rules important rules\n";
    echo "šŸŽÆ Will override any remaining hardcoded colors\n";
} else {
    echo "āŒ comprehensive_colors.css not found\n";
}

echo "\nšŸš€ COLOR SYSTEM READY FOR TESTING!\n";
echo "==================================\n";
echo "1. Visit any page on your site\n";
echo "2. Click the šŸŽØ button on the right side\n";
echo "3. Watch ALL elements change colors\n";
echo "4. Test different Feng Shui themes\n\n";

echo "šŸŽµ Your music creation platform now has divine color harmony!\n";
?> 

CasperSecurity Mini