mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2024-09-20 03:36:20 +02:00
fix forget-password (+ themeing), see #427
This commit is contained in:
parent
94836ed156
commit
95b431599d
@ -1,4 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Postfix Admin
|
* Postfix Admin
|
||||||
*
|
*
|
||||||
@ -25,7 +26,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
$smarty = PFASmarty::getInstance();
|
|
||||||
|
|
||||||
/* if in .../users, we need to load a different common.php; not this file is symlinked with public/ */
|
/* if in .../users, we need to load a different common.php; not this file is symlinked with public/ */
|
||||||
if (preg_match('/\/users\//', $_SERVER['REQUEST_URI'])) {
|
if (preg_match('/\/users\//', $_SERVER['REQUEST_URI'])) {
|
||||||
@ -35,8 +35,11 @@ if (preg_match('/\/users\//', $_SERVER['REQUEST_URI'])) {
|
|||||||
$rel_path = './';
|
$rel_path = './';
|
||||||
$context = 'admin';
|
$context = 'admin';
|
||||||
}
|
}
|
||||||
|
|
||||||
require_once($rel_path . 'common.php');
|
require_once($rel_path . 'common.php');
|
||||||
|
|
||||||
|
$smarty = PFASmarty::getInstance();
|
||||||
|
$smarty->configureTheme($rel_path);
|
||||||
|
|
||||||
if ($context === 'admin' && !Config::read('forgotten_admin_password_reset') ||
|
if ($context === 'admin' && !Config::read('forgotten_admin_password_reset') ||
|
||||||
$context === 'users' && (!Config::read('forgotten_user_password_reset') || Config::read('mailbox_postpassword_script'))) {
|
$context === 'users' && (!Config::read('forgotten_user_password_reset') || Config::read('mailbox_postpassword_script'))) {
|
||||||
|
Loading…
Reference in New Issue
Block a user