summaryrefslogtreecommitdiffstats
path: root/inc/util.inc.php
diff options
context:
space:
mode:
authorSimon Rettberg2013-10-16 19:34:08 +0200
committerSimon Rettberg2013-10-16 19:34:08 +0200
commite74e32a0eb4b2bb9691a079d6dc579925d7bb0ce (patch)
tree01f686385bab29fe14b13a819fdbb87ba6ea1100 /inc/util.inc.php
parentAdd simple menu bar (diff)
downloadslx-admin-e74e32a0eb4b2bb9691a079d6dc579925d7bb0ce.tar.gz
slx-admin-e74e32a0eb4b2bb9691a079d6dc579925d7bb0ce.tar.xz
slx-admin-e74e32a0eb4b2bb9691a079d6dc579925d7bb0ce.zip
New stuff
Diffstat (limited to 'inc/util.inc.php')
-rw-r--r--inc/util.inc.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/inc/util.inc.php b/inc/util.inc.php
index 75cd914e..793902ec 100644
--- a/inc/util.inc.php
+++ b/inc/util.inc.php
@@ -17,5 +17,12 @@ class Util
}
exit(0);
}
+
+ public static function redirect($location)
+ {
+ session_write_close();
+ Header('Location: ' . $location);
+ exit(0);
+ }
}