-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathclan.php
More file actions
60 lines (51 loc) · 2.36 KB
/
Copy pathclan.php
File metadata and controls
60 lines (51 loc) · 2.36 KB
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
<?php
// translator ready
// addnews ready
// mail ready
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");
translator::tlschema("clans");
output::addnav("Village");
villagenav();
output::addnav("Clan Options");
output::addnav("C?List Clans","clan.php?op=list");
addcommentary();
$gold = settings::getsetting("goldtostartclan",10000);
$gems = settings::getsetting("gemstostartclan",15);
$ranks = array(CLAN_APPLICANT=>"`!Applicant`0",CLAN_MEMBER=>"`#Member`0",CLAN_OFFICER=>"`^Officer`0",CLAN_LEADER=>"`&Leader`0", CLAN_FOUNDER=>"`\$Founder");
$args = modules::modulehook("clanranks", array("ranks"=>$ranks, "clanid"=>$session['user']['clanid']));
$ranks = translator::translate_inline($args['ranks']);
$apply_short = "`@Clan App: `&%s`0";
$apply_subj = array($apply_short, $session['user']['name']);
$op = http::httpget('op');
$detail = http::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'>");
output::addnav("","clan.php?op=new&apply=1");
output::doOutput("`b`cNew Clan Application Form`c`b");
output::doOutput("Clan Name: ");
rawoutput("<input name='clanname' maxlength='50' value=\"".htmlentities(stripslashes(httppost('clanname')), ENT_COMPAT, settings::getsetting("charset", "ISO-8859-1"))."\">");
output::doOutput("`nShort Name: ");
rawoutput("<input name='clanshort' maxlength='5' size='5' value=\"".htmlentities(stripslashes(httppost('clanshort')), ENT_COMPAT, settings::getsetting("charset", "ISO-8859-1"))."\">");
output::doOutput("`nNote, color codes are permitted in neither clan names nor short names.");
output::doOutput("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 = translator::translate_inline("Apply");
rawoutput("<input type='submit' class='button' value='$apply'></form>");
}