<?php
/**
 * $Horde: kronolith/index.php,v 1.24 2002/12/01 02:11:31 chuck Exp $
 *
 * Kronolith: Copyright 1999, 2000 Charles J. Hagenbuch <chuck@horde.org>
 *
 * See the enclosed file COPYING for license information (GPL). If you did
 * not receive such a file, see also http://www.fsf.org/copyleft/gpl.html.
 */

@define('KRONOLITH_BASE', dirname(__FILE__));
$kronolith_configured = (@is_readable(KRONOLITH_BASE . '/config/conf.php') &&
                         @is_readable(KRONOLITH_BASE . '/config/prefs.php') &&
                         @is_readable(KRONOLITH_BASE . '/config/html.php'));

if (!$kronolith_configured) {
    require KRONOLITH_BASE . '/templates/index/notconfigured.inc';
    exit;
}

require_once KRONOLITH_BASE . '/lib/base.php';
require KRONOLITH_BASE . '/' . $prefs->getValue('defaultview') . '.php';
