1
0
Fork 1

Update runtime disclaimer & syntax

pull/8/head
gravel 1 year ago
parent 8edb363efe
commit 183df9247e
Signed by: gravel
SSH Key Fingerprint: SHA256:p4HP49CCk4YQMkJpWJ09L8peEPQWjERtdCRAFxPfbOY

@ -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

@ -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);

@ -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.
<?php
// Perform full update of community list.
require_once "fetch-servers.php";
require_once "generate-html.php";
require_once 'fetch-servers.php';
require_once 'generate-html.php';
?>

@ -1,7 +1,7 @@
<?php
// prerequisite include for sites and components
require_once "+getenv.php";
require_once "$PROJECT_ROOT/php/server-utils.php";
require_once "$PROJECT_ROOT/php/utils/server-utils.php";
$rooms_raw = file_get_contents($ROOMS_FILE);
$rooms = json_decode($rooms_raw);