-
Notifications
You must be signed in to change notification settings - Fork 9
/
clan.php
67 lines (58 loc) · 2.38 KB
/
clan.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<?php
// translator ready
// addnews ready
// mail ready
/**
* \file clan.php
* This file contains the base for the clans. This feature can be deactivated in the grotto.
* @see village.php
* @see lib/clan
*/
require_once("common.php");
require_once("lib/nltoappon.php");
require_once("lib/commentary.php");
require_once("lib/systemmail.php");
require_once("lib/sanitize.php");
require_once("lib/http.php");
require_once("lib/villagenav.php");
tlschema("clans");
addnav("Village");
villagenav();
addnav("Clan Options");
addnav("C?List Clans","clan.php?op=list");
addcommentary();
$gold = getsetting("goldtostartclan",10000);
$gems = getsetting("gemstostartclan",15);
$ranks = array(CLAN_APPLICANT=>"`!Applicant`0",CLAN_MEMBER=>"`#Member`0",CLAN_OFFICER=>"`^Officer`0",CLAN_ADMINISTRATIVE=>"`\$Administrative`0",CLAN_LEADER=>"`&Leader`0", CLAN_FOUNDER=>"`\$Founder");
$args = modulehook("clanranks", array("ranks"=>$ranks, "clanid"=>$session['user']['clanid']));
$ranks = translate_inline($args['ranks']);
$apply_short = "`@Clan App: `&%s`0";
$apply_subj = array($apply_short, $session['user']['name']);
$op = httpget('op');
$detail = httpget('detail');
if ($detail>0){
require_once("lib/clan/detail.php");
}elseif ($op=="list"){
require_once("lib/clan/list.php");
} elseif ($op == "waiting") {
require_once("lib/clan/waiting.php");
}elseif ($session['user']['clanrank']==CLAN_APPLICANT){
require_once("lib/clan/applicant.php");
}else{
require_once("lib/clan/clan_start.php");
}
page_footer();
function clanform(){
rawoutput("<form action='clan.php?op=new&apply=1' method='POST'>");
addnav("","clan.php?op=new&apply=1");
output("`b`cNew Clan Application Form`c`b");
output("Clan Name: ");
rawoutput("<input name='clanname' maxlength='50' value=\"".htmlentities(stripslashes(httppost('clanname')), ENT_COMPAT, getsetting("charset", "ISO-8859-1"))."\">");
output("`nShort Name: ");
rawoutput("<input name='clanshort' maxlength='5' size='5' value=\"".htmlentities(stripslashes(httppost('clanshort')), ENT_COMPAT, getsetting("charset", "ISO-8859-1"))."\">");
output("`nNote, color codes are permitted in neither clan names nor short names.");
output("The clan name is shown on player bios and on clan overview pages while the short name is displayed next to players' names in comment areas and such.`n");
$apply = translate_inline("Apply");
rawoutput("<input type='submit' class='button' value='$apply'></form>");
}
?>