<?php
/**
- * $Horde: ansel/index.php,v 1.22 2009/01/06 17:48:49 jan Exp $
- *
* Copyright 2001-2009 The Horde Project (http://www.horde.org/)
*
* See the enclosed file COPYING for license information (GPL). If you
* @author Chuck Hagenbuch <chuck@horde.org>
*/
-define('ANSEL_BASE', dirname(__FILE__));
-$ansel_configured = (is_readable(ANSEL_BASE . '/config/conf.php') &&
- is_readable(ANSEL_BASE . '/config/prefs.php') &&
- is_readable(ANSEL_BASE . '/config/styles.php'));
-
-if (!$ansel_configured) {
- require ANSEL_BASE . '/../lib/Test.php';
- Horde_Test::configFilesMissing('Ansel', ANSEL_BASE,
- array('conf.php', 'prefs.php'),
- array('styles.php' => 'This file controls the available gallery styles for Ansel.'));
-}
-
-require_once ANSEL_BASE . '/lib/base.php';
+require_once dirname(__FILE__) . '/lib/base.php';
header('Location: ' . Ansel::getUrlFor('default_view', array()));
-exit;
* @package Chora
*/
-require_once dirname(__FILE__) . '/lib/base.load.php';
-$chora_configured = (is_readable(CHORA_BASE . '/config/conf.php') &&
- is_readable(CHORA_BASE . '/config/sourceroots.php') &&
- is_readable(CHORA_BASE . '/config/mime_drivers.php') &&
- is_readable(CHORA_BASE . '/config/prefs.php'));
-
-if (!$chora_configured) {
- require HORDE_BASE . '/lib/Test.php';
- Horde_Test::configFilesMissing('Chora', CHORA_BASE,
- array('conf.php', 'prefs.php', 'mime_drivers.php'),
- array('sourceroots.php' => 'This file defines all of the source repositories that you wish Chora to display.'));
-}
-
-require CHORA_BASE . '/browsedir.php';
+require dirname(__FILE__) . '/browsedir.php';
* @author Ben Klang <ben@alkaloid.net>
*/
-@define('CRUMB_BASE', dirname(__FILE__));
-$crumb_configured = (is_readable(CRUMB_BASE . '/config/conf.php'));
-
-if (!$crumb_configured) {
- require CRUMB_BASE . '/../lib/Test.php';
- Horde_Test::configFilesMissing('Crumb', CRUMB_BASE,
- array('conf.php'));
-}
-
-require CRUMB_BASE . '/listclients.php';
+require dirname(__FILE__) . '/listclients.php';
* @author Thomas Trethan <thomas@trethan.net>
*/
-@define('FIMA_BASE', dirname(__FILE__));
-$fima_configured = (is_readable(FIMA_BASE . '/config/conf.php') &&
- is_readable(FIMA_BASE . '/config/prefs.php'));
-
-if (!$fima_configured) {
- require FIMA_BASE . '/../lib/Test.php';
- Horde_Test::configFilesMissing('Fima', FIMA_BASE,
- array('conf.php', 'prefs.php'));
-}
-
-require FIMA_BASE . '/postings.php';
+require dirname(__FILE__) . '/postings.php';
* @author Duck <duck@obala.net>
*/
-define('FOLKS_BASE', dirname(__FILE__));
-$folks_configured = (is_readable(FOLKS_BASE . '/config/conf.php') &&
- is_readable(FOLKS_BASE . '/config/prefs.php'));
-
-if (!$folks_configured) {
- require FOLKS_BASE . '/../lib/Test.php';
- Horde_Test::configFilesMissing('Folks', FOLKS_BASE,
- array('conf.php', 'prefs.php'));
-}
-
-require FOLKS_BASE . '/list.php';
\ No newline at end of file
+require dirname(__FILE__) . '/list.php';
* @package Gollem
*/
-require_once dirname(__FILE__) . '/lib/base.load.php';
-$gollem_configured = (is_readable(GOLLEM_BASE . '/config/backends.php') &&
- is_readable(GOLLEM_BASE . '/config/conf.php') &&
- is_readable(GOLLEM_BASE . '/config/credentials.php') &&
- is_readable(GOLLEM_BASE . '/config/mime_drivers.php') &&
- is_readable(GOLLEM_BASE . '/config/prefs.php'));
-
-if (!$gollem_configured) {
- require HORDE_BASE . '/lib/Test.php';
- Horde_Test::configFilesMissing('Gollem', GOLLEM_BASE,
- array('conf.php', 'mime_drivers.php', 'prefs.php', 'backends.php'),
- array('credentials.php' => 'This file defines types of credentials that a backend might request.'));
-}
-
-require GOLLEM_BASE . '/manager.php';
+require dirname(__FILE__) . '/manager.php';
* @package IMP
*/
-require_once dirname(__FILE__) . '/lib/base.load.php';
-$imp_configured = (is_readable(IMP_BASE . '/config/conf.php') &&
- is_readable(IMP_BASE . '/config/mime_drivers.php') &&
- is_readable(IMP_BASE . '/config/prefs.php') &&
- is_readable(IMP_BASE . '/config/servers.php'));
-
-if (!$imp_configured) {
- require HORDE_BASE . '/lib/Test.php';
- Horde_Test::configFilesMissing('IMP', IMP_BASE,
- array('conf.php', 'mime_drivers.php', 'prefs.php'),
- array('servers.php' => 'This file controls the default settings for IMP, and also defines the list of available servers if you are using the server list.'));
-}
-
// Will redirect to login page if not authenticated.
-require_once IMP_BASE . '/lib/base.php';
+require_once dirname(__FILE__) . '/lib/base.php';
// Load initial page as defined by view mode & preferences.
require IMP_Auth::getInitialPage();
* @author Mike Cochrane <mike@graftonhall.co.nz>
*/
-require_once dirname(__FILE__) . '/lib/base.load.php';
-$ingo_configured = (is_readable(INGO_BASE . '/config/conf.php') &&
- is_readable(INGO_BASE . '/config/prefs.php') &&
- is_readable(INGO_BASE . '/config/backends.php') &&
- is_readable(INGO_BASE . '/config/fields.php'));
-
-if (!$ingo_configured) {
- require HORDE_BASE . '/lib/Test.php';
- Horde_Test::configFilesMissing('Ingo', INGO_BASE,
- array('conf.php', 'prefs.php', 'backends.php'),
- array('fields.php' => 'This file defines types of credentials that a backend might request.'));
-}
-
-require INGO_BASE . '/filters.php';
+require dirname(__FILE__) . '/filters.php';
* @author Eric Rostetter <eric.rostetter@physics.utexas.edu>
*/
-require_once dirname(__FILE__) . '/lib/base.load.php';
-$jeta_configured = (is_readable(JETA_BASE . '/config/conf.php') &&
- is_readable(JETA_BASE . '/config/prefs.php'));
-
-if (!$jeta_configured) {
- require HORDE_BASE . '/lib/Test.php';
- Horde_Test::configFilesMissing('Jeta', JETA_BASE, array('conf.php'));
-}
-
-require JETA_BASE . '/main.php';
+require dirname(__FILE__) . '/main.php';
<?php
/**
- *
* This product includes software developed by the Horde Project (http://www.horde.org/).
*
* See the enclosed file COPYING for license information (GPL). If you
* @author Andre Pawlowski aka sqall <sqall@h4des.org>
*/
-@define('KASTALIA_BASE', dirname(__FILE__));
-$kastalia_configured = (is_readable(KASTALIA_BASE . '/config/conf.php'));
-
-if (!$kastalia_configured) {
- require KASTALIA_BASE . '/../lib/Test.php';
- Horde_Test::configFilesMissing('Kastalia', KASTALIA_BASE,
- array('conf.php'));
-}
-
-require KASTALIA_BASE . '/list.php';
+require dirname(__FILE__) . '/list.php';
require KASTALIA_BASE . '/main.php';
* not receive such a file, see also http://www.fsf.org/copyleft/gpl.html.
*/
-require_once dirname(__FILE__) . '/lib/base.load.php';
-$kronolith_configured = (is_readable(KRONOLITH_BASE . '/config/conf.php') &&
- is_readable(KRONOLITH_BASE . '/config/prefs.php'));
-
-if (!$kronolith_configured) {
- require HORDE_BASE . '/lib/Test.php';
- Horde_Test::configFilesMissing('Kronolith', KRONOLITH_BASE,
- array('conf.php', 'prefs.php'));
-}
-
require_once KRONOLITH_BASE . '/lib/base.php';
/* Load traditional interface? */
* did not receive this file, see http://www.fsf.org/copyleft/gpl.html.
*/
-require_once dirname(__FILE__) . '/lib/base.load.php';
-$nag_configured = (is_readable(NAG_BASE . '/config/conf.php') &&
- is_readable(NAG_BASE . '/config/prefs.php'));
-
-if (!$nag_configured) {
- require HORDE_BASE . '/lib/Test.php';
- Horde_Test::configFilesMissing('Nag', NAG_BASE,
- array('conf.php', 'prefs.php'));
-}
-
-require NAG_BASE . '/list.php';
+require dirname(__FILE__) . '/list.php';
* @package News
*/
-define('NEWS_BASE', dirname(__FILE__));
-$news_configured = (is_readable(NEWS_BASE . '/config/conf.php') &&
- is_readable(NEWS_BASE . '/config/prefs.php'));
-
-if (!$news_configured) {
- require NEWS_BASE . '/../lib/Test.php';
- Horde_Test::configFilesMissing('news', NEWS_BASE,
- array('conf.php', 'prefs.php', 'sources.php'));
-}
-
require NEWS_BASE . '/content.php';
* @author Your Name <you@example.com>
*/
-require_once dirname(__FILE__) . '/lib/base.load.php';
-$skeleton_configured = (is_readable(SKELETON_BASE . '/config/conf.php') &&
- is_readable(SKELETON_BASE . '/config/prefs.php'));
-
-if (!$skeleton_configured) {
- require HORDE_BASE . '/lib/Test.php';
- Horde_Test::configFilesMissing('Skeleton', SKELETON_BASE,
- array('conf.php', 'prefs.php'));
-}
-
-require SKELETON_BASE . '/list.php';
+require dirname(__FILE__) . '/list.php';
<?php
/**
- * $Horde: skoli/index.php,v 0.1 $
- *
* Copyright 2007-2008 The Horde Project (http://www.horde.org/)
*
* See the enclosed file COPYING for license information (GPL). If you
* did not receive this file, see http://www.fsf.org/copyleft/gpl.html.
*/
-@define('SKOLI_BASE', dirname(__FILE__));
-$skoli_configured = (is_readable(SKOLI_BASE . '/config/conf.php') &&
- is_readable(SKOLI_BASE . '/config/prefs.php') &&
- is_readable(SKOLI_BASE . '/config/schools.php'));
-
-if (!$skoli_configured) {
- require SKOLI_BASE . '/../lib/Test.php';
- Horde_Test::configFilesMissing('Skoli', SKOLI_BASE,
- array('conf.php', 'prefs.php'),
- array('schools.php' => _('This file defines templates for new classes.')));
-}
-
-require_once SKOLI_BASE . '/lib/base.php';
+require_once dirname(__FILE__) . '/lib/base.php';
require SKOLI_BASE . '/' . $prefs->getValue('initial_page') . '.php';
* @author Chuck Hagenbuch <chuck@horde.org>
*/
-require_once dirname(__FILE__) . '/lib/base.load.php';
-$turba_configured = (is_readable(TURBA_BASE . '/config/conf.php') &&
- is_readable(TURBA_BASE . '/config/attributes.php') &&
- is_readable(TURBA_BASE . '/config/prefs.php') &&
- is_readable(TURBA_BASE . '/config/mime_drivers.php') &&
- is_readable(TURBA_BASE . '/config/sources.php'));
-
-if (!$turba_configured) {
- require HORDE_BASE . '/lib/Test.php';
- Horde_Test::configFilesMissing('Turba', TURBA_BASE,
- array('conf.php', 'prefs.php', 'mime_drivers.php', 'sources.php'),
- array('attributes.php' => 'This file defines the Turba global attribute names and types - names, email addresses, etc.'));
-}
-
-require_once TURBA_BASE . '/lib/base.php';
+require_once dirname(__FILE__) . '/lib/base.php';
require TURBA_BASE . '/' . ($browse_source_count
? basename($prefs->getValue('initial_page'))
: 'search.php');