<?php
/***************************************************************************
- * Copyright (C) 2003-2004 Polytechnique.org *
+ * Copyright (C) 2003-2006 Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
require_once('platal/env.inc.php');
// }}}
+// {{{ function redirect
+
+function redirect($page)
+{
+ if (count($_SESSION)) {
+ session_write_close();
+ }
+ header("Location: $page");
+ exit;
+}
+
+// }}}
// vim:set et sw=4 sts=4 sws=4 foldmethod=marker:
?>