mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2024-09-19 19:22:14 +02:00
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
This commit is contained in:
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
|
||||
}
|
||||
|
||||
$incpath = dirname(__FILE__);
|
||||
(ini_get('magic_quotes_gpc') ? ini_set('magic_quotes_runtime', '0') : '1');
|
||||
|
Loading…
Reference in New Issue
Block a user