![]() 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/ |
<?php
// 🔍 COMPREHENSIVE NAVIGATION AUDIT
// Checks all pages and their navigation consistency
error_reporting(E_ALL);
ini_set('display_errors', 1);
echo "<h1>🔍 NAVIGATION AUDIT</h1>";
echo "<p>Checking all pages and their navigation consistency...</p>";
// Define expected main pages
$expected_pages = [
'index' => 'Home',
'dashboard' => 'Dashboard',
'library_new' => 'My Library',
'artists' => 'Artists',
'community' => 'Community',
'create_music' => 'Create Music'
];
// Define all PHP files in the directory
$php_files = [
'index.php' => 'Home',
'dashboard.php' => 'Dashboard',
'dashboard_new.php' => 'Dashboard (New)',
'library.php' => 'Library (New)',
'library.php' => 'Library (Old)',
'artists.php' => 'Artists',
'community.php' => 'Community',
'create_music.php' => 'Create Music',
'create.php' => 'Create (Old)',
'player.php' => 'Player',
'auth/login.php' => 'Login',
'auth/register.php' => 'Register',
'auth/logout.php' => 'Logout'
];
echo "<h2>📋 PAGE INVENTORY</h2>";
$existing_pages = [];
$missing_pages = [];
foreach ($php_files as $file => $description) {
if (file_exists($file)) {
$existing_pages[$file] = $description;
echo "<p style='color: green;'>✅ $file - $description</p>";
} else {
$missing_pages[$file] = $description;
echo "<p style='color: red;'>❌ $file - $description (MISSING)</p>";
}
}
echo "<h2>🧭 NAVIGATION MENU ANALYSIS</h2>";
// Check header navigation
echo "<h3>Current Header Navigation:</h3>";
echo "<ul>";
echo "<li>🏠 Home (/index.php)</li>";
echo "<li>📊 Dashboard (/dashboard.php)</li>";
echo "<li>📚 My Library (/library.php)</li>";
echo "<li>🎨 Artists (/artists.php)</li>";
echo "<li>👥 Community (/community.php)</li>";
echo "<li>🎵 Create Music (/create_music.php) - MISSING FROM NAV</li>";
echo "</ul>";
echo "<h2>🔧 NAVIGATION ISSUES FOUND</h2>";
$issues = [];
// Issue 1: Create Music missing from navigation
$issues[] = "❌ Create Music page (/create_music.php) is missing from the main navigation menu";
// Issue 2: Check if all pages include header
echo "<h3>📄 Header Inclusion Check:</h3>";
$pages_to_check = [
'dashboard.php',
'library.php',
'artists.php',
'community.php',
'create_music.php'
];
foreach ($pages_to_check as $page) {
if (file_exists($page)) {
$content = file_get_contents($page);
if (strpos($content, 'includes/header.php') !== false) {
echo "<p style='color: green;'>✅ $page - Includes header</p>";
} else {
echo "<p style='color: red;'>❌ $page - Missing header include</p>";
$issues[] = "❌ $page is missing header include";
}
}
}
echo "<h2>🔧 FIXES NEEDED</h2>";
if (!empty($issues)) {
echo "<ul>";
foreach ($issues as $issue) {
echo "<li>$issue</li>";
}
echo "</ul>";
} else {
echo "<p style='color: green;'>✅ No navigation issues found!</p>";
}
echo "<h2>📊 SUMMARY</h2>";
echo "<div style='background: #f8f9fa; padding: 20px; border-radius: 10px; margin: 20px 0;'>";
echo "<h3>📈 Statistics:</h3>";
echo "<p><strong>Total pages found:</strong> " . count($existing_pages) . "</p>";
echo "<p><strong>Missing pages:</strong> " . count($missing_pages) . "</p>";
echo "<p><strong>Navigation issues:</strong> " . count($issues) . "</p>";
echo "</div>";
echo "<h2>🎯 RECOMMENDED ACTIONS</h2>";
echo "<div style='background: #e8f5e8; padding: 20px; border-radius: 10px; margin: 20px 0;'>";
echo "<h3>✅ Priority Fixes:</h3>";
echo "<ol>";
echo "<li><strong>Add Create Music to navigation</strong> - Update header.php to include create_music.php</li>";
echo "<li><strong>Verify all pages have headers</strong> - Ensure consistent navigation across all pages</li>";
echo "<li><strong>Test all navigation links</strong> - Verify all links work correctly</li>";
echo "<li><strong>Update page titles</strong> - Ensure consistent page titles and descriptions</li>";
echo "</ol>";
echo "</div>";
echo "<h2>🔗 QUICK ACTIONS</h2>";
echo "<div style='text-align: center; margin-top: 20px;'>";
echo "<a href='/dashboard.php' style='background: #667eea; color: white; padding: 10px 20px; text-decoration: none; border-radius: 5px; margin: 0 10px;'>";
echo "📊 Dashboard</a>";
echo "<a href='/library.php' style='background: #48bb78; color: white; padding: 10px 20px; text-decoration: none; border-radius: 5px; margin: 0 10px;'>";
echo "📚 Library</a>";
echo "<a href='/artists.php' style='background: #764ba2; color: white; padding: 10px 20px; text-decoration: none; border-radius: 5px; margin: 0 10px;'>";
echo "🎨 Artists</a>";
echo "<a href='/community.php' style='background: #f093fb; color: white; padding: 10px 20px; text-decoration: none; border-radius: 5px; margin: 0 10px;'>";
echo "👥 Community</a>";
echo "<a href='/create_music.php' style='background: #4facfe; color: white; padding: 10px 20px; text-decoration: none; border-radius: 5px; margin: 0 10px;'>";
echo "🎵 Create Music</a>";
echo "</div>";
?>