Hermes: H4 index.php
authorBen Klang <ben@alkaloid.net>
Fri, 4 Jun 2010 17:46:29 +0000 (13:46 -0400)
committerBen Klang <ben@alkaloid.net>
Fri, 4 Jun 2010 17:47:44 +0000 (13:47 -0400)
hermes/index.php

index 2dd2370..8c410cd 100644 (file)
@@ -1,18 +1,12 @@
 <?php
 /**
- * Copyright 2002-2009 The Horde Project (http://www.horde.org/)
+ * Copyright 2002-2010 The Horde Project (http://www.horde.org/)
  *
  * See the enclosed file LICENSE for license information (BSD). If you
  * did not receive this file, see http://www.horde.org/licenses/bsdl.php.
  */
 
-@define('HERMES_BASE', dirname(__FILE__));
-$hermes_configured = (is_readable(HERMES_BASE . '/config/conf.php'));
-
-if (!$hermes_configured) {
-    require HERMES_BASE . '/../lib/Test.php';
-    Horde_Test::configFilesMissing('Hermes', HERMES_BASE,
-        array('conf.php'));
-}
-
+// Will redirect to login page if not authenticated.
+require_once dirname(__FILE__) . '/lib/Application.php';
+$hermes = Horde_Registry::appInit('hermes');
 require HERMES_BASE . '/time.php';