[ Index ] |
|
Code source de GeekLog 1.4.1 |
1 <?php 2 3 /* Reminder: always indent with 4 spaces (no tabs). */ 4 // +---------------------------------------------------------------------------+ 5 // | Geeklog 1.3 | 6 // +---------------------------------------------------------------------------+ 7 // | portal.php | 8 // | | 9 // | Geeklog portal page that tracks link click throughs. | 10 // +---------------------------------------------------------------------------+ 11 // | Copyright (C) 2000-2004 by the following authors: | 12 // | | 13 // | Authors: Tony Bibbs - tony@tonybibbs.com | 14 // | Mark Limburg - mlimburg@users.sourceforge.net | 15 // | Jason Whittenburg - jwhitten@securitygeeks.com | 16 // | Dirk Haun - dirk@haun-online.de | 17 // +---------------------------------------------------------------------------+ 18 // | | 19 // | This program is free software; you can redistribute it and/or | 20 // | modify it under the terms of the GNU General Public License | 21 // | as published by the Free Software Foundation; either version 2 | 22 // | of the License, or (at your option) any later version. | 23 // | | 24 // | This program is distributed in the hope that it will be useful, | 25 // | but WITHOUT ANY WARRANTY; without even the implied warranty of | 26 // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 27 // | GNU General Public License for more details. | 28 // | | 29 // | You should have received a copy of the GNU General Public License | 30 // | along with this program; if not, write to the Free Software Foundation, | 31 // | Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | 32 // | | 33 // +---------------------------------------------------------------------------+ 34 // 35 36 /** 37 * Geeklog portal page that tracks link click throughs. 38 * 39 * @package Links 40 * @subpackage public_html 41 * @filesource 42 * @version 1.0 43 * @since GL 1.4.0 44 * @copyright Copyright © 2005 45 * @license http://opensource.org/licenses/gpl-license.php GNU Public License 46 * @author Trinity Bays <trinity93@steubentech.com> 47 * @author Tony Bibbs <tony@tonybibbs.com> 48 * @author Tom Willett <twillett@users.sourceforge.net> 49 * @author Blaine Lang <langmail@sympatico.ca> 50 * @author Dirk Haun <dirk@haun-online.de> 51 * 52 */ 53 54 // $Id: portal.php,v 1.3 2006/05/15 04:10:38 vinny Exp $ 55 56 require_once ('../lib-common.php'); 57 58 // MAIN 59 60 $url = ''; 61 62 COM_setArgNames (array ('what', 'item')); 63 $what = COM_getArgument ('what'); 64 65 if ($what == 'link') { 66 67 $item = COM_applyFilter (COM_getArgument ('item')); 68 69 if (!empty ($item)) { 70 $url = DB_getItem ($_TABLES['links'], 'url', "lid = '{$item}'"); 71 if (!empty ($url)) { 72 DB_change ($_TABLES['links'], 'hits','hits + 1', 'lid',$item, '', true); 73 } 74 } 75 } 76 77 if (empty ($url)) { 78 $url = $_CONF['site_url']; 79 } 80 81 header ('HTTP/1.1 301 Moved'); 82 header ('Location: ' . $url); 83 header ('Connection: close'); 84 85 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Wed Nov 21 12:27:40 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |