No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

index.php 15 KiB

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