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.

пре 10 година
пре 10 година
пре 10 година
пре 10 година
пре 10 година
пре 10 година
пре 10 година
пре 10 година
пре 10 година
пре 10 година
пре 10 година
пре 10 година
пре 10 година
пре 10 година
пре 10 година
пре 10 година
пре 10 година
пре 10 година
пре 10 година
пре 10 година
пре 10 година
пре 10 година
пре 10 година
пре 10 година
пре 10 година
пре 10 година
пре 10 година
пре 10 година
пре 10 година
пре 10 година
пре 10 година
пре 10 година
пре 10 година
пре 10 година
пре 10 година
пре 10 година
пре 10 година
пре 10 година
пре 10 година
пре 10 година
пре 10 година
пре 10 година
пре 10 година
пре 10 година
пре 10 година
пре 9 година
пре 10 година
пре 10 година
пре 10 година
пре 10 година
пре 10 година
пре 10 година
пре 10 година
пре 10 година
пре 10 година
пре 10 година
пре 10 година
пре 10 година
пре 10 година
пре 10 година
пре 10 година
пре 10 година
пре 10 година
пре 10 година
пре 10 година
пре 10 година
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304
  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_attack($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" style="float:left;">'.$texte_bouton.'</button></form>';
  138. }
  139. function button_modif_defense($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. function button_modif_ecos($nom_parametre, $nom_perso, $texte_bouton)
  144. {
  145. 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>';
  146. }
  147. function button_modif_gift($nom_parametre, $nom_perso, $texte_bouton)
  148. {
  149. 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>';
  150. }
  151. // liste des gamers
  152. $folder = "../medias/".$hash."/";
  153. $dossier = opendir($folder);
  154. while ($fichier = readdir($dossier))
  155. {
  156. if ($fichier != "." && $fichier != ".." && $fichier != "map.jpg" && $fichier != "soft.mp3" && $fichier != "tonic.mp3" && $fichier != "hard.mp3" && $fichier != "light.mp3" && $fichier != "dark.mp3" && $fichier != "enemy")
  157. {
  158. $gamers = explode(".xml", $fichier);
  159. include ("gamers.php");
  160. }
  161. }
  162. closedir($dossier);
  163. ?>
  164. </div>
  165. <!-- /gamers -->
  166. <!-- add_enemy -->
  167. <div class="modal fade" id="add_enemy" tabindex="-1" role="dialog" aria-labelledby="add_enemy" aria-hidden="true">
  168. <div class="modal-dialog">
  169. <div class="modal-content">
  170. <form class="form-horizontal well" role="form" method="post" action="new_enemy.php" enctype="multipart/form-data">
  171. <div class="modal-body">
  172. <div class="container-fluid">
  173. <div class="col-lg-12">
  174. <div class="panel panel-default">
  175. <div class="panel-heading">
  176. <h3 class="panel-title">Ajouter un ennemi</h3>
  177. </div>
  178. <div class="panel-body">
  179. <div class="col-lg-6 form-group">
  180. <label for="select" class="control-label">Type :</label>
  181. <select class="form-control" id="focusedInput" name="enemy_type">
  182. <?php include ("enemy_wiki.php"); ?>
  183. </select>
  184. </div>
  185. <div class="col-lg-6 form-group">
  186. <label class="control-label" for="focusedInput">Suffixe :</label>
  187. <input class="form-control" id="focusedInput" type="text" name="enemy_suffix" maxlength="12" value="violent">
  188. </div>
  189. </div>
  190. </div>
  191. </div>
  192. </div>
  193. </div>
  194. <div class="modal-footer">
  195. <button type="submit" class="btn btn-warning">Création de l'ennemi</button>
  196. <button type="button" class="btn btn-default" data-dismiss="modal">Fermer</button>
  197. </div>
  198. </form>
  199. </div>
  200. </div>
  201. </div>
  202. <!-- /add_enemy -->
  203. <!-- add_boss -->
  204. <div class="modal fade" id="add_boss" tabindex="-1" role="dialog" aria-labelledby="add_boss" aria-hidden="true">
  205. <div class="modal-dialog">
  206. <div class="modal-content">
  207. <form class="form-horizontal well" role="form" method="post" action="new_boss.php" enctype="multipart/form-data">
  208. <div class="modal-body">
  209. <div class="container-fluid">
  210. <div class="col-lg-12">
  211. <div class="panel panel-default">
  212. <div class="panel-heading">
  213. <h3 class="panel-title">Ajouter un Boss</h3>
  214. </div>
  215. <div class="panel-body">
  216. <div class="col-lg-12 form-group">
  217. <label for="select" class="control-label">Type :</label>
  218. <select class="form-control" id="focusedInput" name="boss_type">
  219. <?php include ("boss_wiki.php"); ?>
  220. </select>
  221. </div>
  222. <!--
  223. <div class="col-lg-6 form-group">
  224. <label class="control-label" for="focusedInput">Suffixe :</label>
  225. <input class="form-control" id="focusedInput" type="text" name="boss_suffix" maxlength="12" value="epic">
  226. </div>
  227. -->
  228. </div>
  229. </div>
  230. </div>
  231. </div>
  232. </div>
  233. <div class="modal-footer">
  234. <button type="submit" class="btn btn-danger">Création du Boss</button>
  235. <button type="button" class="btn btn-default" data-dismiss="modal">Fermer</button>
  236. </div>
  237. </form>
  238. </div>
  239. </div>
  240. </div>
  241. <!-- /add_boss -->
  242. <!-- infos -->
  243. <div class="modal fade" id="infos" tabindex="-1" role="dialog" aria-labelledby="infos" aria-hidden="true">
  244. <div class="modal-dialog">
  245. <div class="modal-content">
  246. <div class="modal-body">
  247. <div class="container-fluid">
  248. <div class="col-lg-6">
  249. <div class="panel panel-light">
  250. <div class="panel-heading">
  251. <h2>Light</h2>
  252. </div>
  253. <div class="panel-body">
  254. <img class="img-responsive thumbnail" src="../img/light.jpg" alt="light" /><br />
  255. <p class="p_light">Light Heal</p>
  256. <p class="p_light">Light Shield</p>
  257. <p class="p_light">Light Stop-Time</p>
  258. </div>
  259. </div>
  260. </div>
  261. <div class="col-lg-6">
  262. <div class="panel panel-dark">
  263. <div class="panel-heading">
  264. <h2>Dark</h2>
  265. </div>
  266. <div class="panel-body">
  267. <img class="img-responsive thumbnail" src="../img/dark.jpg" alt="light" /><br />
  268. <p class="p_dark">Dark Punch</p>
  269. <p class="p_dark">Dark Bomb</p>
  270. <p class="p_dark">Dark Giant</p>
  271. </div>
  272. </div>
  273. </div>
  274. </div>
  275. </div>
  276. <div class="modal-footer">
  277. <button type="button" class="btn btn-default" data-dismiss="modal">Fermer</button>
  278. </div>
  279. </div>
  280. </div>
  281. </div>
  282. <!-- /infos -->
  283. <script src="../js/jquery-1.10.2.min.js"></script>
  284. <script src="../js/bootstrap.min.js"></script>
  285. <script src="../js/bootswatch.js"></script>
  286. </body>
  287. </html>
  288. <?php elseif($status == 0):
  289. header("location:../index.php?msg=4");
  290. endif; ?>