summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorMalf Furious <m@lfurio.us>2016-03-05 17:40:43 -0500
committerMalf Furious <m@lfurio.us>2016-03-05 17:40:43 -0500
commit645bfafc1221b9266076d674f9515eef059471b4 (patch)
tree7e0d18e2565da40b231ca70e8d584b3553f06eed /app
parent4544b18f5bf1854456f2a835c7df0fc469ba144c (diff)
downloadscrott-645bfafc1221b9266076d674f9515eef059471b4.tar.gz
scrott-645bfafc1221b9266076d674f9515eef059471b4.zip
Add Deauth model
Deauth is the MVC used to de-authenticate a session -- logout. This MVC will have no views.
Diffstat (limited to 'app')
-rw-r--r--app/model/deauth.mod.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/app/model/deauth.mod.php b/app/model/deauth.mod.php
new file mode 100644
index 0000000..d3eb7c1
--- /dev/null
+++ b/app/model/deauth.mod.php
@@ -0,0 +1,17 @@
+<?php
+
+require_once "class/model.class.php";
+
+class DeauthModel extends Model
+{
+ /*
+ * Default action
+ */
+ function deflt()
+ {
+ $this->setCurrentUser();
+ $this->redirectTo($this->ar() . "/");
+ }
+}
+
+?>