My problem is the Webmaster account can log in, but not out. No one else can log in.
The members page will not display. The user control options do nothing. the url directs are all correct.
if($y != "1") {
$membername = $_SESSION['membername'];
$query = "UPDATE {$dbprefix}members SET loggedin = '0', remember = '0' WHERE username = '$membername'";
$result = mysql_query($query)
or die(mysql_error());
unset($_SESSION['membername']);
unset($_SESSION['memberpass']);
//session_destroy();
echo "
<script language=\"Javascript\">
window.location.href = 'index.php?p=Logout&y=1';
</script>
";
}
Once $y becomes 1 it shows a conformation.
Navigation
<a href='index.php' class='menufont'>Home</a> <a href='index.php?p=News' class='menufont'>News</a> <a href='console.php' class='menufont'>Console</a> <a href='index.php?p=ChatBoard' class='menufont'>Chat Board</a> <a href='index.php?p=Members' class='menufont'>Members</a> <a href='index.php?p=Ranks' class='menufont'>Rankings</a> <a href='index.php?p=Webbot' class='menufont'>Webbot</a> <a href='index.php?p=Rules' class='menufont'>Rules</a> <a href='index.php?p=Diplomacy' class='menufont'>Diplomacy</a> <a href='index.php?p=ReqDiplomacy' class='menufont'>Req. Diplomacy</a> <a href='index.php?p=History' class='menufont'>History</a> <a href='index.php?p=PastWars' class='menufont'>Past Wars</a> <a href='index.php?p=HallofFame' class='menufont'>Hall Of Fame</a> <a href='index.php?p=HallofShame' class='menufont'>Hall Of Shame</a> <a href='index.php?p=Heroes' class='menufont'>Heroes</a> <a href='index.php?p=ClanLegends' class='menufont'>Clan Legends</a> <a href='index.php?p=MOTM' class='menufont'>MOTM</a> <a href='index.php?p=Squads' class='menufont'>Squads</a> <a href='index.php?p=Calendar' class='menufont'>Calendar</a> <a href='index.php?p=Challenges' class='menufont'>Challenges</a> <a href='index.php?p=MemberPics' class='menufont'>Member Pics</a> <a href='index.php?p=LostPassword' class='menufont'>Lost Password</a>
$p is then checked on the index.php to find out what pages are included rather than the home page.
The same thing is basically used in the control panels. The only difference is that the page URLs are stored in the database, the links just return an ID. A function then reruns the URL.
None of the pages display. Only include/homepage.php(?p=Homepage) and console.php show up. I really can't think of anything else to try.
To solve the logging out problem I tried to use session_destroy with no anvil.
Thanks in advance.
The site is here.
This post has been edited by adgarci: 04 June 2010 - 07:39 PM

New Topic/Question
Reply




MultiQuote




|