X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=gosa-core%2Fhtml%2Fmain.php;h=2e415ce94f7824770209cc9dbca94c979a7c2641;hb=07e3fef6d8486276130c0ad8d603aad189244587;hp=508cb8c105b20cf9ce48afc11fa01ecfb6104b4b;hpb=f4a3408dfc84a64d156f4993fe38da9ff109d9f4;p=gosa.git diff --git a/gosa-core/html/main.php b/gosa-core/html/main.php index 508cb8c10..2e415ce94 100644 --- a/gosa-core/html/main.php +++ b/gosa-core/html/main.php @@ -61,6 +61,7 @@ if ($_SERVER['REMOTE_ADDR'] != $ui->ip){ exit; } $config= session::get('config'); +$config->check_config_version(); $config->check_and_reload(); /* Enable compressed output */ @@ -183,7 +184,7 @@ if (session::is_set('plugin_dir')){ } else { $old_plugin_dir= ""; } -if (isset($_GET['plug'])){ +if (isset($_GET['plug']) && $plist->plugin_access_allowed($_GET['plug'])){ $plug= validate($_GET['plug']); $plugin_dir= $plist->get_path($plug); session::set('plugin_dir',$plugin_dir); @@ -200,7 +201,7 @@ if (isset($_GET['plug'])){ } /* Check if we need to delete a lock */ -if ($old_plugin_dir != $plugin_dir){ +if ($old_plugin_dir != $plugin_dir && $old_plugin_dir != ""){ if (is_file("$old_plugin_dir/main.inc")){ $remove_lock= true; require_once ("$old_plugin_dir/main.inc"); @@ -287,11 +288,15 @@ if (session::get('js')==FALSE){ $smarty->assign("help_method"," onclick=\"return popup('helpviewer.php$plug','GOsa help');\""); } -$smarty->assign ("username", $ui->username); +if($ui->ignore_acl_for_current_user()){ + $smarty->assign ("username", ""._("User ACL checks disabled")." ".$ui->username); +}else{ + $smarty->assign ("username", $ui->username); +} $smarty->assign ("go_logo", get_template_path('images/go_logo.png')); $smarty->assign ("go_base", get_template_path('images/dtree.png')); $smarty->assign ("go_home", get_template_path('images/gohome.png')); -$smarty->assign ("go_out", get_template_path('images/stop.png')); +$smarty->assign ("go_out", get_template_path('images/logout.png')); $smarty->assign ("go_top", get_template_path('images/go_top.png')); $smarty->assign ("go_corner", get_template_path('images/go_corner.png')); $smarty->assign ("go_left", get_template_path('images/go_left.png'));