Location: PHPKode > projects > Top Music module > Top Music 3.0.7/html/modules/topMusic/admin/listChart.php
<?php
/************************************************************************/
/* Top Music: Administration Module                                     */
/* ================================                                     */
/*                                                                      */
/* Copyright (c) 2004 by SergiDs.com                                */
/* 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 (!eregi("admin.php", $_SERVER['PHP_SELF'])) { die ("Access Denied"); }
$aid = trim($aid);
$result = mysql_query("select radminsuper from ".$prefix."_authors where aid='$aid'");
list($radminsuper) = mysql_fetch_row($result);
if ($radminsuper==1) {
?>
<table border="0" align="center">
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
 	<?php if(count($chartList)>0){ ?>
      <tr>
      <td>&nbsp;</td>
        <td>
        <?php
        $chartView=new ChartAdminView();
        $chartView->printChartList($chartList);
        ?>
        </td>
        <td>&nbsp;</td>
      </tr>
      <?php }else{ ?>
        <tr>
        <td>&nbsp;</td>
        <td><strong><?=_TOPMUSIC_NOCHARTS?>:</strong></td>
        <td>&nbsp;</td>
      </tr>
      <?php } ?>
      <tr>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
</table>
<?php
} else {
    echo "Access Denied";
}
?>
Return current item: Top Music module