aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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