Steam登录脚本不起作用

时间:2016-04-25 20:08:09

标签: php login steam

我试图在我的php文件中使用github的steam-login脚本。 我使用自定义按钮代替官方蒸汽按钮 情况是:我按下按钮,我进入标准的localhost /仪表板站点,我在XAMPP上模拟它。
用于登录Steam的脚本,添加您的Steam帐户的交易链接,显示您的个人资料并在最后退出。

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

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

我以正确的方式编辑了steamauth文件 P.S。:对不起我的英语技能。

0 个答案:

没有答案