The weirdest problem...
Moderator: General Moderators
The weirdest problem...
Okay... I have a login script, and my page url is cloaked through cjb.net, so any link it goes to doesnt change the url. Well, when i try to login from the cjb.net link, it doesnt work, but when i goto the non-cloaked url it does work... Heres the 2 links, first goto http://www.morte-satanica.cjb.net/ and click 'login' type in 333 / 333 ... It shouldnt work, now try http://www.projectrathole.com/drachlen/ ... php?p=News click login and try 333 / 333 it should work now... Any ideas?
- HungryMind
- Forum Commoner
- Posts: 41
- Joined: Fri Jun 20, 2003 10:33 am
- Location: Alameda, CA
Heres the code to the 2 pages that log you in:
Login.php :
I cut out alot of the HTML, thats just the login form
Verify.php :
1/1 22/22 dont work, i modified a few names for specific reasons
Login.php :
Code: Select all
<?php
session_start();
?>
<FORM METHOD=POST ACTION=Verify.php>
<br><TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 width=590 bgcolor=#404040 width=590>
<TD align=left bgcolor=#1E1E1E width=40%><font face=Verdana Color=#7F8F7F><img src=lcor.png></TD>
<TD width=550 align=left bgcolor=#1E1E1E><font face=Verdana Color=#7F8F7F><b> Login</TD>
<TD align=right bgcolor=#1E1E1E width=1%><font face=Verdana Color=#7F8F7F><img src=rcor.png></TD>
<TR>
<TD align=right><font face=Verdana Color=#C9C8C1><b>Name:</TD>
<TD><font face=Verdana Color=#C9C8C1><b><INPUT TYPE=text NAME=username SIZE=22></TD>
<TR>
<TD align=right><font face=Verdana Color=#C9C8C1><b>Password:</TD>
<TD><font face=Verdana Color=#C9C8C1><b><INPUT TYPE=password NAME=password SIZE=22></TD>
<TR>
<TD> </td><td><font face=Verdana Color=#C9C8C1><INPUT TYPE=submit VALUE=Login></TD>
</form>
<TR>
<TD bgcolor=#404040 align=left valign=bottom><font face=Verdana Color=#C9C8C1><img src=btl.png></TD>
<TD bgcolor=#404040><font face=Verdana Color=#C9C8C1></TD>
<TD bgcolor=#404040 align=right valign=bottom><font face=Verdana Color=#C9C8C1><img src=btr.png></TD>
</table>
?>Verify.php :
Code: Select all
<?php
session_start();
if ( $_POST['username'] == '1' && $_POST['password'] == '1'
or
$_POST['username'] == '22' && $_POST['password'] == '22'
or
$_POST['username'] == '333' && $_POST['password'] == '333' ) {
$_SESSION['auth'] = true;
$_SESSION['username'] = $_POST['username'];
header("Location: http://www.morte-satanica.cjb.net/");
} else {
$_SESSION['auth'] = false;
$_SESSION['username'] = '';
header("Location: Login.php");
}
?>