- $result = SQL_QUERY("SELECT module, title, clicks FROM `{!_MYSQL_PREFIX!}_mod_reg` ORDER BY clicks DESC, module", __FILE__, __LINE__);
- $SW = 2; $OUT = "";
- while (list($mod, $title, $clicks) = SQL_FETCHROW($result)) {
- if (empty($title)) $title = "---";
- if (($mod == "index") || ($mod == "login"))
- {
+ $result = SQL_QUERY("SELECT `module`,`title`,`clicks` FROM `{?_MYSQL_PREFIX?}_mod_reg` ORDER BY `clicks` DESC,`module` ASC", __FILE__, __LINE__);
+ $OUT = '';
+ while ($content = SQL_FETCHARRAY($result)) {
+ if (($content['module'] == 'index') || ($content['module'] == 'login')) {