Change import.php to tell user the configuration is missing.

This commit is contained in:
Ismo Vuorinen
2013-11-22 09:23:34 +02:00
parent f02a999279
commit 98350a9059

View File

@@ -9,7 +9,14 @@
* @link https://github.com/Ekokumppanit/Lentolaskuri
*/
require_once 'config.php';
/**
* See if we have config.php
*/
if (is_readable('config.php')) {
include_once 'config.php';
} else {
die("Couldn't find configuration file. Please check the installation guide.");
}
// If we can see lentolaskuri.sql and config.php setting
// $config['create_table'] is true, we try to create table for airports.