Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Top ratings

Parašė bruzgis· 2007 Spa. 18 17:10:45
#3

<?php
if (!defined("IN_FUSION")) { header("Location:../../index.php"); exit; }

if (file_exists(INFUSIONS."popular_articles_panel/locale/".$settings['locale'].".php")) {
   include INFUSIONS."popular_articles_panel/locale/".$settings['locale'].".php";
} else {
   include INFUSIONS."popular_articles_panel/locale/Lithuanian.php";
}


$result = dbquery("SELECT * FROM ".$db_prefix."articles ORDER BY article_reads DESC LIMIT 0,20");
if (dbrows($result) != 0) {
   echo "<table width='100%' cellpadding='0' cellspacing='0'>";
   $nr = 1;
                      while($data = dbarray($result)) {
      $itemsubject = trimlink($data['article_subject'], 60);
      echo "<tr>\n<td class='small'><b>$nr.</b> <a href='".BASEDIR."articles.php?cat_id=".$data['article_cat']."&article_id=".$data['article_id']."' title='".$data['article_subject']."' class='side'>$itemsubject</a></td>\n
      <td align='right'>".$data['article_reads']."</td>\n</tr>\n";
                     $nr = $nr + 1;
   }
   echo "</table>";
} else {
   echo "<center>".$locale['004']."</center>\n";
}

?>




cia kodas esamas