Guest User

Untitled

a guest
Jan 23rd, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. <?
  2. header("Content-Type: text/plain");
  3.  
  4. $auto_prepend_file = "phpinclude/prepend.php";
  5. require_once("phpinclude/prepend.php");
  6.  
  7. $db = GetDB("Grid");
  8.  
  9. if (!isset($_GET["name"]))
  10. exit;
  11.  
  12. $name = mysql_escape_string($_GET["name"]);
  13.  
  14. $c = explode(" ", $name);
  15.  
  16. if (count($c) != 2)
  17. {
  18. echo "00000000-0000-0000-0000-000000000000";
  19. exit;
  20. }
  21.  
  22. list ($uuid) = $db->query_one("select PrincipalID from UserAccounts where FirstName='".$c[0]."' and LastName='".$c[1]."'");
  23. if (!$uuid)
  24. {
  25. echo "00000000-0000-0000-0000-000000000000";
  26. exit;
  27. }
  28.  
  29. echo $uuid;
Add Comment
Please, Sign In to add comment