X-Git-Url: https://git.p6c8.net/jirafeau_project.git/blobdiff_plain/dc4e2ece81a289c5d0969b411048736af735663a..6924499c6530c40b3eb78c3f257ee895a5b10be2:/index.php diff --git a/index.php b/index.php index eb8d577..8a31665 100644 --- a/index.php +++ b/index.php @@ -20,6 +20,7 @@ define ('JIRAFEAU_ROOT', dirname (__FILE__) . '/'); define ('DEBUG', true); +require (JIRAFEAU_ROOT . 'lib/lang.php'); require (JIRAFEAU_ROOT . 'lib/config.php'); require (JIRAFEAU_ROOT . 'lib/settings.php'); require (JIRAFEAU_ROOT . 'lib/functions.php'); @@ -61,6 +62,13 @@ if ($writable && isset ($_POST['jirafeau'])) $key, $time, $cfg, $_SERVER['REMOTE_ADDR']); } +if (file_exists (JIRAFEAU_ROOT . 'install.php') + && !file_exists (JIRAFEAU_ROOT.'lib/config.local.php')) +{ + header('Location: install.php'); + exit; +} + require (JIRAFEAU_ROOT.'lib/template/header.php'); /* Checking for errors. */