Code

Fixed problem with quotes in names
[gosa.git] / gosa-core / html / main.php
index b7a8271d8cb7cb62241caa966595bd66ab4108ed..c088754c0c7bf3ada17570e5a0ee3913fd8f454a 100644 (file)
@@ -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", "<font class=\"must\">*</font>");
 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= "<!-- headers.tpl-->".$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= "<!-- headers.tpl-->".$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.