$dir = ''; // Downloads Keyword Search } elseif (!empty($_GET['dl_k'])) { $key = $_GET['dl_k']; $dRss = new Loggix_Module_Downloads(); $params = $dRss->getSearchSqlParams(); $sql = $dRss->getSearchSql($params); $dir = ''; } // Check Last-Modified SQL $checkLatestSql = $sql; } // Get Last-Midified $res = $theRss->db->query($checkLatestSql); $row = $res->fetch(); $xml['last_modified'] = date($theRss->getRssTimeFormat('2.0'), strtotime($row[$params['date']])) . $theRss->getTimeZone(); $stmt = $theRss->db->prepare($sql); if ($stmt->execute() == true) { $items = array(); $item = array(); while ($row = $stmt->fetch()) { // Link $targetId = isset($id) && stristr($id, 'comments_') ? $row['refer_id'] . '#c' . $row['id'] : $row['id']; $link = $theRss->getRootUri() . $dir . 'index.php?id=' . $targetId; // Comment to Content Module $row[$params['comment']] = str_replace('./data/resources/', $theRss->getRootUri() . 'data/resources/', $row[$params['comment']]); // Apply Smiley $row[$params['comment']] = $theRss->setSmiley($row[$params['comment']]); $row[$params['comment']] = str_replace('/index.php?id=' . $targetId . '../../theme/', '/theme/', $row[$params['comment']]); // Apply plugin filter $row[$params['comment']] = $theRss->plugin->applyFilters('entry-content', $row[$params['comment']]);