cvs: phpweb /include shared-manual.inc
| From: | Jim Winstead | Date: | Tue, 28 Aug 2001 02:19:19 +0000 |
| Subject: | cvs: phpweb /include shared-manual.inc | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-6149@lists.php.net to get a copy of this message | ||
jimw Mon Aug 27 22:19:19 2001 EDT
Modified files:
/phpweb/include shared-manual.inc
Log:
transitioning away from including '.php' in section for manual notes
Index: phpweb/include/shared-manual.inc
diff -u phpweb/include/shared-manual.inc:1.107 phpweb/include/shared-manual.inc:1.108
--- phpweb/include/shared-manual.inc:1.107 Sun Jul 8 09:06:38 2001
+++ phpweb/include/shared-manual.inc Mon Aug 27 22:19:19 2001
@@ -184,6 +184,7 @@
function manualGetUserNotes($title, $id)
{
+ $id = ereg_replace("\.php$","",$id);
// if we're www.php.net, get it from the local DB
// otherwise look in "/manual/usernotes/$title.txt" (if present)
global $MYSITE;
@@ -195,7 +196,7 @@
$user = 'nobody';
$pass = '';
$db_id = @mysql_connect($host, $user, $pass);
- $query = "SELECT *,UNIX_TIMESTAMP(ts) AS xwhen FROM note WHERE sect = '$title' OR
sect = '$id' ORDER BY id";
+ $query = "SELECT *,UNIX_TIMESTAMP(ts) AS xwhen FROM note WHERE sect = '$title' OR
sect LIKE '$id%' ORDER BY id";
if ($db_id) $result_id = mysql_db_query("php3", $query, $db_id);
if ($result_id && mysql_num_rows($result_id) > 0) {
while ($row = mysql_fetch_array($result_id)) {