X-Git-Url: https://git.p6c8.net/jirafeau_mojo42.git/blobdiff_plain/e788e47fbd5f963e03de3b7eba41580f1f00dd0f..db5c05cc01e7874e0a7fc7518782ab37b39911a8:/script.php diff --git a/script.php b/script.php index 8968aac..6fd8626 100755 --- a/script.php +++ b/script.php @@ -30,19 +30,19 @@ require (JIRAFEAU_ROOT . 'lib/settings.php'); require (JIRAFEAU_ROOT . 'lib/functions.php'); require (JIRAFEAU_ROOT . 'lib/lang.php'); -if (file_exists (JIRAFEAU_ROOT . 'install.php')) -{ - header('Content-Type: text; charset=utf-8'); - echo "Error"; - exit; -} - global $script_langages; $script_langages = array ('bash' => 'Bash'); if ($_SERVER['REQUEST_METHOD'] == "GET" && count ($_GET) == 0) { require (JIRAFEAU_ROOT . 'lib/template/header.php'); + check_errors (); + if (has_error ()) + { + show_errors (); + require (JIRAFEAU_ROOT . 'lib/template/footer.php'); + exit; + } echo '
'; echo '

' . t('Welcome to Jirafeau\'s query interface') . '

'; echo '

';