Steam Login script won´t work
<p>I tried to use the steam-login script of github on my php file.
I used a custom button instead of the official steam button.<br>
The situation is: I press the button and i get to the standard localhost/dashboard site, I'm simulating it over XAMPP.<br>
Script to login to steam, adding a trade link of your steam account, showing your profile and logging out at the end.</p>

<pre><code>&lt;?php
  if(!isset($_SESSION["steamid"])) {
    steamlogin();
    echo '&lt;a class="ezpz-loginas" style="font-size: 12px;border: 2px solid #db073d;margin: 60px auto 0px;padding-top: 22px;" href="/?login"&gt;CONNECT TO STEAM&lt;/a&gt;';
  } else {
    echo '&lt;article class="jfrs clearfix"&gt;
      &lt;img src="' . $steamprofile['avatarfull'] . '" height="74" width="74" alt=""&gt;
      &lt;p&gt;' . $steamprofile['personaname'] . ' &lt;a href="steamauth/logout.php"&gt;Logout&lt;/a&gt;&lt;/p&gt;
      &lt;ul class="clearfix"&gt;
      &lt;li&gt;&lt;a href="http://steamcommunity.com/id/me/tradeoffers/privacy#trade_offer_access_url" target="_blank"&gt;Where can I find my Trade-URL?&lt;/a&gt;&lt;/li&gt;
      &lt;/ul&gt;
      &lt;/article&gt;
      &lt;form method="POST" action="./updatelink.php"&gt;
      &lt;input type="text" class="main-link" name="link" id="link" value="' . $mytrade . '" placeholder="Set Trade-URL"&gt;
      &lt;input type="submit" class="main-link-check" href="#" value=""&gt;
      &lt;/form&gt;';

    mysql_query("UPDATE users SET name='" . $steamprofile['personaname'] . "', avatar='" . $steamprofile['avatarfull'] . "' WHERE steamid='" . $_SESSION["steamid"] . "'");
  }
?&gt;
</code></pre>

<p>I edited the steamauth files in the right way.<br>
P.S.: Sorry for my english skills.</p>