[Retour page précédente]

"; $result=mysql_query("select guilderank.guildadmin from chatregistered,guilderank where chatregistered.nom='".canonnick($_SESSION['session_nom'])."' and guilderank.id=chatregistered.rank and chatregistered.guilde=".$id); if (mysql_num_rows($result)) { $guildadmin=mysql_result($result,0,"guildadmin"); if ($guildadmin > 0) { echo "
Modifier la guilde"; echo "
Inviter un joueur à entrer dans la guilde"; } echo "
Se désinscrire de la guilde"; if ($guildadmin==3) echo "

Changer le leader de la guilde
Détruire la guilde"; } $result = mysql_query("select guilde.nom,guilde.description,guilde.ajour,guilde.level,guilde.gold,guilde.reputation,guilde.xp from guilde where id=".$id); $ajour=mysql_result($result,0,"ajour"); if ($ajour==0) { $rs=mysql_query("select sum(reputation),sum(level),sum(gold),sum(xp) from chatregistered where guilde=".$id); mysql_query("update guilde set reputation=".mysql_result($rs,0,0).",level=".mysql_result($rs,0,1).",gold=".mysql_result($rs,0,2).",xp=".mysql_result($rs,0,3).",ajour=1,reputlvl=".(mysql_result($rs,0,0)+mysql_result($rs,0,1))." where id=".$id); } $level=mysql_result($result,0,"level"); $reputation=mysql_result($result,0,"reputation"); $gold=mysql_result($result,0,"gold"); $xp=mysql_result($result,0,"xp"); $text=mysql_result($result,0,"description"); $text = eregi_replace( "(
Guilde :

#NomRang  Réputation    Level    Or    Expérience  
'') or (mysql_result($result,$i,"description")<>'')); if ($accept) echo ""; echo mysql_result($result,$i,"nom"); if ($accept) echo ""; ?>
'') { ?>
Description