diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-04-01 14:20:55 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-04-01 14:20:55 +0000 |
commit | 9391179df8ba6ed1595de7de533f633d99d57b35 (patch) | |
tree | e2ddcf5ac254a5a37a6722e9e7eeb8f2fc67367b /actions/register.php | |
parent | b1486d73ab4996931afa0d37fa9e5d09a4a88765 (diff) | |
download | elgg-9391179df8ba6ed1595de7de533f633d99d57b35.tar.gz elgg-9391179df8ba6ed1595de7de533f633d99d57b35.tar.bz2 |
User registration gubbins
git-svn-id: https://code.elgg.org/elgg/trunk@308 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'actions/register.php')
-rw-r--r-- | actions/register.php | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/actions/register.php b/actions/register.php new file mode 100644 index 000000000..2e8c5b414 --- /dev/null +++ b/actions/register.php @@ -0,0 +1,28 @@ +<?php
+
+ /**
+ * Elgg registration action
+ *
+ * @package Elgg
+ * @subpackage Core
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
+ * @author Curverider Ltd
+ * @copyright Curverider Ltd 2008
+ * @link http://elgg.org/
+ */
+
+ // Get variables
+ $username = get_input($username);
+ $password = get_input($password);
+ $password2 = get_input($password2);
+ $email = get_input($email);
+ $name = get_input($name);
+
+ // For now, just try and register the user
+ if (register_user($username, $password, $name, $email)) {
+ system_message(sprintf(elgg_echo("registerok"),$CONFIG->sitename));
+ } else {
+ system_message(elgg_echo("registerbad"));
+ }
+
+?>
\ No newline at end of file |