cvs: phpweb / docs.php /include layout.inc
| From: | Hojtsy Gabor | Date: | Sun, 11 Mar 2001 11:35:59 +0000 |
| Subject: | cvs: phpweb / docs.php /include layout.inc | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-4385@lists.php.net to get a copy of this message | ||
goba Sun Mar 11 03:35:59 2001 EDT
Modified files:
/phpweb/include layout.inc
/phpweb docs.php
Log:
Show size as hint, do not print debug info
Index: phpweb/include/layout.inc
diff -u phpweb/include/layout.inc:1.22 phpweb/include/layout.inc:1.23
--- phpweb/include/layout.inc:1.22 Sun Mar 11 03:30:15 2001
+++ phpweb/include/layout.inc Sun Mar 11 03:35:58 2001
@@ -1,5 +1,5 @@
<?php
-/* $Id: layout.inc,v 1.22 2001/03/11 11:30:15 goba Exp $ */
+/* $Id: layout.inc,v 1.23 2001/03/11 11:35:58 goba Exp $ */
# spacer()
@@ -156,7 +156,7 @@
}
$size = @filesize($local_file)/1024;
- echo("<!-- file=$file localfile=$local_file size-$size -->\n");
+ //echo("<!-- file=$file localfile=$local_file size-$size -->\n");
print_link("http://www.php.net/do_download.php?download_file="
. $file . "&source_site=$server", $title);
Index: phpweb/docs.php
diff -u phpweb/docs.php:1.64 phpweb/docs.php:1.65
--- phpweb/docs.php:1.64 Thu Mar 8 13:34:03 2001
+++ phpweb/docs.php Sun Mar 11 03:35:59 2001
@@ -40,17 +40,18 @@
"es" => "Spanish"
);
+# arrat structure: header, link text, show size in link
$formats = array(
- "" => array("View Online", "view"),
- "html/" => array("View Online (plain)", "view"),
- "bigmanual.html.gz" => array("Single HTML", "html.gz"),
- "manual_doc.pdb" => array("PalmPilot DOC", "doc.pdb"),
- "manual_isilo.pdb" => array("PalmPilot iSilo", "isilo.pdb"),
- "manual.pdf" => array("PDF", "pdf"),
- "manual.txt.gz" => array("Plain text", "txt.gz"),
- "manual.tar.gz" => array("Many HTML files", "tar.gz"),
- "manual.zip" => array("Many HTML files", "zip"),
- "manual.chm" => array("Windows HTML Help", "chm")
+ "" => array("View Online", "view", false),
+ "html/" => array("View Online (plain)", "view", false),
+ "bigmanual.html.gz" => array("Single HTML", "html.gz", true),
+ "manual_doc.pdb" => array("PalmPilot DOC", "doc.pdb", true),
+ "manual_isilo.pdb" => array("PalmPilot iSilo", "isilo.pdb",
true),
+ "manual.pdf" => array("PDF", "pdf", true),
+ "manual.txt.gz" => array("Plain text", "txt.gz", true),
+ "manual.tar.gz" => array("Many HTML files", "tar.gz", true),
+ "manual.zip" => array("Many HTML files", "zip", true),
+ "manual.chm" => array("Windows HTML Help", "chm", true)
);
?>
@@ -86,7 +87,8 @@
}
$size = @filesize("manual/$langcode/$fn");
if ($size) {
- echo "<a href=\"manual/$langcode/$fn\">$details[1]</a>";
+ $print_size = ($details[2] ? ' title="' . (int) ($size/1024) .
'"' : '');
+ echo "<a
href=\"manual/$langcode/$fn\"$print_size>$details[1]</a>";
}
else {
echo " ";