diff options
author | Simon Rettberg | 2013-10-16 19:34:08 +0200 |
---|---|---|
committer | Simon Rettberg | 2013-10-16 19:34:08 +0200 |
commit | e74e32a0eb4b2bb9691a079d6dc579925d7bb0ce (patch) | |
tree | 01f686385bab29fe14b13a819fdbb87ba6ea1100 /inc/util.inc.php | |
parent | Add simple menu bar (diff) | |
download | slx-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.php | 7 |
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); + } } |