我正在尝试使用SteamAPI登录我的网站。 当我使用Steam登录时,该网站就可以了。但是当我没有登录时,它会显示以下消息:
注意:未定义索引:steamid in C:\ xampp \ htdocs \ codigo \ assets \ teamauth \ userInfo.php在第4行
注意:未定义的偏移量:0 in C:\ xampp \ htdocs \ codigo \ assets \ steamauth \ userInfo.php在第6行
我正在使用steamauth:https://github.com/SmItH197/SteamAuthentication
这是我的index.php的开头:
<?php
if(isset($_SESSION['steamid'])){
$id = $_SESSION['steamid'];
}else{
#Not logged in
}
require('library/Database.php');
require('library/Queries.php');
require('assets/steamauth/steamauth.php');
require('assets/steamauth/userInfo.php');
$queries = new Queries;
$nav_list = $queries->get_home_nav();
?>