mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2024-09-19 19:22:14 +02:00
be more consistent with how we load common.php, improve comments
This commit is contained in:
parent
a51cc34b83
commit
2a58056fff
@ -15,10 +15,10 @@
|
||||
* environment and ensures other functions are loaded.
|
||||
*/
|
||||
|
||||
if (!defined('POSTFIXADMIN')) { # already defined if called from setup.php
|
||||
define('POSTFIXADMIN', 1); # checked in included files
|
||||
if (!defined('POSTFIXADMIN')) {
|
||||
define('POSTFIXADMIN', 1);
|
||||
|
||||
if (!defined('POSTFIXADMIN_CLI')) {
|
||||
if (!defined('POSTFIXADMIN_CLI')) { // postfixadmin-cli
|
||||
// this is the default; see also https://sourceforge.net/p/postfixadmin/bugs/347/
|
||||
session_cache_limiter('nocache');
|
||||
session_name('postfixadmin_session');
|
||||
|
@ -1,4 +1,5 @@
|
||||
<?php /**
|
||||
<?php
|
||||
/**
|
||||
* Postfix Admin
|
||||
*
|
||||
* LICENSE
|
||||
|
@ -20,7 +20,7 @@
|
||||
* Form POST \ GET Variables: -none-
|
||||
*/
|
||||
|
||||
require_once(__DIR__ . '/common.php');
|
||||
require_once('common.php');
|
||||
|
||||
$SESSID_USERNAME = authentication_get_username();
|
||||
|
||||
|
@ -30,7 +30,7 @@
|
||||
* If it does not do this, then your authentication details will not persist across requests, and
|
||||
* this XMLRPC interface will not work.
|
||||
*/
|
||||
require_once(dirname(__FILE__) . '/common.php');
|
||||
require_once('common.php');
|
||||
|
||||
if ($CONF['xmlrpc_enabled'] == false) {
|
||||
die("xmlrpc support disabled");
|
||||
|
Loading…
Reference in New Issue
Block a user