|
|
@@ -20,6 +20,11 @@ $message[4]=' |
|
|
|
<button type="button" class="close" data-dismiss="alert">X</button> |
|
|
|
<h4>Oups !</h4> |
|
|
|
<p>Vous devez vous connecter pour pouvoir jouer ;)</p>'; |
|
|
|
$message[5]=' |
|
|
|
<div class="col-lg-6 alert alert-dismissable alert-success"> |
|
|
|
<button type="button" class="close" data-dismiss="alert">X</button> |
|
|
|
<h4>OK !</h4> |
|
|
|
<p>Votre carte est à jour !</p>'; |
|
|
|
?> |
|
|
|
<!DOCTYPE html> |
|
|
|
<html lang="fr"> |
|
|
@@ -54,7 +59,7 @@ $message[4]=' |
|
|
|
<ul class="nav navbar-nav navbar-right"> |
|
|
|
<?php if($status != 0): ?> |
|
|
|
<li><?php echo '<img class="img-circle" src="http://gravatar.com/avatar/'.$hash.'?s=50" alt="gravatar" />'; ?> <strong><?php echo strtoupper($pseudo); ?></strong></li> |
|
|
|
<li><a href="logout.php"><i class="glyphicon glyphicon-log-out"></i> DECONNEXION</a></li> |
|
|
|
<li><a href="logout.php"><i class="glyphicon glyphicon-off"></i> DECONNEXION</a></li> |
|
|
|
<?php elseif($status == 0): ?> |
|
|
|
<li><a data-toggle="modal" data-target="#modal_login"><i class="glyphicon glyphicon-log-in"></i> CONNEXION</a></li> |
|
|
|
<?php endif; ?> |
|
|
@@ -125,7 +130,7 @@ $message[4]=' |
|
|
|
</p> |
|
|
|
<hr /> |
|
|
|
<p> |
|
|
|
<a href="#" class="btn btn-default btn-lg disabled"><i class="glyphicon glyphicon-map-marker"></i> Changer la carte</a> |
|
|
|
<a data-toggle="modal" data-target="#modal_change_map" class="btn btn-default btn-lg"><i class="glyphicon glyphicon-map-marker"></i> Changer la carte</a> |
|
|
|
</p> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@@ -233,6 +238,37 @@ $message[4]=' |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="modal fade" id="modal_change_map"> |
|
|
|
<div class="modal-dialog"> |
|
|
|
<div class="modal-content"> |
|
|
|
<form class="form-horizontal well" role="form" method="post" action="" enctype="multipart/form-data"> |
|
|
|
<div class="modal-header"> |
|
|
|
<a type="button" class="close" data-dismiss="modal" aria-hidden="true" style="color:black;">X</a> |
|
|
|
<h4 class="modal-title"><i class="glyphicon glyphicon-map-marker"></i> CHANGER LA CARTE</h4> |
|
|
|
</div> |
|
|
|
<div class="modal-body"> |
|
|
|
<?php |
|
|
|
if($_POST){ |
|
|
|
$url_map = $_POST['url_map']; |
|
|
|
$name = basename($url_map); |
|
|
|
list($txt, $ext) = explode(".", $name); |
|
|
|
$name = "map.jpg"; |
|
|
|
if($ext == "jpg"){ |
|
|
|
$upload = file_put_contents("./medias/".$name,file_get_contents($url_map));}} |
|
|
|
?> |
|
|
|
<h4>Entrez le lien du fichier. Seul les fichiers <strong>.jpg</strong> sont autorisés.</h4> |
|
|
|
<label class="control-label" for="focusedInput">URL :</label> |
|
|
|
<input class="form-control" id="focusedInput" type="text" name="url_map" value="http://ecomonde/medias/default/map.jpg"> |
|
|
|
</div> |
|
|
|
<div class="modal-footer"> |
|
|
|
<button type="submit" class="btn btn-info">Mise à jour de la carte</button> |
|
|
|
</div> |
|
|
|
</form> |
|
|
|
</form> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<?php elseif($status == 0): ?> |
|
|
|
|
|
|
|
<div class="container-fluid"> |
|
|
|