Initial Commit

This commit is contained in:
Robert Fritzen 2014-06-19 13:43:37 -05:00
commit 75b8614a44
421 changed files with 36000 additions and 0 deletions

36
Univ/Connected.php Normal file
View file

@ -0,0 +1,36 @@
<?php
function CheckValid($G) {
$con = mysql_connect("localhost","","");
if (!$con) {
die('Could not connect: ' . mysql_error());
}
// Create table
mysql_select_db("phantom7_PGDConnect", $con);
$result1 = mysql_query("SELECT * FROM Data WHERE GUID='$G'");
while($row1 = mysql_fetch_array($result1)) {
$match1 = $row1[GUID];
}
if($match1) {
return true;
}
else {
return false;
}
mysql_close($con);
}
function isConnected($GUID) {
if($GUID) {
if (CheckValid($GUID)) {
return true;
}
else {
return false;
}
}
else {
return false;
}
}
//$GUID = $_GET['guid'];
?>