summaryrefslogtreecommitdiffstats
path: root/inc/util.inc.php
diff options
context:
space:
mode:
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);
+ }
}