Re: php login scripts
| From: | John Cuthbert | Date: | Sun, 27 Jan 2002 15:14:24 +0000 |
| Subject: | Re: php login scripts | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-82287@lists.php.net to get a copy of this message | ||
$user = $HTTP_GET_VARS["user"];
$pass = $HTTP_GET_VARS["pass"];
$real = "superduperunlieklytobeguesedpass";
if($user == $validuser && $pass == $real)
{
echo "thank you for logging in here is the page";
?>
<HTML>
etc
<?php } else {
die("You supid idiot thats not a valid login");
?>
and call the page as
http://superdomain.com/login.php?user=Imasuperduperuser&pass=superduperunlie
klytobeguesedpass
You'd need to alter it obviously. Its good for secureing one page if you
want multi page you ... need to work on Sessions :S Im working on em now :S
scarry stuff :S
"Laserjetter" <newsaddress@saracenvsu.org.uk> wrote in message
news:20020121085432.81690.qmail@pb1.pair.com...
> Depending on how secure the login information needs to be, you could just
> store it in a text file, maybe using password() to encrypt passwords. You
> could then access it using fopen() and save the contents of the file in an
> array.
>
> I'm not too hot on login and authentication though myself! I did get it
> working, there was a useful example in the PHP manual.
>
> LJ
>
> "XX XX" <wierdo999@hotmail.com> wrote in message
> news:F18tGfoH5XYj8l8wsz20000cb79@hotmail.com...
> > hi. im new. i installed a login script on my site and after a few days,
it
> > stopped working. i reinstalled it and it still refused to work after a
dew
> > days. can anyone send me a good login script preferably with no MySql?
im
> > very busy atm with all my school stuff.
> >
> > Thanks
> > aron
> >
> > _________________________________________________________________
> > Get your FREE download of MSN Explorer at
> http://explorer.msn.com/intl.asp.
> >
>
>