} } else { $error = 1; } } else { $error = 1; } } else { $error = 1; } } else { $error = 1; } if ($error == 1) { $deleted_guilds[] = $guild->getName(); $status = delete_guild($guild->getId()); } } $main_content .= "<b>Deleted guilds (leaders of this guilds are not members of this guild [fix bugged guilds]):</b>"; if (!empty($deleted_guilds)) { foreach ($deleted_guilds as $guild) { $main_content .= "<li>" . $guild; } } } else { $main_content .= "0 guilds found."; } } else { $main_content .= "You are not logged in."; } $main_content .= "<center><h3><a href=\"?subtopic=guilds\">BACK</a></h3></center>";
$results = search_guilds_by_charname(); } else { $results = ''; } $body->set("results", $results); break; case 4: // Update Guild Info check_admin_authorization(); update_guild(); header("Location: index.php?editor=guild&guildid={$guildid}"); exit; case 5: // Delete Guild check_admin_authorization(); delete_guild(); header("Location: index.php?editor=guild"); exit; } function guild_info() { global $mysql, $guildid; $guild_array = array(); $guild_ranks_array = array(); $guild_members_array = array(); $guild_bank_array = array(); $guild_relations_array = array(); //Load Guild Info $query = "SELECT * FROM guilds WHERE id = {$guildid}"; $guild_array = $mysql->query_assoc($query); //Load Guild Ranks