diff --git a/homepage/views.php b/homepage/views.php index b4d59a0..987f522 100644 --- a/homepage/views.php +++ b/homepage/views.php @@ -50,6 +50,16 @@ if (file_exists('./scripts/thisrun.txt')) { } elseif (file_exists('./scripts/firstrun.ini')) { $config = parse_ini_file('./scripts/firstrun.ini'); } + +if ($config["LATITUDE"] == "0.000" && $config["LONGITUDE"] == "0.000") { + echo "
WARNING: Your latitude and longitude are not set properly. Please do so now in Tools -> Settings.
"; +} +elseif ($config["LATITUDE"] == "0.000") { + echo "
WARNING: Your latitude is not set properly. Please do so now in Tools -> Settings.
"; +} +elseif ($config["LONGITUDE"] == "0.000") { + echo "
WARNING: Your longitude is not set properly. Please do so now in Tools -> Settings.
"; +} ?>