SF.net SVN: postfixadmin: [325] trunk/common.php
Brought to you by:
christian_boltz,
gingerdog
|
From: <Gin...@us...> - 2008-04-10 10:17:44
|
Revision: 325
http://postfixadmin.svn.sourceforge.net/postfixadmin/?rev=325&view=rev
Author: GingerDog
Date: 2008-04-10 03:17:50 -0700 (Thu, 10 Apr 2008)
Log Message:
-----------
common.php: ensure we only start a session once
Modified Paths:
--------------
trunk/common.php
Modified: trunk/common.php
===================================================================
--- trunk/common.php 2008-04-10 10:17:23 UTC (rev 324)
+++ trunk/common.php 2008-04-10 10:17:50 UTC (rev 325)
@@ -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/functions.inc.php");
require_once("$incpath/languages/" . check_language () . ".lang");
-session_start();
/* vim: set expandtab softtabstop=4 tabstop=4 shiftwidth=4: */
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|