bestbuildpc: Forums
 

 Forum FAQForum FAQ   SearchSearch   UsergroupsUsergroups   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Old Download Module Converted
 
 
Post new topic   Reply to topic    bestbuildpc Forum Index -> RavenNuke -> Modules
View previous topic :: View next topic  
Author Message
bestbuildpc
Site Admin
Site Admin


Joined: Jun 30, 2012
Posts: 169
Location: NL

PostPosted: Sun Dec 01, 2013 19:11    Post subject: Old Download Module Converted Reply with quote

This is a very old download module converted from neralex in order to work with Ravennuke

OLD ONE
Code:
<?php



/***************************************************************************/
/* Last Add Modul                                                          */
/* ===========================                                             */
/*                                                                         */
/* Copyright (c) 2007 waZDer                                               */
/* http://www.decodari.info                                                */
/*                                                                         */
/*                                                                         */
/* Acest script este distribuit gratuit. Tu il poti distribui sau modifica */
/* cu singura conditie de a pastra drepturile de autor !                   */
/* Multumesc !                                                             */
/***************************************************************************/


if (!defined('MODULE_FILE')) {
    die ("You can't access this file directly...");
}

require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));
get_lang($module_name);
$pagetitle = "";
$index = 1;



function Rankings() {
   global $prefix, $db, $bgcolor2, $bgcolor3;
   include("header.php");
   OpenTable();
      echo "<b><center>::.::Ultimele Titluri Adaugate::.::</center><br>";
      echo "<table cellpadding=\"1\" cellspacing=\"0\" width=\"100%\" border=\"0\" align=\"center\">\n";

     

     echo "<tr><td colspan='3' background='content.gif'><font color='#FFFFFF'><b>Romaneasca</b></font></td><td colspan='1' background='content.gif' align='right' alt='Adaugat pe:'><font color='#FFFFFF'><b>Hits</b></font></td></tr>";
   $sql = "SELECT lid, title, date, hits, version, filesize FROM ".$prefix."_downloads_downloads WHERE cid = '19' order by date DESC limit 10";
   $result = $db->sql_query($sql);


   for ($a = 1; $row = $db->sql_fetchrow($result); $a++) {
      $title2 = ereg_replace("_", " ", $row['title']);


      if ($a <= 15) {
         echo "<tr bgcolor=\"$bgcolor3\">";
         echo "<td align=\"center\"><span class=\"title\"><img src=\"http://img294.imageshack.us/img294/2172/mp3nj1.gif\"></span></td>";
                 
      } else {

         echo "<tr><td align=\"center\"></td>";
      }
      $content .= "<left><img src=\"images/mp3.gif\">&nbsp;$a: <a href=\"downloads.html?amp;d_op=viewdownloaddetails&amp;lid=$lid&amp;ttitle=$transfertitle\"><b>$title2</b></a>&nbsp;($hits)<br>[$addedon: <b>$datetime</b>]<br><hr></center>";
                $a++;
      
         $datetime = strftime(""._LINKSDATESTRING."", mktime($datetime[4],$datetime[5],$datetime[6],$datetime[2],$datetime[3],$datetime[1]));
   $datetime = ucfirst($datetime);
               $datetime = $row['date'];
$d_time=explode("-",$datetime);
$dt=date("d F Y", mktime(0, 0, 0, $d_time[1], $d_time[2], $d_time[0])); 
                     

      echo "<td align=\"right\"><font color=\"red\">$row[hits]</font></td></tr>";

      
   }
        
Echo "</table>";

echo "<table cellpadding=\"1\" cellspacing=\"0\" width=\"100%\" border=\"0\" align=\"center\">\n";

  echo "<tr><td colspan='3' background='content.gif'><font color='#FFFFFF'><b>Manele</b></font></td><td align='right' colspan='1' background='content.gif' alt='Free Online Music Download'><font color='#FFFFFF'><b>Hits</b></font></td></tr>";
   $sql = "SELECT lid, title, date, hits, version, filesize FROM ".$prefix."_downloads_downloads WHERE cid = '2' order by date DESC limit 10";
   $result = $db->sql_query($sql);


   for ($a = 1; $row = $db->sql_fetchrow($result); $a++) {
      $title2 = ereg_replace("_", " ", $row['title']);


      if ($a <= 15) {
         echo "<tr bgcolor=\"$bgcolor3\">";
         echo "<td align=\"center\"><span class=\"title\"><img src=\"http://img294.imageshack.us/img294/2172/mp3nj1.gif\"></span></td>";
                 
      } else {

         echo "<tr><td align=\"center\"></td>";
      }
      echo "<td><a href=\"downloads.html?amp;d_op=viewdownloaddetails&amp;lid=$row[lid]&amp;title=$row[title]\"><b>$title2</b></a></td>";
      echo "<td align=\"center\"></td>";
         $datetime = strftime(""._LINKSDATESTRING."", mktime($datetime[4],$datetime[5],$datetime[6],$datetime[2],$datetime[3],$datetime[1]));
   $datetime = ucfirst($datetime);
               $datetime = $row['date'];
$d_time=explode("-",$datetime);
$dt=date("d F Y", mktime(0, 0, 0, $d_time[1], $d_time[2], $d_time[0])); 

   echo "<td align=\"right\"><font color=\"red\">$row[hits]</font></td></tr>";
   }
       
        
Echo "</table>";

echo "<table cellpadding=\"1\" cellspacing=\"0\" width=\"100%\" border=\"0\" align=\"center\">\n";

  echo "<tr><td colspan='3' background='content.gif'><font color='#FFFFFF'><b>Straina</b></font></td><td align='right' colspan='1' background='content.gif' alt='Free Online Music Download'><font color='#FFFFFF'><b>Hits</b></font></td></tr>";
   $sql = "SELECT lid, title, date, hits, version, filesize FROM ".$prefix."_downloads_downloads WHERE cid = '3' order by date DESC limit 10";
   $result = $db->sql_query($sql);


   for ($a = 1; $row = $db->sql_fetchrow($result); $a++) {
      $title2 = ereg_replace("_", " ", $row['title']);


      if ($a <= 15) {
         echo "<tr bgcolor=\"$bgcolor3\">";
         echo "<td align=\"center\"><span class=\"title\"><img src=\"http://img294.imageshack.us/img294/2172/mp3nj1.gif\"></span></td>";
                 
      } else {

         echo "<tr><td align=\"center\"></td>";
      }
      echo "<td><a href=\"downloads.html?amp;d_op=viewdownloaddetails&amp;lid=$row[lid]&amp;title=$row[title]\"><b>$title2</b></a></td>";
      echo "<td align=\"center\"></td>";
         $datetime = strftime(""._LINKSDATESTRING."", mktime($datetime[4],$datetime[5],$datetime[6],$datetime[2],$datetime[3],$datetime[1]));
   $datetime = ucfirst($datetime);
               $datetime = $row['date'];
$d_time=explode("-",$datetime);
$dt=date("d F Y", mktime(0, 0, 0, $d_time[1], $d_time[2], $d_time[0])); 

echo "<td align=\"right\"><font color=\"red\">$row[hits]</font></td></tr>";
   }
       
        
Echo "</table>";



echo "<table cellpadding=\"1\" cellspacing=\"0\" width=\"100%\" border=\"0\" align=\"center\">\n";

  echo "<tr><td colspan='3' background='content.gif'><font color='#FFFFFF'><b>House</b></font></td><td align='right' colspan='1' background='content.gif' alt='Free Online Music Download'><font color='#FFFFFF'><b>Hits</b></font></td></tr>";
   $sql = "SELECT lid, title, date, hits, version, filesize FROM ".$prefix."_downloads_downloads WHERE cid = '4' order by date DESC limit 10";
   $result = $db->sql_query($sql);


   for ($a = 1; $row = $db->sql_fetchrow($result); $a++) {
      $title2 = ereg_replace("_", " ", $row['title']);


      if ($a <= 15) {
         echo "<tr bgcolor=\"$bgcolor3\">";
         echo "<td align=\"center\"><span class=\"title\"><img src=\"http://img294.imageshack.us/img294/2172/mp3nj1.gif\"></span></td>";
                 
      } else {

         echo "<tr><td align=\"center\"></td>";
      }
      echo "<td><a href=\"downloads.html?amp;d_op=viewdownloaddetails&amp;lid=$row[lid]&amp;title=$row[title]\"><b>$title2</b></a></td>";
      echo "<td align=\"center\"></td>";
         $datetime = strftime(""._LINKSDATESTRING."", mktime($datetime[4],$datetime[5],$datetime[6],$datetime[2],$datetime[3],$datetime[1]));
   $datetime = ucfirst($datetime);
               $datetime = $row['date'];
$d_time=explode("-",$datetime);
$dt=date("d F Y", mktime(0, 0, 0, $d_time[1], $d_time[2], $d_time[0])); 

      echo "<td align=\"right\"><font color=\"red\">$row[hits]</font></td></tr>";
   }
       
        
Echo "</table>";





echo "<table cellpadding=\"1\" cellspacing=\"0\" width=\"100%\" border=\"0\" align=\"center\">\n";

  echo "<tr><td colspan='3' background='content.gif'><font color='#FFFFFF'><b>Albume</b></font></td><td align='right' colspan='1' background='content.gif' alt='Free Online Music Download'><font color='#FFFFFF'><b>Hits</b></font></td></tr>";
   $sql = "SELECT lid, title, date, hits, version, filesize FROM ".$prefix."_downloads_downloads WHERE cid = '5' order by date DESC limit 10";
   $result = $db->sql_query($sql);


   for ($a = 1; $row = $db->sql_fetchrow($result); $a++) {
      $title2 = ereg_replace("_", " ", $row['title']);


      if ($a <= 15) {
         echo "<tr bgcolor=\"$bgcolor3\">";
         echo "<td align=\"center\"><span class=\"title\"><img src=\"http://img294.imageshack.us/img294/2172/mp3nj1.gif\"></span></td>";
                 
      } else {

         echo "<tr><td align=\"center\"></td>";
      }
      echo "<td><a href=\"downloads.html?amp;d_op=viewdownloaddetails&amp;lid=$row[lid]&amp;title=$row[title]\"><b>$title2</b></a></td>";
      echo "<td align=\"center\"></td>";
         $datetime = strftime(""._LINKSDATESTRING."", mktime($datetime[4],$datetime[5],$datetime[6],$datetime[2],$datetime[3],$datetime[1]));
   $datetime = ucfirst($datetime);
               $datetime = $row['date'];
$d_time=explode("-",$datetime);
$dt=date("d F Y", mktime(0, 0, 0, $d_time[1], $d_time[2], $d_time[0])); 

      echo "<td align=\"right\"><font color=\"red\">$row[hits]</font></td></tr>";
   }
       
        
Echo "</table>";


echo "<table cellpadding=\"1\" cellspacing=\"0\" width=\"100%\" border=\"0\" align=\"center\">\n";

  echo "<tr><td colspan='3' background='content.gif'><font color='#FFFFFF'><b>Videoclipuri</b></font></td><td align='right' colspan='1' background='content.gif' alt='Free Online Music Download'><font color='#FFFFFF'><b>Hits</b></font></td></tr>";
   $sql = "SELECT lid, title, date, hits, version, filesize FROM ".$prefix."_downloads_downloads WHERE cid = '6' order by date DESC limit 10";
   $result = $db->sql_query($sql);


   for ($a = 1; $row = $db->sql_fetchrow($result); $a++) {
      $title2 = ereg_replace("_", " ", $row['title']);


      if ($a <= 15) {
         echo "<tr bgcolor=\"$bgcolor3\">";
         echo "<td align=\"center\"><span class=\"title\"><img src=\"http://img294.imageshack.us/img294/2172/mp3nj1.gif\"></span></td>";
                 
      } else {

         echo "<tr><td align=\"center\"></td>";
      }
      echo "<td><a href=\"downloads.html?amp;d_op=viewdownloaddetails&amp;lid=$row[lid]&amp;title=$row[title]\"><b>$title2</b></a></td>";
      echo "<td align=\"center\"></td>";
         $datetime = strftime(""._LINKSDATESTRING."", mktime($datetime[4],$datetime[5],$datetime[6],$datetime[2],$datetime[3],$datetime[1]));
   $datetime = ucfirst($datetime);
               $datetime = $row['date'];
$d_time=explode("-",$datetime);
$dt=date("d F Y", mktime(0, 0, 0, $d_time[1], $d_time[2], $d_time[0])); 

      echo "<td align=\"right\"><font color=\"red\">$row[hits]</font></td></tr>";
   }
       
        
Echo "</table>";




 

   CloseTable();

   


   

include("footer.php");
}

switch($func) {

   case "CoolSize":
   CoolSize($size);
   break;

   default:
   Rankings();
   break;

}


NEW ONE

Code:
<?php

/***************************************************************************/
/* Last Add Modul                                                          */
/* ===========================                                             */
/*                                                                         */
/* Copyright (c) 2007 waZDer                                               */
/* http://www.decodari.info                                                */
/*                                                                         */
/*                                                                         */
/* Acest script este distribuit gratuit. Tu il poti distribui sau modifica */
/* cu singura conditie de a pastra drepturile de autor !                   */
/* Multumesc !                                                             */
/***************************************************************************/

if (!defined('MODULE_FILE')) die('You can\'t access this file directly...');
if (!defined('PHP_EOL')) define('PHP_EOL', strtoupper(substr(PHP_OS,0,3) == 'WIN') ? "\r\n" : "\n");

require_once 'mainfile.php';
$module_name = basename(dirname(__FILE__));
get_lang($module_name);
$pagetitle = '';

// BEGIN: Added in v2.40.00 - Mantis Issue 0001043
$index = 0;
if (!defined('INDEX_FILE')) define('INDEX_FILE', true); // Set to FALSE to hide right blocks
if (defined('INDEX_FILE') AND INDEX_FILE===true) {
   // auto set right blocks for pre patch 3.1 compatibility
   $index = 1;
}
// END: Added in v2.40.00 - Mantis Issue 0001043

if (!isset($op)) $op = '';

switch($op) {

   case 'CoolSize':
   CoolSize($size);
   break;

   default:
   Rankings();
   break;

}

function Rankings() {
   global $prefix, $db, $bgcolor2, $bgcolor3, $content;
   include_once 'header.php';
   OpenTable();
   echo '<div style="text-align:center; font-weight:bold">::.::Ultimele Titluri Adaugate::.::</div>' , PHP_EOL
      , '<table cellpadding="0" cellspacing="0" width="100%" border="0">' , PHP_EOL
      , '<tr>' , PHP_EOL
      , '<td colspan="3" style="background:url(\'content.gif\')"><span style="color:#FFFFFF; font-weight:bold">Romaneasca</span></td>' , PHP_EOL
      , '<td colspan="1" style="background:url(\'content.gif\'); text-align:right;" title="Adaugat pe:"><span style="color:#FFFFFF; font-weight:bold">Hits</span></td>' , PHP_EOL
      , '</tr>' , PHP_EOL;
   $result = $db->sql_query('SELECT `lid`, `title`, `date`, `hits`, `version`, `filesize` FROM `' . $prefix . '_nsngd_downloads` WHERE `cid` = 19 ORDER BY `date` DESC LIMIT 10');
   for ($a = 1; $row = $db->sql_fetchrow($result); $a++) {
      $title2 = ereg_replace('_', ' ', $row['title']);
      $title2 = htmlspecialchars($title2, ENT_QUOTES, _CHARSET);
      if ($a <= 15) {
         echo '<tr style="background:' , $bgcolor3, '">' , PHP_EOL
            , '<td style="text-align:center"><span class="title"><img src="http://img294.imageshack.us/img294/2172/mp3nj1.gif" alt="" /></span></td>' , PHP_EOL;               
      } else {
         echo '<tr>' , PHP_EOL
            , '<td style="text-align:center">&nbsp;</td>' , PHP_EOL;
      }

      # neralex: not in use - why is it here?
      $content .= '<img src="images/mp3.gif" alt="" />&nbsp;' . $a . ': <a href="downloads.html?amp;d_op=viewdownloaddetails&amp;lid=' . $lid . '&amp;ttitle=' . $transfertitle . '"><span style="font-weight:bold">' . $title2 . '</span></a>&nbsp;(' . $hits . ')<br />[' . $addedon . ': <span style="font-weight:bold">' . $datetime . '</span>]<br /><hr>';

        $a++;     
        $datetime = strftime(_LINKSDATESTRING, mktime($datetime[4],$datetime[5],$datetime[6],$datetime[2],$datetime[3],$datetime[1]));
      $datetime = ucfirst($datetime);
      $datetime = $row['date'];
      $d_time = explode('-',$datetime);
      $dt=date('d F Y', mktime(0, 0, 0, $d_time[1], $d_time[2], $d_time[0]));
      echo '<td style="text-align:right;"><span style="color:red">' , $row['hits'] , '</span></td>' , PHP_EOL
         , '</tr>' , PHP_EOL;     
   }       
   echo '</table>' , PHP_EOL;

   echo '<table cellpadding="1" cellspacing="0" width="100%" border="0">' , PHP_EOL
      , '<tr>' , PHP_EOL
      , '<td colspan="3" style="background:url(\'content.gif\');"><span style="color:#FFFFFF; font-weight:bold">Manele</span></td>' , PHP_EOL
      , '<td colspan="1"  style="background:url(\'content.gif\'); text-align:right;" title="Free Online Music Download"><span style="color:#FFFFFF; font-weight:bold">Hits</</span></td>' , PHP_EOL
      , '</tr>' , PHP_EOL;
   $result = $db->sql_query('SELECT `lid`, `title`, `date`, `hits`, `version`, filesize` FROM `' . $prefix . '_nsngd_downloads` WHERE `cid` = 2 ORDER BY `date` DESC LIMIT 10');
   for ($a = 1; $row = $db->sql_fetchrow($result); $a++) {
      $title2 = ereg_replace('_', ' ', $row['title']);
      $title2 = htmlspecialchars($title2, ENT_QUOTES, _CHARSET);
      if ($a <= 15) {
         echo '<tr style="background:' , $bgcolor3 , '">' , PHP_EOL
            , '<td style="text-align:center"><span class="title"><img src="http://img294.imageshack.us/img294/2172/mp3nj1.gif" alt="" /></span></td>' , PHP_EOL;               
      } else {
         echo '<tr>' , PHP_EOL
            , '<td style="text-align:center">&nbsp;</td>' , PHP_EOL;
      }
      echo '<td><a href="downloads.html?amp;d_op=viewdownloaddetails&amp;lid=' , $row['lid'] , '&amp;title=' , $row['title'] , '"><span style="font-weight:bold">' , $title2 , '</span></a></td>' , PHP_EOL
         , '<td style="text-align:center">&nbsp;</td>' , PHP_EOL;
         $datetime = strftime(_LINKSDATESTRING, mktime($datetime[4],$datetime[5],$datetime[6],$datetime[2],$datetime[3],$datetime[1]));
      $datetime = ucfirst($datetime);
      $datetime = $row['date'];
      $d_time = explode("-",$datetime);
      $dt=date('d F Y', mktime(0, 0, 0, $d_time[1], $d_time[2], $d_time[0]));
      echo '<td style="text-align:right"><span style="color:red">' , $row['hits'] , '</span></td>' , PHP_EOL
         , '</tr>' , PHP_EOL;
   }
   echo '</table>' , PHP_EOL;

   echo '<table cellpadding="1" cellspacing="0" width="100%" border="0">' , PHP_EOL
      , '<tr>' , PHP_EOL
      , '<td colspan="3" style="background:url(\'content.gif\');"><span style="color:#FFFFFF; font-weight:bold">Straina</span></td>' , PHP_EOL
      , '<td colspan="1" style="background:url(\'content.gif\'); text-align:right" title="Free Online Music Download"><span style="color:#FFFFFF; font-weight:bold">Hits</span></td>' , PHP_EOL
      , '</tr>' , PHP_EOL;
   $result = $db->sql_query('SELECT `lid`, `title`, `date`, `hits`, `version`, `filesize` FROM `' . $prefix . '_nsngd_downloads` WHERE `cid` = 3 ORDER BY `date` DESC LIMIT 10');
   for ($a = 1; $row = $db->sql_fetchrow($result); $a++) {
      $title2 = ereg_replace('_', ' ', $row['title']);
      $title2 = htmlspecialchars($title2, ENT_QUOTES, _CHARSET);
      if ($a <= 15) {
         echo '<tr style="background:' , $bgcolor3, '">' , PHP_EOL
            , '<td style="text-align:center"><span class="title"><img src="http://img294.imageshack.us/img294/2172/mp3nj1.gif" alt="" /></span></td>' , PHP_EOL;               
      } else {
         echo '<tr>' , PHP_EOL
            , '<td style="text-align:center">&nbsp;</td>' , PHP_EOL;
      }
      echo '<td><a href="downloads.html?amp;d_op=viewdownloaddetails&amp;lid=' , $row['lid'] , '&amp;title=' , $row['title'] , '"><span style="font-weight:bold">' , $title2 , '</span></a></td>' , PHP_EOL
         , '<td style="text-align:center">&nbsp;</td>' , PHP_EOL;
      $datetime = strftime(""._LINKSDATESTRING."", mktime($datetime[4],$datetime[5],$datetime[6],$datetime[2],$datetime[3],$datetime[1]));
      $datetime = ucfirst($datetime);
      $datetime = $row['date'];
      $d_time = explode('-',$datetime);
      $dt = date('d F Y', mktime(0, 0, 0, $d_time[1], $d_time[2], $d_time[0]));
      echo '<td style="text-align:right"><span style="color:red">' , $row['hits'] , '</span></td>' , PHP_EOL
         , '</tr>' , PHP_EOL;
   }
   echo '</table>' , PHP_EOL;

   echo '<table cellpadding="1" cellspacing="0" width="100%" border="0">' , PHP_EOL
      , '<tr>' , PHP_EOL
      , '<td colspan="3" style="background:url(\'content.gif\');"><span style="color:#FFFFFF; font-weight:bold">House</span></td>' , PHP_EOL
      , '<td colspan="1" style="background:url(\'content.gif\'); text-align:right" title="Free Online Music Download"><span style="color:#FFFFFF; font-weight:bold">Hits</span></td>' , PHP_EOL
      , '</tr>' , PHP_EOL;
   $result = $db->sql_query('SELECT `lid`, `title`, `date`, `hits`, `version`, `filesize` FROM `' . $prefix . '_nsngd_downloads` WHERE `cid` = 4 ORDER BY `date` DESC LIMIT 10');
   for ($a = 1; $row = $db->sql_fetchrow($result); $a++) {
      $title2 = ereg_replace('_', ' ', $row['title']);
      $title2 = htmlspecialchars($title2, ENT_QUOTES, _CHARSET);
      if ($a <= 15) {
         echo '<tr style="background:' , $bgcolor3, '">' , PHP_EOL
            , '<td style="text-align:center"><span class="title"><img src="http://img294.imageshack.us/img294/2172/mp3nj1.gif" alt="" /></span></td>' , PHP_EOL;               
      } else {
         echo '<tr>' , PHP_EOL
            , '<td style="text-align:center">&nbsp;</td>' , PHP_EOL;
      }
      echo '<td><a href="downloads.html?amp;d_op=viewdownloaddetails&amp;lid=' , $row['lid'] , '&amp;title=' , $row['title'] , '"><span style="font-weight:bold">' , $title2 , '</span></a></td>' , PHP_EOL
         , '<td style="text-align:center">&nbsp;</td>' , PHP_EOL;
      $datetime = strftime(_LINKSDATESTRING, mktime($datetime[4],$datetime[5],$datetime[6],$datetime[2],$datetime[3],$datetime[1]));
      $datetime = ucfirst($datetime);
      $datetime = $row['date'];
      $d_time = explode('-',$datetime);
      $dt = date('d F Y', mktime(0, 0, 0, $d_time[1], $d_time[2], $d_time[0]));
      echo '<td style="text-align:right"><span style="color:red">' , $row['hits'] , '</span></td>' , PHP_EOL
         , '</tr>' , PHP_EOL;
   }
   echo '</table>' , PHP_EOL;

   echo '<table cellpadding="1" cellspacing="0" width="100%" border="0">' , PHP_EOL
      , '<tr>' , PHP_EOL
      , '<td colspan="3" style="background:url(\'content.gif\');"><span style="color:#FFFFFF; font-weight:bold">Albume</span></td>' , PHP_EOL
      , '<td colspan="1"  style="background:url(\'content.gif\'); text-align:right" title="Free Online Music Download"><span style="color:#FFFFFF; font-weight:bold">Hits</span></td>' , PHP_EOL
      , '</tr>' , PHP_EOL;
   $result = $db->sql_query('SELECT `lid`, `title`, `date`, `hits`, `version`, `filesize` FROM `' . $prefix . '_nsngd_downloads` WHERE `cid` = 5 ORDER BY `date` DESC LIMIT 10');
   for ($a = 1; $row = $db->sql_fetchrow($result); $a++) {
      $title2 = ereg_replace('_', ' ', $row['title']);
      $title2 = htmlspecialchars($title2, ENT_QUOTES, _CHARSET);
      if ($a <= 15) {
         echo '<tr style="background:' , $bgcolor3, '">' , PHP_EOL
            , '<td style="text-align:center"><span class="title"><img src="http://img294.imageshack.us/img294/2172/mp3nj1.gif" alt="" /></span></td>' , PHP_EOL;               
      } else {
         echo '<tr><td style="text-align:center">&nbsp;</td>' , PHP_EOL;
      }
      $datetime = strftime(_LINKSDATESTRING, mktime($datetime[4],$datetime[5],$datetime[6],$datetime[2],$datetime[3],$datetime[1]));
      $datetime = ucfirst($datetime);
      $datetime = $row['date'];
      $d_time = explode('-',$datetime);
      $dt = date('d F Y', mktime(0, 0, 0, $d_time[1], $d_time[2], $d_time[0]));
      echo '<td style="text-align:right"><span style="color:red">' , $row['hits'] , '</span></td>' , PHP_EOL
         , '</tr>' , PHP_EOL;
   }
   echo '</table>' , PHP_EOL;


   echo '<table cellpadding="1" cellspacing="0" width="100%" border="0">' , PHP_EOL
      , '<tr>' , PHP_EOL
      , '<td colspan="3" style="background:url(\'content.gif\');"><span style="color:#FFFFFF; font-weight:bold">Videoclipuri</span></td>' , PHP_EOL
      , '<td colspan="1"  style="background:url(\'content.gif\'); text-align:right" title="Free Online Music Download"><span style="color:#FFFFFF; font-weight:bold">Hits</span></td>' , PHP_EOL;
   $result = $db->sql_query('SELECT `lid`, `title`, `date`, `hits`, `version`, `filesize` FROM `' . $prefix . '_nsngd_downloads` WHERE `cid` = 6 ORDER BY `date` DESC LIMIT 10');

   for ($a = 1; $row = $db->sql_fetchrow($result); $a++) {
      $title2 = ereg_replace('_', ' ', $row['title']);
      $title2 = htmlspecialchars($title2, ENT_QUOTES, _CHARSET);
      if ($a <= 15) {
         echo '<tr style="background:' , $bgcolor3, '">' , PHP_EOL
            , '<td style="text-align:center"><span class="title"><img src="http://img294.imageshack.us/img294/2172/mp3nj1.gif" alt="" /></span></td>' , PHP_EOL;               
      } else {
         echo '<tr>' , PHP_EOL
            , '<td style="text-align:center">&nbsp;</td>' , PHP_EOL;
      }
      echo '<td><a href="downloads.html?amp;d_op=viewdownloaddetails&amp;lid=' , $row['lid'] , '&amp;title=' , $row['title'] , '"><span style="font-weight:bold">' , $title2 , '</span></a></td>' , PHP_EOL
         , '<td style="text-align:center">&nbsp;</td>' , PHP_EOL;
      $datetime = strftime(""._LINKSDATESTRING."", mktime($datetime[4],$datetime[5],$datetime[6],$datetime[2],$datetime[3],$datetime[1]));
      $datetime = ucfirst($datetime);
      $datetime = $row['date'];
      $d_time = explode('-',$datetime);
      $dt = date('d F Y', mktime(0, 0, 0, $d_time[1], $d_time[2], $d_time[0]));
      echo '<td style="text-align:right"><span style="color:red">' , $row['hits'] , '</span></td>' , PHP_EOL
         , '</tr>' , PHP_EOL;
   }
   echo '</table>' , PHP_EOL;
   CloseTable();
   include_once 'footer.php';
}
  
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic    bestbuildpc Forum Index -> RavenNuke -> Modules All times are GMT + 2 Hours
 
 Page 1 of 1

 

Jump to:   
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Powered by phpBB © 2001-2008 phpBB Group
 
Forums ©