i have a signup / login script already installed on my server and it works fine, and when a person trys to directly access a page with out signing it it gives them a error messge the following code is used:
<?
$CheckSecurity = new auth();
$check = $CheckSecurity->page_check($USERNAME, $PASSWORD);
if ($check == false)
{
// Feel free to change the error message below. Just make sure you put a "\" before
// any double quote.
print "</font><br>";
print "<font face=\"Tahoma\" size=\"2\" color=\"#000000\">";
print "<b>It seems you are trying to access this page without a valid username and or password.</b></font>";
print "</font><br>";
print "<font face=\"Tahoma\" size=\"2\" color=\"#000000\">";
print "<b>Please <a href=\"../sign_up.htm\">sign up</a> inorder to have full access to this site. <</b></font>";
exit; // End program execution. This will disable continuation of processing the rest of the page.
}
?>
while thats all well and good, i dont want it to have just a text message, i want it to be a whole page kinda thing, like add the template of the other pages (insert HTML) etc. or even be able to insert a php or java script code to redirect.
any ideas on how to fix this. please let me know soon. thanks.