Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 

324 lignes
15 KiB

  1. <?php include "../header.php" ?>
  2. <?php if($status != 0): ?>
  3. <!DOCTYPE html>
  4. <html lang="fr">
  5. <head>
  6. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  7. <title>EcoMonde</title>
  8. <meta name="viewport" content="width=device-width, initial-scale=1">
  9. <link rel="shortcut icon" href="../img/favicon.png" type="image/x-icon" />
  10. <link rel="stylesheet" href="../css/bootstrap.css" media="screen">
  11. <link rel="stylesheet" href="../css/bootswatch.min.css">
  12. <link rel="stylesheet" href="../css/ionicons.min.css">
  13. <link rel="stylesheet" href="../css/ecomonde.css">
  14. </head>
  15. <body>
  16. <!-- top -->
  17. <div class="container-fluid">
  18. <div class="col-lg-4">
  19. <a href="index.php"><img class="img-responsive" src="../img/logo_<?php echo rand(1, 6); ?>.png" alt="logo" /></a>
  20. <br />
  21. <div class="container-fluid">
  22. <div class="col-lg-2">
  23. <button class="btn btn-default btn-sm" data-toggle="collapse" data-parent="#accordion" href="#collapseOne"><i class="ionicons ion-map"></i></button>
  24. </div>
  25. <div class="col-lg-2">
  26. <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>
  27. </div>
  28. <div class="col-lg-2">
  29. <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>
  30. </div>
  31. <div class="col-lg-2">
  32. <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>
  33. </div>
  34. <div class="col-lg-2">
  35. <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>
  36. </div>
  37. <div class="col-lg-2">
  38. <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>
  39. </div>
  40. </div>
  41. <br />
  42. <div class="container-fluid">
  43. <div class="col-lg-5">
  44. <button class="btn btn-warning btn-sm" data-toggle="modal" data-target="#add_enemy"><i class="ionicons ion-plus"></i>&nbsp;&nbsp;Ajouter ennemi</button>
  45. </div>
  46. <div class="col-lg-2"></div>
  47. <div class="col-lg-5">
  48. <button class="btn btn-danger btn-sm" data-toggle="modal" data-target="#add_boss"><i class="ionicons ion-plus"></i>&nbsp;&nbsp;Ajouter Boss</button>
  49. </div>
  50. </div>
  51. </div>
  52. <div class="col-lg-3">
  53. <div class="well sponsor">
  54. <h2>Ecos</h2>
  55. <h4>
  56. 10 <i class="ionicons ion-flash" style="color:#FFD700;"></i> = 1 <i class="ionicons ion-fireball" style="color:#AAA;"></i>
  57. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  58. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  59. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  60. &nbsp;
  61. 40 <i class="ionicons ion-flash" style="color:#FFD700;"></i> =
  62. <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>
  63. </h4>
  64. <h4>
  65. <i class="ionicons ion-fireball" style="color:#28b62c;"></i> +
  66. <i class="ionicons ion-fireball" style="color:#158cba;"></i> +
  67. <i class="ionicons ion-fireball" style="color:#ffd000;"></i> +
  68. <i class="ionicons ion-fireball" style="color:#ff4136;"></i> =
  69. <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>
  70. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  71. 1 <i class="ionicons ion-fireball" style="color:#28b62c;"></i> = (2+LVL) <i class="ionicons ion-heart" style="color:red;"></i>
  72. </h4>
  73. </div>
  74. </div>
  75. <div class="col-lg-5">
  76. <div class="well sponsor">
  77. <h2>Actions massives</h2>
  78. <button class="btn btn-default btn-xs"><i class="ionicons ion-edit"></i></button>
  79. <button class="btn btn-default btn-xs"><i class="ionicons ion-edit"></i></button>
  80. <br /><br />
  81. <button class="btn btn-default btn-xs"><i class="ionicons ion-edit"></i></button>
  82. <button class="btn btn-default btn-xs"><i class="ionicons ion-edit"></i></button>
  83. </div>
  84. </div>
  85. </div>
  86. <div class="panel-group" id="accordion">
  87. <div class="panel panel-default">
  88. <div id="collapseOne" class="panel-collapse collapse">
  89. <div class="panel-body">
  90. <img class="img-responsive" src="../medias/<?php echo $hash ?>/map.jpg" alt="map" />
  91. </div>
  92. </div>
  93. </div>
  94. </div>
  95. <!-- /top -->
  96. <!-- enemy -->
  97. <div class="container-fluid">
  98. <?php
  99. // nombre enemy
  100. $f = 0;
  101. foreach(glob('*.xml') as $f) {$f+=1;}
  102. $nb_membres = count(glob('../medias/'.$hash.'/enemy/*.xml'));
  103. ?>
  104. <?php
  105. function button_modif_hp_enemy($nom_parametre, $nom_enemy, $texte_bouton)
  106. {
  107. echo '<form action="action_enemy.php?'.$nom_parametre.'&amp;entry='.$nom_enemy.'" method="post"><button type="submit" class="btn btn-default btn-xs" style="float:left;">'.$texte_bouton.'</button></form>';
  108. }
  109. // liste enemy
  110. $folder = "../medias/".$hash."/enemy/";
  111. $dossier = opendir($folder);
  112. while ($fichier = readdir($dossier))
  113. {
  114. if ($fichier != "." && $fichier != "..")
  115. {
  116. $gamers = explode(".xml", $fichier);
  117. include ("enemy.php");
  118. }
  119. }
  120. closedir($dossier);
  121. ?>
  122. </div>
  123. <!-- /enemy -->
  124. <hr />
  125. <!-- gamers -->
  126. <div class="container-fluid">
  127. <?php
  128. // nombre de gamers
  129. $f = 0;
  130. foreach(glob('*.xml') as $f) {$f+=1;}
  131. $nb_membres = count(glob('../medias/'.$hash.'/*.xml'));
  132. ?>
  133. <?php
  134. function button_modif_level($nom_parametre, $nom_perso, $texte_bouton)
  135. {
  136. echo '<form action="action.php?'.$nom_parametre.'&amp;entry='.$nom_perso.'" method="post"><button type="submit" class="btn btn-default btn-xs" style="float:left;">'.$texte_bouton.'</button></form>';
  137. }
  138. function button_modif_hp($nom_parametre, $nom_perso, $texte_bouton)
  139. {
  140. echo '<form action="action.php?'.$nom_parametre.'&amp;entry='.$nom_perso.'" method="post"><button type="submit" class="btn btn-default btn-xs" style="float:left;">'.$texte_bouton.'</button></form>';
  141. }
  142. function button_modif_xp($nom_parametre, $nom_perso, $texte_bouton)
  143. {
  144. echo '<form action="action.php?'.$nom_parametre.'&amp;entry='.$nom_perso.'" method="post"><button type="submit" class="btn btn-default btn-xs" style="float:left;">'.$texte_bouton.'</button></form>';
  145. }
  146. function button_modif_money($nom_parametre, $nom_perso, $texte_bouton)
  147. {
  148. echo '<form action="action.php?'.$nom_parametre.'&amp;entry='.$nom_perso.'" method="post"><button type="submit" class="btn btn-default btn-xs" style="float:left;">'.$texte_bouton.'</button></form>';
  149. }
  150. function trans($nom_parametre, $nom_perso, $couleur)
  151. {
  152. echo '<form action="action.php?'.$nom_parametre.'&amp;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>';
  153. }
  154. function button_modif_attack($nom_parametre, $nom_perso, $texte_bouton)
  155. {
  156. echo '<form action="action.php?'.$nom_parametre.'&amp;entry='.$nom_perso.'" method="post"><button type="submit" class="btn btn-default btn-xs" style="float:left;">'.$texte_bouton.'</button></form>';
  157. }
  158. function button_modif_defense($nom_parametre, $nom_perso, $texte_bouton)
  159. {
  160. echo '<form action="action.php?'.$nom_parametre.'&amp;entry='.$nom_perso.'" method="post"><button type="submit" class="btn btn-default btn-xs" style="float:left;">'.$texte_bouton.'</button></form>';
  161. }
  162. function button_modif_ecos($nom_parametre, $nom_perso, $texte_bouton)
  163. {
  164. echo '<form action="action.php?'.$nom_parametre.'&amp;entry='.$nom_perso.'" method="post"><button type="submit" class="btn btn-default btn-xs">'.$texte_bouton.'</button></form>';
  165. }
  166. function button_modif_gift($nom_parametre, $nom_perso, $texte_bouton)
  167. {
  168. echo '<form action="action.php?'.$nom_parametre.'&amp;entry='.$nom_perso.'" method="post"><button type="submit" class="btn btn-default btn-xs" style="float:left;">'.$texte_bouton.'</button></form>';
  169. }
  170. // liste des gamers
  171. $folder = "../medias/".$hash."/";
  172. $dossier = opendir($folder);
  173. while ($fichier = readdir($dossier))
  174. {
  175. if ($fichier != "." && $fichier != ".." && $fichier != "map.jpg" && $fichier != "soft.mp3" && $fichier != "tonic.mp3" && $fichier != "hard.mp3" && $fichier != "light.mp3" && $fichier != "dark.mp3" && $fichier != "enemy")
  176. {
  177. $gamers = explode(".xml", $fichier);
  178. include ("gamers.php");
  179. }
  180. }
  181. closedir($dossier);
  182. ?>
  183. </div>
  184. <!-- /gamers -->
  185. <!-- add_enemy -->
  186. <div class="modal fade" id="add_enemy" tabindex="-1" role="dialog" aria-labelledby="add_enemy" aria-hidden="true">
  187. <div class="modal-dialog">
  188. <div class="modal-content">
  189. <form class="form-horizontal well" role="form" method="post" action="new_enemy.php" enctype="multipart/form-data">
  190. <div class="modal-body">
  191. <div class="container-fluid">
  192. <div class="col-lg-12">
  193. <div class="panel panel-default">
  194. <div class="panel-heading">
  195. <h3 class="panel-title">Ajouter un ennemi</h3>
  196. </div>
  197. <div class="panel-body">
  198. <div class="col-lg-6 form-group">
  199. <label for="select" class="control-label">Type :</label>
  200. <select class="form-control" id="focusedInput" name="enemy_type">
  201. <?php include ("enemy_wiki.php"); ?>
  202. </select>
  203. </div>
  204. <div class="col-lg-6 form-group">
  205. <label class="control-label" for="focusedInput">Suffixe :</label>
  206. <input class="form-control" id="focusedInput" type="text" name="enemy_suffix" maxlength="12" value="violent">
  207. </div>
  208. </div>
  209. </div>
  210. </div>
  211. </div>
  212. </div>
  213. <div class="modal-footer">
  214. <button type="submit" class="btn btn-warning">Création de l'ennemi</button>
  215. <button type="button" class="btn btn-default" data-dismiss="modal">Fermer</button>
  216. </div>
  217. </form>
  218. </div>
  219. </div>
  220. </div>
  221. <!-- /add_enemy -->
  222. <!-- add_boss -->
  223. <div class="modal fade" id="add_boss" tabindex="-1" role="dialog" aria-labelledby="add_boss" aria-hidden="true">
  224. <div class="modal-dialog">
  225. <div class="modal-content">
  226. <form class="form-horizontal well" role="form" method="post" action="new_boss.php" enctype="multipart/form-data">
  227. <div class="modal-body">
  228. <div class="container-fluid">
  229. <div class="col-lg-12">
  230. <div class="panel panel-default">
  231. <div class="panel-heading">
  232. <h3 class="panel-title">Ajouter un Boss</h3>
  233. </div>
  234. <div class="panel-body">
  235. <div class="col-lg-12 form-group">
  236. <label for="select" class="control-label">Type :</label>
  237. <select class="form-control" id="focusedInput" name="boss_type">
  238. <?php include ("boss_wiki.php"); ?>
  239. </select>
  240. </div>
  241. <!--
  242. <div class="col-lg-6 form-group">
  243. <label class="control-label" for="focusedInput">Suffixe :</label>
  244. <input class="form-control" id="focusedInput" type="text" name="boss_suffix" maxlength="12" value="epic">
  245. </div>
  246. -->
  247. </div>
  248. </div>
  249. </div>
  250. </div>
  251. </div>
  252. <div class="modal-footer">
  253. <button type="submit" class="btn btn-danger">Création du Boss</button>
  254. <button type="button" class="btn btn-default" data-dismiss="modal">Fermer</button>
  255. </div>
  256. </form>
  257. </div>
  258. </div>
  259. </div>
  260. <!-- /add_boss -->
  261. <!-- infos -->
  262. <div class="modal fade" id="infos" tabindex="-1" role="dialog" aria-labelledby="infos" aria-hidden="true">
  263. <div class="modal-dialog">
  264. <div class="modal-content">
  265. <div class="modal-body">
  266. <div class="container-fluid">
  267. <div class="col-lg-6">
  268. <div class="panel panel-light">
  269. <div class="panel-heading">
  270. <h2>Light</h2>
  271. </div>
  272. <div class="panel-body">
  273. <img class="img-responsive thumbnail" src="../img/light.jpg" alt="light" /><br />
  274. <p class="p_light">Light Shield</p>
  275. <p class="p_light">Light Triumph</p>
  276. <p class="p_light">Light Time</p>
  277. </div>
  278. </div>
  279. </div>
  280. <div class="col-lg-6">
  281. <div class="panel panel-dark">
  282. <div class="panel-heading">
  283. <h2>Dark</h2>
  284. </div>
  285. <div class="panel-body">
  286. <img class="img-responsive thumbnail" src="../img/dark.jpg" alt="light" /><br />
  287. <p class="p_dark">Dark Punch</p>
  288. <p class="p_dark">Dark Giant</p>
  289. <p class="p_dark">Dark Domination</p>
  290. </div>
  291. </div>
  292. </div>
  293. </div>
  294. </div>
  295. <div class="modal-footer">
  296. <button type="button" class="btn btn-default" data-dismiss="modal">Fermer</button>
  297. </div>
  298. </div>
  299. </div>
  300. </div>
  301. <!-- /infos -->
  302. <script src="../js/jquery-1.10.2.min.js"></script>
  303. <script src="../js/bootstrap.min.js"></script>
  304. <script src="../js/bootswatch.js"></script>
  305. </body>
  306. </html>
  307. <?php elseif($status == 0):
  308. header("location:../index.php?msg=4");
  309. endif; ?>