".CLAN_APPLICANT." GROUP BY " . db_prefix("clans") . ".clanid ORDER BY c DESC"; $result = db_query($sql); if (db_num_rows($result)>0){ output("`7You ask %s`7 for the clan listings. She points you toward a marquee board near the entrance of the lobby that lists the clans.`0`n`n",$registrar); $v = 0; $memb_n = translate_inline("(%s members)"); $memb_1 = translate_inline("(%s member)"); rawoutput(''); while ($row = db_fetch_assoc($result)){ if ($row['c']==0){ $sql = "DELETE FROM " . db_prefix("clans") . " WHERE clanid={$row['clanid']}"; db_query($sql); }else{ rawoutput(''); addnav("","clan.php?detail={$row['clanid']}"); $v++; } } rawoutput("
', true); if ($row['c'] == 1) { $memb = sprintf($memb_1, $row['c']); } else { $memb = sprintf($memb_n, $row['c']); } output_notl("• <%s> %s %s`n", $row['clanshort'], $row['clanid'], full_sanitize(htmlentities($row['clanname']), ENT_COMPAT, getsetting("charset", "ISO-8859-1")), $memb, true); rawoutput('
", true); addnav("Return to the Lobby","clan.php"); }else{ output("`7You ask %s`7 for the clan listings. She stares at you blankly for a few moments, then says, \"`5Sorry pal, no one has had enough gumption to start up a clan yet. Maybe that should be you, eh?`7\"",$registrar); addnav("Apply for a New Clan","clan.php?op=new"); addnav("Return to the Lobby","clan.php"); } page_footer(); ?>