cvs: phpweb / download-docs.php
| From: | Gabor Hojtsy | Date: | Sun, 07 Sep 2003 13:09:16 +0000 |
| Subject: | cvs: phpweb / download-docs.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-20881@lists.php.net to get a copy of this message | ||
goba Sun Sep 7 09:09:16 2003 EDT
Modified files:
/phpweb download-docs.php
Log:
Fix documentation downloads table
Index: phpweb/download-docs.php
diff -u phpweb/download-docs.php:1.52 phpweb/download-docs.php:1.53
--- phpweb/download-docs.php:1.52 Sun Sep 7 06:48:13 2003
+++ phpweb/download-docs.php Sun Sep 7 09:09:16 2003
@@ -87,15 +87,18 @@
// Go through all possible manual formats
foreach ($formats as $formatname => $extension) {
+ // Actual filename of the file
+ $actual_file = $_SERVER['DOCUMENT_ROOT'] .
"/distributions/manual/php_manual_$langcode.$extension";
+
// File named after the language and format exists
- if (file_exists("distributions/manual/php_manual_$langcode.$extension")) {
+ if (file_exists($actual_file)) {
- // Relative file path from here
+ // Mirror selection download URL
$link_to = "/get/php_manual_$langcode.$extension/from/a/mirror";
// Try to get size and changed date
- $size = @filesize($link_to);
- $changed = @filemtime($link_to);
+ $size = @filesize($actual_file);
+ $changed = @filemtime($actual_file);
// Size available, collect information
if ($size) {