setup.php:

- define('POSTFIXADMIN') to avoid session_start() call in common.php
  This avoids breakage if php5-session is not installed. Fixes
  https://sourceforge.net/tracker/?func=detail&aid=2855430&group_id=191583&atid=937964

common.php
- only define('POSTFIXADMIN') if it is not yet defined (avoids a warning)



git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@733 a1433add-5e2c-0410-b055-b7f2511e0802
postfixadmin-2.3
Christian Boltz 15 years ago
parent 0eb3cb9acf
commit 562ab4dc14

@ -17,10 +17,10 @@
* environment and ensures other functions are loaded.
*/
if(!defined('POSTFIXADMIN')) {
if(!defined('POSTFIXADMIN')) { # already defined if called from setup.php
session_start();
define('POSTFIXADMIN', 1); # checked in included files
}
define('POSTFIXADMIN', 1); # checked in included files
$incpath = dirname(__FILE__);
(ini_get('magic_quotes_gpc') ? ini_set('magic_quotes_runtime', '0') : '1');

@ -23,6 +23,8 @@
* Form POST \ GET Variables: -none-
*/
define('POSTFIXADMIN', 1); # by defining it here, common.php will not start a session.
require_once('common.php');
$CONF['show_header_text'] = 'NO';

Loading…
Cancel
Save