Пример #1
0
             $sql = 'SELECT ' . '* ' . 'FROM ' . TRACKBACK_TABLE . ' ' . 'WHERE ' . "(id = '" . $targetId . "') AND (trash = '0')";
             $checkLatestSql = $sql;
         }
         $params = array('fields' => '*', 'table' => TRACKBACK_TABLE, 'title' => 'title', 'comment' => 'exerpt', 'date' => 'date');
         $dir = '';
     }
 } else {
     $previousItemNumber = empty($_GET['p']) ? '0' : $_GET['p'];
     $date = empty($_GET['d']) ? '' : $_GET['d'];
     $expand = empty($_GET['ex']) ? '0' : $_GET['ex'];
     $pageNumberToShow = empty($_GET['pn']) ? '1' : $_GET['pn'];
     // Tag
     if (!empty($_GET['t'])) {
         $key = $_GET['t'];
         $params = $theRss->getTagSqlParams();
         $sql = $theRss->getTagSql($params);
         $dir = '';
         // Keyword Search
     } elseif (!empty($_GET['k'])) {
         $key = $_GET['k'];
         $params = $theRss->getSearchSqlParams();
         $sql = $theRss->getSearchSql($params);
         $dir = '';
         // Downloads Tag
     } elseif (!empty($_GET['dl_t'])) {
         $key = $_GET['dl_'];
         $dRss = new Loggix_Module_Downloads();
         $params = $dRss->getTagSqlParams();
         $sql = $dRss->getTagSql($params);
         $dir = '';
         // Downloads Keyword Search