您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

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