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
postfixadmin-2.3
David Goodwin 17 years ago
parent bb62951377
commit b3dc4ba6af

@ -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: */

Loading…
Cancel
Save