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