Przeglądaj źródła

ajout de la configuration utilisateur

master
heuzef 9 lat temu
rodzic
commit
28896e8c9d
34 zmienionych plików z 76 dodań i 77 usunięć
  1. +11
    -0
      change_settings.php
  2. +17
    -0
      delete_account.php
  3. +38
    -4
      index.php
  4. BIN
      medias/00eeb8f16e3e42ed1fe6dd0e59714650/dark.mp3
  5. BIN
      medias/00eeb8f16e3e42ed1fe6dd0e59714650/hard.mp3
  6. BIN
      medias/00eeb8f16e3e42ed1fe6dd0e59714650/light.mp3
  7. BIN
      medias/00eeb8f16e3e42ed1fe6dd0e59714650/map.jpg
  8. +0
    -18
      medias/00eeb8f16e3e42ed1fe6dd0e59714650/prout.xml
  9. BIN
      medias/00eeb8f16e3e42ed1fe6dd0e59714650/soft.mp3
  10. BIN
      medias/00eeb8f16e3e42ed1fe6dd0e59714650/tonic.mp3
  11. BIN
      medias/c0f08ae603e364cb554fe71c9fc94ffd/dark.mp3
  12. +9
    -0
      medias/c0f08ae603e364cb554fe71c9fc94ffd/enemy/enemy.xml
  13. +0
    -0
      medias/c0f08ae603e364cb554fe71c9fc94ffd/hard.mp3
  14. BIN
      medias/c0f08ae603e364cb554fe71c9fc94ffd/light.mp3
  15. +0
    -0
      medias/c0f08ae603e364cb554fe71c9fc94ffd/map.jpg
  16. +1
    -1
      medias/c0f08ae603e364cb554fe71c9fc94ffd/player.xml
  17. BIN
      medias/c0f08ae603e364cb554fe71c9fc94ffd/soft.mp3
  18. +0
    -0
      medias/c0f08ae603e364cb554fe71c9fc94ffd/tonic.mp3
  19. BIN
      medias/d41d8cd98f00b204e9800998ecf8427e/dark.mp3
  20. BIN
      medias/d41d8cd98f00b204e9800998ecf8427e/hard.mp3
  21. BIN
      medias/d41d8cd98f00b204e9800998ecf8427e/light.mp3
  22. BIN
      medias/d41d8cd98f00b204e9800998ecf8427e/map.jpg
  23. +0
    -18
      medias/d41d8cd98f00b204e9800998ecf8427e/player1.xml
  24. +0
    -18
      medias/d41d8cd98f00b204e9800998ecf8427e/player2.xml
  25. +0
    -18
      medias/d41d8cd98f00b204e9800998ecf8427e/player3.xml
  26. BIN
      medias/d41d8cd98f00b204e9800998ecf8427e/soft.mp3
  27. BIN
      medias/d41d8cd98f00b204e9800998ecf8427e/tonic.mp3
  28. +0
    -0
      play/action_enemy.php
  29. +0
    -0
      play/boss_wiki.php
  30. +0
    -0
      play/del_enemy.php
  31. +0
    -0
      play/enemy.php
  32. +0
    -0
      play/enemy_wiki.php
  33. +0
    -0
      play/new_boss.php
  34. +0
    -0
      play/new_enemy.php

+ 11
- 0
change_settings.php Wyświetl plik

@@ -0,0 +1,11 @@
<?php
include "header.php";
connecte("ecomonde");
$id=$_POST['id'];
$pseudo=$_POST['pseudo'];
$pass=sha1($_POST['password']);

$sql="UPDATE membres SET pseudo='$pseudo',pass='$pass'WHERE id=$id";
mysql_query($sql) or die(include('index.php?msg=0'));
if($sql) header("location:index.php?msg=1");
?>

+ 17
- 0
delete_account.php Wyświetl plik

@@ -0,0 +1,17 @@
<?php
include "header.php";
connecte("ecomonde");
$hash=md5($email);
$path="./medias/".$hash;

if ($email) {
exec("rm -rf {$path}");
$sql="DELETE FROM membres WHERE id=$id";
mysql_query($sql) or die(include('index.php?msg=0'));
$_SESSION['status']=0;
header("location:index.php?msg=4");
}
else {
header("location:index.php?msg=0");
}
?>

+ 38
- 4
index.php Wyświetl plik

@@ -90,8 +90,9 @@ $message[10]='
</ul>
<ul class="nav navbar-nav navbar-right">
<?php if($status != 0): ?>
<a href="http://fr.gravatar.com" target="_blank"><?php echo '<img class="img-circle" src="http://gravatar.com/avatar/'.$hash.'?s=50" alt="gravatar" />'; ?></a>&nbsp;&nbsp;<strong><?php echo strtoupper($pseudo); ?></strong>
<?php echo '<img class="img-circle" src="http://gravatar.com/avatar/'.$hash.'?s=50" alt="gravatar" />'; ?>&nbsp;&nbsp;<strong><?php echo strtoupper($pseudo); ?></strong>
&nbsp;&nbsp;
<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;
<a href="logout.php" class="btn btn-danger btn-xs"><i class="ionicons ion-power"></i></a>&nbsp;&nbsp;
<?php elseif($status == 0): ?>
<a class="btn btn-success btn-xs" data-toggle="modal" data-target="#register"><i class="ionicons ion-plus"></i>&nbsp;&nbsp;INSCRIPTION</a>
@@ -270,6 +271,39 @@ $message[10]='
</div>
</div>

<div class="modal fade" id="modal_settings">
<div class="modal-dialog">
<div class="modal-content">
<form class="form-horizontal well" role="form" method="post" action="change_settings.php" enctype="multipart/form-data">
<div class="modal-header">
<a type="button" class="close" data-dismiss="modal" aria-hidden="true" style="color:black;">X</a>
<h4 class="modal-title"><i class="ionicons ion-gear-b"></i>&nbsp;&nbsp;PARAMÈTRES DU COMPTE</h4>
</div>
<div class="modal-body">
<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>
<hr />
<label class="control-label" for="email">Email</label>
<input class="form-control" id="email" type="text" placeholder="<?php echo $email; ?>" disabled="">
<label class="control-label" for="focusedInput">Nouveau pseudo :</label>
<input class="form-control" id="focusedInput" type="texte" name="pseudo" value="<?php echo $pseudo; ?>">
<label class="control-label" for="focusedInput">Nouveau mot de passe :</label>
<input class="form-control" id="focusedInput" type="password" name="password">
<input type="hidden" name="email" value="<?php echo $email; ?>">
<input type="hidden" name="id" value="<?php echo $id; ?>">
</div>
<div class="modal-footer">
<button type="submit" class="btn btn-info">Mise à jour du compte</button>
</div>
</form>
<hr />
<p align="center">
<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 />
<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>
</p>
</div>
</div>
</div>

<div class="modal fade" id="modal_change_map">
<div class="modal-dialog">
<div class="modal-content">
@@ -279,9 +313,9 @@ $message[10]='
<h4 class="modal-title"><i class="ionicons ion-map"></i>&nbsp;&nbsp;CHANGER LA CARTE</h4>
</div>
<div class="modal-body">
<input type="hidden" name="MAX_FILE_SIZE" value="10048576" />
<label class="control-label" for="focusedInput">Seul les fichiers <strong>.jpg</strong> (10 Mo max) sont autorisés.</label>
<input class="form-control" id="focusedInput" type="file" name="userfile">
<input type="hidden" name="MAX_FILE_SIZE" value="10048576" />
<label class="control-label" for="focusedInput">Seul les fichiers <strong>.jpg</strong> (10 Mo max) sont autorisés.</label>
<input class="form-control" id="focusedInput" type="file" name="userfile">
</div>
<div class="modal-footer">
<button type="submit" class="btn btn-info">Mise à jour de la carte</button>


BIN
medias/00eeb8f16e3e42ed1fe6dd0e59714650/dark.mp3 Wyświetl plik


BIN
medias/00eeb8f16e3e42ed1fe6dd0e59714650/hard.mp3 Wyświetl plik


BIN
medias/00eeb8f16e3e42ed1fe6dd0e59714650/light.mp3 Wyświetl plik


BIN
medias/00eeb8f16e3e42ed1fe6dd0e59714650/map.jpg Wyświetl plik

Przed Po
Szerokość: 2000  |  Wysokość: 1400  |  Rozmiar: 1.0 MiB

+ 0
- 18
medias/00eeb8f16e3e42ed1fe6dd0e59714650/prout.xml Wyświetl plik

@@ -1,18 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<response>
<entry>
<nom>prout</nom>
<hp>10</hp>
<xp>30</xp>
<ecos>
<verte>1</verte>
<bleue>1</bleue>
<jaune>0</jaune>
<rouge>1</rouge>
<blanche>1</blanche>
<noire>1</noire>
</ecos>
<trans>default</trans>
<notes>blabla</notes>
</entry>
</response>

BIN
medias/00eeb8f16e3e42ed1fe6dd0e59714650/soft.mp3 Wyświetl plik


BIN
medias/00eeb8f16e3e42ed1fe6dd0e59714650/tonic.mp3 Wyświetl plik


BIN
medias/c0f08ae603e364cb554fe71c9fc94ffd/dark.mp3 Wyświetl plik


+ 9
- 0
medias/c0f08ae603e364cb554fe71c9fc94ffd/enemy/enemy.xml Wyświetl plik

@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<response>
<entry>
<nom>enemy</nom>
<hp>3</hp>
<img>http://wiki.ecomonde.land/lib/exe/fetch.php?media=wiki:loup_garou.jpg</img>
<url>http://wiki.ecomonde.land/doku.php?id=wiki:ennemies</url>
</entry>
</response>

+ 0
- 0
medias/c0f08ae603e364cb554fe71c9fc94ffd/hard.mp3 Wyświetl plik


BIN
medias/c0f08ae603e364cb554fe71c9fc94ffd/light.mp3 Wyświetl plik


+ 0
- 0
medias/c0f08ae603e364cb554fe71c9fc94ffd/map.jpg Wyświetl plik

Przed Po
Szerokość: 2000  |  Wysokość: 1400  |  Rozmiar: 1.0 MiB Szerokość: 2000  |  Wysokość: 1400  |  Rozmiar: 1.0 MiB

medias/c0f08ae603e364cb554fe71c9fc94ffd/derpy.xml → medias/c0f08ae603e364cb554fe71c9fc94ffd/player.xml Wyświetl plik

@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<response>
<entry>
<nom>derpy</nom>
<nom>player</nom>
<level>0</level>
<hp>10</hp>
<xp>0</xp>

BIN
medias/c0f08ae603e364cb554fe71c9fc94ffd/soft.mp3 Wyświetl plik


+ 0
- 0
medias/c0f08ae603e364cb554fe71c9fc94ffd/tonic.mp3 Wyświetl plik


BIN
medias/d41d8cd98f00b204e9800998ecf8427e/dark.mp3 Wyświetl plik


BIN
medias/d41d8cd98f00b204e9800998ecf8427e/hard.mp3 Wyświetl plik


BIN
medias/d41d8cd98f00b204e9800998ecf8427e/light.mp3 Wyświetl plik


BIN
medias/d41d8cd98f00b204e9800998ecf8427e/map.jpg Wyświetl plik

Przed Po
Szerokość: 2000  |  Wysokość: 1400  |  Rozmiar: 1.0 MiB

+ 0
- 18
medias/d41d8cd98f00b204e9800998ecf8427e/player1.xml Wyświetl plik

@@ -1,18 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<response>
<entry>
<nom>player1</nom>
<hp>10</hp>
<xp>20</xp>
<ecos>
<verte>0</verte>
<bleue>0</bleue>
<jaune>0</jaune>
<rouge>0</rouge>
<blanche>0</blanche>
<noire>0</noire>
</ecos>
<trans>default</trans>
<notes>...</notes>
</entry>
</response>

+ 0
- 18
medias/d41d8cd98f00b204e9800998ecf8427e/player2.xml Wyświetl plik

@@ -1,18 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<response>
<entry>
<nom>player2</nom>
<hp>10</hp>
<xp>20</xp>
<ecos>
<verte>0</verte>
<bleue>0</bleue>
<jaune>0</jaune>
<rouge>0</rouge>
<blanche>0</blanche>
<noire>0</noire>
</ecos>
<trans>default</trans>
<notes>...</notes>
</entry>
</response>

+ 0
- 18
medias/d41d8cd98f00b204e9800998ecf8427e/player3.xml Wyświetl plik

@@ -1,18 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<response>
<entry>
<nom>player3</nom>
<hp>10</hp>
<xp>20</xp>
<ecos>
<verte>0</verte>
<bleue>0</bleue>
<jaune>0</jaune>
<rouge>0</rouge>
<blanche>0</blanche>
<noire>0</noire>
</ecos>
<trans>default</trans>
<notes>...</notes>
</entry>
</response>

BIN
medias/d41d8cd98f00b204e9800998ecf8427e/soft.mp3 Wyświetl plik


BIN
medias/d41d8cd98f00b204e9800998ecf8427e/tonic.mp3 Wyświetl plik


+ 0
- 0
play/action_enemy.php Wyświetl plik


+ 0
- 0
play/boss_wiki.php Wyświetl plik


+ 0
- 0
play/del_enemy.php Wyświetl plik


+ 0
- 0
play/enemy.php Wyświetl plik


+ 0
- 0
play/enemy_wiki.php Wyświetl plik


+ 0
- 0
play/new_boss.php Wyświetl plik


+ 0
- 0
play/new_enemy.php Wyświetl plik


Ładowanie…
Anuluj
Zapisz