X-Git-Url: https://git.p6c8.net/jirafeau_project.git/blobdiff_plain/4c50275300252ea53fc732e8ac64770106d22fd4..ef06cd797d4f91e83b1e3e69d815ff3e6c773ace:/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" />