Remove Horde_Test::configFilesMissing() tests.
authorMichael M Slusarz <slusarz@curecanti.org>
Wed, 29 Jul 2009 20:39:10 +0000 (14:39 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Fri, 31 Jul 2009 05:22:29 +0000 (23:22 -0600)
16 files changed:
ansel/index.php
chora/index.php
crumb/index.php
fima/index.php
folks/index.php
gollem/index.php
imp/index.php
ingo/index.php
jeta/index.php
kastalia/index.php
kronolith/index.php
nag/index.php
news/index.php
skeleton/index.php
skoli/index.php
turba/index.php

index 1cdffd0..dd665b9 100644 (file)
@@ -1,7 +1,5 @@
 <?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
@@ -10,18 +8,5 @@
  * @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;
index 5ccfb14..0362bde 100644 (file)
@@ -9,17 +9,4 @@
  * @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';
index 7c4be25..f82ef6f 100644 (file)
  * @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';
index 9bc17c5..958e664 100644 (file)
  * @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';
index 6080b7b..0916600 100644 (file)
  * @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';
index d66c255..a475080 100644 (file)
  * @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';
index 1b9e37b..9b7bd2d 100644 (file)
@@ -9,21 +9,8 @@
  * @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();
index 111dce3..bfbb0ba 100644 (file)
  * @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';
index 50c8c56..42cc89e 100644 (file)
@@ -8,13 +8,4 @@
  * @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';
index 2a9e0ac..4f6f4dc 100755 (executable)
@@ -1,6 +1,5 @@
 <?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
@@ -9,14 +8,5 @@
  * @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';
index bdeec74..df4512e 100644 (file)
@@ -6,16 +6,6 @@
  * 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? */
index 0b44c60..0e80255 100644 (file)
@@ -8,14 +8,4 @@
  * 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';
index 7b34d04..1fe4f72 100644 (file)
  * @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';
index ec042cf..b85bece 100644 (file)
  * @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';
index fe0a3ae..c5a7d40 100644 (file)
@@ -1,24 +1,10 @@
 <?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';
index 20566c7..ef41f38 100644 (file)
  * @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');