| [ 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 if(!defined('NUKE_EVO')) exit; 7 8 $modname = "Downloads"; 9 get_lang($modname); 10 11 global $prefix, $user_prefix, $db; 12 $content .= "<img src='images/blocks/uploads.png' height='16' width='16'> <strong>"._DL_UP.":</strong><br />\n"; 13 $result = $db->sql_query("SELECT username, uploads FROM ".$prefix."_downloads_accesses WHERE uploads>0 ORDER BY uploads DESC LIMIT 0,5"); 14 $a = 1; 15 while(list($uname, $uloads) = $db->sql_fetchrow($result)) { 16 $content .= "<strong><big>·</big></strong> $a: <a href='modules.php?name=Your_Account&op=userinfo&username=$uname'>$uname</a> ($uloads) "._DL_FILES."<br />"; 17 $a++; 18 } 19 $db->sql_freeresult($result); 20 $content .= "<hr />\n"; 21 $content .= "<img src='images/blocks/downloads.png' height='16' width='16'> <strong>"._DL_DN.":</strong><br />\n"; 22 $result = $db->sql_query("SELECT username, downloads FROM ".$prefix."_downloads_accesses WHERE downloads>0 ORDER BY downloads DESC LIMIT 0,5"); 23 $a = 1; 24 while(list($uname, $dloads) = $db->sql_fetchrow($result)) { 25 $unum = $db->sql_numrows($db->sql_query("SELECT * FROM ".$user_prefix."_users WHERE username='$uname'")); 26 if ($unum==0) { $uname = "Anonymous"; } 27 $content .= "<strong><big>·</big></strong> $a: <a href='modules.php?name=Your_Account&op=userinfo&username=$uname'>$uname</a> ($dloads) "._DL_FILES."<br />"; 28 $a++; 29 } 30 $db->sql_freeresult($result); 31 $content .= "<hr />\n"; 32 $result = $db->sql_query("SELECT hits FROM ".$prefix."_downloads_downloads WHERE active='1'"); 33 $totdld = $db->sql_numrows($result); 34 while(list($hits) = $db->sql_fetchrow($result)) { 35 $total_hits = $total_hits + $hits; 36 } 37 $db->sql_freeresult($result); 38 $content .= "<img src='images/blocks/totals.png' height='16' width='16'> <strong>"._DL_TDN.":</strong><br />\n"; 39 $content .= "$totdld "._DL_FILESDL." $total_hits "._DL_TIMES."<br />"; 40 41 ?>
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 |