[ Index ]

PHP Cross Reference of Nuke-Evolution v2.0.5

title

Body

[close]

/blocks/ -> block-Sentinel_Scrolling.php (source)

   1  <?php
   2  /*=======================================================================
   3   Nuke-Evolution Basic: Enhanced PHP-Nuke Web Portal System
   4   =======================================================================*/
   5  
   6  /********************************************************/
   7  /* block-Sentinel_Side.php                              */
   8  /********************************************************/
   9  /* NukeSentinel(tm)                                     */
  10  /* By: NukeScripts Network (webmaster@nukescripts.net)  */
  11  /* http://www.nukescripts.net                           */
  12  /* Copyright (c) 2000-2005 by NukeScripts Network         */
  13  /********************************************************/
  14  /* Hacker Beware center block        (SQL Programing)   */
  15  /* By: Stephen2417 (Orignal Code) &    xfsunolesphp     */
  16  /* http://stephen2417.com          http://xfsunoles.com */
  17  /* Copyright (c) 2004 by Stephen2417 & xfsunolesphp       */
  18  /********************************************************/
  19  /* Recoded for 100% W3C Compliance (If Scroll Disabled) */
  20  /* by 64bitguy                                          */
  21  /* http://64bit.us                                      */
  22  /********************************************************/
  23  
  24  /*****[CHANGES]**********************************************************
  25  -=[Base]=-
  26        Nuke Patched                             v3.1.0       06/26/2005
  27   ************************************************************************/
  28  
  29  /* NOTE: To Make this block 100% W3C Compliant, simply
  30     comment out line's 35 and 52 to Disable The "Marquee
  31     Function.  Ths block will appear smaller, but will
  32     grow until it reaches 20 blocked IP's and will stop
  33     at , size refreshing the list with only the latest 20
  34     blocked IP addresses.  To change that number, change
  35     the number after "DESC LIMIT" on line 36 to what you want! */
  36  
  37  if(!defined('NUKE_EVO')) exit;
  38  
  39  global $prefix, $db, $user, $admin, $ab_config, $currentlang;
  40  
  41  $usemarquee = 1;
  42  $scrolldirection = "Down";
  43  $content = "";
  44  $content .= "<table border=1><tr><td ALIGN=\"center\" VALIGN=\"top\"> "._AB_LIST."</td></tr></table><hr />\n";
  45  $content .= "<marquee Behavior=\"Scroll\" Direction=\"$scrolldirection\" Height=\"150\" ScrollAmount=\"1\" ScrollDelay=\"75\" onMouseOver=\"this.stop()\" onMouseOut=\"this.start()\"><br />";  // Comment This Line Out for W3C Compliance Step #1
  46  $result = $db->sql_query("SELECT `ip_addr`, `reason` FROM `".$prefix."_nsnst_blocked_ips` ORDER BY `date` DESC LIMIT 20");
  47  while (list($ip_addr, $ip_reason) = $db->sql_fetchrow($result)) {
  48    if((is_admin() AND $ab_config['display_link']==1) OR ((is_user() OR is_admin()) AND $ab_config['display_link']==2) OR $ab_config['display_link']==3) {
  49      $lookupip = str_replace("*", "0", $ip_addr);
  50      $content .= "<strong><big>&middot;</big></strong>&nbsp;<a href=\"".$ab_config['lookup_link']."$lookupip\" target=\"_blank\">$ip_addr</a>\n";
  51    } else {
  52      $content .= "<strong><big>&middot;</big></strong>&nbsp;$ip_addr\n";
  53    }
  54    if((is_admin() AND $ab_config['display_reason']==1) OR ((is_user() OR is_admin()) AND $ab_config['display_reason']==2) OR $ab_config['display_reason']==3) {
  55      $result2 = $db->sql_query("SELECT `reason` FROM `".$prefix."_nsnst_blockers` WHERE `blocker`='$ip_reason'");
  56      list($reason) = $db->sql_fetchrow($result2);
  57      $db->sql_freeresult($result2);
  58      $reason = str_replace("Abuse-","",$reason);
  59      $content .= "&nbsp;-&nbsp;$reason\n";
  60    }
  61    $content .= "<br />\n";
  62  }
  63  $db->sql_freeresult($result);
  64  $content .= "</marquee>";  // Comment This Line Out for W3C Compliance Step #2
  65  $content .= "<br />";
  66  $content .= "<hr /><div align=\"center\"><a href=\"http://www.nukescripts.net\" title=\"NukeSentinel&trade; Available at Nuke Scripts Network\" target=\"_blank\">"._AB_NUKESENTINEL." ".$ab_config['version_number']."</a></div>\n";
  67  
  68  ?>


Generated: Wed Jun 6 11:38:01 2007 Cross-referenced by PHPXref 0.7