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.
 
 
 
 

545 lines
25 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. </div>
  155. </div>
  156. </div>
  157. <div class="col-lg-7">
  158. <div class="panel panel-default">
  159. <div class="panel-heading"><i class="ionicons ion-person"></i>&nbsp;&nbsp;<strong>Joueurs présents dans votre partie :</strong></div>
  160. <div class="panel-body">
  161. <table class="table table-striped table-hover ">
  162. <thead>
  163. <tr>
  164. <th></th>
  165. <th>Nom</th>
  166. <th><i class="ionicons ion-heart" style="color:red;"></i></th>
  167. <th><i class="ionicons ion-flash" style="color:#FFD700;"></i></th>
  168. <th><i class="ionicons ion-egg" style="color:brown"></i></th>
  169. <th><i class="ionicons ion-fireball" style="color:grey"></i></th>
  170. <th><i class="ionicons ion-fireball" style="color:#ADDFFF"></i></th>
  171. <th><i class="ionicons ion-fireball" style="color:#8128B5"></i></th>
  172. <th><i class="ionicons ion-android-note" style="color:#000"></i></th>
  173. </tr>
  174. </thead>
  175. <tbody>
  176. <?php
  177. // nombre de gamers
  178. $f = 0;
  179. foreach(glob('*.xml') as $f) {$f+=1;}
  180. $nb_membres = count(glob('./medias/'.$hash.'/*.xml'));
  181. // liste des gamers
  182. $folder = "./medias/".$hash."/";
  183. $dossier = opendir($folder);
  184. while ($fichier = readdir($dossier))
  185. {
  186. if ($fichier != "." && $fichier != ".." && $fichier != "map.jpg" && $fichier != "soft.mp3" && $fichier != "tonic.mp3" && $fichier != "hard.mp3" && $fichier != "light.mp3" && $fichier != "dark.mp3" && $fichier != "enemy")
  187. {
  188. $gamers = explode(".xml", $fichier);
  189. $xml = simplexml_load_file('./medias/'.$hash.'/'.$fichier);
  190. if (!isset($itemnb)) {
  191. $itemnb=0;
  192. } else {
  193. $itemnb++;
  194. }
  195. foreach($xml->entry as $entry) {
  196. $somme_ecos=$entry->ecos->verte+$entry->ecos->bleue+$entry->ecos->jaune+$entry->ecos->rouge;
  197. echo '<tr class="active">
  198. <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>
  199. <td><strong>['.$entry->level.']</strong>&nbsp;'.$entry->nom.'</td>
  200. <td>'.$entry->hp.'</td>
  201. <td>'.$entry->xp.'</td>
  202. <td>'.$entry->money.'</td>
  203. <td>'.$somme_ecos.'</td>
  204. <td>'.$entry->ecos->blanche.'</td>
  205. <td>'.$entry->ecos->noire.'</td>
  206. <td>'.substr($entry->notes, 0, 40).'...</td>
  207. </tr>';
  208. }
  209. }
  210. }
  211. closedir($dossier);
  212. ?>
  213. </tbody>
  214. </table>
  215. </div>
  216. </div>
  217. </div>
  218. <div class="col-lg-1"></div>
  219. </div>
  220. <div class="modal fade" id="modal_new_player">
  221. <div class="modal-dialog">
  222. <div class="modal-content">
  223. <form class="form-horizontal well" role="form" method="post" action="new_player.php" enctype="multipart/form-data">
  224. <div class="modal-header">
  225. <a type="button" class="close" data-dismiss="modal" aria-hidden="true" style="color:black;">X</a>
  226. <h4 class="modal-title"><i class="ionicons ion-person-add"></i>&nbsp;&nbsp;NOUVEAU JOUEUR</h4>
  227. </div>
  228. <div class="modal-body">
  229. <div class="form-group">
  230. <label class="control-label" for="focusedInput">Nom :</label>
  231. <input class="form-control" id="focusedInput" type="text" name="player_name" maxlength="12" value="derpy">
  232. </div>
  233. <div class="form-group">
  234. <label class="control-label" for="focusedInput">Nombre d'XP</label>
  235. <div class="input-group">
  236. <span class="input-group-addon"><i class="ionicons ion-flash" style="color:#FFD700;";></i></span>
  237. <select class="form-control" id="focusedInput" name="player_xp">
  238. <option>0</option>
  239. <option>10</option>
  240. <option>50</option>
  241. <option>100</option>
  242. <option>999</option>
  243. </select>
  244. </div>
  245. </div>
  246. <div class="form-group">
  247. <label class="control-label" for="focusedInput">Nombre d'Orbes</label>
  248. <div class="input-group">
  249. <span class="input-group-addon"><i class="ionicons ion-egg" style="color:brown;";></i></span>
  250. <select class="form-control" id="focusedInput" name="player_money">
  251. <option>0</option>
  252. <option>10</option>
  253. <option>50</option>
  254. <option>100</option>
  255. <option>999</option>
  256. </select>
  257. </div>
  258. </div>
  259. </div>
  260. <div class="modal-footer">
  261. <button type="submit" class="btn btn-info">Création du joueur</button>
  262. </div>
  263. </form>
  264. </div>
  265. </div>
  266. </div>
  267. <div class="modal fade" id="modal_settings">
  268. <div class="modal-dialog">
  269. <div class="modal-content">
  270. <form class="form-horizontal well" role="form" method="post" action="change_settings.php" enctype="multipart/form-data">
  271. <div class="modal-header">
  272. <a type="button" class="close" data-dismiss="modal" aria-hidden="true" style="color:black;">X</a>
  273. <h4 class="modal-title"><i class="ionicons ion-gear-b"></i>&nbsp;&nbsp;PARAMÈTRES DU COMPTE</h4>
  274. </div>
  275. <div class="modal-body">
  276. <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>
  277. <hr />
  278. <label class="control-label" for="email">Email</label>
  279. <input class="form-control" id="email" type="text" placeholder="<?php echo $email; ?>" disabled="">
  280. <label class="control-label" for="focusedInput">Nouveau pseudo :</label>
  281. <input class="form-control" id="focusedInput" type="texte" name="pseudo" value="<?php echo $pseudo; ?>">
  282. <label class="control-label" for="focusedInput">Nouveau mot de passe :</label>
  283. <input class="form-control" id="focusedInput" type="password" name="password">
  284. <input type="hidden" name="email" value="<?php echo $email; ?>">
  285. <input type="hidden" name="id" value="<?php echo $id; ?>">
  286. </div>
  287. <div class="modal-footer">
  288. <button type="submit" class="btn btn-info">Mise à jour du compte</button>
  289. </div>
  290. </form>
  291. <hr />
  292. <p align="center">
  293. <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 />
  294. <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>
  295. </p>
  296. </div>
  297. </div>
  298. </div>
  299. <div class="modal fade" id="modal_change_map">
  300. <div class="modal-dialog">
  301. <div class="modal-content">
  302. <form class="form-horizontal well" role="form" method="post" action="change_map.php" enctype="multipart/form-data">
  303. <div class="modal-header">
  304. <a type="button" class="close" data-dismiss="modal" aria-hidden="true" style="color:black;">X</a>
  305. <h4 class="modal-title"><i class="ionicons ion-map"></i>&nbsp;&nbsp;CHANGER LA CARTE</h4>
  306. </div>
  307. <div class="modal-body">
  308. <input type="hidden" name="MAX_FILE_SIZE" value="10048576" />
  309. <label class="control-label" for="focusedInput">Seul les fichiers <strong>.jpg</strong> (10 Mo max) sont autorisés.</label>
  310. <input class="form-control" id="focusedInput" type="file" name="userfile">
  311. </div>
  312. <div class="modal-footer">
  313. <button type="submit" class="btn btn-info">Mise à jour de la carte</button>
  314. </div>
  315. </form>
  316. </div>
  317. </div>
  318. </div>
  319. <div class="modal fade" id="modal_import_player">
  320. <div class="modal-dialog">
  321. <div class="modal-content">
  322. <form class="form-horizontal well" role="form" method="post" action="import_player.php" enctype="multipart/form-data">
  323. <div class="modal-header">
  324. <a type="button" class="close" data-dismiss="modal" aria-hidden="true" style="color:black;">X</a>
  325. <h4 class="modal-title"><i class="glyphicon glyphicon-import"></i>&nbsp;&nbsp;IMPORTER UN JOUEUR</h4>
  326. </div>
  327. <div class="modal-body">
  328. <input type="hidden" name="MAX_FILE_SIZE" value="1004857" />
  329. <label class="control-label" for="focusedInput">Seul les fichiers <strong>.xml</strong> (1 Mo max) sont autorisés.</label>
  330. <input class="form-control" id="focusedInput" type="file" name="userfile">
  331. </div>
  332. <div class="modal-footer">
  333. <button type="submit" class="btn btn-info">Importer le joueur</button>
  334. </div>
  335. </form>
  336. </div>
  337. </div>
  338. </div>
  339. <div class="modal fade" id="modal_change_music_soft">
  340. <div class="modal-dialog">
  341. <div class="modal-content">
  342. <form class="form-horizontal well" role="form" method="post" action="change_music_soft.php" enctype="multipart/form-data">
  343. <div class="modal-header">
  344. <a type="button" class="close" data-dismiss="modal" aria-hidden="true" style="color:black;">X</a>
  345. <h4 class="modal-title"><i class="ionicons ion-music-note"></i>&nbsp;&nbsp;Changer la musique SOFT</h4>
  346. </div>
  347. <div class="modal-body">
  348. <input type="hidden" name="MAX_FILE_SIZE" value="100485766" />
  349. <label class="control-label" for="focusedInput">Seul les fichiers <strong>.mp3</strong> (100 Mo max) sont autorisés.</label>
  350. <input class="form-control" id="focusedInput" type="file" name="userfile">
  351. </div>
  352. <div class="modal-footer">
  353. <button type="submit" class="btn btn-info">Changer la musique SOFT</button>
  354. </div>
  355. </form>
  356. </div>
  357. </div>
  358. </div>
  359. <div class="modal fade" id="modal_change_music_tonic">
  360. <div class="modal-dialog">
  361. <div class="modal-content">
  362. <form class="form-horizontal well" role="form" method="post" action="change_music_tonic.php" enctype="multipart/form-data">
  363. <div class="modal-header">
  364. <a type="button" class="close" data-dismiss="modal" aria-hidden="true" style="color:black;">X</a>
  365. <h4 class="modal-title"><i class="ionicons ion-music-note"></i>&nbsp;&nbsp;Changer la musique TONIC</h4>
  366. </div>
  367. <div class="modal-body">
  368. <input type="hidden" name="MAX_FILE_SIZE" value="100485766" />
  369. <label class="control-label" for="focusedInput">Seul les fichiers <strong>.mp3</strong> (100 Mo max) sont autorisés.</label>
  370. <input class="form-control" id="focusedInput" type="file" name="userfile">
  371. </div>
  372. <div class="modal-footer">
  373. <button type="submit" class="btn btn-info">Changer la musique TONIC</button>
  374. </div>
  375. </form>
  376. </div>
  377. </div>
  378. </div>
  379. <div class="modal fade" id="modal_change_music_hard">
  380. <div class="modal-dialog">
  381. <div class="modal-content">
  382. <form class="form-horizontal well" role="form" method="post" action="change_music_hard.php" enctype="multipart/form-data">
  383. <div class="modal-header">
  384. <a type="button" class="close" data-dismiss="modal" aria-hidden="true" style="color:black;">X</a>
  385. <h4 class="modal-title"><i class="ionicons ion-music-note"></i>&nbsp;&nbsp;Changer la musique HARD</h4>
  386. </div>
  387. <div class="modal-body">
  388. <input type="hidden" name="MAX_FILE_SIZE" value="100485766" />
  389. <label class="control-label" for="focusedInput">Seul les fichiers <strong>.mp3</strong> (100 Mo max) sont autorisés.</label>
  390. <input class="form-control" id="focusedInput" type="file" name="userfile">
  391. </div>
  392. <div class="modal-footer">
  393. <button type="submit" class="btn btn-info">Changer la musique HARD</button>
  394. </div>
  395. </form>
  396. </div>
  397. </div>
  398. </div>
  399. <div class="modal fade" id="modal_change_music_light">
  400. <div class="modal-dialog">
  401. <div class="modal-content">
  402. <form class="form-horizontal well" role="form" method="post" action="change_music_light.php" enctype="multipart/form-data">
  403. <div class="modal-header">
  404. <a type="button" class="close" data-dismiss="modal" aria-hidden="true" style="color:black;">X</a>
  405. <h4 class="modal-title"><i class="ionicons ion-music-note"></i>&nbsp;&nbsp;Changer la musique LIGHT</h4>
  406. </div>
  407. <div class="modal-body">
  408. <input type="hidden" name="MAX_FILE_SIZE" value="100485766" />
  409. <label class="control-label" for="focusedInput">Seul les fichiers <strong>.mp3</strong> (100 Mo max) sont autorisés.</label>
  410. <input class="form-control" id="focusedInput" type="file" name="userfile">
  411. </div>
  412. <div class="modal-footer">
  413. <button type="submit" class="btn btn-info">Changer la musique LIGHT</button>
  414. </div>
  415. </form>
  416. </div>
  417. </div>
  418. </div>
  419. <div class="modal fade" id="modal_change_music_dark">
  420. <div class="modal-dialog">
  421. <div class="modal-content">
  422. <form class="form-horizontal well" role="form" method="post" action="change_music_dark.php" enctype="multipart/form-data">
  423. <div class="modal-header">
  424. <a type="button" class="close" data-dismiss="modal" aria-hidden="true" style="color:black;">X</a>
  425. <h4 class="modal-title"><i class="ionicons ion-music-note"></i>&nbsp;&nbsp;Changer la musique DARK</h4>
  426. </div>
  427. <div class="modal-body">
  428. <input type="hidden" name="MAX_FILE_SIZE" value="100485766" />
  429. <label class="control-label" for="focusedInput">Seul les fichiers <strong>.mp3</strong> (100 Mo max) sont autorisés.</label>
  430. <input class="form-control" id="focusedInput" type="file" name="userfile">
  431. </div>
  432. <div class="modal-footer">
  433. <button type="submit" class="btn btn-info">Changer la musique DARK</button>
  434. </div>
  435. </form>
  436. </div>
  437. </div>
  438. </div>
  439. <?php elseif($status == 0): ?>
  440. <div class="container-fluid">
  441. <div class="col-lg-1"></div>
  442. <div class="col-lg-5">
  443. <h2>Présentation</h2>
  444. <p><strong>EcoMonde est un Jeu de Rôle d'aventure interactif.</strong></p>
  445. <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>
  446. <p class="text-primary">Le jeu ne requiert qu'un PC relié à internet et de quelques dés. Tout est automatisé.</p>
  447. <p class="text-warning">Le Maître du Jeu peut ensuite créer sa partie en s'appuyant sur tous les outils existants.</p>
  448. <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>
  449. </div>
  450. <div class="col-lg-5">
  451. <iframe width="640" height="360" src="//www.youtube-nocookie.com/embed/sxPweEzjDaY?rel=0&amp;showinfo=0" frameborder="0" allowfullscreen></iframe>
  452. </div>
  453. <div class="col-lg-1"></div>
  454. </div>
  455. <div class="modal fade" id="modal_login">
  456. <div class="modal-dialog">
  457. <div class="modal-content">
  458. <form class="form-horizontal well" role="form" method="post" action="session.php" enctype="multipart/form-data">
  459. <div class="modal-header">
  460. <a type="button" class="close" data-dismiss="modal" aria-hidden="true" style="color:black;">X</a>
  461. <h4 class="modal-title"><i class="ionicons ion-power"></i>&nbsp;&nbsp;CONNEXION</h4>
  462. </div>
  463. <div class="modal-body">
  464. <div class="form-group">
  465. <label class="control-label" for="focusedInput">Email :</label>
  466. <input class="form-control" id="focusedInput" type="text" name="email">
  467. </div>
  468. <div class="form-group">
  469. <label class="control-label" for="focusedInput">Mot de passe :</label>
  470. <input class="form-control" id="focusedInput" type="password" name="password">
  471. </div>
  472. </div>
  473. <div class="modal-footer">
  474. <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>
  475. &nbsp;&nbsp;<button type="submit" class="btn btn-info">Connexion</button>
  476. </div>
  477. </form>
  478. </div>
  479. </div>
  480. </div>
  481. <div class="modal fade" id="register">
  482. <div class="modal-dialog">
  483. <div class="modal-content">
  484. <form class="form-horizontal well" role="form" method="post" action="register.php" enctype="multipart/form-data">
  485. <div class="modal-header">
  486. <a type="button" class="close" data-dismiss="modal" aria-hidden="true" style="color:black;">X</a>
  487. <h4 class="modal-title"><i class="ionicons ion-plus"></i>&nbsp;&nbsp;INSCRIPTION</h4>
  488. </div>
  489. <div class="modal-body">
  490. <div class="form-group">
  491. <label class="control-label" for="focusedInput">Pseudo :</label>
  492. <input class="form-control" id="focusedInput" type="text" name="pseudo">
  493. </div>
  494. <div class="form-group">
  495. <label class="control-label" for="focusedInput">E-mail :</label>
  496. <input class="form-control" id="focusedInput" type="text" name="email">
  497. </div>
  498. <div class="form-group">
  499. <label class="control-label" for="focusedInput">Mot de passe :</label>
  500. <input class="form-control" id="focusedInput" type="password" name="password">
  501. </div>
  502. </div>
  503. <div class="modal-footer">
  504. &nbsp;&nbsp;<button type="submit" class="btn btn-primary"><i class="ionicons ion-checkmark"></i>&nbsp;&nbsp;OK</button>
  505. </div>
  506. </form>
  507. </div>
  508. </div>
  509. </div>
  510. <?php endif; ?>
  511. <script>
  512. (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  513. (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  514. m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  515. })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
  516. ga('create', 'UA-57585229-1', 'auto');
  517. ga('send', 'pageview');
  518. </script>
  519. <script src="./js/jquery-1.10.2.min.js"></script>
  520. <script src="./js/bootstrap.min.js"></script>
  521. <script src="./js/bootswatch.js"></script>
  522. </body>
  523. </html>