$showClubsTab = mysql_result($result, 0) > 0; if (isLoggedIn()) { $result = sql_query("SELECT COUNT(*) FROM `useExtData` " . "WHERE `useEid` = '" . intval($useData["useid"]) . "' AND `useStatsPublic` = '1'"); $showStatsTab = mysql_result($result, 0) > 0; } } if ($_auth["useStatsHide"]) { $showStatsTab = false; } if ($showJournalsTab) { displayTab($active == 7, _JOURNAL, url("journal/" . $useUsername), "journal.png"); } if ($showPollsTab) { displayTab($active == 8, _POLL, url("poll/" . $useUsername), "poll.png"); } displayTab($active == 3, _FRIENDS, url("friends/" . $useUsername), "watch.png"); if ($showClubsTab) { displayTab($active == 5, _CLUBS, url("clubs/" . $useUsername), "club2.png"); } if ($showStatsTab) { displayTab($active == 6, _STATS, url("stats/" . $useUsername)); } if (atLeastModerator()) { displayTab($active == 9, _MODERATION, url("moderate/" . $useUsername)); } displayTabEnd(); ?> <div class="clear"><br /></div> </div>
<div class="clear"> </div> <div class="normaltext"> <?php //Getting club moderator status here since it's mostly for tab display anyway $clubModerator = mysql_num_rows(sql_query("SELECT * FROM `useClubs` WHERE `useCclub`='{$cluid}'" . "AND `useCmember`='" . $_auth['useid'] . "'" . "AND `useCModerator`='1'")); displayTabStart(); displayTab($active == 1, _HOME, url("club/" . $cluid), "club2.png"); displayTab($active == 2, _SUBMISSIONS, url("clubgallery/" . $cluid), "submission.png"); displayTab($active == 5, _ANNOUNCEMENTS, url("announcement/" . $cluid), "journal.png"); displayTab($active == 3, _MEMBERS, url("members/" . $cluid), "club.png"); // The user should be at least a supermoderator or the club owner or club moderator // to be able to access club's settings. if (atLeastModerator() || $_auth["useid"] == $cluData["cluCreator"] || $clubModerator == "1") { displayTab($active == 4, _CLUB_MANAGE, url("manageclub/" . $cluid)); } displayTabEnd(); ?> <div class="clear"> </div> </div>