![]() 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/ |
<?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";
?>