cvs: phpweb /error index.php

From: Date: Sun, 02 Feb 2003 20:07:17 +0000
Subject: cvs: phpweb /error index.php
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-15426@lists.php.net to get a copy of this message
goba Sun Feb 2 15:07:17 2003 EDT Modified files: /phpweb/error index.php Log: Commit the first element of the solution for wget problems (similar download links to pear.php.net) Index: phpweb/error/index.php diff -u phpweb/error/index.php:1.102 phpweb/error/index.php:1.103 --- phpweb/error/index.php:1.102 Sat Jan 25 14:23:07 2003 +++ phpweb/error/index.php Sun Feb 2 15:07:16 2003 @@ -72,6 +72,14 @@ } // ============================================================================ +// Nice URLs for download files, so wget works completely well with download links +if (preg_match("!^get/([^/]+)$!", $URI, $filepart)) { + $df = $filepart[1]; + include_once "$DOCUMENT_ROOT/get_download.php"; + exit; +} + +// ============================================================================ // Define shortcuts for PHP files, manual pages and external redirects $uri_aliases = array (

« previous php.mirrors (#15426) next »