From: Ben Klang Date: Mon, 4 Jan 2010 04:40:05 +0000 (-0500) Subject: Shout: Remove dependency on lib/base.php X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=4504397e091b3d8ba4c339031ab8574bc31252ad;p=horde.git Shout: Remove dependency on lib/base.php --- diff --git a/shout/index.php b/shout/index.php index ef712e0a0..7eb250dde 100644 --- a/shout/index.php +++ b/shout/index.php @@ -8,14 +8,9 @@ * * @author Ben Klang */ -@define('SHOUT_BASE', dirname(__FILE__)); -$shout_configured = (is_readable(SHOUT_BASE . '/config/conf.php')); +// Will redirect to login page if not authenticated. +require_once dirname(__FILE__) . '/lib/Application.php'; +new Shout_Application(); -if (!$shout_configured) { -require SHOUT_BASE . '/../lib/Test.php'; - Horde_Test::configFilesMissing('Shout', SHOUT_BASE, - array('conf.php')); -} - -require_once SHOUT_BASE . '/lib/base.php'; -header('Location: ' . Horde::applicationUrl('extensions.php')); +// Load initial page as defined by view mode & preferences. +require 'extensions.php';