cvs: phpweb /include shared-manual.inc
| From: | Hojtsy Gabor | Date: | Thu, 04 Oct 2001 20:35:51 +0000 |
| Subject: | cvs: phpweb /include shared-manual.inc | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-6867@lists.php.net to get a copy of this message | ||
goba Thu Oct 4 16:35:51 2001 EDT
Modified files:
/phpweb/include shared-manual.inc
Log:
Adding an anchor to every user note (with user note id as the name)
Some whitespace changes
Index: phpweb/include/shared-manual.inc
diff -u phpweb/include/shared-manual.inc:1.123 phpweb/include/shared-manual.inc:1.124
--- phpweb/include/shared-manual.inc:1.123 Sat Sep 22 22:08:18 2001
+++ phpweb/include/shared-manual.inc Thu Oct 4 16:35:51 2001
@@ -121,23 +121,25 @@
function makeEntry($date,$name,$blurb,$id=0) {
- global $MAGIC_COOKIE;
+ global $MAGIC_COOKIE;
?>
<tr valign="top">
<td bgcolor="#e0e0e0" colspan="2">
+<?php
+ if ($id) { echo '<a name="#' . $id . '"></a>'; }
+?>
<table border="0" cellpadding="2" cellspacing="0"
width="100%">
<tr valign="top"><td>
<?php
- $name = htmlspecialchars($name);
- if ($name && $name != "php-general@lists.php.net" && $name !=
"user@example.com") {
- if (ereg("(.+)@(.+)\.(.+)",$name)) {
- echo "<a href=\"mailto:".$name."\">".$name."</a><br>\n";
- }
- else {
- echo "<b>".$name."</b><br>\n";
- }
+ $name = htmlspecialchars($name);
+ if ($name && $name != "php-general@lists.php.net" && $name !=
"user@example.com") {
+ if (ereg("(.+)@(.+)\.(.+)",$name)) {
+ echo "<a href=\"mailto:".$name."\">".$name."</a><br>\n";
+ } else {
+ echo "<b>".$name."</b><br>\n";
}
- echo date("d-M-Y h:i",$date);
+ }
+ echo date("d-M-Y h:i",$date);
?>
</td>
<td align="right">