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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/gositeme/domains/soundstudiopro.com/private_html/utils/update_navigation_links.php
<?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";
?> 

CasperSecurity Mini