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 26 27
|
<?php
/**
* $Horde: ansel/index.php,v 1.20.2.2 2009-01-06 15:22:19 jan Exp $
*
* Copyright 2001-2009 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.
*
* @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';
header('Location: ' . Ansel::getUrlFor('default_view', array()));
exit;
|