Hello, so you want to run either Logoutbutton(); or Loginbutton(); in html so it displays in the correct place? Here's how!
<?php echo (isset($_SESSION['steamid'])) ? logoutbutton() : loginbutton(); ?>
Now place that where you want the button to appear. Voila!
There was an error while loading. Please reload this page.