Code

Fixed some more. Now with messages.mo
[gosa.git] / html / index.php
index 88ae90bfdbc6c9e0a9913891410e642b4e828946..90a6a4814c73ff1179d64ffb0b14424f43a4404c 100644 (file)
@@ -23,6 +23,10 @@ require_once ("../include/php_setup.inc");
 require_once ("functions.inc");
 header("Content-type: text/html; charset=UTF-8");
 
+/* Reset error handler */
+$error_collector= "";
+set_error_handler('gosaRaiseError');
+
 /* Set error handler to own one, initialize time calculation
    and start session. */
 session_start ();
@@ -228,13 +232,11 @@ $smarty->assign ("server_id", $selected);
 
 /* show login screen */
 $smarty->display (get_template_path('headers.tpl'));
-if (isset($_GET['version'])){
-  require_once("version.inc");
-}
 $smarty->assign ("PHPSESSID", session_id());
 if (isset($_SESSION['errors'])){
   $smarty->assign("errors", $_SESSION['errors']);
 }
+$smarty->assign("php_error", $error_collector."</div>");
 $smarty->display (get_template_path('login.tpl'));
 
 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: