diff --git a/html/index.php b/html/index.php
index 88ae90bfdbc6c9e0a9913891410e642b4e828946..90a6a4814c73ff1179d64ffb0b14424f43a4404c 100644 (file)
--- a/html/index.php
+++ b/html/index.php
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 ();
/* 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: