diff --git a/common.php b/common.php index 6425d377..54d34751 100644 --- a/common.php +++ b/common.php @@ -92,6 +92,7 @@ if(!empty($CONF['language_hook']) && function_exists($CONF['language_hook'])) { Config::write('__LANG', $PALANG); +unset($incpath); if (!defined('POSTFIXADMIN_CLI')) { if(!is_file("$incpath/smarty.inc.php")) { @@ -99,5 +100,6 @@ if (!defined('POSTFIXADMIN_CLI')) { } require_once ("$incpath/smarty.inc.php"); } + /* vim: set expandtab softtabstop=4 tabstop=4 shiftwidth=4: */ ?> diff --git a/broadcast-message.php b/public/broadcast-message.php similarity index 100% rename from broadcast-message.php rename to public/broadcast-message.php diff --git a/calendar.js b/public/calendar.js similarity index 100% rename from calendar.js rename to public/calendar.js diff --git a/public/common.php b/public/common.php new file mode 100644 index 00000000..3e4da4bb --- /dev/null +++ b/public/common.php @@ -0,0 +1,3 @@ + FALSE); -if(file_exists(dirname(__FILE__) . '/config.inc.php')) { - require_once('config.inc.php'); +if(file_exists(dirname(__FILE__) . '/../config.inc.php')) { + require_once(dirname(__FILE__) . '/../config.inc.php'); } if ( $CONF['configured'] === TRUE ) @@ -67,9 +67,9 @@ if ( $CONF['configured'] === TRUE )
When you have configured Postfixadmin, this page will be replaced with a login page.
You can now run setup to make sure that all the PHP functions are available for Postfix Admin to run.
If you still encounter any problems, please check the documentation and website for more information.
+For further help, or documentation please check out -
- Postfix Admin web site
- Knowledge Base
+