<?php
if( $userdata['session_logged_in'] )
{
?>
<b>Welcome back
<?= $userdata['username'] ?>
!</b> |
<a href="<?= $phpbb_root_path . 'login.'.$phpEx.'?logout=true&sid=' . $userdata['session_id'] . '&redirect=..' . $_SERVER['PHP_SELF'] ?>" class="top2">Log out</a> |
<a href="http://www.the-leg.net/forums/profile.php?mode=editprofile" class="top2">Edit Profile</a> |
<a href="http://www.the-leg.net/forums/privmsg.php?folder=inbox" class="top2">Check Private Messages</a>
<?php
}
else {
?>
</span> </div>
<form action="<?= $phpbb_root_path ?>login.<?= $phpEx ?>" method="post" class="style1" style="margin:-2px">
<div align="center">Username:
<input name="username" type="text" style="background:fixed; background:url(bg/form_bg.jpg); border:none; font-family: Verdana; font-size: 10px; color: #99C1E4; margin-left:inherit; height: 26px; width:104px; vertical-align:middle; text-indent:4px" size="19" />
Password:
<input type="password" name="password" style="background:fixed; background:url(bg/form_bg.jpg); border:none; font-family: Verdana; font-size: 10px; color: #99C1E4; margin-left:inherit; height: 26px; width:104px; vertical-align:middle; text-indent:4px" />
<input type="hidden" name="redirect" value="..<?= $_SERVER['PHP_SELF'] ?>">
<input type="submit" name="login" value="." style="background:url(bg/go.jpg); border:none; width:54px; height:26px; margin-left:inherit; vertical-align:middle"/>
</div>
</form>
<?php
}
?>
and i am using a typical php nav system:
<?php
switch($id) {
default:
include('news.php');
break; case "sponsors":
include('sponsors.php');
break; case "affiliates":
include('affiliates.php');
}
?>
my problem is:
When this code is implemented, the phpBB login script, the site php nav no longer works, im confident its a session error? either that or something else
