cvs: pearweb /public_html faq.php
| From: | Martin Jansen | Date: | Mon, 03 Sep 2001 11:08:45 +0000 |
| Subject: | cvs: pearweb /public_html faq.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-765@lists.php.net to get a copy of this message | ||
mj Mon Sep 3 07:08:45 2001 EDT
Modified files:
/pearweb/public_html faq.php
Log:
* support for <filename>
* remove un-necessary code
Index: pearweb/public_html/faq.php
diff -u pearweb/public_html/faq.php:1.6 pearweb/public_html/faq.php:1.7
--- pearweb/public_html/faq.php:1.6 Sun Sep 2 20:09:56 2001
+++ pearweb/public_html/faq.php Mon Sep 3 07:08:45 2001
@@ -1,4 +1,4 @@
-<!-- $Id: faq.php,v 1.6 2001/09/03 00:09:56 ssb Exp $ //-->
+<!-- $Id: faq.php,v 1.7 2001/09/03 11:08:45 mj Exp $ -->
<?php
response_header("FAQ");
@@ -96,6 +96,10 @@
case "break" :
$content .= "<br/>";
break;
+
+ case "filename" :
+ $content .= "<code>";
+ break;
}
$GLOBALS['content'] .= $content;
@@ -156,6 +160,11 @@
case "author" :
$content .= "</b>";
break;
+
+ case "filename" :
+ $content .= "</code>";
+ break;
+
}
$GLOBALS['content'] .= $content;
@@ -167,11 +176,7 @@
$GLOBALS['content'] .= htmlspecialchars($data);
}
-if (getenv("SERVER_NAME") != "pear.php.net") {
- $filename = "../doc/pearfaq.xml";
-} else {
- $filename = "/usr/local/www/pearweb/doc/pearfaq.xml";
-}
+$filename = "../doc/pearfaq.xml";
$fp = fopen($filename, "r") or die("error opening pearfaq.xml");