Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 
 

592 wiersze
28 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. $message[11]='
  58. <div class="col-lg-6 alert alert-dismissable alert-success">
  59. <button type="button" class="close" data-dismiss="alert">X</button>
  60. <h4>OK !</h4>
  61. <p>Mise à jour réussie !</p>
  62. <p><strong>Version : '.$version.'</strong></p>';
  63. ?>
  64. <!DOCTYPE html>
  65. <html lang="fr">
  66. <head>
  67. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  68. <title>EcoMonde</title>
  69. <meta name="viewport" content="width=device-width, initial-scale=1">
  70. <link rel="shortcut icon" href="./img/favicon.png" type="image/x-icon" />
  71. <link rel="stylesheet" href="./css/bootstrap.css" media="screen">
  72. <link rel="stylesheet" href="./css/bootswatch.min.css">
  73. <link rel="stylesheet" href="./css/ionicons.min.css">
  74. <link rel="stylesheet" href="./css/ecomonde.css">
  75. </head>
  76. <body>
  77. <div class="container-fluid">
  78. <div class="col-lg-1"></div>
  79. <div class="col-lg-3">
  80. <a href="index.php"><img class="img-responsive" src="./img/logo_0.png" alt="logo" /></a>
  81. </div>
  82. <div class="col-lg-6">
  83. <div class="navbar navbar-default">
  84. <div class="navbar-header">
  85. <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-responsive-collapse">
  86. <span class="icon-bar"></span>
  87. <span class="icon-bar"></span>
  88. <span class="icon-bar"></span>
  89. </button>
  90. </div>
  91. <div class="navbar-collapse collapse navbar-responsive-collapse">
  92. <ul class="nav navbar-nav">
  93. <li><a href="http://wiki.ecomonde.land" target="_blank"><i class="ionicons ion-android-book"></i>&nbsp;&nbsp;WIKI</a></li>
  94. <li><a href="https://github.com/heuzef/ecomonde" target="_blank"><i class="ionicons ion-social-github"></i>&nbsp;&nbsp;GITHUB</a></li>
  95. <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>
  96. </ul>
  97. <ul class="nav navbar-nav navbar-right">
  98. <?php if($status != 0): ?>
  99. <?php if ($version != $latest_commit) {
  100. echo('<a data-toggle="modal" data-target="#modal_update" class="btn btn-success btn-sm"><i class="ionicons ion-loop"></i>&nbsp;Mise à jour disponible !</a>&nbsp;&nbsp;');
  101. } ?>
  102. <?php echo '<img class="img-circle" src="http://gravatar.com/avatar/'.$hash.'?s=50" alt="gravatar" />'; ?>&nbsp;&nbsp;<strong><?php echo strtoupper($pseudo); ?></strong>
  103. &nbsp;&nbsp;
  104. <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;
  105. <a href="logout.php" class="btn btn-danger btn-xs"><i class="ionicons ion-power"></i></a>&nbsp;&nbsp;
  106. <?php elseif($status == 0): ?>
  107. <a class="btn btn-success btn-xs" data-toggle="modal" data-target="#register"><i class="ionicons ion-plus"></i>&nbsp;&nbsp;INSCRIPTION</a>
  108. <a class="btn btn-info btn-xs" data-toggle="modal" data-target="#modal_login"><i class="ionicons ion-power"></i>&nbsp;&nbsp;CONNEXION</a>
  109. <?php endif; ?>
  110. </ul>
  111. </div>
  112. </div>
  113. </div>
  114. <div class="col-lg-1"></div>
  115. </div>
  116. <hr />
  117. <?php if(isset($_GET["msg"])){?>
  118. <div class="container-fluid">
  119. <div class="col-lg-3"></div>
  120. <?php echo $message[$_GET["msg"]]; ?>
  121. </div>
  122. <div class="col-lg-3"></div>
  123. </div>
  124. <?php } else {} ?>
  125. <?php if($status != 0):?>
  126. <div class="container-fluid">
  127. <div class="col-lg-1"></div>
  128. <div class="col-lg-3">
  129. <div class="panel panel-default">
  130. <div class="panel-heading"><i class="ionicons ion-gear-a"></i>&nbsp;&nbsp;<strong>Configurer votre partie</strong></div>
  131. <div class="panel-body">
  132. <p>
  133. <a href="play" class="btn btn-info btn-lg" target="_blank"><i class="ionicons ion-play"></i>&nbsp;&nbsp;Lancer votre partie</a>
  134. <p>
  135. <hr />
  136. <p>
  137. <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>
  138. </p>
  139. <hr />
  140. <p>
  141. <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>
  142. </p>
  143. <hr />
  144. <p>
  145. <div class="btn-group">
  146. <a href="#" class="btn btn-default btn-lg dropdown-toggle" data-toggle="dropdown">
  147. <i class="ionicons ion-music-note"></i>&nbsp;&nbsp;Changer les musiques
  148. <span class="caret"></span>
  149. </a>
  150. <ul class="dropdown-menu">
  151. <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>
  152. <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>
  153. <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>
  154. <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>
  155. <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>
  156. </ul>
  157. </div>
  158. </p>
  159. <hr />
  160. <p>
  161. <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>
  162. </p>
  163. <hr />
  164. <p>
  165. <a href="./export_data.php" class="btn btn-info btn-lg"><i class="glyphicon glyphicon-download"></i>&nbsp;&nbsp;Exporter vos médias</a>
  166. </p>
  167. <hr />
  168. <h1><i class="glyphicon glyphicon-phone"></i>Affichage téléphone</h1>
  169. <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" />
  170. <div class="form-group">
  171. <input class="form-control input-sm" type="text" value="http://www.ecomonde.land/medias/<?php echo $hash; ?>">
  172. </div>
  173. </div>
  174. </div>
  175. </div>
  176. <div class="col-lg-7">
  177. <div class="panel panel-default">
  178. <div class="panel-heading"><i class="ionicons ion-person"></i>&nbsp;&nbsp;<strong>Joueurs présents dans votre partie :</strong></div>
  179. <div class="panel-body">
  180. <table class="table table-striped table-hover ">
  181. <thead>
  182. <tr>
  183. <th></th>
  184. <th>Nom</th>
  185. <th><i class="ionicons ion-heart" style="color:red;"></i></th>
  186. <th><i class="ionicons ion-flash" style="color:#FFD700;"></i></th>
  187. <th><i class="ionicons ion-egg" style="color:brown"></i></th>
  188. <th><i class="ionicons ion-fireball" style="color:grey"></i></th>
  189. <th><i class="ionicons ion-fireball" style="color:#ADDFFF"></i></th>
  190. <th><i class="ionicons ion-fireball" style="color:#8128B5"></i></th>
  191. <th><i class="ionicons ion-android-note" style="color:#000"></i></th>
  192. </tr>
  193. </thead>
  194. <tbody>
  195. <?php
  196. // nombre de gamers
  197. $f = 0;
  198. foreach(glob('*.xml') as $f) {$f+=1;}
  199. $nb_membres = count(glob('./medias/'.$hash.'/*.xml'));
  200. // liste des gamers
  201. $folder = "./medias/".$hash."/";
  202. $dossier = opendir($folder);
  203. while ($fichier = readdir($dossier))
  204. {
  205. if ($fichier != "." && $fichier != ".." && $fichier != "map.jpg" && $fichier != "soft.mp3" && $fichier != "tonic.mp3" && $fichier != "hard.mp3" && $fichier != "light.mp3" && $fichier != "dark.mp3" && $fichier != "enemy")
  206. {
  207. $gamers = explode(".xml", $fichier);
  208. $xml = simplexml_load_file('./medias/'.$hash.'/'.$fichier);
  209. if (!isset($itemnb)) {
  210. $itemnb=0;
  211. } else {
  212. $itemnb++;
  213. }
  214. foreach($xml->entry as $entry) {
  215. $somme_ecos=$entry->ecos->verte+$entry->ecos->bleue+$entry->ecos->jaune+$entry->ecos->rouge;
  216. echo '<tr class="active">
  217. <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>
  218. <td><strong>['.$entry->level.']</strong>&nbsp;'.$entry->nom.'</td>
  219. <td>'.$entry->hp.'</td>
  220. <td>'.$entry->xp.'</td>
  221. <td>'.$entry->money.'</td>
  222. <td>'.$somme_ecos.'</td>
  223. <td>'.$entry->ecos->blanche.'</td>
  224. <td>'.$entry->ecos->noire.'</td>
  225. <td>'.substr($entry->notes, 0, 40).'...</td>
  226. </tr>';
  227. }
  228. }
  229. }
  230. closedir($dossier);
  231. ?>
  232. </tbody>
  233. </table>
  234. </div>
  235. </div>
  236. </div>
  237. <div class="col-lg-1"></div>
  238. </div>
  239. <div class="modal fade" id="modal_new_player">
  240. <div class="modal-dialog">
  241. <div class="modal-content">
  242. <form class="form-horizontal well" role="form" method="post" action="new_player.php" enctype="multipart/form-data">
  243. <div class="modal-header">
  244. <a type="button" class="close" data-dismiss="modal" aria-hidden="true" style="color:black;">X</a>
  245. <h4 class="modal-title"><i class="ionicons ion-person-add"></i>&nbsp;&nbsp;NOUVEAU JOUEUR</h4>
  246. </div>
  247. <div class="modal-body">
  248. <div class="form-group">
  249. <label class="control-label" for="focusedInput">Nom :</label>
  250. <input class="form-control" id="focusedInput" type="text" name="player_name" maxlength="12" value="derpy">
  251. </div>
  252. <div class="form-group">
  253. <label class="control-label" for="focusedInput">Nombre d'XP</label>
  254. <div class="input-group">
  255. <span class="input-group-addon"><i class="ionicons ion-flash" style="color:#FFD700;";></i></span>
  256. <select class="form-control" id="focusedInput" name="player_xp">
  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 class="form-group">
  266. <label class="control-label" for="focusedInput">Nombre d'Orbes</label>
  267. <div class="input-group">
  268. <span class="input-group-addon"><i class="ionicons ion-egg" style="color:brown;";></i></span>
  269. <select class="form-control" id="focusedInput" name="player_money">
  270. <option>0</option>
  271. <option>1</option>
  272. <option>2</option>
  273. <option>3</option>
  274. <option>4</option>
  275. <option>5</option>
  276. <option>6</option>
  277. <option>7</option>
  278. <option>8</option>
  279. <option>9</option>
  280. <option>10</option>
  281. </select>
  282. </div>
  283. </div>
  284. </div>
  285. <div class="modal-footer">
  286. <button type="submit" class="btn btn-info">Création du joueur</button>
  287. </div>
  288. </form>
  289. </div>
  290. </div>
  291. </div>
  292. <div class="modal fade" id="modal_settings">
  293. <div class="modal-dialog">
  294. <div class="modal-content">
  295. <form class="form-horizontal well" role="form" method="post" action="change_settings.php" enctype="multipart/form-data">
  296. <div class="modal-header">
  297. <a type="button" class="close" data-dismiss="modal" aria-hidden="true" style="color:black;">X</a>
  298. <h4 class="modal-title"><i class="ionicons ion-gear-b"></i>&nbsp;&nbsp;PARAMÈTRES DU COMPTE</h4>
  299. </div>
  300. <div class="modal-body">
  301. <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>
  302. <hr />
  303. <label class="control-label" for="email">Email</label>
  304. <input class="form-control" id="email" type="text" placeholder="<?php echo $email; ?>" disabled="">
  305. <label class="control-label" for="focusedInput">Nouveau pseudo :</label>
  306. <input class="form-control" id="focusedInput" type="texte" name="pseudo" value="<?php echo $pseudo; ?>">
  307. <label class="control-label" for="focusedInput">Nouveau mot de passe :</label>
  308. <input class="form-control" id="focusedInput" type="password" name="password">
  309. <input type="hidden" name="email" value="<?php echo $email; ?>">
  310. <input type="hidden" name="id" value="<?php echo $id; ?>">
  311. </div>
  312. <div class="modal-footer">
  313. <button type="submit" class="btn btn-info">Modifier le compte</button>
  314. </div>
  315. </form>
  316. <hr />
  317. <p align="center">
  318. <strong>Attention, en cliquant sur ce bouton, vous entraînez la suppression complète de votre compte, pensez à <a href="export_data.php">exporter vos médias</a> avant d'appliquer cette sentence irrévocable de la mort qui tue !</strong><br />
  319. <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>
  320. </p>
  321. </div>
  322. </div>
  323. </div>
  324. <div class="modal fade" id="modal_update">
  325. <div class="modal-dialog">
  326. <div class="modal-content">
  327. <form class="form-horizontal well" role="form" method="post" action="update.php" enctype="multipart/form-data">
  328. <div class="modal-header">
  329. <a type="button" class="close" data-dismiss="modal" aria-hidden="true" style="color:black;">X</a>
  330. <h4 class="modal-title"><i class="ionicons ion-loop"></i>&nbsp;&nbsp;MISE A JOUR DU COMPTE</h4>
  331. </div>
  332. <div class="modal-body">
  333. <h3>De nouvelles mises à jour sont disponibles !</h3>
  334. <p>Attention, la mise à jour de votre compte provoque sa réinitialisation, pensez à <a href="export_data.php">exporter vos médias</a> avant d'appliquer cette sentence irrévocable de la mort qui tue !</p>
  335. <p align="center"><a href="update.php" class="btn btn-success"><i class="ionicons ion-loop"></i>&nbsp;MISE A JOUR DU COMPTE&nbsp;<i class="ionicons ion-loop"></i></a></p>
  336. <hr />
  337. <p><strong>Version actuel :</strong> <?php echo $version; ?></p>
  338. <p><strong>Dernière version :</strong> <?php echo $latest_commit; ?></p>
  339. <p><a href="https://github.com/heuzef/ecomonde/commits/master" target="_blank"><i class="ionicons ion-social-github"></i>&nbsp;Détails des dernières mises à jours<a></p>
  340. </div>
  341. </form>
  342. </div>
  343. </div>
  344. </div>
  345. <div class="modal fade" id="modal_change_map">
  346. <div class="modal-dialog">
  347. <div class="modal-content">
  348. <form class="form-horizontal well" role="form" method="post" action="change_map.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-map"></i>&nbsp;&nbsp;CHANGER LA CARTE</h4>
  352. </div>
  353. <div class="modal-body">
  354. <input type="hidden" name="MAX_FILE_SIZE" value="10048576" />
  355. <label class="control-label" for="focusedInput">Seul les fichiers <strong>.jpg</strong> (10 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">Mise à jour de la carte</button>
  360. </div>
  361. </form>
  362. </div>
  363. </div>
  364. </div>
  365. <div class="modal fade" id="modal_import_player">
  366. <div class="modal-dialog">
  367. <div class="modal-content">
  368. <form class="form-horizontal well" role="form" method="post" action="import_player.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="glyphicon glyphicon-import"></i>&nbsp;&nbsp;IMPORTER UN JOUEUR</h4>
  372. </div>
  373. <div class="modal-body">
  374. <input type="hidden" name="MAX_FILE_SIZE" value="1004857" />
  375. <label class="control-label" for="focusedInput">Seul les fichiers <strong>.xml</strong> (1 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">Importer le joueur</button>
  380. </div>
  381. </form>
  382. </div>
  383. </div>
  384. </div>
  385. <div class="modal fade" id="modal_change_music_soft">
  386. <div class="modal-dialog">
  387. <div class="modal-content">
  388. <form class="form-horizontal well" role="form" method="post" action="change_music_soft.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 SOFT</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 SOFT</button>
  400. </div>
  401. </form>
  402. </div>
  403. </div>
  404. </div>
  405. <div class="modal fade" id="modal_change_music_tonic">
  406. <div class="modal-dialog">
  407. <div class="modal-content">
  408. <form class="form-horizontal well" role="form" method="post" action="change_music_tonic.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 TONIC</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 TONIC</button>
  420. </div>
  421. </form>
  422. </div>
  423. </div>
  424. </div>
  425. <div class="modal fade" id="modal_change_music_hard">
  426. <div class="modal-dialog">
  427. <div class="modal-content">
  428. <form class="form-horizontal well" role="form" method="post" action="change_music_hard.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 HARD</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 HARD</button>
  440. </div>
  441. </form>
  442. </div>
  443. </div>
  444. </div>
  445. <div class="modal fade" id="modal_change_music_light">
  446. <div class="modal-dialog">
  447. <div class="modal-content">
  448. <form class="form-horizontal well" role="form" method="post" action="change_music_light.php" enctype="multipart/form-data">
  449. <div class="modal-header">
  450. <a type="button" class="close" data-dismiss="modal" aria-hidden="true" style="color:black;">X</a>
  451. <h4 class="modal-title"><i class="ionicons ion-music-note"></i>&nbsp;&nbsp;Changer la musique LIGHT</h4>
  452. </div>
  453. <div class="modal-body">
  454. <input type="hidden" name="MAX_FILE_SIZE" value="100485766" />
  455. <label class="control-label" for="focusedInput">Seul les fichiers <strong>.mp3</strong> (100 Mo max) sont autorisés.</label>
  456. <input class="form-control" id="focusedInput" type="file" name="userfile">
  457. </div>
  458. <div class="modal-footer">
  459. <button type="submit" class="btn btn-info">Changer la musique LIGHT</button>
  460. </div>
  461. </form>
  462. </div>
  463. </div>
  464. </div>
  465. <div class="modal fade" id="modal_change_music_dark">
  466. <div class="modal-dialog">
  467. <div class="modal-content">
  468. <form class="form-horizontal well" role="form" method="post" action="change_music_dark.php" enctype="multipart/form-data">
  469. <div class="modal-header">
  470. <a type="button" class="close" data-dismiss="modal" aria-hidden="true" style="color:black;">X</a>
  471. <h4 class="modal-title"><i class="ionicons ion-music-note"></i>&nbsp;&nbsp;Changer la musique DARK</h4>
  472. </div>
  473. <div class="modal-body">
  474. <input type="hidden" name="MAX_FILE_SIZE" value="100485766" />
  475. <label class="control-label" for="focusedInput">Seul les fichiers <strong>.mp3</strong> (100 Mo max) sont autorisés.</label>
  476. <input class="form-control" id="focusedInput" type="file" name="userfile">
  477. </div>
  478. <div class="modal-footer">
  479. <button type="submit" class="btn btn-info">Changer la musique DARK</button>
  480. </div>
  481. </form>
  482. </div>
  483. </div>
  484. </div>
  485. <?php elseif($status == 0): ?>
  486. <div class="container-fluid">
  487. <div class="col-lg-1"></div>
  488. <div class="col-lg-5">
  489. <h2>Présentation</h2>
  490. <p><strong>EcoMonde est un Jeu de Rôle d'aventure interactif.</strong></p>
  491. <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>
  492. <p class="text-primary">Le jeu ne requiert qu'un PC relié à internet et de quelques dés. Tout est automatisé.</p>
  493. <p class="text-warning">Le Maître du Jeu peut ensuite créer sa partie en s'appuyant sur tous les outils existants.</p>
  494. <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>
  495. </div>
  496. <div class="col-lg-5">
  497. <iframe width="640" height="360" src="//www.youtube-nocookie.com/embed/pnEYYfcIrNM?rel=0&amp;showinfo=0" frameborder="0" allowfullscreen></iframe>
  498. </div>
  499. <div class="col-lg-1"></div>
  500. </div>
  501. <div class="modal fade" id="modal_login">
  502. <div class="modal-dialog">
  503. <div class="modal-content">
  504. <form class="form-horizontal well" role="form" method="post" action="session.php" enctype="multipart/form-data">
  505. <div class="modal-header">
  506. <a type="button" class="close" data-dismiss="modal" aria-hidden="true" style="color:black;">X</a>
  507. <h4 class="modal-title"><i class="ionicons ion-power"></i>&nbsp;&nbsp;CONNEXION</h4>
  508. </div>
  509. <div class="modal-body">
  510. <div class="form-group">
  511. <label class="control-label" for="focusedInput">Email :</label>
  512. <input class="form-control" id="focusedInput" type="text" name="email">
  513. </div>
  514. <div class="form-group">
  515. <label class="control-label" for="focusedInput">Mot de passe :</label>
  516. <input class="form-control" id="focusedInput" type="password" name="password">
  517. </div>
  518. </div>
  519. <div class="modal-footer">
  520. <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>
  521. &nbsp;&nbsp;<button type="submit" class="btn btn-info">Connexion</button>
  522. </div>
  523. </form>
  524. </div>
  525. </div>
  526. </div>
  527. <div class="modal fade" id="register">
  528. <div class="modal-dialog">
  529. <div class="modal-content">
  530. <form class="form-horizontal well" role="form" method="post" action="register.php" enctype="multipart/form-data">
  531. <div class="modal-header">
  532. <a type="button" class="close" data-dismiss="modal" aria-hidden="true" style="color:black;">X</a>
  533. <h4 class="modal-title"><i class="ionicons ion-plus"></i>&nbsp;&nbsp;INSCRIPTION</h4>
  534. </div>
  535. <div class="modal-body">
  536. <div class="form-group">
  537. <label class="control-label" for="focusedInput">Pseudo :</label>
  538. <input class="form-control" id="focusedInput" type="text" name="pseudo">
  539. </div>
  540. <div class="form-group">
  541. <label class="control-label" for="focusedInput">E-mail :</label>
  542. <input class="form-control" id="focusedInput" type="text" name="email">
  543. </div>
  544. <div class="form-group">
  545. <label class="control-label" for="focusedInput">Mot de passe :</label>
  546. <input class="form-control" id="focusedInput" type="password" name="password">
  547. </div>
  548. </div>
  549. <div class="modal-footer">
  550. &nbsp;&nbsp;<button type="submit" class="btn btn-primary"><i class="ionicons ion-checkmark"></i>&nbsp;&nbsp;OK</button>
  551. </div>
  552. </form>
  553. </div>
  554. </div>
  555. </div>
  556. <?php endif; ?>
  557. <script>
  558. (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  559. (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  560. m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  561. })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
  562. ga('create', 'UA-57585229-1', 'auto');
  563. ga('send', 'pageview');
  564. </script>
  565. <script src="./js/jquery-1.10.2.min.js"></script>
  566. <script src="./js/bootstrap.min.js"></script>
  567. <script src="./js/bootswatch.js"></script>
  568. </body>
  569. </html>