- Timestamp:
- 09/08/07 18:32:20 (15 months ago)
- Files:
-
- 1 modified
-
trunk/common/rss.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/common/rss.php
r595 r597 28 28 require("mvblog.php"); 29 29 $mvblog = new MvBlog(); 30 //get all the authors in an array31 $res =& $mvblog->db->query("SELECT * FROM authors");32 33 if (PEAR::isError($res)) {34 die($res->getMessage());35 }36 37 while ($row = $res->fetchRow(MDB2_FETCHMODE_ASSOC)) {38 $authors[$row["id"]]["fullname"] = $row["fullname"];39 $authors[$row["id"]]["email"] = $row["email"];40 }41 30 42 31 //generate url to the root of our website … … 108 97 echo "\t\t\t<category>asides</category>\n"; 109 98 echo "\t\t\t<guid isPermaLink=\"false\">".$url."index.php?aside=".$row["id"]."</guid>\n"; 110 echo "\t\t\t<author>".htmlspecialchars($ authors[$row["authors_id"]]["email"])." (".htmlspecialchars($authors[$row["authors_id"]]["fullname"]).")</author>\n";99 echo "\t\t\t<author>".htmlspecialchars($mvblog->authors[$row["authors_id"]]["email"])." (".htmlspecialchars($mvblog->authors[$row["authors_id"]]["fullname"]).")</author>\n"; 111 100 } else { 112 101 echo "\t\t\t<link>".$url."index.php?action=view&id=".$row["id"]."$link</link>\n"; … … 126 115 if (!$comments) { 127 116 echo "\t\t\t<comments>".$url."index.php?action=view&id=".$row["id"]."#comments</comments>\n"; 128 echo "\t\t\t<author>".htmlspecialchars($ authors[$row["authors_id"]]["email"])." (".htmlspecialchars($authors[$row["authors_id"]]["fullname"]).")</author>\n";117 echo "\t\t\t<author>".htmlspecialchars($mvblog->authors[$row["authors_id"]]["email"])." (".htmlspecialchars($mvblog->authors[$row["authors_id"]]["fullname"]).")</author>\n"; 129 118 } 130 119 }
