- Readme First! - Read and follow the rules, otherwise your posts will be closed
There are currently, 44 guest(s) and 1 member(s) that are online. You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Your_Account not finding user [ ]
Author
Message
sleepingkiller
Private
Joined: Sep 19, 2004
Posts: 41
Posted:
Fri Aug 12, 2005 7:13 pm
ok i was adding some mods/hacks to my forums and wanted to test one. so i log out... i couldnt so i clear all my cookies and im finally logged out
i test the new mod and it worked good for guests.
i go to log in and it will not let me log in using Your Account...
well it logs in but it just shows my user information as if im a guest viewing it
so i add something to the lines to check my cookies
Code:
if((strtolower($username) == strtolower($cookie[1])) AND ($userinfo[user_password] == $cookie[2])) {
echo "<font class=\"option\">$username, "._WELCOMETO." $sitename!</font><br><br>";
echo "<font class=\"content\">"._THISISYOURPAGE."</font></center><br><br>";
nav(1);
echo "<br><br>";
} else {
echo "<font class=\"title\">"._PERSONALINFO.": $username</font></center><br><br>";
echo "Your are user:$cookie[1] under password: $cookie[2]";
}
what comes up is
Your are user: under password:
this is making me mad. but yet the login block goes away and when i view forums it is showing me logged in.
i removed forums module and replaced with a new one thinking something i did in forums is causing this but nothing....
so i add a fresh install of phpnuke and set up the config to read my data.
some blocks broken but my your account works
i go back to old one and its not working....
i hope i didnt confuse you guys and you can help me get this fixed...
i dont know what could cause this as i havnt edited the Your_Account Module
Evaders99
Site Admin
Joined: Aug 17, 2003
Posts: 12373
Posted:
Fri Aug 12, 2005 8:37 pm
sleepingkiller
Private
Joined: Sep 19, 2004
Posts: 41
Posted:
Sun Aug 14, 2005 12:18 pm
it is but
Code:
if(!bypass) cookiedecode($user);
that was causing errors. i removed the if statement and left just cookiecode and it worked. but i put it back and did this
Code:
$UserCheck = cookie[1];
$PassCheck = cookie[2];
.....
if((strtolower($username) == strtolower($UserCheck)) AND ($userinfo[user_password] == $PassCheck)) {
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum