|
|
@@ -1,3 +1,5 @@ |
|
|
|
<?php $hash=md5("contact@heuzef.com"); ?> |
|
|
|
|
|
|
|
<!DOCTYPE html> |
|
|
|
<html lang="fr"> |
|
|
|
<head> |
|
|
@@ -30,7 +32,7 @@ |
|
|
|
<li><a href="https://github.com/heuzef/ecomonde"><i class="glyphicon glyphicon-new-window"></i> GITHUB</a></li> |
|
|
|
</ul> |
|
|
|
<ul class="nav navbar-nav navbar-right"> |
|
|
|
<li><?php echo '<img src="http://gravatar.com/avatar/'.md5("contact@heuzef.com").'?s=50" alt="gravatar" />'; ?> <strong>HEUZEF</strong></li> |
|
|
|
<li><?php echo '<img src="http://gravatar.com/avatar/'.$hash.'?s=50" alt="gravatar" />'; ?> <strong>HEUZEF</strong></li> |
|
|
|
<li><a href="#"><i class="glyphicon glyphicon-log-out"></i> DECONNEXION</a></li> |
|
|
|
</ul> |
|
|
|
</div> |
|
|
@@ -85,7 +87,7 @@ |
|
|
|
|
|
|
|
<div class="container-fluid"> |
|
|
|
<div class="col-lg-1"></div> |
|
|
|
<div class="col-lg-4"> |
|
|
|
<div class="col-lg-3"> |
|
|
|
<div class="panel panel-default"> |
|
|
|
<div class="panel-heading"><i class="glyphicon glyphicon-cog"></i> <strong>Configurer votre partie</strong></div> |
|
|
|
<div class="panel-body"> |
|
|
@@ -102,12 +104,36 @@ |
|
|
|
</p> |
|
|
|
<hr /> |
|
|
|
<p> |
|
|
|
<div class="btn-group"> |
|
|
|
<a href="#" class="btn btn-default btn-lg dropdown-toggle" data-toggle="dropdown"> |
|
|
|
<i class="glyphicon glyphicon-music"></i> Changer les musiques |
|
|
|
<span class="caret"></span> |
|
|
|
</a> |
|
|
|
<ul class="dropdown-menu"> |
|
|
|
<li><a href="#" style="color:#CCC;"><i class="glyphicon glyphicon-music"></i> SOFT</a></li> |
|
|
|
<li class="divider"></li> |
|
|
|
<li><a href="#" style="color:#AAA;"><i class="glyphicon glyphicon-music"></i> TONIC</a></li> |
|
|
|
<li class="divider"></li> |
|
|
|
<li><a href="#" style="color:#000;"><i class="glyphicon glyphicon-music"></i> HARD</a></li> |
|
|
|
<li class="divider"></li> |
|
|
|
<li><a href="#" style="color:#ADDFFF;"><i class="glyphicon glyphicon-music"></i> LIGHT</a></li> |
|
|
|
<li class="divider"></li> |
|
|
|
<li><a href="#" style="color:#8128B5;"><i class="glyphicon glyphicon-music"></i> DARK</a></li> |
|
|
|
</ul> |
|
|
|
</div> |
|
|
|
</p> |
|
|
|
<hr /> |
|
|
|
<p> |
|
|
|
<a href="#" class="btn btn-default btn-lg"><i class="glyphicon glyphicon-map-marker"></i> Changer la carte</a> |
|
|
|
</p> |
|
|
|
<hr /> |
|
|
|
<p> |
|
|
|
<a href="play" class="btn btn-danger btn-lg"><i class="glyphicon glyphicon-remove"></i> Supprimer votre partie</a> |
|
|
|
</p> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="col-lg-6"> |
|
|
|
<div class="col-lg-7"> |
|
|
|
<div class="panel panel-default"> |
|
|
|
<div class="panel-heading"><i class="glyphicon glyphicon-user"></i> <strong>Joueurs présents dans votre partie :</strong></div> |
|
|
|
<div class="panel-body"> |
|
|
@@ -131,18 +157,19 @@ |
|
|
|
// nombre de gamers |
|
|
|
$f = 0; |
|
|
|
foreach(glob('*.xml') as $f) {$f+=1;} |
|
|
|
$nb_membres = count(glob('./gamers/*.xml')); |
|
|
|
$nb_membres = count(glob('./medias/'.$hash.'/*.xml')); |
|
|
|
|
|
|
|
// liste des gamers |
|
|
|
$folder = "./gamers"; |
|
|
|
$folder = "./medias/".$hash."/"; |
|
|
|
$dossier = opendir($folder); |
|
|
|
while ($fichier = readdir($dossier)) |
|
|
|
{ |
|
|
|
if ($fichier != "." && $fichier != ".." ) |
|
|
|
|
|
|
|
if ($fichier != "." && $fichier != ".." && $fichier != "map.jpg" && $fichier != "soft.mp3" && $fichier != "tonic.mp3" && $fichier != "hard.mp3" && $fichier != "light.mp3" && $fichier != "dark.mp3") |
|
|
|
{ |
|
|
|
$gamers = explode(".xml", $fichier); |
|
|
|
|
|
|
|
$xml = simplexml_load_file('./gamers/'.$fichier); |
|
|
|
$xml = simplexml_load_file('./medias/'.$hash.'/'.$fichier); |
|
|
|
if (!isset($itemnb)) { |
|
|
|
$itemnb=0; |
|
|
|
} else { |
|
|
@@ -150,7 +177,7 @@ |
|
|
|
} |
|
|
|
foreach($xml->entry as $entry) { |
|
|
|
echo '<tr class="active"> |
|
|
|
<td><a href="#" class="btn btn-danger btn-xs"><i class="glyphicon glyphicon-trash"></i></a> <a href="#" class="btn btn-success btn-xs"><i class="glyphicon glyphicon-export"></i></a></td> |
|
|
|
<td><a href="#" class="btn btn-danger btn-xs"><i class="glyphicon glyphicon-trash"></i></a> <a href="./medias/'.$hash.'/'.$fichier.'" target="_blank" class="btn btn-success btn-xs"><i class="glyphicon glyphicon-export"></i></a></td> |
|
|
|
<td>'.$entry->nom.'</td> |
|
|
|
<td>'.$entry->hp.'</td> |
|
|
|
<td>'.$entry->xp.'</td> |
|
|
@@ -174,20 +201,6 @@ |
|
|
|
<div class="col-lg-1"></div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="container-fluid"> |
|
|
|
<div class="col-lg-1"></div> |
|
|
|
<div class="col-lg-10"> |
|
|
|
<div class="panel panel-default"> |
|
|
|
<div class="panel-heading"><i class="glyphicon glyphicon-headphones"></i> <strong>Medias</strong></div> |
|
|
|
<div class="panel-body"> |
|
|
|
<p>Lorem ipsum dolor sit amet.</p> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="col-lg-1"></div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<script src="./js/jquery-1.10.2.min.js"></script> |
|
|
|
<script src="./js/bootstrap.min.js"></script> |
|
|
|
<script src="./js/bootswatch.js"></script> |
|
|
|