1 <?php
3 /* This is good for testing... */
4 error_reporting (E_ALL | E_STRICT);
6 /* Escape all preg_* relevant characters */
7 function normalizePreg($input)
8 {
9 return (addcslashes($input, '[]()|/.*+-'));
10 }
14 /* Initiate autoloader... */
15 require_once("../include/autoload.inc");
16 restore_error_handler();
17 try {
19 /* Get new test instance of the Configuration */
20 $cr= Registry::getInstance("ConfigManager");
21 $cr->load("../gosa.conf");
23 /* Get a new instance of the main Viewport */
24 $vc= new ViewportController();
25 echo $vc->render();
27 } catch (Exception $e) {
28 echo "\n-GOsa Exception-----------------------------------------------------------\n\n".
29 $e->__toString().
30 "\n\n--------------------------------------------------------------------------\n\n";
31 }
33 exit (0);
35 ?>