summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorMalf Furious <m@lfurio.us>2016-03-05 20:06:24 -0500
committerMalf Furious <m@lfurio.us>2016-03-05 20:06:24 -0500
commit62cdc987190be53909df29dbb3a3b44c6fbc51f0 (patch)
tree278b1abb4f86bd0c71f525181e5620399b73a5cd /app
parent645bfafc1221b9266076d674f9515eef059471b4 (diff)
downloadscrott-62cdc987190be53909df29dbb3a3b44c6fbc51f0.tar.gz
scrott-62cdc987190be53909df29dbb3a3b44c6fbc51f0.zip
Add Deauth controller
Model added in previous commit.
Diffstat (limited to 'app')
-rw-r--r--app/controller/deauth.control.php26
1 files changed, 26 insertions, 0 deletions
diff --git a/app/controller/deauth.control.php b/app/controller/deauth.control.php
new file mode 100644
index 0000000..d223e9e
--- /dev/null
+++ b/app/controller/deauth.control.php
@@ -0,0 +1,26 @@
+<?php
+
+require_once "class/controller.class.php";
+require_once "model/deauth.mod.php";
+
+/*
+ * Deauth is used to terminate the current session (logout)
+ */
+class Deauth extends Controller
+{
+ /*
+ * Controller implementation
+ */
+ function handle($argv)
+ {
+ $mod = new DeauthModel();
+ $this->action_default($mod);
+ }
+
+ function action_default($mod)
+ {
+ $mod->deflt();
+ }
+}
+
+?>