|
|
@@ -12,6 +12,7 @@ |
|
|
|
<link rel="stylesheet" href="../css/bootswatch.min.css"> |
|
|
|
<link rel="stylesheet" href="../css/ionicons.min.css"> |
|
|
|
<link rel="stylesheet" href="../css/ecomonde.css"> |
|
|
|
<script type="text/jscript" src="../js/jquery-2.1.0.min.js"></script> |
|
|
|
</head> |
|
|
|
|
|
|
|
<body> |
|
|
@@ -78,35 +79,35 @@ |
|
|
|
<!-- /top --> |
|
|
|
|
|
|
|
<!-- enemy --> |
|
|
|
<div class="container-fluid"> |
|
|
|
<?php |
|
|
|
// nombre enemy |
|
|
|
$f = 0; |
|
|
|
foreach(glob('*.xml') as $f) {$f+=1;} |
|
|
|
$nb_membres = count(glob('../medias/'.$hash.'/enemy/*.xml')); |
|
|
|
?> |
|
|
|
<div class="container-fluid"> |
|
|
|
<?php |
|
|
|
// nombre enemy |
|
|
|
$f = 0; |
|
|
|
foreach(glob('*.xml') as $f) {$f+=1;} |
|
|
|
$nb_membres = count(glob('../medias/'.$hash.'/enemy/*.xml')); |
|
|
|
?> |
|
|
|
|
|
|
|
<?php |
|
|
|
<?php |
|
|
|
|
|
|
|
function button_modif_hp_enemy($nom_parametre, $nom_enemy, $texte_bouton) |
|
|
|
{ |
|
|
|
echo '<form action="action_enemy.php?'.$nom_parametre.'&entry='.$nom_enemy.'" method="post"><button type="submit" class="btn btn-default btn-xs" style="float:left;">'.$texte_bouton.'</button></form>'; |
|
|
|
} |
|
|
|
function button_modif_hp_enemy($nom_parametre, $nom_enemy, $texte_bouton) |
|
|
|
{ |
|
|
|
echo '<form action="action_enemy.php?'.$nom_parametre.'&entry='.$nom_enemy.'" method="post"><button type="submit" class="btn btn-default btn-xs" style="float:left;">'.$texte_bouton.'</button></form>'; |
|
|
|
} |
|
|
|
|
|
|
|
// liste enemy |
|
|
|
$folder = "../medias/".$hash."/enemy/"; |
|
|
|
$dossier = opendir($folder); |
|
|
|
while ($fichier = readdir($dossier)) |
|
|
|
{ |
|
|
|
if ($fichier != "." && $fichier != "..") |
|
|
|
{ |
|
|
|
$gamers = explode(".xml", $fichier); |
|
|
|
include ("enemy.php"); |
|
|
|
} |
|
|
|
} |
|
|
|
closedir($dossier); |
|
|
|
?> |
|
|
|
</div> |
|
|
|
// liste enemy |
|
|
|
$folder = "../medias/".$hash."/enemy/"; |
|
|
|
$dossier = opendir($folder); |
|
|
|
while ($fichier = readdir($dossier)) |
|
|
|
{ |
|
|
|
if ($fichier != "." && $fichier != "..") |
|
|
|
{ |
|
|
|
$gamers = explode(".xml", $fichier); |
|
|
|
include ("enemy.php"); |
|
|
|
} |
|
|
|
} |
|
|
|
closedir($dossier); |
|
|
|
?> |
|
|
|
</div> |
|
|
|
<!-- /enemy --> |
|
|
|
<hr /> |
|
|
|
<!-- gamers --> |
|
|
@@ -287,6 +288,7 @@ |
|
|
|
<script src="../js/jquery-1.10.2.min.js"></script> |
|
|
|
<script src="../js/bootstrap.min.js"></script> |
|
|
|
<script src="../js/bootswatch.js"></script> |
|
|
|
|
|
|
|
</body> |
|
|
|
</html> |
|
|
|
|
|
|
|