[geeklog-cvs] geeklog-1.3/public_html links.php,1.27,1.28

geeklog-cvs-admin at lists.geeklog.net geeklog-cvs-admin at lists.geeklog.net
Sun Sep 7 05:32:16 EDT 2003


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

Modified Files:
	links.php 
Log Message:
Fixed warnings


Index: links.php
===================================================================
RCS file: /usr/cvs/geeklog/geeklog-1.3/public_html/links.php,v
retrieving revision 1.27
retrieving revision 1.28
diff -C2 -d -r1.27 -r1.28
*** links.php	18 Aug 2003 09:53:37 -0000	1.27
--- links.php	7 Sep 2003 09:32:14 -0000	1.28
***************
*** 39,43 ****
  // MAIN
  
! $display .= COM_siteHeader();
  if (empty ($_USER['username']) &&
      (($_CONF['loginrequired'] == 1) || ($_CONF['linksloginrequired'] == 1))) {
--- 39,43 ----
  // MAIN
  
! $display = COM_siteHeader();
  if (empty ($_USER['username']) &&
      (($_CONF['loginrequired'] == 1) || ($_CONF['linksloginrequired'] == 1))) {
***************
*** 91,95 ****
                  $linklist->set_var ('category_count', $D['count']);
                  $linklist->set_var ('width', floor (100 / $_CONF['linkcols']));
!                 if (stripslashes ($category) == $C['category']) {
                      $linklist->parse ('category_col', 'actcol', true);
                  } else {
--- 91,95 ----
                  $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 {
***************
*** 117,121 ****
      $sql = "SELECT lid,category,url,description,title,hits FROM {$_TABLES['links']} WHERE ";
      if ($_CONF['linkcols'] > 0) {
!         $sql .= "category = '$category' AND ";
      }
      $sql .= "{$permsql} ";
--- 117,125 ----
      $sql = "SELECT lid,category,url,description,title,hits FROM {$_TABLES['links']} WHERE ";
      if ($_CONF['linkcols'] > 0) {
!         if (isset ($category)) {
!             $sql .= "category = '$category' AND ";
!         } else {
!             $sql .= "category = '' AND ";
!         }
      }
      $sql .= "{$permsql} ";
***************
*** 210,214 ****
      }
      if ($pages > 0) {
!         if ($_CONF['linkcols'] > 0) {
              $catlink = '?category=' . urlencode ($currentcategory);
          } else {
--- 214,218 ----
      }
      if ($pages > 0) {
!         if (($_CONF['linkcols'] > 0) && isset ($currentcategory)) {
              $catlink = '?category=' . urlencode ($currentcategory);
          } else {





More information about the geeklog-cvs mailing list