X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=gosa-core%2Fhtml%2Fmain.php;h=c265d697e50082585bccbccd46d50fa2e63e8514;hb=42886e5cc4e1ec51ecb4faf4c669268040c81f25;hp=2b7f3a4a777c4599d13de67f70856572a9c77eaa;hpb=e0abbe36fccaea7e7289a383cd04051222e3b892;p=gosa.git
diff --git a/gosa-core/html/main.php b/gosa-core/html/main.php
index 2b7f3a4a7..c265d697e 100644
--- a/gosa-core/html/main.php
+++ b/gosa-core/html/main.php
@@ -1,21 +1,23 @@
$path){
if (!in_array($class, $class_list)){
- if (is_readable("$BASE_DIR/$path")){
- require_once("$BASE_DIR/$path");
- } else {
- echo sprintf(_("Fatal error: cannot locate file '%s' - please run '%s' to fix this"), "$BASE_DIR/$path", "update-gosa");
- exit;
- }
+ if (is_readable("$BASE_DIR/$path")){
+ require_once("$BASE_DIR/$path");
+ } else {
+ msg_dialog::display(_("Fatal error"),
+ sprintf(_("Cannot locate file '%s' - please run '%s' to fix this"),
+ "$BASE_DIR/$path", "update-gosa"), FATAL_ERROR_DIALOG);
+ exit;
+ }
}
}
-
+
session::set('plist', new pluglist($config, $ui));
/* Load ocMapping into userinfo */
@@ -159,13 +165,16 @@ if (!session::is_set('plist')){
session::set('ui',$ui);
}
$plist= session::get('plist');
-
/* Check for register globals */
if (isset($global_check) && $config->data['MAIN']['FORCEGLOBALS'] == 'true'){
- echo _("FATAL: Register globals is on. GOsa will refuse to login unless this is fixed by an administrator.");
+ msg_dialog::display(
+ _("PHP configuration"),
+ _("FATAL: Register globals is on. GOsa will refuse to login unless this is fixed by an administrator."),
+ FATAL_ERROR_DIALOG);
+
new log("security","login","",array(),"Register globals is on. For security reasons, this should be turned off.") ;
session::destroy ();
- exit ();
+ exit;
}
/* Check Plugin variable */
@@ -352,7 +361,10 @@ if((isset($config->data['MAIN']['ACCOUNT_EXPIRATION'])) &&
if (is_file("$plugin_dir/main.inc")){
require_once ("$plugin_dir/main.inc");
} else {
- echo sprintf(_("FATAL: Can't find any plugin definitions for plugin '%s'!"), $plug);
+ msg_dialog::display(
+ _("Plugin"),
+ sprintf(_("FATAL: Can't find any plugin definitions for plugin '%s'!"), $plug),
+ FATAL_ERROR_DIALOG);
exit();
}