[ Index ]

PHP Cross Reference of Nuke-Evolution v2.0.5

title

Body

[close]

/blocks/ -> block-Downloads-New.php (source)

   1  <?php
   2  /*=======================================================================
   3   Nuke-Evolution Basic: Enhanced PHP-Nuke Web Portal System
   4   =======================================================================*/
   5  
   6  if(!defined('NUKE_EVO')) exit;
   7  
   8  global $prefix, $db;
   9  $blkh = 20; // Number of lines high
  10  $blkw = 20; // Number of characters wide 0 = unused
  11  $scron = 0; // Turn scrolling on by setting to 1
  12  $scrdr = 'up'; // Scroll direction (up, down, left, or right)
  13  $scrhg = 400; // Scroller height in pixels
  14  $scrwd = 200; // Scroller width in pixels
  15  $a = 1;
  16  if ($scron == 1) {
  17      $content .= "<marquee behavior='scroll' direction='$scrdr' height='$scrhg' width='$scrwd' scrollamount='2' scrolldelay='100' onMouseOver='this.stop()' onMouseOut='this.start()'><br />";
  18  }
  19  $result = $db->sql_query("SELECT lid, title FROM ".$prefix."_downloads_downloads ORDER BY date DESC LIMIT 0,$blkh");
  20  while(list($lid, $title) = $db->sql_fetchrow($result)) {
  21      $title2 = str_replace("_", " ", $title);
  22      $title = strtr($title, " ()", "_[]");
  23      if ($blkw > 0) { if (strlen($title2) > $blkw) { $title2 = substr($title2, 0, $blkw); } }
  24      if ($a < 10) { $content .= "0$a: "; } else { $content .= "$a: "; }
  25      $content .= "<a href='modules.php?name=Downloads&amp;op=getit&amp;lid=$lid'>$title2</a><br />";
  26      $a++;
  27  }
  28  $db->sql_freeresult($result);
  29  if ($scron == 1) {
  30      $content .= "</marquee>";
  31  }
  32  
  33  ?>


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