Completes user add/remove functionality
authorBen Klang <ben@alkaloid.net>
Sat, 30 Jul 2005 06:22:19 +0000 (06:22 +0000)
committerBen Klang <ben@alkaloid.net>
Sat, 30 Jul 2005 06:22:19 +0000 (06:22 +0000)
git-svn-id: https://svn.alkaloid.net/gpl/shout/trunk@72 06cd67b6-e706-0410-b29e-9de616bca6e9

users/add.php [new file with mode: 0644]
users/delete.php [new file with mode: 0644]

diff --git a/users/add.php b/users/add.php
new file mode 100644 (file)
index 0000000..af1352f
--- /dev/null
@@ -0,0 +1,12 @@
+<?php
+/**
+ * $Horde: shout/users/add.php,v 1.0 2005/07/28 19:49:11 ben Exp $
+ *
+ * Copyright 2005 Ben Klang <ben@alkaloid.net>
+ *
+ * See the enclosed file LICENSE for license information (GPL). If you
+ * did not receive this file, see http://www.horde.org/licenses/gpl.php.
+ */
+@define('SHOUT_BASE', dirname(__FILE__) . '/..');
+
+require SHOUT_BASE . '/users/edit.php';
\ No newline at end of file
diff --git a/users/delete.php b/users/delete.php
new file mode 100644 (file)
index 0000000..66aab0c
--- /dev/null
@@ -0,0 +1,24 @@
+<?php
+/**
+ * $Horde: shout/users/delete.php,v 1.0 2005/07/28 21:38:35 ben Exp $
+ *
+ * Copyright 2005 Ben Klang <ben@alkaloid.net>
+ *
+ * See the enclosed file LICENSE for license information (GPL). If you
+ * did not receive this file, see http://www.horde.org/licenses/gpl.php.
+ */
+@define('SHOUT_BASE', dirname(__FILE__) . '/..');
+//require_once 'Horde/Variables.php';
+
+$context = Util::getFormData('context');
+$extension = Util::getFormData('extension');
+
+$res = $shout->deleteUser($context, $extension);
+
+if (!$res) {
+    echo "Failed!";
+    print_r($res);
+}
+$notification->push("User Deleted.");
+$notification->notify();
+require SHOUT_TEMPLATES . '/common-footer.inc';
\ No newline at end of file