diff options
author | Malf Furious <m@lfurio.us> | 2016-03-05 17:40:43 -0500 |
---|---|---|
committer | Malf Furious <m@lfurio.us> | 2016-03-05 17:40:43 -0500 |
commit | 645bfafc1221b9266076d674f9515eef059471b4 (patch) | |
tree | 7e0d18e2565da40b231ca70e8d584b3553f06eed /app/model | |
parent | 4544b18f5bf1854456f2a835c7df0fc469ba144c (diff) | |
download | scrott-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/model')
-rw-r--r-- | app/model/deauth.mod.php | 17 |
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() . "/"); + } +} + +?> |