Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.

Commit

Permalink
su su su
Browse files Browse the repository at this point in the history
  • Loading branch information
alix1383 committed May 29, 2023
1 parent edb1371 commit 79a3a5e
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 0 deletions.
32 changes: 32 additions & 0 deletions data/appids.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,37 @@
{
"SERVER_NAME": "Counter-Strike Global Offensive",
"APPiD": "730"
},
{
"SERVER_NAME": "Counter Strike: Source",
"APPiD": "240"
},
{
"SERVER_NAME": "Insurgency",
"APPiD": "222880"
},
{
"SERVER_NAME": "Left 4 Dead 2",
"APPiD": "550"
},
{
"SERVER_NAME": "Team Fortress 2",
"APPiD": "440"
},
{
"SERVER_NAME": "Garry's Mod",
"APPiD": "4000"
},
{
"SERVER_NAME": "Zombie Panic! Source",
"APPiD": "17500"
},
{
"SERVER_NAME": "No more Room in Hell",
"APPiD": "224260"
},
{
"SERVER_NAME": "Day of Defeat: Source",
"APPiD": "300"
}
]
1 change: 1 addition & 0 deletions inc/Functions/system-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ function verify($key)
if (isset($token)) {
if (strlen($token) != 32) {
header('Location: login?error=0');
exit;
} else {
$steamAPI = new steamAPI($token);
if (!$steamAPI->verifyApiKey() === true) {
Expand Down
6 changes: 6 additions & 0 deletions inc/pages.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@

case '/list';
session_start();

if ($_SESSION['token'] == null) {
header("Location: login");
exit;
}

$token = $_SESSION['token'];
$steamAPI = new steamAPI($token);
$list = $steamAPI->getTokenList();
Expand Down

0 comments on commit 79a3a5e

Please sign in to comment.