cvs: phpweb /error index.php
| From: | Gabor Hojtsy | Date: | Sun, 02 Feb 2003 20:30:02 +0000 |
| Subject: | cvs: phpweb /error index.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-15427@lists.php.net to get a copy of this message | ||
goba Sun Feb 2 15:30:02 2003 EDT
Modified files:
/phpweb/error index.php
Log:
And now the URL parsing for the get URL with mirror data...
Index: phpweb/error/index.php
diff -u phpweb/error/index.php:1.103 phpweb/error/index.php:1.104
--- phpweb/error/index.php:1.103 Sun Feb 2 15:07:16 2003
+++ phpweb/error/index.php Sun Feb 2 15:30:01 2003
@@ -78,6 +78,13 @@
include_once "$DOCUMENT_ROOT/get_download.php";
exit;
}
+elseif (preg_match("!^get/([^/]+)/from/([^/]+)$!", $URI, $dlinfo)) {
+ $df = $dlinfo[1];
+ $mr = "http://{$dlinfo[2]}/";
+ include_once "$DOCUMENT_ROOT/do_download.php";
+ exit;
+}
+
// ============================================================================
// Define shortcuts for PHP files, manual pages and external redirects