cvs: phpweb /error index.php
| From: | Gabor Hojtsy | Date: | Sat, 08 Feb 2003 12:19:41 +0000 |
| Subject: | cvs: phpweb /error index.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-15593@lists.php.net to get a copy of this message | ||
goba Sat Feb 8 07:19:41 2003 EDT
Modified files:
/phpweb/error index.php
Log:
Get rid of all extension problems, and introduce
download URLs looking even better ;)
Index: phpweb/error/index.php
diff -u phpweb/error/index.php:1.105 phpweb/error/index.php:1.106
--- phpweb/error/index.php:1.105 Fri Feb 7 10:16:20 2003
+++ phpweb/error/index.php Sat Feb 8 07:19:41 2003
@@ -78,9 +78,11 @@
include_once "$DOCUMENT_ROOT/get_download.php";
exit;
}
-elseif (preg_match("!^get/([^/]+)/from/([^/]+)$!", $URI, $dlinfo)) {
+elseif (preg_match("!^get/([^/]+)/from/([^/]+)(/mirror)?$!", $URI, $dlinfo)) {
$df = $dlinfo[1];
- $mr = "http://{$dlinfo[2]}/";
+ if ($dlinfo[2] == "a") { include_once "$DOCUMENT_ROOT/get_download.php";
exit; }
+ if ($dlinfo[2] == "this") { $mr = $MYSITE; }
+ else { $mr = "http://{$dlinfo[2]}/"; }
include_once "$DOCUMENT_ROOT/do_download.php";
exit;
}