From 28479a7954ec3217c0774baa816fa38adb193a74 Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Thu, 21 Jan 2010 03:11:43 +0000 Subject: Increase minimum supported client version to 0.0.28.1 Also add a few changes that were made on the server but not put here. --- news.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/news.php b/news.php index 98efe63a..0f61fb95 100644 --- a/news.php +++ b/news.php @@ -13,10 +13,10 @@ if (substr($agent, 0, 3) == "TMW" || substr($agent, 0, 4) == "Mana") file_put_contents($file, '[' . date('H:i') . "] $agent\n", FILE_APPEND); } -$old_versions = array("TMW/0.0.23", "TMW/0.0.24", "TMW/0.0.24.1", "TMW/0.0.25"); -$min_version = '0.0.26'; +$min_version = '0.0.28.1'; +$cur_version = '0.0.29.1'; -if (array_search($agent, $old_versions) !== FALSE) // Explicit check for saftey +if (substr($agent, 0, 3) == "TMW" and $agent < 'TMW/' . $min_version) { echo "##1 The client you're using is no longer\n". "##1 supported! Please upgrade to $min_version or\n". @@ -24,5 +24,9 @@ if (array_search($agent, $old_versions) !== FALSE) // Explicit check for saftey "##1 TMW Staff\n \n"; } +echo "##9 Latest client version: ##6$cur_version\n \n"; + +echo "##0 New IRC channel: #themanaworld on irc.themanaworld.org\n \n"; + print file_get_contents("news.txt"); ?> -- cgit v1.2.3-60-g2f50