id); } if(isset($_POST['removefriend'])) { removeFriend($info->id); } if(isset($_POST['acceptfriend'])) { acceptFriendRequest($info->id); } if (UserModerationManager::IsBanned($id)) { WebContextManager::Redirect("/404"); } $body = << {$alert}
Alphaland Badges

Badges
Groups
EOT; } else { WebContextManager::Redirect('/404'); } } else { //viewing your own profile header('Location: view?id=' . $GLOBALS['user']->id); } pageHandler(); $ph->pageTitle("Profile"); $ph->body = $body; $ph->output();