diff --git a/index.php b/index.php index f2c472b..cdb8da0 100644 --- a/index.php +++ b/index.php @@ -1,3 +1,5 @@ + + @@ -30,7 +32,7 @@
  •   GITHUB
  • @@ -85,7 +87,7 @@
    -
    +
      Configurer votre partie
    -
    +
      Joueurs présents dans votre partie :
    @@ -131,18 +157,19 @@ // nombre de gamers $f = 0; foreach(glob('*.xml') as $f) {$f+=1;} - $nb_membres = count(glob('./gamers/*.xml')); + $nb_membres = count(glob('./medias/'.$hash.'/*.xml')); // liste des gamers - $folder = "./gamers"; + $folder = "./medias/".$hash."/"; $dossier = opendir($folder); while ($fichier = readdir($dossier)) { - if ($fichier != "." && $fichier != ".." ) + + if ($fichier != "." && $fichier != ".." && $fichier != "map.jpg" && $fichier != "soft.mp3" && $fichier != "tonic.mp3" && $fichier != "hard.mp3" && $fichier != "light.mp3" && $fichier != "dark.mp3") { $gamers = explode(".xml", $fichier); - $xml = simplexml_load_file('./gamers/'.$fichier); + $xml = simplexml_load_file('./medias/'.$hash.'/'.$fichier); if (!isset($itemnb)) { $itemnb=0; } else { @@ -150,7 +177,7 @@ } foreach($xml->entry as $entry) { echo ' -    +    '.$entry->nom.' '.$entry->hp.' '.$entry->xp.' @@ -174,20 +201,6 @@
    -
    -
    -
    -
    -
      Medias
    -
    -

    Lorem ipsum dolor sit amet.

    -
    -
    -
    -
    -
    - - diff --git a/music/dark.mp3 b/medias/c0f08ae603e364cb554fe71c9fc94ffd/dark.mp3 similarity index 100% rename from music/dark.mp3 rename to medias/c0f08ae603e364cb554fe71c9fc94ffd/dark.mp3 diff --git a/music/hard.mp3 b/medias/c0f08ae603e364cb554fe71c9fc94ffd/hard.mp3 similarity index 100% rename from music/hard.mp3 rename to medias/c0f08ae603e364cb554fe71c9fc94ffd/hard.mp3 diff --git a/music/light.mp3 b/medias/c0f08ae603e364cb554fe71c9fc94ffd/light.mp3 similarity index 100% rename from music/light.mp3 rename to medias/c0f08ae603e364cb554fe71c9fc94ffd/light.mp3 diff --git a/medias/c0f08ae603e364cb554fe71c9fc94ffd/map.jpg b/medias/c0f08ae603e364cb554fe71c9fc94ffd/map.jpg new file mode 100755 index 0000000..e807ec2 Binary files /dev/null and b/medias/c0f08ae603e364cb554fe71c9fc94ffd/map.jpg differ diff --git a/gamers/player1.xml b/medias/c0f08ae603e364cb554fe71c9fc94ffd/player1.xml similarity index 100% rename from gamers/player1.xml rename to medias/c0f08ae603e364cb554fe71c9fc94ffd/player1.xml diff --git a/gamers/player2.xml b/medias/c0f08ae603e364cb554fe71c9fc94ffd/player2.xml similarity index 100% rename from gamers/player2.xml rename to medias/c0f08ae603e364cb554fe71c9fc94ffd/player2.xml diff --git a/gamers/player3.xml b/medias/c0f08ae603e364cb554fe71c9fc94ffd/player3.xml similarity index 100% rename from gamers/player3.xml rename to medias/c0f08ae603e364cb554fe71c9fc94ffd/player3.xml diff --git a/music/soft.mp3 b/medias/c0f08ae603e364cb554fe71c9fc94ffd/soft.mp3 similarity index 100% rename from music/soft.mp3 rename to medias/c0f08ae603e364cb554fe71c9fc94ffd/soft.mp3 diff --git a/music/tonic.mp3 b/medias/c0f08ae603e364cb554fe71c9fc94ffd/tonic.mp3 similarity index 100% rename from music/tonic.mp3 rename to medias/c0f08ae603e364cb554fe71c9fc94ffd/tonic.mp3 diff --git a/music/final.mp3 b/music/final.mp3 deleted file mode 100644 index b0d2e1e..0000000 Binary files a/music/final.mp3 and /dev/null differ diff --git a/play/action.php b/play/action.php index 6abd50b..5b7b7e5 100644 --- a/play/action.php +++ b/play/action.php @@ -1,3 +1,5 @@ + + entry->hp<10) { $xml->entry->hp++; @@ -94,6 +96,6 @@ if (isset($_GET['edit_notes'])) { $xml->entry->notes = $_POST["notes"]; } -$xml->asXml('../gamers/'.$nom_modif.'.xml'); +$xml->asXml('../medias/'.$hash.'/'.$nom_modif.'.xml'); header("location: index.php"); ?> \ No newline at end of file diff --git a/play/gamers.php b/play/gamers.php index fed21b8..65472ac 100644 --- a/play/gamers.php +++ b/play/gamers.php @@ -1,6 +1,6 @@ + @@ -53,7 +55,7 @@
    - map + map
    @@ -63,7 +65,7 @@ // nombre de gamers $f = 0; foreach(glob('*.xml') as $f) {$f+=1;} - $nb_membres = count(glob('../gamers/*.xml')); + $nb_membres = count(glob('../medias/'.$hash.'/*.xml')); ?> + Format non supporté.'; +echo ''; } if ($sample=="tonic.mp3") { -echo ''; +echo ''; } if ($sample=="hard.mp3") { -echo ''; +echo ''; } if ($sample=="light.mp3") { -echo ''; +echo ''; } if ($sample=="dark.mp3") { -echo ''; +echo ''; } ?> \ No newline at end of file diff --git a/scenarios/scenario_1.odt b/scenarios/scenario_1.odt deleted file mode 100644 index e1f73bb..0000000 Binary files a/scenarios/scenario_1.odt and /dev/null differ