Please login'); } //for easier use we shove some of the session array into variables. $userid = $_SESSION['userid']; $username = $_SESSION['username']; $useremail = $_SESSION['email']; $usergn = $_SESSION['givenName']; $userln = $_SESSION['lastName']; $activated = $_SESSION['activated']; $isadmin = $_SESSION['isadmin']; $profilepicture = $_SESSION['profilepicture']; //lets build a page: ?> Profile Page


'; ?>
Profile of '.$username.''; echo "
"; //lets build a table with infos: echo ''; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; ?>
"; echo "Username"; echo ""; echo $username; echo "
"; echo "User-ID"; echo ""; echo $userid; echo "
"; echo "given Name"; echo ""; echo $usergn; echo "
"; echo "lastName"; echo ""; echo $userln; echo "
"; echo "E-Mail"; echo ""; echo $useremail; echo "



"; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; //some html: ?>
"; echo "User Status:"; echo ""; if ($activated == 0) { //if not activated print it in red and render a activation link echo '

Not Activated!


'; echo 'Click here to activate'; } if ($activated == 1) { //if activated print so, but in green echo '

Activated!

'; } echo "
"; echo "User Level:"; echo ""; if ($isadmin == 0) { //if not admin, print "User" in green echo '

User


'; } if ($isadmin == 1) { //if admin, print so but in red echo '

Admin

'; } echo "