X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=gosa-core%2Fhtml%2Fpassword.php;h=c7896deaa527201ef8f75d31db0f7de1fddef48d;hb=a2eec6ac24459bca81a633699d8cc2979d1dd586;hp=7ae17215482ce4e337e8931d158c6f5df985f8f4;hpb=e0abbe36fccaea7e7289a383cd04051222e3b892;p=gosa.git diff --git a/gosa-core/html/password.php b/gosa-core/html/password.php index 7ae172154..c7896deaa 100644 --- a/gosa-core/html/password.php +++ b/gosa-core/html/password.php @@ -53,8 +53,8 @@ session::set('LastError',""); /* Check if CONFIG_FILE is accessible */ if (!is_readable(CONFIG_DIR."/".CONFIG_FILE)){ - echo sprintf(_("GOsa configuration %s/%s is not readable. Aborted."), CONFIG_DIR,CONFIG_FILE); - exit(); + msg_dialog::display("", sprintf(_("GOsa configuration %s/%s is not readable. Aborted."),CONFIG_DIR,CONFIG_FILE), FATAL_ERROR_DIALOG); + exit; } /* Parse configuration file */ @@ -73,9 +73,9 @@ if (isset ($config->data['MAIN']['COMPILE'])){ /* Check for compile directory */ if (!(is_dir($smarty->compile_dir) && is_writable($smarty->compile_dir))){ - echo sprintf(_("Directory '%s' specified as compile directory is not accessible!"), - $smarty->compile_dir); - exit(); + msg_dialog::display(_("Accessibility"), sprintf(_("Directory '%s' specified as compile directory is not accessible!"), + $smarty->compile_dir), FATAL_ERROR_DIALOG); + exit; } /* Check for old files in compile directory */ @@ -158,7 +158,7 @@ if (isset($_GET['method'])){ $tmp = new passwordMethod($config); $available = $tmp->get_available_methods(); if (!isset($available[$method])){ - echo _("Error: Password method not available!"); + msg_dialog::display(_("Password method"),_("Error: Password method not available!"),FATAL_ERROR_DIALOG); exit; } } @@ -285,6 +285,7 @@ if ($ssl != "" && $config->data['MAIN']['WARNSSL'] == 'true'){ } /* show login screen */ +$smarty->assign("JS",session::get('js')); $smarty->assign ("PHPSESSID", session_id()); if (session::is_set('errors')){ $smarty->assign("errors", session::get('errors'));;