| [ Index ] |
PHP Cross Reference of Nuke-Evolution v2.0.5 |
[Summary view] [Print] [Text view]
1 <?php 2 /*======================================================================= 3 Nuke-Evolution Basic: Enhanced PHP-Nuke Web Portal System 4 =======================================================================*/ 5 6 /************************************************************************/ 7 /* PHP-NUKE: Web Portal System */ 8 /* =========================== */ 9 /* */ 10 /* Copyright (c) 2002 by Francisco Burzi */ 11 /* http://phpnuke.org */ 12 /* */ 13 /* Last referers block for phpNuke portal */ 14 /* Copyright (c) 2001 by Jack Kozbial (jack@internetintl.com */ 15 /* http://www.InternetIntl.com */ 16 /* */ 17 /* This program is free software. You can redistribute it and/or modify */ 18 /* it under the terms of the GNU General Public License as published by */ 19 /* the Free Software Foundation; either version 2 of the License. */ 20 /************************************************************************/ 21 /* Additional security & Abstraction layer conversion */ 22 /* 2003 chatserv */ 23 /* http://www.nukefixes.com -- http://www.nukeresources.com */ 24 /************************************************************************/ 25 26 /*****[CHANGES]********************************************************** 27 -=[Base]=- 28 Nuke Patched v3.1.0 06/26/2005 29 ************************************************************************/ 30 31 if(!defined('NUKE_EVO')) exit; 32 33 global $db, $prefix; 34 35 # how many referers should the block display? 36 $ref = 10; 37 $a = 1; 38 $content = ''; 39 40 $result = $db->sql_query("SELECT url FROM ".$prefix."_referer ORDER BY lasttime DESC LIMIT 0,$ref"); 41 $total = $db->sql_numrows($result); 42 if ($total < 1) { 43 return $content = 'No referers to display'; 44 } 45 46 while (list($url) = $db->sql_fetchrow($result)) { 47 $url2 = str_replace('_', ' ', $url); 48 49 if (strlen($url2) > 18) { 50 $url2 = substr($url, 0, 20); 51 $url2 .= '..'; 52 } 53 54 $content .= "$a: \n" 55 ."<a href=\"$url\" target=\"_blank\">$url2</a>\n" 56 ."<br />\n"; 57 $a++; 58 } 59 60 if (is_admin()) { 61 global $admin_file; 62 $content .= "<br />\n" 63 ."<div align=\"center\">\n" 64 ."$total "._HTTPREFERERS."\n" 65 ."<br /><br />\n" 66 ."[ <a href=\"".$admin_file.".php?op=hreferer&del=all\">"._DELETE."</a> ]\n" 67 ."</div>\n"; 68 } 69 $db->sql_freeresult($result); 70 71 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Wed Jun 6 11:38:01 2007 | Cross-referenced by PHPXref 0.7 |