Created
March 3, 2010 22:17
-
-
Save nall/321113 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment