diff --git a/htdocs/update.php b/htdocs/update.php index 7e0c318..3224046 100644 --- a/htdocs/update.php +++ b/htdocs/update.php @@ -52,21 +52,15 @@ if ($result) { # If the user password was changed, not tell the to relogin. if ($mustRelogin) { $app['server']->logout('user'); - unset_lastactivity($app['server']); - echo ''; + unset($_SESSION['ACTIVITY'][$app['server']->getIndex()]); - echo '
'; - echo '
'; - printf('%s',_('Modification successful!')); - echo '

'; - echo _('Since you changed your password, you must now login again with your new password.'); - echo '
'; - printf('%s...',$app['server']->getIndex(), _('Login')); - echo '
'; - echo ''; - echo ''; + system_message(array( + 'title'=>_('Modification successful!'), + 'body'=>_('Since you changed your password, you must now login again with your new password.'), + 'type'=>'info'), + sprintf('cmd.php?cmd=login_form&server_id=%s',$app['server']->getIndex())); - exit; + exit; } $redirect_url = sprintf('cmd.php?cmd=template_engine&server_id=%s&dn=%s',