X-Git-Url: https://git.p6c8.net/jirafeau_mojo42.git/blobdiff_plain/4c50275300252ea53fc732e8ac64770106d22fd4..6924499c6530c40b3eb78c3f257ee895a5b10be2:/index.php?ds=inline diff --git a/index.php b/index.php index 4a84025..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. */ @@ -141,7 +149,7 @@ if (!has_error () && $writable) "checkbox" name = "one_time_download" />