summaryrefslogtreecommitdiff
path: root/news.php
diff options
context:
space:
mode:
Diffstat (limited to 'news.php')
-rw-r--r--news.php30
1 files changed, 0 insertions, 30 deletions
diff --git a/news.php b/news.php
deleted file mode 100644
index 7ab51a9c..00000000
--- a/news.php
+++ /dev/null
@@ -1,30 +0,0 @@
-<?php
-header("Content-type: text/plain");
-header("Cache-Control: no-store, no-cache, must-revalidate");
-header("Cache-Control: post-check=0, pre-check=0", false);
-header("Pragma: no-cache");
-
-$agent = $_SERVER['HTTP_USER_AGENT'];
-
-if (substr($agent, 0, 3) == "TMW" || substr($agent, 0, 4) == "Mana")
-{
- $file = 'versions/' . date('Y-m-d') . '.txt';
- touch($file);
- file_put_contents($file, '[' . date('H:i') . "] $agent\n", FILE_APPEND);
-}
-
-$min_version = '0.0.29.1';
-$cur_version = '0.5.2';
-
-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".
- "##1 higher!\n \n".
- "##1 TMW Staff\n \n";
-}
-
-echo "##9 Latest client version: ##6$cur_version\n \n";
-
-print file_get_contents("news.txt");
-?>