createObject('Guilds_List'); if(!isset($_REQUEST['preview'])) $_REQUEST['preview'] = 1; $guilds_list->orderBy("name"); //echo 'Guilds needs to have atleast 4 members, otherwise it will be deleted automatically after 4 days.

Guild statistics are self-updated once per 3 days.

'; //echo 'Normal preview / Advanced ranks & statistics

echo ' '; if($_REQUEST['preview'] == 2) { echo ' '; /* ';*/ } else echo ' '; echo ' '; $showed_guilds = 0; if($_REQUEST['preview'] == 2) { if(count($guilds_list) > 0) { foreach($guilds_list as $guild) { $guild_logo = $guild->getCustomField('logo_name'); if(empty($guild_logo) || !file_exists('images/guilds/' . $guild_logo)) $guild_logo = "default.gif"; echo ''; // echo ''; } } else echo ''; } else { if(count($guilds_list) > 0) { foreach($guilds_list as $guild) { $link = ($config['friendly_urls'] ? '' : '?') . 'guilds/' . $guild->getName(); $guild_logo = $guild->getCustomField('logo_name'); if(empty($guild_logo) || !file_exists('images/guilds/' . $guild_logo)) $guild_logo = "default.gif"; $description = $guild->getCustomField('description'); $description_with_lines = str_replace(array("\r\n", "\n", "\r"), '
', $description, $count); if($count < $config['guild_description_lines_limit']) $description = wordwrap(nl2br($description), 60, "
", true); //$description = $description_with_lines; echo ''; } } else echo ''; } echo '
Active Guilds on '.$config['lua']['serverName'].'
Rank Logo Guild nameMembers Total level Average level FragsLogo Description
'.($show_ranks ? $showed_guilds.'.' : '-').' '.$guild->getName().'
'; if(admin()) echo '
Delete this guild (for ADMIN only!)'; echo '
'.$guild->getCustomField('total_members').''.$guild->getCustomField('total_level').''; //if($guild->getCustomField('total_members') > 0) // echo ceil($guild->getCustomField('total_level')/$guild->getCustomField('total_members')); //echo ''.$guild->getCustomField('frags').'
- Create guild
Actually there is no guild on server.' . ($logged ? ' Create first! Press button "Create Guild".' : '') . '
'; if($logged) echo '
'; echo '
'.$guild->getName().'
'.$description.''; if(admin()) echo '
Delete this guild (for ADMIN only!)'; echo '
Create guild
Actually there is no guild on server.' . ($logged ? ' Create first! Press button "Create Guild".' : '') . '
'; if($logged) echo '
'; echo '


'; if($logged) echo '

If you have any problem with guilds try:
Cleanup players - can\'t join guild/be invited? Can\'t create guild? Try cleanup players.
Cleanup guilds - made guild, you are a leader, but you are not on players list? Cleanup guilds!'; else echo 'Before you can create guild you must login.
'; ?>