0
0
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:
David Goodwin 2021-03-09 20:34:09 +00:00
parent a51cc34b83
commit 2a58056fff
4 changed files with 7 additions and 6 deletions

View File

@ -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');

View File

@ -1,4 +1,5 @@
<?php /**
<?php
/**
* Postfix Admin
*
* LICENSE

View File

@ -20,7 +20,7 @@
* Form POST \ GET Variables: -none-
*/
require_once(__DIR__ . '/common.php');
require_once('common.php');
$SESSID_USERNAME = authentication_get_username();

View File

@ -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");