Ejemplo n.º 1
0
            </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">
Ejemplo n.º 2
0
 /**
  * @return string HTML
  * Includes the user info array as side effect
  */
 public function getLogoutForm()
 {
     include './steamauth/userInfo.php';
     return logoutbutton();
 }