02-22-2012, 05:33 AM
Hello,
If we have an login error, the best way is to restart the lgin page.
To do this we can modify the error.php file and modify at the top, to display the login page if we are not connected, and not display the menu and the error status bar. :
if (!isset($_SESSION['uid']))
{
draw_login();
}
else
{
draw_header('Error');
draw_menu($_SESSION['uid']);
@draw_status_bar('Error', $_REQUEST['last_message']);
}
And modiy at the bottom to not display the foter if noboddy is connected.
if (isset($_SESSION['uid']))
{
draw_footer();
}
If we have an login error, the best way is to restart the lgin page.
To do this we can modify the error.php file and modify at the top, to display the login page if we are not connected, and not display the menu and the error status bar. :
if (!isset($_SESSION['uid']))
{
draw_login();
}
else
{
draw_header('Error');
draw_menu($_SESSION['uid']);
@draw_status_bar('Error', $_REQUEST['last_message']);
}
And modiy at the bottom to not display the foter if noboddy is connected.
if (isset($_SESSION['uid']))
{
draw_footer();
}