* All rights reserved.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*
* --> NOTICE <--
* This file is part of the core development branch, changing its contents will
* make you unable to use the automatic updates manager. Please refer to the
* documentation for further information about customizing XNova.
*
*/
define('INSIDE' , true);
define('INSTALL' , false);
require_once dirname(__FILE__) .'/common.php';
$dpath = (!$userrow["dpath"]) ? DEFAULT_SKINPATH : $userrow["dpath"];
if(!is_numeric($_GET["a"]) || !$_GET["a"] ){ message("Ungültige Allianz-ID","Fehler");}
$allyrow = doquery("SELECT ally_name,ally_tag,ally_description,ally_web,ally_image FROM {{table}} WHERE id=".$_GET["a"],"alliance",true);
if(!$allyrow){ message("Alliance non trouvée","Erreur");}
$count = doquery("SELECT COUNT(DISTINCT(id)) FROM {{table}} WHERE ally_id=".$_GET["a"].";","users",true);
$ally_member_scount = $count[0];
$page .="
| Informations sur l'alliance |
";
if($allyrow["ally_image"] != ""){
$page .= " |
";
}
$page .= "| Tag | ".$allyrow["ally_tag"]." |
|---|
| Nom | ".$allyrow["ally_name"]." |
|---|
| Membres | $ally_member_scount |
";
if($allyrow["ally_description"] != ""){
$page .= "| ".$allyrow["ally_description"]." |
";
}
if($allyrow["ally_web"] != ""){
$page .="
| Site internet |
".$allyrow["ally_web"]." |
";
}
$page .= "
";
display($page,"Information sur l'alliance [".$allyrow["ally_name"]."]",false);
?>