X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=gosa-core%2Fhtml%2Fmain.php;h=c088754c0c7bf3ada17570e5a0ee3913fd8f454a;hb=43073ac4d0e6b18428c163774622e15629b4ffb5;hp=b7a8271d8cb7cb62241caa966595bd66ab4108ed;hpb=274f20047f7e5943118043fba3faca467a240c44;p=gosa.git diff --git a/gosa-core/html/main.php b/gosa-core/html/main.php index b7a8271d8..c088754c0 100644 --- a/gosa-core/html/main.php +++ b/gosa-core/html/main.php @@ -266,6 +266,7 @@ if (isset($_GET['reset'])){ /* show web frontend */ $smarty->assign ("date", date("l, dS F Y H:i:s O")); +$smarty->assign ("lang", preg_replace('/_.*$/', '', $lang)); $smarty->assign ("must", "*"); if (isset($plug)){ $plug= "?plug=$plug"; @@ -304,7 +305,7 @@ $smarty->assign ("menu", $plist->menu); $smarty->assign ("plug", "$plug"); $smarty->assign("iePngWorkaround", $config->get_cfg_value("iePngWorkaround","false" ) == "true"); -$header= "".$smarty->fetch(get_template_path('headers.tpl')); +$smarty->assign("usePrototype", "false"); /* React on clicks */ if ($_SERVER["REQUEST_METHOD"] == "POST"){ @@ -321,6 +322,11 @@ if ($_SERVER["REQUEST_METHOD"] == "POST"){ $_POST[$name] = $value; } } + if(session::global_is_set('LOCK_VARS_USED_REQUEST')){ + foreach(session::global_get('LOCK_VARS_USED_REQUEST') as $name => $value){ + $_REQUEST[$name] = $value; + } + } } } @@ -402,7 +408,8 @@ if (isset($_POST['_channel_'])){ $smarty->assign("channel", ""); } -$display= $header.$smarty->fetch(get_template_path('framework.tpl')); +$display= "".$smarty->fetch(get_template_path('headers.tpl')). + $smarty->fetch(get_template_path('framework.tpl')); /* Save dialog filters and selected base in a cookie. So we may be able to restore the filter an base settings on reload.