$Horde: horde/lib/Test.php,v 1.21 2004/02/14 02:40:35 chuck Exp $ Copyright 1999-2004 Charles J. Hagenbuch Copyright 1999-2004 Jon Parise Copyright 2002-2004 Brent J. Nordquist Copyright 2003-2004 Michael Slusarz See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.
Author: Chuck Hagenbuch (chuck@horde.org)
Author: Jon Parise (jon@horde.org)
Author: Brent J. Nordquist (bjn@horde.org)
Author: Michael Slusarz (slusarz@bigworm.colorado.edu)
コード例 #1
0
ファイル: Test.php プロジェクト: horde/horde
 /**
  */
 public function __construct()
 {
     parent::__construct();
     $this->_fileList += array('config/backends.php' => null, 'config/mime_drivers.php' => null, 'config/prefs.php' => null);
 }
コード例 #2
0
ファイル: index.php プロジェクト: Artea/freebeer
<?php

/**
 * $Horde: chora/index.php,v 1.22 2004/01/01 15:14:00 jan Exp $
 *
 * Copyright 1999-2004 Anil Madhavapeddy <*****@*****.**>
 *
 * 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('CHORA_BASE', dirname(__FILE__));
$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') && @is_readable(CHORA_BASE . '/config/html.php');
if (!$chora_configured) {
    /* Chora isn't configured. */
    define('HORDE_LIBS', '');
    require CHORA_BASE . '/../lib/Test.php';
    Horde_Test::configFilesMissing('Chora', CHORA_BASE, array('conf.php', 'html.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 . '/cvs.php';
コード例 #3
0
ファイル: index.php プロジェクト: Artea/freebeer
        $url = Util::getFormData('url');
        $initial_app = $prefs->getValue('initial_application');
        if (!empty($url)) {
            $main_page = $url;
        } elseif (!empty($initial_app) && !($GLOBALS['perms']->exists($initial_app) && !$GLOBALS['perms']->hasPermission($initial_app, Auth::getAuth(), PERMS_READ))) {
            $main_page = Horde::url($registry->getInitialPage($initial_app));
        } elseif (isset($registry->applications['horde']['initial_page'])) {
            $main_page = Horde::applicationUrl($registry->applications['horde']['initial_page']);
        } elseif (Auth::getAuth()) {
            $main_page = Horde::applicationUrl('services/portal/');
        } else {
            $main_page = Horde::applicationUrl('login.php');
        }
        if (!Util::getFormData('frameset') && ($conf['menu']['always'] || $conf['menu']['display'] && Auth::getAuth() && $prefs->getValue('show_sidebar'))) {
            if ($browser->hasQuirk('scrollbar_in_way')) {
                $scrollbar = 'yes';
            } else {
                $scrollbar = 'auto';
            }
            $main_page = Util::addParameter($main_page, 'frameset', 1);
            require HORDE_TEMPLATES . '/index/frames_index.inc';
        } else {
            header('Location: ' . $main_page);
            exit;
        }
    }
} else {
    define('HORDE_LIBS', '');
    require HORDE_BASE . '/lib/Test.php';
    Horde_Test::configFilesMissing('Horde', HORDE_BASE, 'prefs.php', array('conf.php' => 'This is the main Horde configuration file. It contains paths and basic items that apply to the core framework and all Horde applications.', 'html.php' => 'This file controls the stylesheet that is used to set colors and fonts for the Horde framework and all applications that do not provide their own settings.', 'mime_drivers.php' => 'This file controls the global set of MIME drivers for the Horde framework, allowing applications to make use of programs such as enscript or mswordview to render content into HTML for viewing in a browser.', 'registry.php' => 'The registry is how Horde applications find out how to talk to each other. You should list any installed Horde applications that you have here.'));
}
コード例 #4
0
ファイル: Test.php プロジェクト: horde/horde
 /**
  */
 public function __construct()
 {
     parent::__construct();
     $this->_fileList += array('config/prefs.php' => null);
 }
コード例 #5
0
ファイル: index.php プロジェクト: penguincoder/nwnadmin
<?php

/**
 * 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('NWNADMIN_BASE', dirname(__FILE__));
$nwnadmin_configured = @is_readable(NWNADMIN_BASE . '/config/conf.php');
if (!$nwnadmin_configured) {
    require NWNADMIN_BASE . '/../lib/Test.php';
    Horde_Test::configFilesMissing('NWNAdmin', NWNADMIN_BASE, array('conf.php'));
} else {
    require NWNADMIN_BASE . '/start.php';
}