Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff -u -r /home/nall/anthill_b2/Anthill_b2/_globals.php anthill/_globals.php
- --- /home/nall/anthill_b2/Anthill_b2/_globals.php 2009-02-13 05:41:27.000000000 -0800
- +++ anthill/_globals.php 2010-03-03 14:14:42.000000000 -0800
- @@ -105,6 +105,7 @@
- //$AGCURRENTUSER = "Hello!";
- + AGMysql();
- $cu = AGUser::UserWithCredentials($email, $passhash, true);
- if (isset($_GET['project']))
- diff -u -r /home/nall/anthill_b2/Anthill_b2/~register.php anthill/~register.php
- --- /home/nall/anthill_b2/Anthill_b2/~register.php 2009-02-19 06:22:59.000000000 -0800
- +++ anthill/~register.php 2010-03-03 14:08:26.000000000 -0800
- @@ -51,6 +51,7 @@
- }
- //Check the email does not exist in the db
- + AGMysql();
- $u = AGUser::UserWithEmail(trim($_POST['email']));
- if (isset($u) && $u && isset($u->data) && $u->data && isset($u->data['id']) && $u->data['id'])
- {
- @@ -59,7 +60,6 @@
- }
- //Write to the DB
- - AGMysql();
- mysql_query("INSERT INTO `user_credentials` (`fullname`, `email`, `passhash`) VALUES (".cleanvar($_POST['fullname']).", ".cleanvar($_POST['email']).", ".cleanvar(Anthill_HashPassword($_POST['password'])).")");
- mysql_query("INSERT INTO `users` (`acthistory_id`) VALUES (".cleanvar(mysql_insert_id()).")");
- @@ -173,4 +173,4 @@
- ?>
- </body>
- -</html>
- \ No newline at end of file
- +</html>
Add Comment
Please, Sign In to add comment