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.
 
 
 
 

168 line
9.1 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. <div class="container-fluid">
  17. <div class="col-lg-4">
  18. <a href="index.php"><img class="img-responsive" src="../img/logo_<?php echo rand(1, 6); ?>.png" alt="logo" /></a>
  19. <div class="container-fluid">
  20. <div class="col-lg-2">
  21. <button class="btn btn-default btn-sm" data-toggle="collapse" data-parent="#accordion" href="#collapseOne"><i class="ionicons ion-map"></i></button>
  22. </div>
  23. <div class="col-lg-2">
  24. <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>
  25. </div>
  26. <div class="col-lg-2">
  27. <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>
  28. </div>
  29. <div class="col-lg-2">
  30. <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>
  31. </div>
  32. <div class="col-lg-2">
  33. <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>
  34. </div>
  35. <div class="col-lg-2">
  36. <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>
  37. </div>
  38. </div>
  39. </div>
  40. <div class="col-lg-4">
  41. <div class="well sponsor">
  42. <h2>Ecos</h2>
  43. <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 <i class="ionicons ion-heart" style="color:red;"></i></h4>
  44. <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>
  45. </div>
  46. </div>
  47. <div class="col-lg-4">
  48. <div class="well sponsor">
  49. <h2>Action</h2>
  50. <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>
  51. <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>
  52. </div>
  53. </div>
  54. </div>
  55. <div class="panel-group" id="accordion">
  56. <div class="panel panel-default">
  57. <div id="collapseOne" class="panel-collapse collapse">
  58. <div class="panel-body">
  59. <img class="img-responsive" src="../medias/<?php echo $hash ?>/map.jpg" alt="map" />
  60. </div>
  61. </div>
  62. </div>
  63. </div>
  64. <div class="container-fluid">
  65. <?php
  66. // nombre de gamers
  67. $f = 0;
  68. foreach(glob('*.xml') as $f) {$f+=1;}
  69. $nb_membres = count(glob('../medias/'.$hash.'/*.xml'));
  70. ?>
  71. <?php
  72. function button_modif_level($nom_parametre, $nom_perso, $texte_bouton)
  73. {
  74. 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>';
  75. }
  76. function button_modif_hp($nom_parametre, $nom_perso, $texte_bouton)
  77. {
  78. 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>';
  79. }
  80. function button_modif_xp($nom_parametre, $nom_perso, $texte_bouton)
  81. {
  82. 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>';
  83. }
  84. function button_modif_money($nom_parametre, $nom_perso, $texte_bouton)
  85. {
  86. 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>';
  87. }
  88. function trans($nom_parametre, $nom_perso, $couleur)
  89. {
  90. 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>';
  91. }
  92. function button_modif_ecos($nom_parametre, $nom_perso, $texte_bouton)
  93. {
  94. 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>';
  95. }
  96. function button_modif_gift($nom_parametre, $nom_perso, $texte_bouton)
  97. {
  98. 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>';
  99. }
  100. // liste des gamers
  101. $folder = "../medias/".$hash."/";
  102. $dossier = opendir($folder);
  103. while ($fichier = readdir($dossier))
  104. {
  105. if ($fichier != "." && $fichier != ".." && $fichier != "map.jpg" && $fichier != "soft.mp3" && $fichier != "tonic.mp3" && $fichier != "hard.mp3" && $fichier != "light.mp3" && $fichier != "dark.mp3")
  106. {
  107. $gamers = explode(".xml", $fichier);
  108. include ("gamers.php");
  109. }
  110. }
  111. closedir($dossier);
  112. ?>
  113. </div>
  114. <!-- infos -->
  115. <div class="modal fade" id="infos" tabindex="-1" role="dialog" aria-labelledby="infos" aria-hidden="true">
  116. <div class="modal-dialog">
  117. <div class="modal-content">
  118. <div class="modal-body">
  119. <div class="container-fluid">
  120. <div class="col-lg-6">
  121. <div class="panel panel-light">
  122. <div class="panel-heading">
  123. <h3 class="panel-title">Light</h3>
  124. </div>
  125. <div class="panel-body">
  126. <img class="img-responsive" src="../img/light.jpg" alt="light" /><br />
  127. <p class="p_light">Light Heal</p>
  128. <p class="p_light">Light Shield</p>
  129. <p class="p_light">Stop Time</p>
  130. </div>
  131. </div>
  132. </div>
  133. <div class="col-lg-6">
  134. <div class="panel panel-dark">
  135. <div class="panel-heading">
  136. <h4 class="panel-title">Dark</h4>
  137. </div>
  138. <div class="panel-body">
  139. <img class="img-responsive" src="../img/dark.jpg" alt="light" /><br />
  140. <p class="p_dark">Dark Punch</p>
  141. <p class="p_dark">Dark Bomb</p>
  142. <p class="p_dark">Invisibility</p>
  143. </div>
  144. </div>
  145. </div>
  146. </div>
  147. </div>
  148. <div class="modal-footer">
  149. <button type="button" class="btn btn-default" data-dismiss="modal">Fermer</button>
  150. </div>
  151. </div>
  152. </div>
  153. </div>
  154. <script src="../js/jquery-1.10.2.min.js"></script>
  155. <script src="../js/bootstrap.min.js"></script>
  156. <script src="../js/bootswatch.js"></script>
  157. </body>
  158. </html>
  159. <?php elseif($status == 0):
  160. header("location:../index.php?msg=4");
  161. endif; ?>