Jump to content

adding a login member


wezze

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/263906-adding-a-login-member/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.