summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2010-01-21 03:11:43 +0000
committerJared Adams <jaxad0127@gmail.com>2010-01-21 03:13:31 +0000
commit28479a7954ec3217c0774baa816fa38adb193a74 (patch)
treeab378dc0af8ebcbfeb38f5e7f1e440e20fb65c2b
parentb9ba1037d134791214b79429177028ba1b19621c (diff)
downloadserverdata-28479a7954ec3217c0774baa816fa38adb193a74.tar.gz
serverdata-28479a7954ec3217c0774baa816fa38adb193a74.tar.bz2
serverdata-28479a7954ec3217c0774baa816fa38adb193a74.tar.xz
serverdata-28479a7954ec3217c0774baa816fa38adb193a74.zip
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.
-rw-r--r--news.php10
1 files 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");
?>