![]() 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/-2e4b41f4/ |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Header Consistency Test</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 20px;
background: #0a0a0a;
color: white;
}
.test-container {
max-width: 800px;
margin: 0 auto;
}
.test-section {
background: #1a1a1a;
padding: 20px;
margin: 20px 0;
border-radius: 8px;
border: 1px solid #333;
}
.test-button {
background: #667eea;
color: white;
border: none;
padding: 10px 20px;
margin: 5px;
border-radius: 4px;
cursor: pointer;
text-decoration: none;
display: inline-block;
}
.test-button:hover {
background: #5a67d8;
}
.status {
padding: 10px;
margin: 10px 0;
border-radius: 4px;
}
.status.success {
background: #51cf66;
color: white;
}
.status.error {
background: #ff6b6b;
color: white;
}
.status.info {
background: #339af0;
color: white;
}
</style>
</head>
<body>
<div class="test-container">
<h1>🔧 Header Consistency Test</h1>
<div class="test-section">
<h2>📋 Test Navigation Pages</h2>
<p>Click each link to test if the header navigation highlighting works correctly:</p>
<a href="/" class="test-button" target="_blank">Test Home Page</a>
<a href="/dashboard.php" class="test-button" target="_blank">Test Dashboard</a>
<a href="/library_new.php" class="test-button" target="_blank">Test My Library</a>
<a href="/artists.php" class="test-button" target="_blank">Test Artists</a>
<a href="/community.php" class="test-button" target="_blank">Test Community</a>
<a href="/feed.php" class="test-button" target="_blank">Test Feed</a>
</div>
<div class="test-section">
<h2>🎯 Expected Behavior</h2>
<div class="status info">
<strong>Home Page:</strong> "Home" should be highlighted in navigation
</div>
<div class="status info">
<strong>Dashboard:</strong> "Dashboard" should be highlighted in navigation
</div>
<div class="status info">
<strong>My Library:</strong> "My Library" should be highlighted in navigation
</div>
<div class="status info">
<strong>Artists:</strong> "Artists" should be highlighted in navigation
</div>
<div class="status info">
<strong>Community:</strong> "Community" should be highlighted in navigation
</div>
<div class="status info">
<strong>Feed:</strong> "Feed" should be highlighted in navigation (if logged in)
</div>
</div>
<div class="test-section">
<h2>🔍 Current Page Variables</h2>
<div class="status success">
<strong>Home (index.php):</strong> $current_page = 'index'
</div>
<div class="status success">
<strong>Dashboard:</strong> $current_page = 'dashboard'
</div>
<div class="status success">
<strong>My Library:</strong> $current_page = 'library_new'
</div>
<div class="status success">
<strong>Artists:</strong> $current_page = 'artists'
</div>
<div class="status success">
<strong>Community:</strong> $current_page = 'community'
</div>
<div class="status success">
<strong>Feed:</strong> $current_page = 'feed'
</div>
</div>
<div class="test-section">
<h2>🎵 Global Player Test</h2>
<p>Test if the global player works consistently across all pages:</p>
<a href="/test_play_button.php" class="test-button" target="_blank">Test Global Player</a>
<a href="/test_home_button.php" class="test-button" target="_blank">Test Home Button</a>
</div>
<div class="test-section">
<h2>📝 Instructions</h2>
<ol>
<li>Click each test link above</li>
<li>Check if the correct navigation item is highlighted</li>
<li>Test the global player on each page</li>
<li>Verify that the header looks consistent across all pages</li>
<li>Test navigation between pages using the header links</li>
</ol>
</div>
</div>
</body>
</html>