mirror of
https://github.com/PhantomGamesDevelopment/PGD-Connect--Tribes-2-.git
synced 2026-07-12 23:04:39 +00:00
Initial Commit
This commit is contained in:
commit
75b8614a44
421 changed files with 36000 additions and 0 deletions
25
Univ/AuthGUID.php
Normal file
25
Univ/AuthGUID.php
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
<?php
|
||||
|
||||
$agent = $_SERVER['HTTP_USER_AGENT'];//In-Game Auths only
|
||||
echo "Connect From: ".$agent."<p>";
|
||||
if($agent != "Tribes 2") {
|
||||
die ("Access Denied.");
|
||||
}
|
||||
|
||||
$GUID = $_GET[guid];
|
||||
|
||||
$con = mysql_connect("localhost","","");
|
||||
if (!$con) {
|
||||
die('Could not connect: ' . mysql_error());
|
||||
}
|
||||
|
||||
// Create table
|
||||
mysql_select_db("phantom7_PGDConnect", $con);
|
||||
|
||||
$result1 = mysql_query("UPDATE Data SET Authenticated = '1' WHERE guid ='$GUID'");
|
||||
if($result1) {
|
||||
echo "Authentication Complete.";
|
||||
}
|
||||
mysql_close($con);
|
||||
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue