File: index.php

package info (click to toggle)
chora2 2.0.1-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 2,208 kB
  • ctags: 302
  • sloc: php: 1,298; xml: 406; makefile: 66
file content (25 lines) | stat: -rw-r--r-- 1,011 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php
/**
 * $Horde: chora/index.php,v 1.25.10.1 2005/01/03 12:25:30 jan Exp $
 *
 * Copyright 1999-2005 Anil Madhavapeddy <anil@recoil.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('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'));

if (!$chora_configured) {
    /* Chora isn't configured. */
    require CHORA_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 . '/browse.php';