note 16712 added to ref.http
| From: | no at no dot no | Date: | Fri, 09 Nov 2001 21:41:31 +0000 |
| Subject: | note 16712 added to ref.http | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-20647@lists.php.net to get a copy of this message | ||
If there is a page where a user shouldnt be without username and pass, the admim/webmaster might
want to add a small, simple re-direction script. For example if sumone trys login-in into a
'admin panel' of some sort, and the username and/or password is wrong, the user would get
re-directed back to the login.php page...
----------------------------------------
<?php
print
"<b><center><font face=arial size=4 color=black>Sorry, you are either not
authenticated to be in this area, or you have no logged in</b></center></font>
<center><font face=arial size=1 color=black>Please white while you get re-directed, or
click <a href=\"login.php?\">here</a></font></center>
<script language=javascript>
<!--
setTimeout(\"document.location.href=\'login.php?\';\", 2500);
//-->
</script>
?>
----------------------------------------
However, cookies will be involved to see if the username and password match whats on the file.
--
http://www.php.net/manual/en/ref.http.php
http://master.php.net/manage/user-notes.php?action=edit+16712
http://master.php.net/manage/user-notes.php?action=delete+16712
http://master.php.net/manage/user-notes.php?action=reject+16712