cvs: php-master-web /fetch mirrors.php
| From: | Gabor Hojtsy | Date: | Sun, 15 Dec 2002 21:21:19 +0000 |
| Subject: | cvs: php-master-web /fetch mirrors.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-14213@lists.php.net to get a copy of this message | ||
goba Sun Dec 15 16:21:19 2002 EDT
Modified files:
/php-master-web/fetch mirrors.php
Log:
Add some nice structure info to this file
Index: php-master-web/fetch/mirrors.php
diff -u php-master-web/fetch/mirrors.php:1.6 php-master-web/fetch/mirrors.php:1.7
--- php-master-web/fetch/mirrors.php:1.6 Sun Dec 15 15:59:01 2002
+++ php-master-web/fetch/mirrors.php Sun Dec 15 16:21:18 2002
@@ -1,5 +1,19 @@
<?php
+// Info on the $MIRRORS array structure
+$structinfo = "
+/* Structure of an element of the $MIRRORS array:
+ 0 Country code,
+ 1 Provider name,
+ 2 Local stats flag (1/0)
+ 3 Provider URL,
+ 4 Mirror type (1 - standard, 2 - special, 3 - download)
+ 5 Local search engine flag (1/0)
+ 6 Default language code
+*/
+
+";
+
// A token is required, since this should only get accessed from rsync.php.net
if (!isset($token) || md5($token) != "19a3ec370affe2d899755f005e5cd90e") {
die("token not correct.");
@@ -24,7 +38,7 @@
if ($res) {
// Start PHP script output
- echo "<?php\n\$MIRRORS = array(\n";
+ echo "<?php$structinfo\$MIRRORS = array(\n";
// Go through all result rows
while ($row = @mysql_fetch_array($res)) {