[geeklog-cvs] Geeklog-1.x/public_html/links portal.php,1.5,1.6

Dirk Haun dhaun at qs1489.pair.com
Tue Jan 1 07:33:50 EST 2008


Update of /cvsroot/geeklog/Geeklog-1.x/public_html/links
In directory qs1489.pair.com:/tmp/cvs-serv90553/public_html/links

Modified Files:
	portal.php 
Log Message:
Removed category redirect via portal.php. There's no hits counter for categories, so what's the point?


Index: portal.php
===================================================================
RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/links/portal.php,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** portal.php	31 Dec 2007 10:41:47 -0000	1.5
--- portal.php	1 Jan 2008 12:33:48 -0000	1.6
***************
*** 9,18 ****
  // | Geeklog portal page that tracks link click throughs.                      |
  // +---------------------------------------------------------------------------+
! // | Copyright (C) 2000-2007 by the following authors:                         |
  // |                                                                           |
! // | Authors: Tony Bibbs        - tony at tonybibbs.com                           |
! // |          Mark Limburg      - mlimburg at users.sourceforge.net               |
! // |          Jason Whittenburg - jwhitten at securitygeeks.com                   |
! // |          Dirk Haun         - dirk at haun-online.de                          |
  // +---------------------------------------------------------------------------+
  // |                                                                           |
--- 9,18 ----
  // | Geeklog portal page that tracks link click throughs.                      |
  // +---------------------------------------------------------------------------+
! // | Copyright (C) 2000-2008 by the following authors:                         |
  // |                                                                           |
! // | Authors: Tony Bibbs        - tony AT tonybibbs DOT com                    |
! // |          Mark Limburg      - mlimburg AT users.sourceforge DOT net        |
! // |          Jason Whittenburg - jwhitten AT securitygeeks DOT com            |
! // |          Dirk Haun         - dirk AT haun-online DOT de                   |
  // +---------------------------------------------------------------------------+
  // |                                                                           |
***************
*** 33,36 ****
--- 33,37 ----
  // +---------------------------------------------------------------------------+
  //
+ // $Id$
  
  /** 
***************
*** 40,58 ****
   * @subpackage public_html
   * @filesource
!  * @version 1.0
   * @since GL 1.4.0
!  * @copyright Copyright © 2005
   * @license http://opensource.org/licenses/gpl-license.php GNU Public License 
!  * @author Trinity Bays <trinity93 at steubentech.com>
!  * @author Tony Bibbs <tony at tonybibbs.com>
!  * @author Tom Willett <twillett at users.sourceforge.net>
!  * @author Blaine Lang <langmail at sympatico.ca>
!  * @author Dirk Haun <dirk at haun-online.de>
   * 
   */
  
! // $Id$
! 
! require_once('../lib-common.php');
  
  // MAIN
--- 41,57 ----
   * @subpackage public_html
   * @filesource
!  * @version 2.0
   * @since GL 1.4.0
!  * @copyright Copyright © 2005-2008
   * @license http://opensource.org/licenses/gpl-license.php GNU Public License 
!  * @author Trinity Bays <trinity93 AT steubentech.com>
!  * @author Tony Bibbs <tony AT tonybibbs DOT com>
!  * @author Tom Willett <twillett AT users DOT sourceforge DOT net>
!  * @author Blaine Lang <langmail AT sympatico DOT ca>
!  * @author Dirk Haun <dirk AT haun-online DOT de>
   * 
   */
  
! require_once '../lib-common.php';
  
  // MAIN
***************
*** 60,91 ****
  $url = '';
  
! COM_setArgNames (array ('what', 'item'));
! $what = COM_getArgument ('what');
  
  if ($what == 'link') {
  
!     $item = COM_applyFilter (COM_getArgument ('item'));
  
!     if (!empty ($item)) {
!         $url = DB_getItem ($_TABLES['links'], 'url', "lid = '{$item}'");
!         if (!empty ($url)) {
!             DB_change ($_TABLES['links'], 'hits','hits + 1', 'lid',$item, '', true);
          }
      }
- } elseif ($what == 'category') {
- 
-     $item = COM_applyFilter (COM_getArgument ('item'));
  
-     if (!empty ($item)) {
-         $url = COM_buildURL("{$_CONF['site_url']}/links/index.php?category=" . urlencode($item));
-     }
  }
  
! if (empty ($url)) {
      $url = $_CONF['site_url'];
  }
! header ('HTTP/1.1 301 Moved');
! header ('Location: ' . $url);
! header ('Connection: close');
  
  ?>
--- 59,84 ----
  $url = '';
  
! COM_setArgNames(array('what', 'item'));
! $what = COM_getArgument('what');
  
  if ($what == 'link') {
  
!     $item = COM_applyFilter(COM_getArgument('item'));
  
!     if (!empty($item)) {
!         $url = DB_getItem($_TABLES['links'], 'url', "lid = '{$item}'");
!         if (!empty($url)) {
!             DB_change($_TABLES['links'], 'hits','hits + 1', 'lid',$item, '', true);
          }
      }
  
  }
  
! if (empty($url)) {
      $url = $_CONF['site_url'];
  }
! header('HTTP/1.1 301 Moved');
! header('Location: ' . $url);
! header('Connection: close');
  
  ?>




More information about the geeklog-cvs mailing list