|
- <?php include "../header.php" ?>
- <?php if($status != 0): ?>
-
- <!DOCTYPE html>
- <html lang="fr">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <title>EcoMonde</title>
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <link rel="shortcut icon" href="../img/favicon.png" type="image/x-icon" />
- <link rel="stylesheet" href="../css/bootstrap.css" media="screen">
- <link rel="stylesheet" href="../css/bootswatch.min.css">
- <link rel="stylesheet" href="../css/ionicons.min.css">
- <link rel="stylesheet" href="../css/ecomonde.css">
- </head>
-
- <body>
- <!-- top -->
- <div class="container-fluid">
- <div class="col-lg-4">
- <a href="index.php"><img class="img-responsive" src="../img/logo_<?php echo rand(1, 6); ?>.png" alt="logo" /></a>
- <br />
- <div class="container-fluid">
- <div class="col-lg-2">
- <button class="btn btn-default btn-sm" data-toggle="collapse" data-parent="#accordion" href="#collapseOne"><i class="ionicons ion-map"></i></button>
- </div>
- <div class="col-lg-2">
- <a onclick="window.open('music.php?sample=soft.mp3','ecomonde','menubar=no, scrollbars=no, top=100, left=50, width=320, height=100');"><button class="btn btn-default btn-sm"><i class="ionicons ion-music-note" style="color:#CCC;"></i></button></a>
- </div>
- <div class="col-lg-2">
- <a onclick="window.open('music.php?sample=tonic.mp3','ecomonde','menubar=no, scrollbars=no, top=100, left=50, width=320, height=100');"><button class="btn btn-default btn-sm"><i class="ionicons ion-music-note" style="color:#AAA;"></i></button></a>
- </div>
- <div class="col-lg-2">
- <a onclick="window.open('music.php?sample=hard.mp3','ecomonde','menubar=no, scrollbars=no, top=100, left=50, width=320, height=100');"><button class="btn btn-default btn-sm"><i class="ionicons ion-music-note" style="color:#000;"></i></button></a>
- </div>
- <div class="col-lg-2">
- <a onclick="window.open('music.php?sample=light.mp3','ecomonde','menubar=no, scrollbars=no, top=100, left=50, width=320, height=100');"><button class="btn btn-default btn-sm"><i class="ionicons ion-music-note" style="color:#ADDFFF;"></i></button></a>
- </div>
- <div class="col-lg-2">
- <a onclick="window.open('music.php?sample=dark.mp3','ecomonde','menubar=no, scrollbars=no, top=100, left=50, width=320, height=100');"><button class="btn btn-default btn-sm"><i class="ionicons ion-music-note" style="color:#8128B5;"></i></button></a>
- </div>
- </div>
- <br />
- <div class="container-fluid">
- <div class="col-lg-5">
- <button class="btn btn-warning btn-sm" data-toggle="modal" data-target="#add_enemy"><i class="ionicons ion-plus"></i> Ajouter ennemi</button>
- </div>
- <div class="col-lg-2"></div>
- <div class="col-lg-5">
- <button class="btn btn-danger btn-sm" data-toggle="modal" data-target="#add_boss"><i class="ionicons ion-plus"></i> Ajouter Boss</button>
- </div>
- </div>
- </div>
- <div class="col-lg-3">
- <div class="well sponsor">
- <h2>Ecos</h2>
- <h4>
- 10 <i class="ionicons ion-flash" style="color:#FFD700;"></i> = 1 <i class="ionicons ion-fireball" style="color:#AAA;"></i>
-
-
-
-
- 40 <i class="ionicons ion-flash" style="color:#FFD700;"></i> =
- <button class="btn btn-default btn-xs" data-toggle="modal" data-target="#infos"><i class="ionicons ion-fireball" style="color:#ADDFFF;"></i> ou <i class="ionicons ion-fireball" style="color:#8128B5;"></i></button>
- </h4>
- <h4>
- <i class="ionicons ion-fireball" style="color:#28b62c;"></i> +
- <i class="ionicons ion-fireball" style="color:#158cba;"></i> +
- <i class="ionicons ion-fireball" style="color:#ffd000;"></i> +
- <i class="ionicons ion-fireball" style="color:#ff4136;"></i> =
- <button class="btn btn-default btn-xs" data-toggle="modal" data-target="#infos"><i class="ionicons ion-fireball" style="color:#ADDFFF;"></i> ou <i class="ionicons ion-fireball" style="color:#8128B5;"></i></button>
-
- 1 <i class="ionicons ion-fireball" style="color:#28b62c;"></i> = (2+LVL) <i class="ionicons ion-heart" style="color:red;"></i>
- </h4>
- </div>
- </div>
- <div class="col-lg-5">
- <div class="well sponsor">
- ...
- </div>
- </div>
- </div>
- <div class="panel-group" id="accordion">
- <div class="panel panel-default">
- <div id="collapseOne" class="panel-collapse collapse">
- <div class="panel-body">
- <img class="img-responsive" src="../medias/<?php echo $hash ?>/map.jpg" alt="map" />
- </div>
- </div>
- </div>
- </div>
- <!-- /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'));
- ?>
-
- <?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>';
- }
-
- // 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 -->
- <div class="container-fluid">
- <?php
- // nombre de gamers
- $f = 0;
- foreach(glob('*.xml') as $f) {$f+=1;}
- $nb_membres = count(glob('../medias/'.$hash.'/*.xml'));
- ?>
-
- <?php
- function button_modif_level($nom_parametre, $nom_perso, $texte_bouton)
- {
- echo '<form action="action.php?'.$nom_parametre.'&entry='.$nom_perso.'" method="post"><button type="submit" class="btn btn-default btn-xs" style="float:left;">'.$texte_bouton.'</button></form>';
- }
- function button_modif_hp($nom_parametre, $nom_perso, $texte_bouton)
- {
- echo '<form action="action.php?'.$nom_parametre.'&entry='.$nom_perso.'" method="post"><button type="submit" class="btn btn-default btn-xs" style="float:left;">'.$texte_bouton.'</button></form>';
- }
- function button_modif_xp($nom_parametre, $nom_perso, $texte_bouton)
- {
- echo '<form action="action.php?'.$nom_parametre.'&entry='.$nom_perso.'" method="post"><button type="submit" class="btn btn-default btn-xs" style="float:left;">'.$texte_bouton.'</button></form>';
- }
- function button_modif_money($nom_parametre, $nom_perso, $texte_bouton)
- {
- echo '<form action="action.php?'.$nom_parametre.'&entry='.$nom_perso.'" method="post"><button type="submit" class="btn btn-default btn-xs" style="float:left;">'.$texte_bouton.'</button></form>';
- }
- function trans($nom_parametre, $nom_perso, $couleur)
- {
- echo '<form action="action.php?'.$nom_parametre.'&entry='.$nom_perso.'" method="post"><button type="submit" class="btn btn-default btn-xs" style="float:right;"><i class="ionicons ion-fireball" style="color:'.$couleur.'";></i></button></form>';
- }
- function button_modif_attack($nom_parametre, $nom_perso, $texte_bouton)
- {
- echo '<form action="action.php?'.$nom_parametre.'&entry='.$nom_perso.'" method="post"><button type="submit" class="btn btn-default btn-xs" style="float:left;">'.$texte_bouton.'</button></form>';
- }
- function button_modif_defense($nom_parametre, $nom_perso, $texte_bouton)
- {
- echo '<form action="action.php?'.$nom_parametre.'&entry='.$nom_perso.'" method="post"><button type="submit" class="btn btn-default btn-xs" style="float:left;">'.$texte_bouton.'</button></form>';
- }
- function button_modif_ecos($nom_parametre, $nom_perso, $texte_bouton)
- {
- echo '<form action="action.php?'.$nom_parametre.'&entry='.$nom_perso.'" method="post"><button type="submit" class="btn btn-default btn-xs">'.$texte_bouton.'</button></form>';
- }
- function button_modif_gift($nom_parametre, $nom_perso, $texte_bouton)
- {
- echo '<form action="action.php?'.$nom_parametre.'&entry='.$nom_perso.'" method="post"><button type="submit" class="btn btn-default btn-xs" style="float:left;">'.$texte_bouton.'</button></form>';
- }
-
- // liste des gamers
- $folder = "../medias/".$hash."/";
- $dossier = opendir($folder);
- while ($fichier = readdir($dossier))
- {
- if ($fichier != "." && $fichier != ".." && $fichier != "map.jpg" && $fichier != "soft.mp3" && $fichier != "tonic.mp3" && $fichier != "hard.mp3" && $fichier != "light.mp3" && $fichier != "dark.mp3" && $fichier != "enemy")
- {
- $gamers = explode(".xml", $fichier);
- include ("gamers.php");
- }
- }
- closedir($dossier);
- ?>
- </div>
- <!-- /gamers -->
-
- <!-- add_enemy -->
- <div class="modal fade" id="add_enemy" tabindex="-1" role="dialog" aria-labelledby="add_enemy" aria-hidden="true">
- <div class="modal-dialog">
- <div class="modal-content">
- <form class="form-horizontal well" role="form" method="post" action="new_enemy.php" enctype="multipart/form-data">
- <div class="modal-body">
- <div class="container-fluid">
- <div class="col-lg-12">
- <div class="panel panel-default">
- <div class="panel-heading">
- <h3 class="panel-title">Ajouter un ennemi</h3>
- </div>
- <div class="panel-body">
- <div class="col-lg-6 form-group">
- <label for="select" class="control-label">Type :</label>
- <select class="form-control" id="focusedInput" name="enemy_type">
- <?php include ("enemy_wiki.php"); ?>
- </select>
- </div>
- <div class="col-lg-6 form-group">
- <label class="control-label" for="focusedInput">Suffixe :</label>
- <input class="form-control" id="focusedInput" type="text" name="enemy_suffix" maxlength="12" value="violent">
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="modal-footer">
- <button type="submit" class="btn btn-warning">Création de l'ennemi</button>
- <button type="button" class="btn btn-default" data-dismiss="modal">Fermer</button>
- </div>
- </form>
- </div>
- </div>
- </div>
- <!-- /add_enemy -->
-
- <!-- add_boss -->
- <div class="modal fade" id="add_boss" tabindex="-1" role="dialog" aria-labelledby="add_boss" aria-hidden="true">
- <div class="modal-dialog">
- <div class="modal-content">
- <form class="form-horizontal well" role="form" method="post" action="new_boss.php" enctype="multipart/form-data">
- <div class="modal-body">
- <div class="container-fluid">
- <div class="col-lg-12">
- <div class="panel panel-default">
- <div class="panel-heading">
- <h3 class="panel-title">Ajouter un Boss</h3>
- </div>
- <div class="panel-body">
- <div class="col-lg-12 form-group">
- <label for="select" class="control-label">Type :</label>
- <select class="form-control" id="focusedInput" name="boss_type">
- <?php include ("boss_wiki.php"); ?>
- </select>
- </div>
- <!--
- <div class="col-lg-6 form-group">
- <label class="control-label" for="focusedInput">Suffixe :</label>
- <input class="form-control" id="focusedInput" type="text" name="boss_suffix" maxlength="12" value="epic">
- </div>
- -->
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="modal-footer">
- <button type="submit" class="btn btn-danger">Création du Boss</button>
- <button type="button" class="btn btn-default" data-dismiss="modal">Fermer</button>
- </div>
- </form>
- </div>
- </div>
- </div>
- <!-- /add_boss -->
-
- <!-- infos -->
- <div class="modal fade" id="infos" tabindex="-1" role="dialog" aria-labelledby="infos" aria-hidden="true">
- <div class="modal-dialog">
- <div class="modal-content">
- <div class="modal-body">
- <div class="container-fluid">
- <div class="col-lg-6">
- <div class="panel panel-light">
- <div class="panel-heading">
- <h2>Light</h2>
- </div>
- <div class="panel-body">
- <img class="img-responsive thumbnail" src="../img/light.jpg" alt="light" /><br />
- <p class="p_light">Light Shield</p>
- <p class="p_light">Light Triumph</p>
- <p class="p_light">Light Time</p>
- </div>
- </div>
- </div>
- <div class="col-lg-6">
- <div class="panel panel-dark">
- <div class="panel-heading">
- <h2>Dark</h2>
- </div>
- <div class="panel-body">
- <img class="img-responsive thumbnail" src="../img/dark.jpg" alt="light" /><br />
- <p class="p_dark">Dark Punch</p>
- <p class="p_dark">Dark Giant</p>
- <p class="p_dark">Dark Domination</p>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="modal-footer">
- <button type="button" class="btn btn-default" data-dismiss="modal">Fermer</button>
- </div>
- </div>
- </div>
- </div>
- <!-- /infos -->
-
- <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>
-
- <?php elseif($status == 0):
- header("location:../index.php?msg=4");
- endif; ?>
|