"" && $clanshort>""){ $sql = "UPDATE " . db_prefix("clans") . " SET clanname='$clanname',clanshort='$clanshort' WHERE clanid='$detail'"; output("Updating clan names`n"); db_query($sql); invalidatedatacache("clandata-$detail"); } if (httppost('block')>""){ $blockdesc = translate_inline("Description blocked for inappropriate usage."); $sql = "UPDATE " . db_prefix("clans") . " SET descauthor=4294967295, clandesc='$blockdesc' where clanid='$detail'"; output("Blocking public description`n"); db_query($sql); invalidatedatacache("clandata-$detail"); }elseif (httppost('unblock')>""){ $sql = "UPDATE " . db_prefix("clans") . " SET descauthor=0, clandesc='' where clanid='$detail'"; output("UNblocking public description`n"); db_query($sql); invalidatedatacache("clandata-$detail"); } } $sql = "SELECT * FROM " . db_prefix("clans") . " WHERE clanid='$detail'"; $result1 = db_query_cached($sql, "clandata-$detail", 3600); $row1 = db_fetch_assoc($result1); if ($session['user']['superuser'] & SU_EDIT_COMMENTS){ rawoutput("
"); rawoutput("
"); addnav("","clan.php?detail=$detail"); output("Superuser / Moderator renaming:`n"); output("Long Name: "); rawoutput(""); output("`nShort Name: "); rawoutput(""); output_notl("`n"); $save = translate_inline("Save"); rawoutput(""); $snu = htmlentities(translate_inline("Save & UNblock public description"), ENT_COMPAT, getsetting("charset", "ISO-8859-1")); $snb = htmlentities(translate_inline("Save & Block public description"), ENT_COMPAT, getsetting("charset", "ISO-8859-1")); if ($row1['descauthor']=="4294967295") rawoutput(""); else rawoutput(""); rawoutput("
"); rawoutput("
"); rawoutput("",true); $e = translate_inline("Edit Clan Info"); rawoutput("$e",true); output_notl("`n"); } output_notl(nltoappon($row1['clandesc'])); if ( nltoappon($row1['clandesc']) != "" ) output ("`n`n"); output("`0This is the current clan membership of %s < %s >:`n",$row1['clanname'],$row1['clanshort']); page_header("Clan Membership for %s <%s>", full_sanitize($row1['clanname']), full_sanitize($row1['clanshort'])); addnav("Clan Options"); $rank = translate_inline("Rank"); $name = translate_inline("Name"); $dk = translate_inline("Dragon Kills"); $jd = translate_inline("Join Date"); rawoutput(""); rawoutput(""); $i=0; $sql = "SELECT acctid,name,login,clanrank,clanjoindate,dragonkills FROM " . db_prefix("accounts") . " WHERE clanid=$detail ORDER BY clanrank DESC,clanjoindate"; $result = db_query($sql); $tot = 0; //little hack with the hook...can't think of any other way $ranks = array(CLAN_APPLICANT=>"`!Applicant`0",CLAN_MEMBER=>"`#Member`0",CLAN_OFFICER=>"`^Officer`0",CLAN_LEADER=>"`&Leader`0", CLAN_FOUNDER=>"`\$Founder"); $args = modulehook("clanranks", array("ranks"=>$ranks, "clanid"=>$detail)); $ranks = translate_inline($args['ranks']); //end while ($row=db_fetch_assoc($result)){ $i++; $tot += $row['dragonkills']; rawoutput(""); rawoutput(""); } rawoutput("
$rank$name$dk$jd
"); output_notl($ranks[$row['clanrank']]); //translated earlier rawoutput(""); $link = "bio.php?char=".$row['acctid']."&ret=".urlencode($_SERVER['REQUEST_URI']); rawoutput(""); addnav("", $link); output_notl("`&%s`0", $row['name']); rawoutput(""); rawoutput(""); output_notl("`\$%s`0", $row['dragonkills']); rawoutput(""); output_notl("`3%s`0", $row['clanjoindate']); rawoutput("
"); output("`n`n`^This clan has a total of `\$%s`^ dragon kills.",$tot); ?>