-
Notifications
You must be signed in to change notification settings - Fork 4
/
guildwanted.php
38 lines (30 loc) · 1.12 KB
/
guildwanted.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?PHP
require_once("./init.php");
if (!defined('is_florensia')) die('Hacking attempt');
$florensia->sitetitle("Guilds");
$florensia->sitetitle("Blackboard");
$flolang->load("guild");
$tmpguild = 0;
$guildquery = MYSQL_QUERY("SELECT g.guildid, g.server, g.guildname, g.misc_language, g.misc_wanted_secondcharacter, g.misc_wanted_age, g.misc_language, w.searchclass, w.level_land, w.level_sea FROM flobase_guild_wanted as w, flobase_guild as g WHERE w.guildid=g.guildid ORDER BY w.timestamp DESC, g.guildname, w.searchclass");
while ($guild = MYSQL_FETCH_ARRAY($guildquery)) {
if ($tmpguild!=$guild['guildid']) {
//new guildentry
$wantedoverview .= "
<div>".$florensia->escape($guild['guildname'])."</div>
";
$tmpguild=$guild['guildid'];
}
$wantedoverview .= "
<div style='padding-left:30px;'>".$florensia->escape($guild['searchclass'])." - {$guild['level_land']}/{$guild['level_sea']}</div>
";
}
$content = "
<div class='subtitle' style='margin-bottom:7px;'>
Blackboard
</div>
<div class='small'>
{$wantedoverview}
</div>
";
$florensia->output_page($content);
?>