aboutsummaryrefslogtreecommitdiff
path: root/mod/uservalidationbyemail
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-10-03 13:06:24 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-10-03 13:06:24 +0000
commit588d6ce6f4134810d8bc6828cdcee4004cc5798c (patch)
tree1e8374c0e9dd0f574d4bfc927270f2577f776c15 /mod/uservalidationbyemail
parent7639bc76eb49e8578f4982473a774611b21bb81f (diff)
downloadelgg-588d6ce6f4134810d8bc6828cdcee4004cc5798c.tar.gz
elgg-588d6ce6f4134810d8bc6828cdcee4004cc5798c.tar.bz2
Refs #311: Saving stub prior to relocation...
git-svn-id: https://code.elgg.org/elgg/trunk@2171 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/uservalidationbyemail')
-rw-r--r--mod/uservalidationbyemail/languages/en.php16
-rw-r--r--mod/uservalidationbyemail/manifest.xml9
-rw-r--r--mod/uservalidationbyemail/start.php24
3 files changed, 49 insertions, 0 deletions
diff --git a/mod/uservalidationbyemail/languages/en.php b/mod/uservalidationbyemail/languages/en.php
new file mode 100644
index 000000000..03dba01a8
--- /dev/null
+++ b/mod/uservalidationbyemail/languages/en.php
@@ -0,0 +1,16 @@
+<?php
+ /**
+ * Email user validation plugin language pack.
+ *
+ * @package ElggUserValidationByEmail
+ * @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.com/
+ */
+
+ $english = array(
+ );
+
+ add_translation("en",$english);
+?> \ No newline at end of file
diff --git a/mod/uservalidationbyemail/manifest.xml b/mod/uservalidationbyemail/manifest.xml
new file mode 100644
index 000000000..e443ec880
--- /dev/null
+++ b/mod/uservalidationbyemail/manifest.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<plugin_manifest>
+ <field key="author" value="Marcus Povey" />
+ <field key="version" value="1.0" />
+ <field key="description" value="Simple user account validation via email." />
+ <field key="website" value="http://www.elgg.org/" />
+ <field key="copyright" value="(C) Curverider 2008" />
+ <field key="licence" value="GNU Public License version 2" />
+</plugin_manifest> \ No newline at end of file
diff --git a/mod/uservalidationbyemail/start.php b/mod/uservalidationbyemail/start.php
new file mode 100644
index 000000000..f02b2cf68
--- /dev/null
+++ b/mod/uservalidationbyemail/start.php
@@ -0,0 +1,24 @@
+<?php
+ /**
+ * Email user validation plugin.
+ * Non-admin or admin created accounts are invalid until their email address is confirmed.
+ *
+ * @package ElggUserValidationByEmail
+ * @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.com/
+ */
+
+ function uservalidationbyemail_init()
+ {
+ // Register actions
+
+ // Register hook listening to new users.
+ }
+
+ // create - if not admin & if not admin logged in then request email validation
+
+ // Initialise
+ register_elgg_event_handler('init','system','uservalidationbyemail_init');
+?> \ No newline at end of file