</li> </ul> <ul class="nav navbar-nav navbar-right"> <li> <?php if (!isset($_SESSION['steamid'])) { steamlogin(); //login button } else { include 'steamauth/userInfo.php'; //To access the $steamprofile array //Protected content // echo $steamprofile['personaname']; logoutbutton(); //Logout Button } ?> </li> </ul> </div> </div> </div> <div class="container" style="padding-top:100px">
/** * @return string HTML * Includes the user info array as side effect */ public function getLogoutForm() { include './steamauth/userInfo.php'; return logoutbutton(); }