選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

index.php 9.5 KiB

10年前
10年前
10年前
10年前
10年前
10年前
10年前
10年前
10年前
10年前
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  1. <?php $hash=md5("contact@heuzef.com"); ?>
  2. <!DOCTYPE html>
  3. <html lang="fr">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  6. <title>EcoMonde</title>
  7. <meta name="viewport" content="width=device-width, initial-scale=1">
  8. <link rel="stylesheet" href="./css/bootstrap.css" media="screen">
  9. <link rel="stylesheet" href="./css/bootswatch.min.css">
  10. <link rel="stylesheet" href="./css/ecomonde.css">
  11. </head>
  12. <body>
  13. <div class="container-fluid">
  14. <div class="col-lg-1"></div>
  15. <div class="col-lg-3">
  16. <a href="#"><img class="img-responsive" src="./img/logo_<?php echo rand(1, 6); ?>.png" alt="logo" /></a>
  17. </div>
  18. <div class="col-lg-6">
  19. <div class="navbar navbar-default">
  20. <div class="navbar-header">
  21. <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-responsive-collapse">
  22. <span class="icon-bar"></span>
  23. <span class="icon-bar"></span>
  24. <span class="icon-bar"></span>
  25. </button>
  26. </div>
  27. <div class="navbar-collapse collapse navbar-responsive-collapse">
  28. <ul class="nav navbar-nav">
  29. <li><a href="http://wiki.ecomonde.land"><i class="glyphicon glyphicon-book"></i>&nbsp;&nbsp;WIKI</a></li>
  30. <li><a href="https://github.com/heuzef/ecomonde"><i class="glyphicon glyphicon-new-window"></i>&nbsp;&nbsp;GITHUB</a></li>
  31. </ul>
  32. <ul class="nav navbar-nav navbar-right">
  33. <li><?php echo '<img src="http://gravatar.com/avatar/'.$hash.'?s=50" alt="gravatar" />'; ?> <strong>HEUZEF</strong></li>
  34. <li><a data-toggle="modal" data-target="#modal_login"><i class="glyphicon glyphicon-log-in"></i>&nbsp;&nbsp;CONNEXION</a></li>
  35. </ul>
  36. </div>
  37. </div>
  38. </div>
  39. <div class="col-lg-1"></div>
  40. </div>
  41. <hr />
  42. <!-- <div class="container-fluid">
  43. <div class="col-lg-1"></div>
  44. <div class="col-lg-5">
  45. <h2>Présentation</h2>
  46. <p><strong>EcoMonde est un jeux de rôle d'aventure interactif.</strong></p>
  47. <p class="text-success">Celui-ci dispose d'une interface de jeu permetant aux Maître de Jeux de contrôler la partie directement sans avoir besoin de matériel.</p>
  48. <p class="text-primary">Pas besoin de feuille, de dés, de stylo ou autre. Mais uniquement d'un écran. Tous est automatisé.</p>
  49. <p class="text-warning">Le Maître de Jeux peut ensuite créer sa partie en s'appuyant sur tous les outils existants.</p>
  50. <p class="text-danger">Un <a href="http://wiki.ecomonde.land"><i class="glyphicon glyphicon-book"></i>&nbsp;&nbsp;WIKI</a> est à disposition pour un plus grand partages de ressources.</p>
  51. </div>
  52. <div class="col-lg-5">
  53. <h2>Créer un compte</h2>
  54. <form class="form-horizontal well">
  55. <fieldset>
  56. <div class="form-group">
  57. <label for="pseudo" class="col-lg-3 control-label">Pseudo</label>
  58. <div class="col-lg-9">
  59. <input type="text" class="form-control" id="pseudo" placeholder="Pseudo">
  60. </div>
  61. </div>
  62. <div class="form-group">
  63. <label for="Email" class="col-lg-3 control-label">E-mail</label>
  64. <div class="col-lg-9">
  65. <input type="text" class="form-control" id="Email" placeholder="E-mail">
  66. </div>
  67. </div>
  68. <div class="form-group">
  69. <label for="password" class="col-lg-3 control-label">Mot de passe</label>
  70. <div class="col-lg-9">
  71. <input type="password" class="form-control" id="password" placeholder="Mot de passe">
  72. </div>
  73. </div>
  74. <div class="form-group">
  75. <div class="col-lg-9 col-lg-offset-3">
  76. <button type="submit" class="btn btn-primary"><i class="glyphicon glyphicon-ok"></i>&nbsp;&nbsp;OK</button>
  77. </div>
  78. </div>
  79. </fieldset>
  80. </form>
  81. </div>
  82. <div class="col-lg-1"></div>
  83. </div> -->
  84. <div class="container-fluid">
  85. <div class="col-lg-1"></div>
  86. <div class="col-lg-3">
  87. <div class="panel panel-default">
  88. <div class="panel-heading"><i class="glyphicon glyphicon-cog"></i>&nbsp;&nbsp;<strong>Configurer votre partie</strong></div>
  89. <div class="panel-body">
  90. <p>
  91. <a href="play" class="btn btn-info btn-lg" target="_blank"><i class="glyphicon glyphicon-play"></i>&nbsp;&nbsp;Lancer votre partie</a>
  92. <p>
  93. <hr />
  94. <p>
  95. <a href="#" class="btn btn-default btn-lg"><i class="glyphicon glyphicon-plus"></i>&nbsp;&nbsp;Créer un joueur</a>
  96. </p>
  97. <hr />
  98. <p>
  99. <a href="#" class="btn btn-default btn-lg"><i class="glyphicon glyphicon-import"></i>&nbsp;&nbsp;Importer un joueur (.XML)</a>
  100. </p>
  101. <hr />
  102. <p>
  103. <div class="btn-group">
  104. <a href="#" class="btn btn-default btn-lg dropdown-toggle" data-toggle="dropdown">
  105. <i class="glyphicon glyphicon-music"></i>&nbsp;&nbsp;Changer les musiques
  106. <span class="caret"></span>
  107. </a>
  108. <ul class="dropdown-menu">
  109. <li><a href="#" style="color:#CCC;"><i class="glyphicon glyphicon-music"></i>&nbsp;&nbsp;SOFT</a></li>
  110. <li class="divider"></li>
  111. <li><a href="#" style="color:#AAA;"><i class="glyphicon glyphicon-music"></i>&nbsp;&nbsp;TONIC</a></li>
  112. <li class="divider"></li>
  113. <li><a href="#" style="color:#000;"><i class="glyphicon glyphicon-music"></i>&nbsp;&nbsp;HARD</a></li>
  114. <li class="divider"></li>
  115. <li><a href="#" style="color:#ADDFFF;"><i class="glyphicon glyphicon-music"></i>&nbsp;&nbsp;LIGHT</a></li>
  116. <li class="divider"></li>
  117. <li><a href="#" style="color:#8128B5;"><i class="glyphicon glyphicon-music"></i>&nbsp;&nbsp;DARK</a></li>
  118. </ul>
  119. </div>
  120. </p>
  121. <hr />
  122. <p>
  123. <a href="#" class="btn btn-default btn-lg"><i class="glyphicon glyphicon-map-marker"></i>&nbsp;&nbsp;Changer la carte</a>
  124. </p>
  125. <hr />
  126. <p>
  127. <a href="play" class="btn btn-danger btn-lg"><i class="glyphicon glyphicon-remove"></i>&nbsp;&nbsp;Supprimer votre partie</a>
  128. </p>
  129. </div>
  130. </div>
  131. </div>
  132. <div class="col-lg-7">
  133. <div class="panel panel-default">
  134. <div class="panel-heading"><i class="glyphicon glyphicon-user"></i>&nbsp;&nbsp;<strong>Joueurs présents dans votre partie :</strong></div>
  135. <div class="panel-body">
  136. <table class="table table-striped table-hover ">
  137. <thead>
  138. <tr>
  139. <th></th>
  140. <th>Nom</th>
  141. <th><i class="glyphicon glyphicon-heart" style="color:red;"></i></th>
  142. <th><i class="glyphicon glyphicon-flash" style="color:#FFD700;"></i></th>
  143. <th><i class="glyphicon glyphicon-fire" style="color:#28b62c"></i></th>
  144. <th><i class="glyphicon glyphicon-fire" style="color:#158cba"></i></th>
  145. <th><i class="glyphicon glyphicon-fire" style="color:#ffd000"></i></th>
  146. <th><i class="glyphicon glyphicon-fire" style="color:#ff4136"></i></th>
  147. <th><i class="glyphicon glyphicon-fire" style="color:#ADDFFF"></i></th>
  148. <th><i class="glyphicon glyphicon-fire" style="color:#8128B5"></i></th>
  149. </tr>
  150. </thead>
  151. <tbody>
  152. <?php
  153. // nombre de gamers
  154. $f = 0;
  155. foreach(glob('*.xml') as $f) {$f+=1;}
  156. $nb_membres = count(glob('./medias/'.$hash.'/*.xml'));
  157. // liste des gamers
  158. $folder = "./medias/".$hash."/";
  159. $dossier = opendir($folder);
  160. while ($fichier = readdir($dossier))
  161. {
  162. if ($fichier != "." && $fichier != ".." && $fichier != "map.jpg" && $fichier != "soft.mp3" && $fichier != "tonic.mp3" && $fichier != "hard.mp3" && $fichier != "light.mp3" && $fichier != "dark.mp3")
  163. {
  164. $gamers = explode(".xml", $fichier);
  165. $xml = simplexml_load_file('./medias/'.$hash.'/'.$fichier);
  166. if (!isset($itemnb)) {
  167. $itemnb=0;
  168. } else {
  169. $itemnb++;
  170. }
  171. foreach($xml->entry as $entry) {
  172. echo '<tr class="active">
  173. <td><a href="#" class="btn btn-danger btn-xs"><i class="glyphicon glyphicon-trash"></i></a>&nbsp;&nbsp;<a href="./medias/'.$hash.'/'.$fichier.'" target="_blank" class="btn btn-success btn-xs"><i class="glyphicon glyphicon-export"></i></a></td>
  174. <td>'.$entry->nom.'</td>
  175. <td>'.$entry->hp.'</td>
  176. <td>'.$entry->xp.'</td>
  177. <td>'.$entry->ecos->verte.'</td>
  178. <td>'.$entry->ecos->bleue.'</td>
  179. <td>'.$entry->ecos->jaune.'</td>
  180. <td>'.$entry->ecos->rouge.'</td>
  181. <td>'.$entry->ecos->blanche.'</td>
  182. <td>'.$entry->ecos->noire.'</td>
  183. </tr>';
  184. }
  185. }
  186. }
  187. closedir($dossier);
  188. ?>
  189. </tbody>
  190. </table>
  191. </div>
  192. </div>
  193. </div>
  194. <div class="col-lg-1"></div>
  195. </div>
  196. <div class="modal fade" id="modal_login">
  197. <div class="modal-dialog">
  198. <div class="modal-content">
  199. <div class="modal-header">
  200. <a type="button" class="close" data-dismiss="modal" aria-hidden="true" style="color:black;">X</a>
  201. <h4 class="modal-title"><i class="glyphicon glyphicon-log-in"></i>&nbsp;&nbsp;CONNEXION</h4>
  202. </div>
  203. <div class="modal-body">
  204. <div class="form-group">
  205. <label class="control-label" for="focusedInput">Identifiant :</label>
  206. <input class="form-control" id="focusedInput" type="text">
  207. </div>
  208. <div class="form-group">
  209. <label class="control-label" for="focusedInput">Mot de passe :</label>
  210. <input class="form-control" id="focusedInput" type="password">
  211. </div>
  212. </div>
  213. <div class="modal-footer">
  214. <button type="button" class="btn btn-info">Connexion</button>
  215. </div>
  216. </div>
  217. </div>
  218. </div>
  219. <script src="./js/jquery-1.10.2.min.js"></script>
  220. <script src="./js/bootstrap.min.js"></script>
  221. <script src="./js/bootswatch.js"></script>
  222. </body>
  223. </html>