wezze Posted June 9, 2012 Share Posted June 9, 2012 Is it possible to add a member to this part of the code so when this user logs hes redirected to another page? <? /** * User has already logged in, so display relavent links, including * a link to the admin center if the user is an administrator. */ if($session->logged_in){ echo '<h1><img src="images/lock_unlocked.png" width="32" height="32">Logged In</h1>'; echo "<table width='600' cellpadding='5' cellspacing='5' border='1'>"; echo "<p>Welcome <b>$session->username</b></p>" ."<tr><td>[<a href=\"userinfo.php?user=$session->username\">My Account</a>]</td></tr>" ."<tr><td>[<a href=\"useredit.php\">Edit Account</a>]</td></tr>"; if($session->isAdmin()){ echo "<tr><td>[<a href=\"admin/admin.php\">Admin Center</a>]</td></tr>"; echo "<tr><td>[<a href=\"../gastenboek/admin/index.php\">Gastenboek</a>]</td></tr>"; echo "<tr><td>[<a href=\"../livre d'or/admin/index.php\">livre d'or</a>]</td></tr>"; echo "<tr><td>[<a href=\"../upload_album/upload.form.php\">upload album</a>]</td></tr>"; echo "<tr><td>[<a href=\"../upload_kalender/upload.form.php\">upload kalender</a>]</td></tr>"; } echo "<tr><td>[<a href=\"process.php\">Logout</a>]</td></tr></table>"; } else{ ?> thx Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.