您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

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