Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- header("Content-Type: text/plain");
- $auto_prepend_file = "phpinclude/prepend.php";
- require_once("phpinclude/prepend.php");
- $db = GetDB("Grid");
- if (!isset($_GET["name"]))
- exit;
- $name = mysql_escape_string($_GET["name"]);
- $c = explode(" ", $name);
- if (count($c) != 2)
- {
- echo "00000000-0000-0000-0000-000000000000";
- exit;
- }
- list ($uuid) = $db->query_one("select PrincipalID from UserAccounts where FirstName='".$c[0]."' and LastName='".$c[1]."'");
- if (!$uuid)
- {
- echo "00000000-0000-0000-0000-000000000000";
- exit;
- }
- echo $uuid;
Add Comment
Please, Sign In to add comment