Guest User

Untitled

a guest
May 20th, 2018
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. diff -u -r /home/nall/anthill_b2/Anthill_b2/_globals.php anthill/_globals.php
  2. --- /home/nall/anthill_b2/Anthill_b2/_globals.php 2009-02-13 05:41:27.000000000 -0800
  3. +++ anthill/_globals.php 2010-03-03 14:14:42.000000000 -0800
  4. @@ -105,6 +105,7 @@
  5.  
  6. //$AGCURRENTUSER = "Hello!";
  7.  
  8. + AGMysql();
  9. $cu = AGUser::UserWithCredentials($email, $passhash, true);
  10.  
  11. if (isset($_GET['project']))
  12. diff -u -r /home/nall/anthill_b2/Anthill_b2/~register.php anthill/~register.php
  13. --- /home/nall/anthill_b2/Anthill_b2/~register.php 2009-02-19 06:22:59.000000000 -0800
  14. +++ anthill/~register.php 2010-03-03 14:08:26.000000000 -0800
  15. @@ -51,6 +51,7 @@
  16. }
  17.  
  18. //Check the email does not exist in the db
  19. + AGMysql();
  20. $u = AGUser::UserWithEmail(trim($_POST['email']));
  21. if (isset($u) && $u && isset($u->data) && $u->data && isset($u->data['id']) && $u->data['id'])
  22. {
  23. @@ -59,7 +60,6 @@
  24. }
  25.  
  26. //Write to the DB
  27. - AGMysql();
  28. mysql_query("INSERT INTO `user_credentials` (`fullname`, `email`, `passhash`) VALUES (".cleanvar($_POST['fullname']).", ".cleanvar($_POST['email']).", ".cleanvar(Anthill_HashPassword($_POST['password'])).")");
  29.  
  30. mysql_query("INSERT INTO `users` (`acthistory_id`) VALUES (".cleanvar(mysql_insert_id()).")");
  31. @@ -173,4 +173,4 @@
  32. ?>
  33.  
  34. </body>
  35. -</html>
  36. \ No newline at end of file
  37. +</html>
Add Comment
Please, Sign In to add comment