aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Regver.php
diff options
context:
space:
mode:
Diffstat (limited to 'Zotlabs/Module/Regver.php')
-rw-r--r--Zotlabs/Module/Regver.php28
1 files changed, 28 insertions, 0 deletions
diff --git a/Zotlabs/Module/Regver.php b/Zotlabs/Module/Regver.php
new file mode 100644
index 000000000..82b162f56
--- /dev/null
+++ b/Zotlabs/Module/Regver.php
@@ -0,0 +1,28 @@
+<?php
+namespace Zotlabs\Module;
+
+
+class Regver extends \Zotlabs\Web\Controller {
+
+ function get() {
+
+ global $lang;
+
+ $_SESSION['return_url'] = \App::$cmd;
+
+ if(argc() != 3)
+ killme();
+
+ $cmd = argv(1);
+ $hash = argv(2);
+
+ if($cmd === 'deny') {
+ if (! account_deny($hash)) killme();
+ }
+
+ if($cmd === 'allow') {
+ if (! account_approve($hash)) killme();
+ }
+ }
+
+}