Page 1 of 1
The weirdest problem...
Posted: Mon Jun 23, 2003 9:20 pm
by Drachlen
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?
Posted: Mon Jun 23, 2003 9:51 pm
by HungryMind
Logging in from the cloaked cjb address worked for me. By the way, may I ask what this site is all about? It seems like it leans toward D&D, but I can't tell.
EDIT: Oh, it looks like an EQ guild. Good stuff.
Posted: Mon Jun 23, 2003 10:32 pm
by Drachlen
Heres the code to the 2 pages that log you in:
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>
?>
I cut out alot of the HTML, thats just the login form
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");
}
?>
1/1 22/22 dont work, i modified a few names for specific reasons