Code

Moved image
[gosa.git] / gosa-core / html / password.php
index 5bef30f7251132069e5742918b56c35a41c96338..837b70fc27942afc3b52d3c8ade23f21bb130703 100644 (file)
@@ -55,7 +55,7 @@ session::set('LastError',"");
 
 /* Check if CONFIG_FILE is accessible */
 if (!is_readable(CONFIG_DIR."/".CONFIG_FILE)){
-  msg_dialog::display("", sprintf(_("GOsa configuration %s/%s is not readable. Aborted."),CONFIG_DIR,CONFIG_FILE), FATAL_ERROR_DIALOG);
+  msg_dialog::display(_("Fatal error"), sprintf(_("GOsa configuration %s/%s is not readable. Aborted."),CONFIG_DIR,CONFIG_FILE), FATAL_ERROR_DIALOG);
   exit;
 }
 
@@ -75,7 +75,7 @@ if (isset ($config->data['MAIN']['COMPILE'])){
 
 /* Check for compile directory */
 if (!(is_dir($smarty->compile_dir) && is_writable($smarty->compile_dir))){
-  msg_dialog::display(_("Accessibility"), sprintf(_("Directory '%s' specified as compile directory is not accessible!"),
+  msg_dialog::display(_("Configuration error"), sprintf(_("Directory '%s' specified as compile directory is not accessible!"),
         $smarty->compile_dir), FATAL_ERROR_DIALOG);
   exit;
 }
@@ -237,7 +237,7 @@ if ($_SERVER["REQUEST_METHOD"] == "POST" && isset($_POST['apply'])){
   /* Do we need to show error messages? */
   if (count ($message) != 0){
          /* Show error message and continue editing */
-         show_errors($message);
+         msg_dialog::displayChecks($message);
   } else {
 
          /* Passed quality check, just try to change the password now */
@@ -251,7 +251,7 @@ if ($_SERVER["REQUEST_METHOD"] == "POST" && isset($_POST['apply'])){
          }
          if ($output != ""){
                  $message[]= _("External password changer reported a problem: ".$output);
-                 show_errors($message);
+                 msg_dialog::displayChecks($message);
          } else {
                  if ($method != ""){
                          change_password ($ui->dn, $_POST['new_password'], 0, $method);