You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

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