From a0d83d2ada34f92aa3c2d7d965a10b02841cec65 Mon Sep 17 00:00:00 2001 From: gravel Date: Thu, 19 Jan 2023 18:22:05 +0000 Subject: [PATCH] Update runtime disclaimer & syntax --- .phpenv | 2 +- php/fetch-servers.php | 6 +----- php/update-listing.php | 10 +++++++--- sites/index.php | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.phpenv b/.phpenv index 2591ed4..309b041 100644 --- a/.phpenv +++ b/.phpenv @@ -5,7 +5,7 @@ $ROOMS_FILE="$CACHE_ROOT/rooms.json"; $DOCUMENT_ROOT="$PROJECT_ROOT/output"; $TEMPLATES_ROOT="$PROJECT_ROOT/sites"; - $LANGUAGES_ROOT="$PROJECT_ROOT/languages" + $LANGUAGES_ROOT="$PROJECT_ROOT/languages"; // set timeout for file_get_contents() ini_set('default_socket_timeout', 6); // in seconds, default is 60 diff --git a/php/fetch-servers.php b/php/fetch-servers.php index 904ca6d..77a1786 100644 --- a/php/fetch-servers.php +++ b/php/fetch-servers.php @@ -2,7 +2,7 @@ // requires php-curl // require other php files - require_once "getenv.php" + require_once "getenv.php"; require_once "utils/server-utils.php"; include_once "$LANGUAGES_ROOT/language_flags.php"; // actually runs fine without it @@ -50,10 +50,6 @@ function main() { $timestamp = time(); // unix timestamp in seconds - echo("Running, please wait..." . PHP_EOL); - echo("This script will usually take approximately 4 minutes to run." . PHP_EOL); - echo("It will take longer if the Chinese servers are spasming out." . PHP_EOL); - $html = get_html_from_known_sources(); $wild_join_links = extract_join_links_from_html($html); $servers = get_servers_from_join_links($wild_join_links); diff --git a/php/update-listing.php b/php/update-listing.php index 401b315..1f86095 100644 --- a/php/update-listing.php +++ b/php/update-listing.php @@ -1,5 +1,9 @@ +Running, please wait... +This script will usually take approximately 4 minutes to run. +It will take longer if the Chinese servers are spasming out +or if you are running this for the first time. + \ No newline at end of file diff --git a/sites/index.php b/sites/index.php index 3e59f3d..178592f 100644 --- a/sites/index.php +++ b/sites/index.php @@ -1,7 +1,7 @@