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.
 
 
 
 

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