mirror of
https://github.com/PhantomGamesDevelopment/PGD-Connect--Tribes-2-.git
synced 2026-07-13 15:24:36 +00:00
Initial Commit
This commit is contained in:
commit
75b8614a44
421 changed files with 36000 additions and 0 deletions
25
Univ/IsAuth.php
Normal file
25
Univ/IsAuth.php
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
<?php
|
||||
|
||||
$GUID = $_GET[guid];
|
||||
|
||||
$con = mysql_connect("localhost","","");
|
||||
if (!$con) {
|
||||
die('Could not connect: ' . mysql_error());
|
||||
}
|
||||
mysql_select_db("phantom7_PGDConnect", $con);
|
||||
|
||||
$result = mysql_query("SELECT * FROM Data WHERE guid='$GUID' AND Authenticated=1");
|
||||
if (!$result)
|
||||
echo "Query failed! " . mysql_error();
|
||||
|
||||
while($row1 = mysql_fetch_array($result)) {
|
||||
$match1 = $row1[guid];
|
||||
}
|
||||
|
||||
if($match1) {
|
||||
echo "Authenticated";
|
||||
}
|
||||
else {
|
||||
echo "Not";
|
||||
}
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue