25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 
 

297 satır
14 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-4">
  53. <div class="well sponsor">
  54. <h2>Ecos</h2>
  55. <h4>10 <i class="ionicons ion-flash" style="color:#FFD700;"></i> = 1 <i class="ionicons ion-fireball" style="color:#AAA;"></i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1 <i class="ionicons ion-fireball" style="color:#28b62c;"></i> = (2+LVL) <i class="ionicons ion-heart" style="color:red;"></i></h4>
  56. <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> = <i class="ionicons ion-fireball" style="color:#ADDFFF;"></i> ou <i class="ionicons ion-fireball" style="color:#8128B5;"></i></h4>
  57. </div>
  58. </div>
  59. <div class="col-lg-4">
  60. <div class="well sponsor">
  61. <h2>Action</h2>
  62. <h4>Transfert d'ecos : 1 <i class="ionicons ion-fireball" style="color:#AAA;"></i>&nbsp;<i class="ionicons ion-arrow-swap";></i>&nbsp; 1 <i class="ionicons ion-fireball" style="color:#AAA;"></i> = 1 <i class="ionicons ion-flash" style="color:#FFD700;"></i>&nbsp;<i class="ionicons ion-arrow-swap";></i>&nbsp; 1 <i class="ionicons ion-flash" style="color:#FFD700;"></i>
  63. <h4>Transformation Light ou Dark = 1 <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>
  64. </div>
  65. </div>
  66. </div>
  67. <div class="panel-group" id="accordion">
  68. <div class="panel panel-default">
  69. <div id="collapseOne" class="panel-collapse collapse">
  70. <div class="panel-body">
  71. <img class="img-responsive" src="../medias/<?php echo $hash ?>/map.jpg" alt="map" />
  72. </div>
  73. </div>
  74. </div>
  75. </div>
  76. <!-- /top -->
  77. <!-- enemy -->
  78. <div class="container-fluid">
  79. <?php
  80. // nombre enemy
  81. $f = 0;
  82. foreach(glob('*.xml') as $f) {$f+=1;}
  83. $nb_membres = count(glob('../medias/'.$hash.'/enemy/*.xml'));
  84. ?>
  85. <?php
  86. function button_modif_hp_enemy($nom_parametre, $nom_enemy, $texte_bouton)
  87. {
  88. 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>';
  89. }
  90. // liste enemy
  91. $folder = "../medias/".$hash."/enemy/";
  92. $dossier = opendir($folder);
  93. while ($fichier = readdir($dossier))
  94. {
  95. if ($fichier != "." && $fichier != "..")
  96. {
  97. $gamers = explode(".xml", $fichier);
  98. include ("enemy.php");
  99. }
  100. }
  101. closedir($dossier);
  102. ?>
  103. </div>
  104. <!-- /enemy -->
  105. <hr />
  106. <!-- gamers -->
  107. <div class="container-fluid">
  108. <?php
  109. // nombre de gamers
  110. $f = 0;
  111. foreach(glob('*.xml') as $f) {$f+=1;}
  112. $nb_membres = count(glob('../medias/'.$hash.'/*.xml'));
  113. ?>
  114. <?php
  115. function button_modif_level($nom_parametre, $nom_perso, $texte_bouton)
  116. {
  117. 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>';
  118. }
  119. function button_modif_hp($nom_parametre, $nom_perso, $texte_bouton)
  120. {
  121. 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>';
  122. }
  123. function button_modif_xp($nom_parametre, $nom_perso, $texte_bouton)
  124. {
  125. 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>';
  126. }
  127. function button_modif_money($nom_parametre, $nom_perso, $texte_bouton)
  128. {
  129. 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>';
  130. }
  131. function trans($nom_parametre, $nom_perso, $couleur)
  132. {
  133. 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>';
  134. }
  135. function button_modif_ecos($nom_parametre, $nom_perso, $texte_bouton)
  136. {
  137. 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>';
  138. }
  139. function button_modif_gift($nom_parametre, $nom_perso, $texte_bouton)
  140. {
  141. 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>';
  142. }
  143. // liste des gamers
  144. $folder = "../medias/".$hash."/";
  145. $dossier = opendir($folder);
  146. while ($fichier = readdir($dossier))
  147. {
  148. if ($fichier != "." && $fichier != ".." && $fichier != "map.jpg" && $fichier != "soft.mp3" && $fichier != "tonic.mp3" && $fichier != "hard.mp3" && $fichier != "light.mp3" && $fichier != "dark.mp3" && $fichier != "enemy")
  149. {
  150. $gamers = explode(".xml", $fichier);
  151. include ("gamers.php");
  152. }
  153. }
  154. closedir($dossier);
  155. ?>
  156. </div>
  157. <!-- /gamers -->
  158. <!-- add_enemy -->
  159. <div class="modal fade" id="add_enemy" tabindex="-1" role="dialog" aria-labelledby="add_enemy" aria-hidden="true">
  160. <div class="modal-dialog">
  161. <div class="modal-content">
  162. <form class="form-horizontal well" role="form" method="post" action="new_enemy.php" enctype="multipart/form-data">
  163. <div class="modal-body">
  164. <div class="container-fluid">
  165. <div class="col-lg-12">
  166. <div class="panel panel-default">
  167. <div class="panel-heading">
  168. <h3 class="panel-title">Ajouter un ennemi</h3>
  169. </div>
  170. <div class="panel-body">
  171. <div class="col-lg-6 form-group">
  172. <label for="select" class="control-label">Type :</label>
  173. <select class="form-control" id="focusedInput" name="enemy_type">
  174. <?php include ("enemy_wiki.php"); ?>
  175. </select>
  176. </div>
  177. <div class="col-lg-6 form-group">
  178. <label class="control-label" for="focusedInput">Suffixe :</label>
  179. <input class="form-control" id="focusedInput" type="text" name="enemy_suffix" maxlength="12" value="violent">
  180. </div>
  181. </div>
  182. </div>
  183. </div>
  184. </div>
  185. </div>
  186. <div class="modal-footer">
  187. <button type="submit" class="btn btn-warning">Création de l'ennemi</button>
  188. <button type="button" class="btn btn-default" data-dismiss="modal">Fermer</button>
  189. </div>
  190. </form>
  191. </div>
  192. </div>
  193. </div>
  194. <!-- /add_enemy -->
  195. <!-- add_boss -->
  196. <div class="modal fade" id="add_boss" tabindex="-1" role="dialog" aria-labelledby="add_boss" aria-hidden="true">
  197. <div class="modal-dialog">
  198. <div class="modal-content">
  199. <form class="form-horizontal well" role="form" method="post" action="new_boss.php" enctype="multipart/form-data">
  200. <div class="modal-body">
  201. <div class="container-fluid">
  202. <div class="col-lg-12">
  203. <div class="panel panel-default">
  204. <div class="panel-heading">
  205. <h3 class="panel-title">Ajouter un Boss</h3>
  206. </div>
  207. <div class="panel-body">
  208. <div class="col-lg-12 form-group">
  209. <label for="select" class="control-label">Type :</label>
  210. <select class="form-control" id="focusedInput" name="boss_type">
  211. <?php include ("boss_wiki.php"); ?>
  212. </select>
  213. </div>
  214. <!--
  215. <div class="col-lg-6 form-group">
  216. <label class="control-label" for="focusedInput">Suffixe :</label>
  217. <input class="form-control" id="focusedInput" type="text" name="boss_suffix" maxlength="12" value="epic">
  218. </div>
  219. -->
  220. </div>
  221. </div>
  222. </div>
  223. </div>
  224. </div>
  225. <div class="modal-footer">
  226. <button type="submit" class="btn btn-danger">Création du Boss</button>
  227. <button type="button" class="btn btn-default" data-dismiss="modal">Fermer</button>
  228. </div>
  229. </form>
  230. </div>
  231. </div>
  232. </div>
  233. <!-- /add_boss -->
  234. <!-- infos -->
  235. <div class="modal fade" id="infos" tabindex="-1" role="dialog" aria-labelledby="infos" aria-hidden="true">
  236. <div class="modal-dialog">
  237. <div class="modal-content">
  238. <div class="modal-body">
  239. <div class="container-fluid">
  240. <div class="col-lg-6">
  241. <div class="panel panel-light">
  242. <div class="panel-heading">
  243. <h2>Light</h2>
  244. </div>
  245. <div class="panel-body">
  246. <img class="img-responsive thumbnail" src="../img/light.jpg" alt="light" /><br />
  247. <p class="p_light">Light Heal</p>
  248. <p class="p_light">Light Shield</p>
  249. <p class="p_light">Light Stop-Time</p>
  250. </div>
  251. </div>
  252. </div>
  253. <div class="col-lg-6">
  254. <div class="panel panel-dark">
  255. <div class="panel-heading">
  256. <h2>Dark</h2>
  257. </div>
  258. <div class="panel-body">
  259. <img class="img-responsive thumbnail" src="../img/dark.jpg" alt="light" /><br />
  260. <p class="p_dark">Dark Punch</p>
  261. <p class="p_dark">Dark Bomb</p>
  262. <p class="p_dark">Dark Giant</p>
  263. </div>
  264. </div>
  265. </div>
  266. </div>
  267. </div>
  268. <div class="modal-footer">
  269. <button type="button" class="btn btn-default" data-dismiss="modal">Fermer</button>
  270. </div>
  271. </div>
  272. </div>
  273. </div>
  274. <!-- /infos -->
  275. <script src="../js/jquery-1.10.2.min.js"></script>
  276. <script src="../js/bootstrap.min.js"></script>
  277. <script src="../js/bootswatch.js"></script>
  278. </body>
  279. </html>
  280. <?php elseif($status == 0):
  281. header("location:../index.php?msg=4");
  282. endif; ?>