Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 

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