Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
 
 

551 Zeilen
26 KiB

  1. <?php include "header.php";
  2. $message[0]='
  3. <div class="col-lg-6 alert alert-dismissable alert-danger">
  4. <button type="button" class="close" data-dismiss="alert">X</button>
  5. <h4>Erreur !</h4>
  6. <p>Erreur !</p>';
  7. $message[1]='
  8. <div class="col-lg-6 alert alert-dismissable alert-success">
  9. <button type="button" class="close" data-dismiss="alert">X</button>
  10. <h4>C\'est bon !</h4>
  11. <p>Vous pouvez à présent vous connecter pour commencer à configurer votre partie.</p>';
  12. $message[2]='
  13. <div class="col-lg-6 alert alert-dismissable alert-warning">
  14. <button type="button" class="close" data-dismiss="alert">X</button>
  15. <h4>Hey !</h4>
  16. <p>Vous avez déjà un compte !</p>';
  17. $message[3]='
  18. <div class="col-lg-6 alert alert-dismissable alert-danger">
  19. <button type="button" class="close" data-dismiss="alert">X</button>
  20. <h4>Erreur !</h4>
  21. <p>Votre email/mot de passe est invalide !</p>';
  22. $message[4]='
  23. <div class="col-lg-6 alert alert-dismissable alert-info">
  24. <button type="button" class="close" data-dismiss="alert">X</button>
  25. <h4>Oups !</h4>
  26. <p>Vous devez vous connecter pour pouvoir jouer ;)</p>';
  27. $message[5]='
  28. <div class="col-lg-6 alert alert-dismissable alert-success">
  29. <button type="button" class="close" data-dismiss="alert">X</button>
  30. <h4>OK !</h4>
  31. <p>Votre carte est à jour !</p>';
  32. $message[6]='
  33. <div class="col-lg-6 alert alert-dismissable alert-danger">
  34. <button type="button" class="close" data-dismiss="alert">X</button>
  35. <h4>ERREUR !</h4>
  36. <p>Echec de mise à jour de votre carte. Seul les fichiers <strong>.jpg</strong> (10 Mo max) sont autorisés.</p>';
  37. $message[7]='
  38. <div class="col-lg-6 alert alert-dismissable alert-success">
  39. <button type="button" class="close" data-dismiss="alert">X</button>
  40. <h4>OK !</h4>
  41. <p>Joueur importé !</p>';
  42. $message[8]='
  43. <div class="col-lg-6 alert alert-dismissable alert-danger">
  44. <button type="button" class="close" data-dismiss="alert">X</button>
  45. <h4>ERREUR !</h4>
  46. <p>Echec à l\'importation du joueur. Seul les fichiers <strong>.xml</strong> (10 M max) sont autorisés.</p>';
  47. $message[9]='
  48. <div class="col-lg-6 alert alert-dismissable alert-success">
  49. <button type="button" class="close" data-dismiss="alert">X</button>
  50. <h4>OK !</h4>
  51. <p>Musique importé !</p>';
  52. $message[10]='
  53. <div class="col-lg-6 alert alert-dismissable alert-danger">
  54. <button type="button" class="close" data-dismiss="alert">X</button>
  55. <h4>ERREUR !</h4>
  56. <p>Echec à l\'importation de la musique. Seul les fichiers <strong>.mp3</strong> (100 M max) sont autorisés.</p>';
  57. ?>
  58. <!DOCTYPE html>
  59. <html lang="fr">
  60. <head>
  61. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  62. <title>EcoMonde</title>
  63. <meta name="viewport" content="width=device-width, initial-scale=1">
  64. <link rel="shortcut icon" href="./img/favicon.png" type="image/x-icon" />
  65. <link rel="stylesheet" href="./css/bootstrap.css" media="screen">
  66. <link rel="stylesheet" href="./css/bootswatch.min.css">
  67. <link rel="stylesheet" href="./css/ionicons.min.css">
  68. <link rel="stylesheet" href="./css/ecomonde.css">
  69. </head>
  70. <body>
  71. <div class="container-fluid">
  72. <div class="col-lg-1"></div>
  73. <div class="col-lg-3">
  74. <a href="index.php"><img class="img-responsive" src="./img/logo_0.png" alt="logo" /></a>
  75. </div>
  76. <div class="col-lg-6">
  77. <div class="navbar navbar-default">
  78. <div class="navbar-header">
  79. <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-responsive-collapse">
  80. <span class="icon-bar"></span>
  81. <span class="icon-bar"></span>
  82. <span class="icon-bar"></span>
  83. </button>
  84. </div>
  85. <div class="navbar-collapse collapse navbar-responsive-collapse">
  86. <ul class="nav navbar-nav">
  87. <li><a href="http://wiki.ecomonde.land" target="_blank"><i class="ionicons ion-android-book"></i>&nbsp;&nbsp;WIKI</a></li>
  88. <li><a href="https://github.com/heuzef/ecomonde" target="_blank"><i class="ionicons ion-social-github"></i>&nbsp;&nbsp;GITHUB</a></li>
  89. <li><a href="http://wiki.ecomonde.land/doku.php?id=wiki:a_propos" target="_blank"><i class="ionicons ion-information-circled"></i>&nbsp;&nbsp;A PROPOS</a></li>
  90. </ul>
  91. <ul class="nav navbar-nav navbar-right">
  92. <?php if($status != 0): ?>
  93. <?php echo '<img class="img-circle" src="http://gravatar.com/avatar/'.$hash.'?s=50" alt="gravatar" />'; ?>&nbsp;&nbsp;<strong><?php echo strtoupper($pseudo); ?></strong>
  94. &nbsp;&nbsp;
  95. <a data-toggle="modal" data-target="#modal_settings" class="btn btn-default btn-xs"><i class="ionicons ion-gear-b"></i>&nbsp;Paramètres</a>&nbsp;&nbsp;
  96. <a href="logout.php" class="btn btn-danger btn-xs"><i class="ionicons ion-power"></i></a>&nbsp;&nbsp;
  97. <?php elseif($status == 0): ?>
  98. <a class="btn btn-success btn-xs" data-toggle="modal" data-target="#register"><i class="ionicons ion-plus"></i>&nbsp;&nbsp;INSCRIPTION</a>
  99. <a class="btn btn-info btn-xs" data-toggle="modal" data-target="#modal_login"><i class="ionicons ion-power"></i>&nbsp;&nbsp;CONNEXION</a>
  100. <?php endif; ?>
  101. </ul>
  102. </div>
  103. </div>
  104. </div>
  105. <div class="col-lg-1"></div>
  106. </div>
  107. <hr />
  108. <?php if(isset($_GET["msg"])){?>
  109. <div class="container-fluid">
  110. <div class="col-lg-3"></div>
  111. <?php echo $message[$_GET["msg"]]; ?>
  112. </div>
  113. <div class="col-lg-3"></div>
  114. </div>
  115. <?php } else {} ?>
  116. <?php if($status != 0):?>
  117. <div class="container-fluid">
  118. <div class="col-lg-1"></div>
  119. <div class="col-lg-3">
  120. <div class="panel panel-default">
  121. <div class="panel-heading"><i class="ionicons ion-gear-a"></i>&nbsp;&nbsp;<strong>Configurer votre partie</strong></div>
  122. <div class="panel-body">
  123. <p>
  124. <a href="play" class="btn btn-info btn-lg" target="_blank"><i class="ionicons ion-play"></i>&nbsp;&nbsp;Lancer votre partie</a>
  125. <p>
  126. <hr />
  127. <p>
  128. <a data-toggle="modal" data-target="#modal_new_player" class="btn btn-default btn-lg"><i class="ionicons ion-person-add"></i>&nbsp;&nbsp;Créer un joueur</a>
  129. </p>
  130. <hr />
  131. <p>
  132. <a data-toggle="modal" data-target="#modal_import_player" class="btn btn-default btn-lg"><i class="glyphicon glyphicon-import"></i>&nbsp;&nbsp;Importer un joueur (.XML)</a>
  133. </p>
  134. <hr />
  135. <p>
  136. <div class="btn-group">
  137. <a href="#" class="btn btn-default btn-lg dropdown-toggle" data-toggle="dropdown">
  138. <i class="ionicons ion-music-note"></i>&nbsp;&nbsp;Changer les musiques
  139. <span class="caret"></span>
  140. </a>
  141. <ul class="dropdown-menu">
  142. <li><a data-toggle="modal" data-target="#modal_change_music_soft" style="color:#CCC;" class="btn btn-default"><i class="ionicons ion-music-note"></i>&nbsp;&nbsp;SOFT</a></li>
  143. <li><a data-toggle="modal" data-target="#modal_change_music_tonic" style="color:#AAA;" class="btn btn-default"><i class="ionicons ion-music-note"></i>&nbsp;&nbsp;TONIC</a></li>
  144. <li><a data-toggle="modal" data-target="#modal_change_music_hard" style="color:#000;" class="btn btn-default"><i class="ionicons ion-music-note"></i>&nbsp;&nbsp;HARD</a></li>
  145. <li><a data-toggle="modal" data-target="#modal_change_music_light" style="color:#ADDFFF;" class="btn btn-default"><i class="ionicons ion-music-note"></i>&nbsp;&nbsp;LIGHT</a></li>
  146. <li><a data-toggle="modal" data-target="#modal_change_music_dark" style="color:#8128B5;" class="btn btn-default"><i class="ionicons ion-music-note"></i>&nbsp;&nbsp;DARK</a></li>
  147. </ul>
  148. </div>
  149. </p>
  150. <hr />
  151. <p>
  152. <a data-toggle="modal" data-target="#modal_change_map" class="btn btn-default btn-lg"><i class="ionicons ion-map"></i>&nbsp;&nbsp;Changer la carte</a>
  153. </p>
  154. <hr />
  155. <h1><i class="glyphicon glyphicon-phone"></i>Affichage téléphone</h1>
  156. <img class="img-responsive" src="https://chart.googleapis.com/chart?chs=300x300&cht=qr&chl=http%3A%2F%2Fwww.ecomonde.land%2Fmedias/<?php echo $hash; ?>&choe=UTF-8" />
  157. <a href="https://play.google.com/store/apps/details?id=com.google.zxing.client.android&hl=fr_FR" target="_blank">
  158. <img alt="Barcode Scanner" src="https://lh6.ggpht.com/os72icmFlDtbxpYbZCP-v6kOereSLGDmlKsBl1ISTPdgbcpoc4rSIuXDuoDECvgcvoFJ=w300-rw" height="60px" /><img alt="Android app on Google Play" src="https://developer.android.com/images/brand/fr_app_rgb_wo_45.png" />
  159. </a>
  160. </div>
  161. </div>
  162. </div>
  163. <div class="col-lg-7">
  164. <div class="panel panel-default">
  165. <div class="panel-heading"><i class="ionicons ion-person"></i>&nbsp;&nbsp;<strong>Joueurs présents dans votre partie :</strong></div>
  166. <div class="panel-body">
  167. <table class="table table-striped table-hover ">
  168. <thead>
  169. <tr>
  170. <th></th>
  171. <th>Nom</th>
  172. <th><i class="ionicons ion-heart" style="color:red;"></i></th>
  173. <th><i class="ionicons ion-flash" style="color:#FFD700;"></i></th>
  174. <th><i class="ionicons ion-egg" style="color:brown"></i></th>
  175. <th><i class="ionicons ion-fireball" style="color:grey"></i></th>
  176. <th><i class="ionicons ion-fireball" style="color:#ADDFFF"></i></th>
  177. <th><i class="ionicons ion-fireball" style="color:#8128B5"></i></th>
  178. <th><i class="ionicons ion-android-note" style="color:#000"></i></th>
  179. </tr>
  180. </thead>
  181. <tbody>
  182. <?php
  183. // nombre de gamers
  184. $f = 0;
  185. foreach(glob('*.xml') as $f) {$f+=1;}
  186. $nb_membres = count(glob('./medias/'.$hash.'/*.xml'));
  187. // liste des gamers
  188. $folder = "./medias/".$hash."/";
  189. $dossier = opendir($folder);
  190. while ($fichier = readdir($dossier))
  191. {
  192. if ($fichier != "." && $fichier != ".." && $fichier != "map.jpg" && $fichier != "soft.mp3" && $fichier != "tonic.mp3" && $fichier != "hard.mp3" && $fichier != "light.mp3" && $fichier != "dark.mp3" && $fichier != "enemy")
  193. {
  194. $gamers = explode(".xml", $fichier);
  195. $xml = simplexml_load_file('./medias/'.$hash.'/'.$fichier);
  196. if (!isset($itemnb)) {
  197. $itemnb=0;
  198. } else {
  199. $itemnb++;
  200. }
  201. foreach($xml->entry as $entry) {
  202. $somme_ecos=$entry->ecos->verte+$entry->ecos->bleue+$entry->ecos->jaune+$entry->ecos->rouge;
  203. echo '<tr class="active">
  204. <td><a href="del.php?player='.$fichier.'" class="btn btn-danger btn-xs"><i class="ionicons ion-trash-b"></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>
  205. <td><strong>['.$entry->level.']</strong>&nbsp;'.$entry->nom.'</td>
  206. <td>'.$entry->hp.'</td>
  207. <td>'.$entry->xp.'</td>
  208. <td>'.$entry->money.'</td>
  209. <td>'.$somme_ecos.'</td>
  210. <td>'.$entry->ecos->blanche.'</td>
  211. <td>'.$entry->ecos->noire.'</td>
  212. <td>'.substr($entry->notes, 0, 40).'...</td>
  213. </tr>';
  214. }
  215. }
  216. }
  217. closedir($dossier);
  218. ?>
  219. </tbody>
  220. </table>
  221. </div>
  222. </div>
  223. </div>
  224. <div class="col-lg-1"></div>
  225. </div>
  226. <div class="modal fade" id="modal_new_player">
  227. <div class="modal-dialog">
  228. <div class="modal-content">
  229. <form class="form-horizontal well" role="form" method="post" action="new_player.php" enctype="multipart/form-data">
  230. <div class="modal-header">
  231. <a type="button" class="close" data-dismiss="modal" aria-hidden="true" style="color:black;">X</a>
  232. <h4 class="modal-title"><i class="ionicons ion-person-add"></i>&nbsp;&nbsp;NOUVEAU JOUEUR</h4>
  233. </div>
  234. <div class="modal-body">
  235. <div class="form-group">
  236. <label class="control-label" for="focusedInput">Nom :</label>
  237. <input class="form-control" id="focusedInput" type="text" name="player_name" maxlength="12" value="derpy">
  238. </div>
  239. <div class="form-group">
  240. <label class="control-label" for="focusedInput">Nombre d'XP</label>
  241. <div class="input-group">
  242. <span class="input-group-addon"><i class="ionicons ion-flash" style="color:#FFD700;";></i></span>
  243. <select class="form-control" id="focusedInput" name="player_xp">
  244. <option>0</option>
  245. <option>10</option>
  246. <option>50</option>
  247. <option>100</option>
  248. <option>999</option>
  249. </select>
  250. </div>
  251. </div>
  252. <div class="form-group">
  253. <label class="control-label" for="focusedInput">Nombre d'Orbes</label>
  254. <div class="input-group">
  255. <span class="input-group-addon"><i class="ionicons ion-egg" style="color:brown;";></i></span>
  256. <select class="form-control" id="focusedInput" name="player_money">
  257. <option>0</option>
  258. <option>10</option>
  259. <option>50</option>
  260. <option>100</option>
  261. <option>999</option>
  262. </select>
  263. </div>
  264. </div>
  265. </div>
  266. <div class="modal-footer">
  267. <button type="submit" class="btn btn-info">Création du joueur</button>
  268. </div>
  269. </form>
  270. </div>
  271. </div>
  272. </div>
  273. <div class="modal fade" id="modal_settings">
  274. <div class="modal-dialog">
  275. <div class="modal-content">
  276. <form class="form-horizontal well" role="form" method="post" action="change_settings.php" enctype="multipart/form-data">
  277. <div class="modal-header">
  278. <a type="button" class="close" data-dismiss="modal" aria-hidden="true" style="color:black;">X</a>
  279. <h4 class="modal-title"><i class="ionicons ion-gear-b"></i>&nbsp;&nbsp;PARAMÈTRES DU COMPTE</h4>
  280. </div>
  281. <div class="modal-body">
  282. <img class="img-circle" src="http://gravatar.com/avatar/<?php echo $hash; ?>?s=50" alt="gravatar" />&nbsp;<i class="ionicons ion-arrow-right-a"></i>&nbsp;<strong>Votre avatar est automatiquement synchronisé avec le service <a href="http://fr.gravatar.com/" target="_blank">Gravatar</a>.</strong>
  283. <hr />
  284. <label class="control-label" for="email">Email</label>
  285. <input class="form-control" id="email" type="text" placeholder="<?php echo $email; ?>" disabled="">
  286. <label class="control-label" for="focusedInput">Nouveau pseudo :</label>
  287. <input class="form-control" id="focusedInput" type="texte" name="pseudo" value="<?php echo $pseudo; ?>">
  288. <label class="control-label" for="focusedInput">Nouveau mot de passe :</label>
  289. <input class="form-control" id="focusedInput" type="password" name="password">
  290. <input type="hidden" name="email" value="<?php echo $email; ?>">
  291. <input type="hidden" name="id" value="<?php echo $id; ?>">
  292. </div>
  293. <div class="modal-footer">
  294. <button type="submit" class="btn btn-info">Mise à jour du compte</button>
  295. </div>
  296. </form>
  297. <hr />
  298. <p align="center">
  299. <strong>Attention, en cliquant sur ce bouton, vous entraînez la suppression complète de votre compte ainsi que de tous vos médias, pensez à exporter vos fiches personnages avant d'appliquer cette sentence irrévocable de la mort qui tue !</strong><br />
  300. <a href="delete_account.php" class="btn btn-danger btn-xs"><i class="ionicons ion-alert-circled"></i>&nbsp;SUPPRIMER VOTRE COMPTE&nbsp;<i class="ionicons ion-alert-circled"></i></a>
  301. </p>
  302. </div>
  303. </div>
  304. </div>
  305. <div class="modal fade" id="modal_change_map">
  306. <div class="modal-dialog">
  307. <div class="modal-content">
  308. <form class="form-horizontal well" role="form" method="post" action="change_map.php" enctype="multipart/form-data">
  309. <div class="modal-header">
  310. <a type="button" class="close" data-dismiss="modal" aria-hidden="true" style="color:black;">X</a>
  311. <h4 class="modal-title"><i class="ionicons ion-map"></i>&nbsp;&nbsp;CHANGER LA CARTE</h4>
  312. </div>
  313. <div class="modal-body">
  314. <input type="hidden" name="MAX_FILE_SIZE" value="10048576" />
  315. <label class="control-label" for="focusedInput">Seul les fichiers <strong>.jpg</strong> (10 Mo max) sont autorisés.</label>
  316. <input class="form-control" id="focusedInput" type="file" name="userfile">
  317. </div>
  318. <div class="modal-footer">
  319. <button type="submit" class="btn btn-info">Mise à jour de la carte</button>
  320. </div>
  321. </form>
  322. </div>
  323. </div>
  324. </div>
  325. <div class="modal fade" id="modal_import_player">
  326. <div class="modal-dialog">
  327. <div class="modal-content">
  328. <form class="form-horizontal well" role="form" method="post" action="import_player.php" enctype="multipart/form-data">
  329. <div class="modal-header">
  330. <a type="button" class="close" data-dismiss="modal" aria-hidden="true" style="color:black;">X</a>
  331. <h4 class="modal-title"><i class="glyphicon glyphicon-import"></i>&nbsp;&nbsp;IMPORTER UN JOUEUR</h4>
  332. </div>
  333. <div class="modal-body">
  334. <input type="hidden" name="MAX_FILE_SIZE" value="1004857" />
  335. <label class="control-label" for="focusedInput">Seul les fichiers <strong>.xml</strong> (1 Mo max) sont autorisés.</label>
  336. <input class="form-control" id="focusedInput" type="file" name="userfile">
  337. </div>
  338. <div class="modal-footer">
  339. <button type="submit" class="btn btn-info">Importer le joueur</button>
  340. </div>
  341. </form>
  342. </div>
  343. </div>
  344. </div>
  345. <div class="modal fade" id="modal_change_music_soft">
  346. <div class="modal-dialog">
  347. <div class="modal-content">
  348. <form class="form-horizontal well" role="form" method="post" action="change_music_soft.php" enctype="multipart/form-data">
  349. <div class="modal-header">
  350. <a type="button" class="close" data-dismiss="modal" aria-hidden="true" style="color:black;">X</a>
  351. <h4 class="modal-title"><i class="ionicons ion-music-note"></i>&nbsp;&nbsp;Changer la musique SOFT</h4>
  352. </div>
  353. <div class="modal-body">
  354. <input type="hidden" name="MAX_FILE_SIZE" value="100485766" />
  355. <label class="control-label" for="focusedInput">Seul les fichiers <strong>.mp3</strong> (100 Mo max) sont autorisés.</label>
  356. <input class="form-control" id="focusedInput" type="file" name="userfile">
  357. </div>
  358. <div class="modal-footer">
  359. <button type="submit" class="btn btn-info">Changer la musique SOFT</button>
  360. </div>
  361. </form>
  362. </div>
  363. </div>
  364. </div>
  365. <div class="modal fade" id="modal_change_music_tonic">
  366. <div class="modal-dialog">
  367. <div class="modal-content">
  368. <form class="form-horizontal well" role="form" method="post" action="change_music_tonic.php" enctype="multipart/form-data">
  369. <div class="modal-header">
  370. <a type="button" class="close" data-dismiss="modal" aria-hidden="true" style="color:black;">X</a>
  371. <h4 class="modal-title"><i class="ionicons ion-music-note"></i>&nbsp;&nbsp;Changer la musique TONIC</h4>
  372. </div>
  373. <div class="modal-body">
  374. <input type="hidden" name="MAX_FILE_SIZE" value="100485766" />
  375. <label class="control-label" for="focusedInput">Seul les fichiers <strong>.mp3</strong> (100 Mo max) sont autorisés.</label>
  376. <input class="form-control" id="focusedInput" type="file" name="userfile">
  377. </div>
  378. <div class="modal-footer">
  379. <button type="submit" class="btn btn-info">Changer la musique TONIC</button>
  380. </div>
  381. </form>
  382. </div>
  383. </div>
  384. </div>
  385. <div class="modal fade" id="modal_change_music_hard">
  386. <div class="modal-dialog">
  387. <div class="modal-content">
  388. <form class="form-horizontal well" role="form" method="post" action="change_music_hard.php" enctype="multipart/form-data">
  389. <div class="modal-header">
  390. <a type="button" class="close" data-dismiss="modal" aria-hidden="true" style="color:black;">X</a>
  391. <h4 class="modal-title"><i class="ionicons ion-music-note"></i>&nbsp;&nbsp;Changer la musique HARD</h4>
  392. </div>
  393. <div class="modal-body">
  394. <input type="hidden" name="MAX_FILE_SIZE" value="100485766" />
  395. <label class="control-label" for="focusedInput">Seul les fichiers <strong>.mp3</strong> (100 Mo max) sont autorisés.</label>
  396. <input class="form-control" id="focusedInput" type="file" name="userfile">
  397. </div>
  398. <div class="modal-footer">
  399. <button type="submit" class="btn btn-info">Changer la musique HARD</button>
  400. </div>
  401. </form>
  402. </div>
  403. </div>
  404. </div>
  405. <div class="modal fade" id="modal_change_music_light">
  406. <div class="modal-dialog">
  407. <div class="modal-content">
  408. <form class="form-horizontal well" role="form" method="post" action="change_music_light.php" enctype="multipart/form-data">
  409. <div class="modal-header">
  410. <a type="button" class="close" data-dismiss="modal" aria-hidden="true" style="color:black;">X</a>
  411. <h4 class="modal-title"><i class="ionicons ion-music-note"></i>&nbsp;&nbsp;Changer la musique LIGHT</h4>
  412. </div>
  413. <div class="modal-body">
  414. <input type="hidden" name="MAX_FILE_SIZE" value="100485766" />
  415. <label class="control-label" for="focusedInput">Seul les fichiers <strong>.mp3</strong> (100 Mo max) sont autorisés.</label>
  416. <input class="form-control" id="focusedInput" type="file" name="userfile">
  417. </div>
  418. <div class="modal-footer">
  419. <button type="submit" class="btn btn-info">Changer la musique LIGHT</button>
  420. </div>
  421. </form>
  422. </div>
  423. </div>
  424. </div>
  425. <div class="modal fade" id="modal_change_music_dark">
  426. <div class="modal-dialog">
  427. <div class="modal-content">
  428. <form class="form-horizontal well" role="form" method="post" action="change_music_dark.php" enctype="multipart/form-data">
  429. <div class="modal-header">
  430. <a type="button" class="close" data-dismiss="modal" aria-hidden="true" style="color:black;">X</a>
  431. <h4 class="modal-title"><i class="ionicons ion-music-note"></i>&nbsp;&nbsp;Changer la musique DARK</h4>
  432. </div>
  433. <div class="modal-body">
  434. <input type="hidden" name="MAX_FILE_SIZE" value="100485766" />
  435. <label class="control-label" for="focusedInput">Seul les fichiers <strong>.mp3</strong> (100 Mo max) sont autorisés.</label>
  436. <input class="form-control" id="focusedInput" type="file" name="userfile">
  437. </div>
  438. <div class="modal-footer">
  439. <button type="submit" class="btn btn-info">Changer la musique DARK</button>
  440. </div>
  441. </form>
  442. </div>
  443. </div>
  444. </div>
  445. <?php elseif($status == 0): ?>
  446. <div class="container-fluid">
  447. <div class="col-lg-1"></div>
  448. <div class="col-lg-5">
  449. <h2>Présentation</h2>
  450. <p><strong>EcoMonde est un Jeu de Rôle d'aventure interactif.</strong></p>
  451. <p class="text-success">Celui-ci dispose d'une interface de jeu permettant au Maître du Jeu de contrôler la partie directement sans avoir besoin de matériel.</p>
  452. <p class="text-primary">Le jeu ne requiert qu'un PC relié à internet et de quelques dés. Tout est automatisé.</p>
  453. <p class="text-warning">Le Maître du Jeu peut ensuite créer sa partie en s'appuyant sur tous les outils existants.</p>
  454. <p class="text-danger">Un&nbsp;&nbsp;<a href="http://wiki.ecomonde.land" target="_blank"><i class="ionicons ion-android-book"></i>&nbsp;&nbsp;WIKI</a>&nbsp;&nbsp;est à disposition pour un plus grand partage des ressources.</p>
  455. </div>
  456. <div class="col-lg-5">
  457. <iframe width="640" height="360" src="//www.youtube-nocookie.com/embed/sxPweEzjDaY?rel=0&amp;showinfo=0" frameborder="0" allowfullscreen></iframe>
  458. </div>
  459. <div class="col-lg-1"></div>
  460. </div>
  461. <div class="modal fade" id="modal_login">
  462. <div class="modal-dialog">
  463. <div class="modal-content">
  464. <form class="form-horizontal well" role="form" method="post" action="session.php" enctype="multipart/form-data">
  465. <div class="modal-header">
  466. <a type="button" class="close" data-dismiss="modal" aria-hidden="true" style="color:black;">X</a>
  467. <h4 class="modal-title"><i class="ionicons ion-power"></i>&nbsp;&nbsp;CONNEXION</h4>
  468. </div>
  469. <div class="modal-body">
  470. <div class="form-group">
  471. <label class="control-label" for="focusedInput">Email :</label>
  472. <input class="form-control" id="focusedInput" type="text" name="email">
  473. </div>
  474. <div class="form-group">
  475. <label class="control-label" for="focusedInput">Mot de passe :</label>
  476. <input class="form-control" id="focusedInput" type="password" name="password">
  477. </div>
  478. </div>
  479. <div class="modal-footer">
  480. <a href="mailto:contact@heuzef.com?subject=Contact%20depuis%20heuzef.com" onclick="window.open('https://mail.google.com/mail/?view=cm&amp;tf=1&amp;to=contact@heuzef.com&amp;cc=&amp;bcc=&amp;su=[EcoMonde]%20Probleme%20avec%20mon%20compte&amp;body=Bonjour,','_blank');return false;">Un problème avec votre compte ?</a>
  481. &nbsp;&nbsp;<button type="submit" class="btn btn-info">Connexion</button>
  482. </div>
  483. </form>
  484. </div>
  485. </div>
  486. </div>
  487. <div class="modal fade" id="register">
  488. <div class="modal-dialog">
  489. <div class="modal-content">
  490. <form class="form-horizontal well" role="form" method="post" action="register.php" enctype="multipart/form-data">
  491. <div class="modal-header">
  492. <a type="button" class="close" data-dismiss="modal" aria-hidden="true" style="color:black;">X</a>
  493. <h4 class="modal-title"><i class="ionicons ion-plus"></i>&nbsp;&nbsp;INSCRIPTION</h4>
  494. </div>
  495. <div class="modal-body">
  496. <div class="form-group">
  497. <label class="control-label" for="focusedInput">Pseudo :</label>
  498. <input class="form-control" id="focusedInput" type="text" name="pseudo">
  499. </div>
  500. <div class="form-group">
  501. <label class="control-label" for="focusedInput">E-mail :</label>
  502. <input class="form-control" id="focusedInput" type="text" name="email">
  503. </div>
  504. <div class="form-group">
  505. <label class="control-label" for="focusedInput">Mot de passe :</label>
  506. <input class="form-control" id="focusedInput" type="password" name="password">
  507. </div>
  508. </div>
  509. <div class="modal-footer">
  510. &nbsp;&nbsp;<button type="submit" class="btn btn-primary"><i class="ionicons ion-checkmark"></i>&nbsp;&nbsp;OK</button>
  511. </div>
  512. </form>
  513. </div>
  514. </div>
  515. </div>
  516. <?php endif; ?>
  517. <script>
  518. (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  519. (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  520. m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  521. })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
  522. ga('create', 'UA-57585229-1', 'auto');
  523. ga('send', 'pageview');
  524. </script>
  525. <script src="./js/jquery-1.10.2.min.js"></script>
  526. <script src="./js/bootstrap.min.js"></script>
  527. <script src="./js/bootswatch.js"></script>
  528. </body>
  529. </html>