index 6e3d205a3cb10bfe4f1db203243f5b85f8c414f9..c7896deaa527201ef8f75d31db0f7de1fddef48d 100644 (file)
/* 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 */
/* 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 */
$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;
}
}