From 4504397e091b3d8ba4c339031ab8574bc31252ad Mon Sep 17 00:00:00 2001 From: Ben Klang Date: Sun, 3 Jan 2010 23:40:05 -0500 Subject: [PATCH] Shout: Remove dependency on lib/base.php --- shout/index.php | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) 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'; -- 2.11.0