Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 
 
 

557 řádky
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>1</option>
  259. <option>2</option>
  260. <option>3</option>
  261. <option>4</option>
  262. <option>5</option>
  263. <option>6</option>
  264. <option>7</option>
  265. <option>8</option>
  266. <option>9</option>
  267. <option>10</option>
  268. </select>
  269. </div>
  270. </div>
  271. </div>
  272. <div class="modal-footer">
  273. <button type="submit" class="btn btn-info">Création du joueur</button>
  274. </div>
  275. </form>
  276. </div>
  277. </div>
  278. </div>
  279. <div class="modal fade" id="modal_settings">
  280. <div class="modal-dialog">
  281. <div class="modal-content">
  282. <form class="form-horizontal well" role="form" method="post" action="change_settings.php" enctype="multipart/form-data">
  283. <div class="modal-header">
  284. <a type="button" class="close" data-dismiss="modal" aria-hidden="true" style="color:black;">X</a>
  285. <h4 class="modal-title"><i class="ionicons ion-gear-b"></i>&nbsp;&nbsp;PARAMÈTRES DU COMPTE</h4>
  286. </div>
  287. <div class="modal-body">
  288. <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>
  289. <hr />
  290. <label class="control-label" for="email">Email</label>
  291. <input class="form-control" id="email" type="text" placeholder="<?php echo $email; ?>" disabled="">
  292. <label class="control-label" for="focusedInput">Nouveau pseudo :</label>
  293. <input class="form-control" id="focusedInput" type="texte" name="pseudo" value="<?php echo $pseudo; ?>">
  294. <label class="control-label" for="focusedInput">Nouveau mot de passe :</label>
  295. <input class="form-control" id="focusedInput" type="password" name="password">
  296. <input type="hidden" name="email" value="<?php echo $email; ?>">
  297. <input type="hidden" name="id" value="<?php echo $id; ?>">
  298. </div>
  299. <div class="modal-footer">
  300. <button type="submit" class="btn btn-info">Mise à jour du compte</button>
  301. </div>
  302. </form>
  303. <hr />
  304. <p align="center">
  305. <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 />
  306. <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>
  307. </p>
  308. </div>
  309. </div>
  310. </div>
  311. <div class="modal fade" id="modal_change_map">
  312. <div class="modal-dialog">
  313. <div class="modal-content">
  314. <form class="form-horizontal well" role="form" method="post" action="change_map.php" enctype="multipart/form-data">
  315. <div class="modal-header">
  316. <a type="button" class="close" data-dismiss="modal" aria-hidden="true" style="color:black;">X</a>
  317. <h4 class="modal-title"><i class="ionicons ion-map"></i>&nbsp;&nbsp;CHANGER LA CARTE</h4>
  318. </div>
  319. <div class="modal-body">
  320. <input type="hidden" name="MAX_FILE_SIZE" value="10048576" />
  321. <label class="control-label" for="focusedInput">Seul les fichiers <strong>.jpg</strong> (10 Mo max) sont autorisés.</label>
  322. <input class="form-control" id="focusedInput" type="file" name="userfile">
  323. </div>
  324. <div class="modal-footer">
  325. <button type="submit" class="btn btn-info">Mise à jour de la carte</button>
  326. </div>
  327. </form>
  328. </div>
  329. </div>
  330. </div>
  331. <div class="modal fade" id="modal_import_player">
  332. <div class="modal-dialog">
  333. <div class="modal-content">
  334. <form class="form-horizontal well" role="form" method="post" action="import_player.php" enctype="multipart/form-data">
  335. <div class="modal-header">
  336. <a type="button" class="close" data-dismiss="modal" aria-hidden="true" style="color:black;">X</a>
  337. <h4 class="modal-title"><i class="glyphicon glyphicon-import"></i>&nbsp;&nbsp;IMPORTER UN JOUEUR</h4>
  338. </div>
  339. <div class="modal-body">
  340. <input type="hidden" name="MAX_FILE_SIZE" value="1004857" />
  341. <label class="control-label" for="focusedInput">Seul les fichiers <strong>.xml</strong> (1 Mo max) sont autorisés.</label>
  342. <input class="form-control" id="focusedInput" type="file" name="userfile">
  343. </div>
  344. <div class="modal-footer">
  345. <button type="submit" class="btn btn-info">Importer le joueur</button>
  346. </div>
  347. </form>
  348. </div>
  349. </div>
  350. </div>
  351. <div class="modal fade" id="modal_change_music_soft">
  352. <div class="modal-dialog">
  353. <div class="modal-content">
  354. <form class="form-horizontal well" role="form" method="post" action="change_music_soft.php" enctype="multipart/form-data">
  355. <div class="modal-header">
  356. <a type="button" class="close" data-dismiss="modal" aria-hidden="true" style="color:black;">X</a>
  357. <h4 class="modal-title"><i class="ionicons ion-music-note"></i>&nbsp;&nbsp;Changer la musique SOFT</h4>
  358. </div>
  359. <div class="modal-body">
  360. <input type="hidden" name="MAX_FILE_SIZE" value="100485766" />
  361. <label class="control-label" for="focusedInput">Seul les fichiers <strong>.mp3</strong> (100 Mo max) sont autorisés.</label>
  362. <input class="form-control" id="focusedInput" type="file" name="userfile">
  363. </div>
  364. <div class="modal-footer">
  365. <button type="submit" class="btn btn-info">Changer la musique SOFT</button>
  366. </div>
  367. </form>
  368. </div>
  369. </div>
  370. </div>
  371. <div class="modal fade" id="modal_change_music_tonic">
  372. <div class="modal-dialog">
  373. <div class="modal-content">
  374. <form class="form-horizontal well" role="form" method="post" action="change_music_tonic.php" enctype="multipart/form-data">
  375. <div class="modal-header">
  376. <a type="button" class="close" data-dismiss="modal" aria-hidden="true" style="color:black;">X</a>
  377. <h4 class="modal-title"><i class="ionicons ion-music-note"></i>&nbsp;&nbsp;Changer la musique TONIC</h4>
  378. </div>
  379. <div class="modal-body">
  380. <input type="hidden" name="MAX_FILE_SIZE" value="100485766" />
  381. <label class="control-label" for="focusedInput">Seul les fichiers <strong>.mp3</strong> (100 Mo max) sont autorisés.</label>
  382. <input class="form-control" id="focusedInput" type="file" name="userfile">
  383. </div>
  384. <div class="modal-footer">
  385. <button type="submit" class="btn btn-info">Changer la musique TONIC</button>
  386. </div>
  387. </form>
  388. </div>
  389. </div>
  390. </div>
  391. <div class="modal fade" id="modal_change_music_hard">
  392. <div class="modal-dialog">
  393. <div class="modal-content">
  394. <form class="form-horizontal well" role="form" method="post" action="change_music_hard.php" enctype="multipart/form-data">
  395. <div class="modal-header">
  396. <a type="button" class="close" data-dismiss="modal" aria-hidden="true" style="color:black;">X</a>
  397. <h4 class="modal-title"><i class="ionicons ion-music-note"></i>&nbsp;&nbsp;Changer la musique HARD</h4>
  398. </div>
  399. <div class="modal-body">
  400. <input type="hidden" name="MAX_FILE_SIZE" value="100485766" />
  401. <label class="control-label" for="focusedInput">Seul les fichiers <strong>.mp3</strong> (100 Mo max) sont autorisés.</label>
  402. <input class="form-control" id="focusedInput" type="file" name="userfile">
  403. </div>
  404. <div class="modal-footer">
  405. <button type="submit" class="btn btn-info">Changer la musique HARD</button>
  406. </div>
  407. </form>
  408. </div>
  409. </div>
  410. </div>
  411. <div class="modal fade" id="modal_change_music_light">
  412. <div class="modal-dialog">
  413. <div class="modal-content">
  414. <form class="form-horizontal well" role="form" method="post" action="change_music_light.php" enctype="multipart/form-data">
  415. <div class="modal-header">
  416. <a type="button" class="close" data-dismiss="modal" aria-hidden="true" style="color:black;">X</a>
  417. <h4 class="modal-title"><i class="ionicons ion-music-note"></i>&nbsp;&nbsp;Changer la musique LIGHT</h4>
  418. </div>
  419. <div class="modal-body">
  420. <input type="hidden" name="MAX_FILE_SIZE" value="100485766" />
  421. <label class="control-label" for="focusedInput">Seul les fichiers <strong>.mp3</strong> (100 Mo max) sont autorisés.</label>
  422. <input class="form-control" id="focusedInput" type="file" name="userfile">
  423. </div>
  424. <div class="modal-footer">
  425. <button type="submit" class="btn btn-info">Changer la musique LIGHT</button>
  426. </div>
  427. </form>
  428. </div>
  429. </div>
  430. </div>
  431. <div class="modal fade" id="modal_change_music_dark">
  432. <div class="modal-dialog">
  433. <div class="modal-content">
  434. <form class="form-horizontal well" role="form" method="post" action="change_music_dark.php" enctype="multipart/form-data">
  435. <div class="modal-header">
  436. <a type="button" class="close" data-dismiss="modal" aria-hidden="true" style="color:black;">X</a>
  437. <h4 class="modal-title"><i class="ionicons ion-music-note"></i>&nbsp;&nbsp;Changer la musique DARK</h4>
  438. </div>
  439. <div class="modal-body">
  440. <input type="hidden" name="MAX_FILE_SIZE" value="100485766" />
  441. <label class="control-label" for="focusedInput">Seul les fichiers <strong>.mp3</strong> (100 Mo max) sont autorisés.</label>
  442. <input class="form-control" id="focusedInput" type="file" name="userfile">
  443. </div>
  444. <div class="modal-footer">
  445. <button type="submit" class="btn btn-info">Changer la musique DARK</button>
  446. </div>
  447. </form>
  448. </div>
  449. </div>
  450. </div>
  451. <?php elseif($status == 0): ?>
  452. <div class="container-fluid">
  453. <div class="col-lg-1"></div>
  454. <div class="col-lg-5">
  455. <h2>Présentation</h2>
  456. <p><strong>EcoMonde est un Jeu de Rôle d'aventure interactif.</strong></p>
  457. <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>
  458. <p class="text-primary">Le jeu ne requiert qu'un PC relié à internet et de quelques dés. Tout est automatisé.</p>
  459. <p class="text-warning">Le Maître du Jeu peut ensuite créer sa partie en s'appuyant sur tous les outils existants.</p>
  460. <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>
  461. </div>
  462. <div class="col-lg-5">
  463. <iframe width="640" height="360" src="//www.youtube-nocookie.com/embed/sxPweEzjDaY?rel=0&amp;showinfo=0" frameborder="0" allowfullscreen></iframe>
  464. </div>
  465. <div class="col-lg-1"></div>
  466. </div>
  467. <div class="modal fade" id="modal_login">
  468. <div class="modal-dialog">
  469. <div class="modal-content">
  470. <form class="form-horizontal well" role="form" method="post" action="session.php" enctype="multipart/form-data">
  471. <div class="modal-header">
  472. <a type="button" class="close" data-dismiss="modal" aria-hidden="true" style="color:black;">X</a>
  473. <h4 class="modal-title"><i class="ionicons ion-power"></i>&nbsp;&nbsp;CONNEXION</h4>
  474. </div>
  475. <div class="modal-body">
  476. <div class="form-group">
  477. <label class="control-label" for="focusedInput">Email :</label>
  478. <input class="form-control" id="focusedInput" type="text" name="email">
  479. </div>
  480. <div class="form-group">
  481. <label class="control-label" for="focusedInput">Mot de passe :</label>
  482. <input class="form-control" id="focusedInput" type="password" name="password">
  483. </div>
  484. </div>
  485. <div class="modal-footer">
  486. <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>
  487. &nbsp;&nbsp;<button type="submit" class="btn btn-info">Connexion</button>
  488. </div>
  489. </form>
  490. </div>
  491. </div>
  492. </div>
  493. <div class="modal fade" id="register">
  494. <div class="modal-dialog">
  495. <div class="modal-content">
  496. <form class="form-horizontal well" role="form" method="post" action="register.php" enctype="multipart/form-data">
  497. <div class="modal-header">
  498. <a type="button" class="close" data-dismiss="modal" aria-hidden="true" style="color:black;">X</a>
  499. <h4 class="modal-title"><i class="ionicons ion-plus"></i>&nbsp;&nbsp;INSCRIPTION</h4>
  500. </div>
  501. <div class="modal-body">
  502. <div class="form-group">
  503. <label class="control-label" for="focusedInput">Pseudo :</label>
  504. <input class="form-control" id="focusedInput" type="text" name="pseudo">
  505. </div>
  506. <div class="form-group">
  507. <label class="control-label" for="focusedInput">E-mail :</label>
  508. <input class="form-control" id="focusedInput" type="text" name="email">
  509. </div>
  510. <div class="form-group">
  511. <label class="control-label" for="focusedInput">Mot de passe :</label>
  512. <input class="form-control" id="focusedInput" type="password" name="password">
  513. </div>
  514. </div>
  515. <div class="modal-footer">
  516. &nbsp;&nbsp;<button type="submit" class="btn btn-primary"><i class="ionicons ion-checkmark"></i>&nbsp;&nbsp;OK</button>
  517. </div>
  518. </form>
  519. </div>
  520. </div>
  521. </div>
  522. <?php endif; ?>
  523. <script>
  524. (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  525. (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  526. m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  527. })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
  528. ga('create', 'UA-57585229-1', 'auto');
  529. ga('send', 'pageview');
  530. </script>
  531. <script src="./js/jquery-1.10.2.min.js"></script>
  532. <script src="./js/bootstrap.min.js"></script>
  533. <script src="./js/bootswatch.js"></script>
  534. </body>
  535. </html>