0
0
mirror of https://github.com/postfixadmin/postfixadmin.git synced 2024-09-19 19:22:14 +02:00

common.php: ensure we only start a session once

git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@325 a1433add-5e2c-0410-b055-b7f2511e0802
This commit is contained in:
David Goodwin 2008-04-10 10:17:50 +00:00
parent bb62951377
commit b3dc4ba6af

View File

@ -17,6 +17,9 @@
* environment and ensures other functions are loaded.
*/
if(!defined('POSTFIXADMIN')) {
session_start();
}
define('POSTFIXADMIN', 1); # checked in included files
function incorrect_setup() {
@ -53,6 +56,5 @@ require_once("$incpath/languages/language.php");
require_once("$incpath/functions.inc.php");
require_once("$incpath/languages/" . check_language () . ".lang");
session_start();
/* vim: set expandtab softtabstop=4 tabstop=4 shiftwidth=4: */