diff --git a/smarty.inc.php b/smarty.inc.php index 22138d02..314531ac 100644 --- a/smarty.inc.php +++ b/smarty.inc.php @@ -53,9 +53,11 @@ class PFASmarty { } $smarty = new PFASmarty(); -$CONF['theme_css'] = $CONF['postfix_admin_url'].'/'.htmlentities($CONF['theme_css']); -if ($CONF['theme_custom_css'] != "") $CONF['theme_custom_css'] = $CONF['postfix_admin_url'].'/'.htmlentities($CONF['theme_custom_css']); -$CONF['theme_logo'] = $CONF['postfix_admin_url'].'/'.htmlentities($CONF['theme_logo']); +if (!isset($rel_path)) $rel_path = ''; # users/* sets this to '../' + +$CONF['theme_css'] = $rel_path . htmlentities($CONF['theme_css']); +if ($CONF['theme_custom_css'] != "") $CONF['theme_custom_css'] = $rel_path . htmlentities($CONF['theme_custom_css']); +$CONF['theme_logo'] = $rel_path . htmlentities($CONF['theme_logo']); $smarty->assign ('CONF', $CONF); $smarty->assign ('PALANG', $PALANG); diff --git a/users/edit-alias.php b/users/edit-alias.php index 9c0f7e9a..f56d22dc 100644 --- a/users/edit-alias.php +++ b/users/edit-alias.php @@ -19,6 +19,7 @@ * */ +$rel_path = '../'; require_once('../common.php'); $smarty->assign ('smarty_template', 'users_edit-alias'); diff --git a/users/login.php b/users/login.php index 8829f0f8..96dc72bb 100644 --- a/users/login.php +++ b/users/login.php @@ -27,6 +27,7 @@ * lang */ +$rel_path = '../'; require_once("../common.php"); diff --git a/users/main.php b/users/main.php index 167868f1..6caf3be8 100644 --- a/users/main.php +++ b/users/main.php @@ -23,6 +23,7 @@ * Form POST \ GET Variables: -none- */ +$rel_path = '../'; require_once('../common.php'); authentication_require_role('user'); $USERID_USERNAME = authentication_get_username(); diff --git a/users/password.php b/users/password.php index 7b5b0531..ced27b5f 100644 --- a/users/password.php +++ b/users/password.php @@ -27,6 +27,7 @@ * fPassword2 */ +$rel_path = '../'; require_once('../common.php'); authentication_require_role('user'); diff --git a/users/vacation.php b/users/vacation.php index 5498875b..fb4740c5 100644 --- a/users/vacation.php +++ b/users/vacation.php @@ -17,6 +17,7 @@ * */ +$rel_path = '../'; require_once('../common.php'); require_once('../vacation.php');