hi

شروع موضوع توسط dariush_007 ‏9 دسامبر 2005 در انجمن جوملا (Joomla)

  1. dariush_007

    dariush_007 New Member

    ارسال‌ها:
    3
    تشکر شده:
    0
    امتیاز دستاورد:
    1
    <?php

    /************************************************************************/
    /* PHP-NUKE: Web Portal System */
    /* =========================== */
    /* */
    /* Copyright (c) 2005 by Francisco Burzi */
    /* http://phpnuke.org */
    /* */
    /* This program is free software. You can redistribute it and/or modify */
    /* it under the terms of the GNU General Public License as published by */
    /* the Free Software Foundation; either version 2 of the License. */
    /************************************************************************/

    if ( !defined('BLOCK_FILE') ) {
    Header("Location: ../index.php");
    die();
    }

    global $prefix, $db;

    $a = 1;
    $result = $db->sql_query("SELECT lid, title FROM ".$prefix."_downloads_downloads ORDER BY hits DESC LIMIT 0,10");
    while ($row = $db->sql_fetchrow($result)) {
    $lid = intval($row['lid']);
    $title = filter($row['title'], "nohtml");
    $title2 = ereg_replace("_", " ", $title);
    $content .= "<strong><big>&middot;</big></strong>&nbsp;$a: <a href=\"modules.php?name=Downloads&amp;d_op=viewdownloaddetails&amp;lid=$lid&amp;title=$title\">$title2</a><br>";
    $a++;
    }

    ?>
     
    نوشته شده توسط dariush_007 در ‏9 دسامبر 2005

به اشتراک بگذارید