[geeklog-cvs] geeklog-1.3/public_html links.php,1.29,1.30

dhaun at geeklog.net dhaun at geeklog.net
Sat Oct 11 08:56:34 EDT 2003


Update of /usr/cvs/geeklog/geeklog-1.3/public_html
In directory geeklog_prod:/tmp/cvs-serv3520

Modified Files:
	links.php 
Log Message:
Changed to use COM_applyFilter.


Index: links.php
===================================================================
RCS file: /usr/cvs/geeklog/geeklog-1.3/public_html/links.php,v
retrieving revision 1.29
retrieving revision 1.30
diff -C2 -d -r1.29 -r1.30
*** links.php	11 Oct 2003 12:38:42 -0000	1.29
--- links.php	11 Oct 2003 12:56:32 -0000	1.30
***************
*** 54,57 ****
--- 54,60 ----
      $display .= COM_endBlock (COM_getBlockTemplate ('_msg_block', 'footer'));
  } else {
+     $category = COM_applyFilter ($HTTP_GET_VARS['category']);
+     $page = COM_applyFilter ($HTTP_GET_VARS['page'], true);
+ 
      $display .= COM_startBlock($LANG06[1]);
  
***************
*** 78,82 ****
                  $linklist->set_var ('category_count', $D['count']);
                  $linklist->set_var ('width', floor (100 / $_CONF['linkcols']));
!                 if (isset ($category) && (stripslashes ($category) == $C['category'])) {
                      $linklist->parse ('category_col', 'actcol', true);
                  } else {
--- 81,85 ----
                  $linklist->set_var ('category_count', $D['count']);
                  $linklist->set_var ('width', floor (100 / $_CONF['linkcols']));
!                 if (!empty ($category) && ($category == $C['category'])) {
                      $linklist->parse ('category_col', 'actcol', true);
                  } else {
***************
*** 104,108 ****
      $sql = "SELECT lid,category,url,description,title,hits FROM {$_TABLES['links']}";
      if ($_CONF['linkcols'] > 0) {
!         if (isset ($category)) {
              $sql .= " WHERE category = '$category'";
          } else {
--- 107,111 ----
      $sql = "SELECT lid,category,url,description,title,hits FROM {$_TABLES['links']}";
      if ($_CONF['linkcols'] > 0) {
!         if (!empty ($category)) {
              $sql .= " WHERE category = '$category'";
          } else {
***************
*** 120,124 ****
          $end = 10;
  
!         $result = DB_query("SELECT lid,url,title,description,hits from {$_TABLES['links']} WHERE (hits > 0)" . COM_getPermSQL ('AND') . " ORDER BY hits DESC LIMIT 10");
          $nrows  = DB_numRows($result);
          if ($nrows > 0) {
--- 123,127 ----
          $end = 10;
  
!         $result = DB_query("SELECT lid,url,title,description,hits FROM {$_TABLES['links']} WHERE (hits > 0)" . COM_getPermSQL ('AND') . " ORDER BY hits DESC LIMIT 10");
          $nrows  = DB_numRows($result);
          if ($nrows > 0) {





More information about the geeklog-cvs mailing list