![]() 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
// Update navigation links to use new pages with consistent layout
echo "š UPDATING NAVIGATION LINKS\n\n";
// Update the header.php file to use new auth pages
$headerFile = 'includes/header.php';
if (file_exists($headerFile)) {
$content = file_get_contents($headerFile);
// Update auth links to use new pages
$content = str_replace('href="/auth/login.php"', 'href="/auth/login_new.php"', $content);
$content = str_replace('href="/auth/register.php"', 'href="/auth/register_new.php"', $content);
file_put_contents($headerFile, $content);
echo "ā
Updated includes/header.php navigation links\n";
}
// Update the main index.php navigation
$indexFile = 'index.php';
if (file_exists($indexFile)) {
$content = file_get_contents($indexFile);
// Update auth links in the navigation
$content = str_replace('href="auth/login.php"', 'href="auth/login_new.php"', $content);
$content = str_replace('href="auth/register.php"', 'href="auth/register_new.php"', $content);
file_put_contents($indexFile, $content);
echo "ā
Updated index.php navigation links\n";
}
// Update the footer.php links
$footerFile = 'includes/footer.php';
if (file_exists($footerFile)) {
$content = file_get_contents($footerFile);
// Update auth links in footer
$content = str_replace('href="/auth/login.php"', 'href="/auth/login_new.php"', $content);
$content = str_replace('href="/auth/register.php"', 'href="/auth/register_new.php"', $content);
file_put_contents($footerFile, $content);
echo "ā
Updated includes/footer.php links\n";
}
echo "\nš NAVIGATION LINKS UPDATED!\n";
echo "ā
All navigation now points to new pages with consistent layout\n";
echo "ā
Users will see the same header/footer across all pages\n";
echo "ā
Seamless user experience maintained\n";
echo "\nš UPDATED LINKS:\n";
echo "- Login: /auth/login_new.php\n";
echo "- Sign Up: /auth/register_new.php\n";
echo "- Dashboard: /dashboard_new.php\n";
echo "\nš§ TESTING:\n";
echo "1. Visit homepage and click Login/Sign Up\n";
echo "2. Verify consistent header/footer on all pages\n";
echo "3. Check that navigation works properly\n";
?>