cvs: phpweb / my.php
| From: | Gabor Hojtsy | Date: | Sun, 04 May 2003 12:25:39 +0000 |
| Subject: | cvs: phpweb / my.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-17298@lists.php.net to get a copy of this message | ||
goba Sun May 4 08:25:39 2003 EDT
Modified files:
/phpweb my.php
Log:
Add some information on country detection,
and ensure the page is not cached
Index: phpweb/my.php
diff -u phpweb/my.php:1.11 phpweb/my.php:1.12
--- phpweb/my.php:1.11 Sun Apr 27 04:24:06 2003
+++ phpweb/my.php Sun May 4 08:25:38 2003
@@ -1,8 +1,11 @@
<?php
-/* $Id: my.php,v 1.11 2003/04/27 08:24:06 rasmus Exp $ */
+/* $Id: my.php,v 1.12 2003/05/04 12:25:38 goba Exp $ */
include_once "prepend.inc";
+// Try to make this page non-cached
+header_nocache();
+
// Languages array copy and options to list
$langs = $LANGUAGES; $options = array();
@@ -118,5 +121,26 @@
the <a href="/download-docs.php">manual download</a> or
<a href="/docs.php">language selection</a> pages, etc.
</p>
+
+<h2>Your country</h2>
+
+<p>
+The PHP.net site and mirror sites try to detect your country
+using the <a href="http://www.ip-to-country.com/">Directi
+Ip-to-Country Database</a>. This information is used to mark
+the events in your country specially and to offer close mirror
+sites if possible on the download page and on the mirror listing
+page.
+</p>
+
+<blockquote>
+<?php
+if (i2c_valid_country()) {
+ echo "We detected that you are from <b>" . $COUNTRIES[$COUNTRY] .
"</b>";
+} else {
+ echo "We were unable to detect your country";
+}
+?>
+</blockquote>
<?php commonFooter(); ?>