aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib')
-rw-r--r--engine/lib/sessions.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/engine/lib/sessions.php b/engine/lib/sessions.php
index bac8371a4..b9a549697 100644
--- a/engine/lib/sessions.php
+++ b/engine/lib/sessions.php
@@ -150,6 +150,14 @@
}
}
+ /**
+ * Used at the top of a page to mark it as logged in users only.
+ *
+ */
+ function gatekeeper() {
+ if (!isloggedin()) forward();
+ }
+
register_event_handler("init","system","session_init",1);
//register actions *************************************************************