summary refs log tree commit diff stats
path: root/rss.php
diff options
context:
space:
mode:
Diffstat (limited to 'rss.php')
-rwxr-xr-xrss.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/rss.php b/rss.php index b13aef2..8dc36b6 100755 --- a/rss.php +++ b/rss.php
@@ -118,14 +118,12 @@ if (!isset($_GET['mode']) || ($_GET['mode'] == 'blog'))
118 $getposts = "SELECT * FROM updates WHERE author = \"" . $_GET['author'] . "\" ORDER BY id DESC"; 118 $getposts = "SELECT * FROM updates WHERE author = \"" . $_GET['author'] . "\" ORDER BY id DESC";
119 } else if ($_GET['blog'] == 'tag') 119 } else if ($_GET['blog'] == 'tag')
120 { 120 {
121 $getposts = "SELECT * FROM updates WHERE tag1 = \"" . $_GET['tag'] . "\" OR tag2 = \"" . $_GET['tag'] . "\" OR tag3 = \"" . $_GET['tag'] . "\" ORDER BY id DESC"; 121 $getposts = "SELECT * FROM updates WHERE tags LIKE '%s:" . strlen($_GET['tag']) . ":\"" . $_GET['tag'] . "\"%' ORDER BY id DESC";
122 } else if (!isset($_GET['blog'])) { 122 } else if (!isset($_GET['blog'])) {
123 $getposts = "SELECT * FROM updates ORDER BY id DESC"; 123 $getposts = "SELECT * FROM updates ORDER BY id DESC";
124 } 124 }
125 $getposts2 = mysql_query($getposts); 125 $getposts2 = mysql_query($getposts);
126 126
127// $si = $i;
128
129 while (($items[$i] = mysql_fetch_array($getposts2))) 127 while (($items[$i] = mysql_fetch_array($getposts2)))
130 { 128 {
131 $items[$i]['sortDate'] = strtotime($items[$i]['pubDate']); 129 $items[$i]['sortDate'] = strtotime($items[$i]['pubDate']);