diff --git a/accueil.php b/accueil.php deleted file mode 100644 index 29cdeac..0000000 --- a/accueil.php +++ /dev/null @@ -1,21 +0,0 @@ - - - -
Connecté !
- - -
Permissions insufisantes.
- - -

\ No newline at end of file diff --git a/del.php b/del.php new file mode 100755 index 0000000..8d6c853 --- /dev/null +++ b/del.php @@ -0,0 +1,6 @@ + \ No newline at end of file diff --git a/fonts/SourceSansPro-Black.otf b/fonts/SourceSansPro-Black.otf old mode 100644 new mode 100755 diff --git a/fonts/SourceSansPro-BlackIt.otf b/fonts/SourceSansPro-BlackIt.otf old mode 100644 new mode 100755 diff --git a/fonts/SourceSansPro-Bold.otf b/fonts/SourceSansPro-Bold.otf old mode 100644 new mode 100755 diff --git a/fonts/SourceSansPro-BoldIt.otf b/fonts/SourceSansPro-BoldIt.otf old mode 100644 new mode 100755 diff --git a/fonts/SourceSansPro-ExtraLight.otf b/fonts/SourceSansPro-ExtraLight.otf old mode 100644 new mode 100755 diff --git a/fonts/SourceSansPro-ExtraLightIt.otf b/fonts/SourceSansPro-ExtraLightIt.otf old mode 100644 new mode 100755 diff --git a/fonts/SourceSansPro-It.otf b/fonts/SourceSansPro-It.otf old mode 100644 new mode 100755 diff --git a/fonts/SourceSansPro-Light.otf b/fonts/SourceSansPro-Light.otf old mode 100644 new mode 100755 diff --git a/fonts/SourceSansPro-LightIt.otf b/fonts/SourceSansPro-LightIt.otf old mode 100644 new mode 100755 diff --git a/fonts/SourceSansPro-Regular.otf b/fonts/SourceSansPro-Regular.otf old mode 100644 new mode 100755 diff --git a/fonts/SourceSansPro-Semibold.otf b/fonts/SourceSansPro-Semibold.otf old mode 100644 new mode 100755 diff --git a/fonts/SourceSansPro-SemiboldIt.otf b/fonts/SourceSansPro-SemiboldIt.otf old mode 100644 new mode 100755 diff --git a/header.php b/header.php new file mode 100755 index 0000000..2303ff5 --- /dev/null +++ b/header.php @@ -0,0 +1,31 @@ +ERREUR : Connexion au serveur impossible !"); + $db=mysql_select_db($base,$connexion) or die ("
ERREUR : Selection de la base $base impossible !
"); + } + mysql_query("SET NAMES UTF8"); +} + +function requete1l($sql) +{ + $resultat=mysql_query($sql) or die("
ERREUR : Requete $sql problematique !
"); + $ligne=mysql_fetch_array($resultat); + return $ligne; +} + +session_start(); +$status=$_SESSION['status']; +connecte("ecomonde"); +$sql="SELECT * FROM membres WHERE id='$status'"; +$res=mysql_query($sql) or die("Erreur de requete $sql"); +while ($ligne=mysql_fetch_array($res)) { +extract($ligne); +$hash=md5($email); +} +?> \ No newline at end of file diff --git a/img/logo_0.png b/img/logo_0.png old mode 100644 new mode 100755 diff --git a/index.php b/index.php old mode 100644 new mode 100755 index bb7c04e..41510f7 --- a/index.php +++ b/index.php @@ -1,10 +1,26 @@ - + +

C\'est bon !

+

Vous pouvez à présent vous connecter pour commencer à configurer votre partie.

'; +$message[2]=' +
+ +

Hey !

+

Vous avez déjà un compte !

'; +$message[3]=' +
+ +

Erreur !

+

Votre email/mot de passe est invalide !

'; +$message[4]=' +
+ +

Oups !

+

Vous devez vous connecter pour pouvoir jouer ;)

'; ?> - @@ -15,7 +31,6 @@ $hash=md5("contact@heuzef.com"); -
@@ -37,8 +52,8 @@ $hash=md5("contact@heuzef.com");
  •   GITHUB

  • + +
    +
    + +
    +
    +
    + + + + +
    +
    +
    + +

      EcoMonde est encore en Beta, certaines fonctions ne sont pas encore disponibles.

    +
    +
    +
    -
    @@ -64,16 +97,16 @@ $hash=md5("contact@heuzef.com");


    -   Créer un joueur +   Créer un joueur


    -   Importer un joueur (.XML) +   Importer un joueur (.XML)


    - +   Changer les musiques @@ -92,11 +125,7 @@ $hash=md5("contact@heuzef.com");


    -   Changer la carte -

    -
    -

    -   Supprimer votre partie +   Changer la carte

    @@ -145,7 +174,7 @@ $hash=md5("contact@heuzef.com"); } foreach($xml->entry as $entry) { echo ' -    +    '.$entry->nom.' '.$entry->hp.' '.$entry->xp.' @@ -234,7 +263,8 @@ $hash=md5("contact@heuzef.com");
    diff --git a/logout.php b/logout.php old mode 100644 new mode 100755 diff --git a/medias/d41d8cd98f00b204e9800998ecf8427e/dark.mp3 b/medias/d41d8cd98f00b204e9800998ecf8427e/dark.mp3 new file mode 100755 index 0000000..ca32538 Binary files /dev/null and b/medias/d41d8cd98f00b204e9800998ecf8427e/dark.mp3 differ diff --git a/medias/d41d8cd98f00b204e9800998ecf8427e/hard.mp3 b/medias/d41d8cd98f00b204e9800998ecf8427e/hard.mp3 new file mode 100755 index 0000000..ad53831 Binary files /dev/null and b/medias/d41d8cd98f00b204e9800998ecf8427e/hard.mp3 differ diff --git a/medias/d41d8cd98f00b204e9800998ecf8427e/light.mp3 b/medias/d41d8cd98f00b204e9800998ecf8427e/light.mp3 new file mode 100755 index 0000000..ccab731 Binary files /dev/null and b/medias/d41d8cd98f00b204e9800998ecf8427e/light.mp3 differ diff --git a/medias/d41d8cd98f00b204e9800998ecf8427e/map.jpg b/medias/d41d8cd98f00b204e9800998ecf8427e/map.jpg new file mode 100755 index 0000000..e807ec2 Binary files /dev/null and b/medias/d41d8cd98f00b204e9800998ecf8427e/map.jpg differ diff --git a/medias/d41d8cd98f00b204e9800998ecf8427e/player1.xml b/medias/d41d8cd98f00b204e9800998ecf8427e/player1.xml new file mode 100755 index 0000000..d6e00bf --- /dev/null +++ b/medias/d41d8cd98f00b204e9800998ecf8427e/player1.xml @@ -0,0 +1,18 @@ + + + + player1 + 10 + 20 + + 0 + 0 + 0 + 0 + 0 + 0 + + default + ... + + diff --git a/medias/d41d8cd98f00b204e9800998ecf8427e/player2.xml b/medias/d41d8cd98f00b204e9800998ecf8427e/player2.xml new file mode 100755 index 0000000..ff44a9b --- /dev/null +++ b/medias/d41d8cd98f00b204e9800998ecf8427e/player2.xml @@ -0,0 +1,18 @@ + + + + player2 + 10 + 20 + + 0 + 0 + 0 + 0 + 0 + 0 + + default + ... + + diff --git a/medias/d41d8cd98f00b204e9800998ecf8427e/player3.xml b/medias/d41d8cd98f00b204e9800998ecf8427e/player3.xml new file mode 100755 index 0000000..1526738 --- /dev/null +++ b/medias/d41d8cd98f00b204e9800998ecf8427e/player3.xml @@ -0,0 +1,18 @@ + + + + player3 + 10 + 20 + + 0 + 0 + 0 + 0 + 0 + 0 + + default + ... + + diff --git a/medias/d41d8cd98f00b204e9800998ecf8427e/soft.mp3 b/medias/d41d8cd98f00b204e9800998ecf8427e/soft.mp3 new file mode 100755 index 0000000..cf0dd5c Binary files /dev/null and b/medias/d41d8cd98f00b204e9800998ecf8427e/soft.mp3 differ diff --git a/medias/d41d8cd98f00b204e9800998ecf8427e/tonic.mp3 b/medias/d41d8cd98f00b204e9800998ecf8427e/tonic.mp3 new file mode 100755 index 0000000..9960a2b Binary files /dev/null and b/medias/d41d8cd98f00b204e9800998ecf8427e/tonic.mp3 differ diff --git a/medias/default/dark.mp3 b/medias/default/dark.mp3 new file mode 100755 index 0000000..ca32538 Binary files /dev/null and b/medias/default/dark.mp3 differ diff --git a/medias/default/hard.mp3 b/medias/default/hard.mp3 new file mode 100755 index 0000000..ad53831 Binary files /dev/null and b/medias/default/hard.mp3 differ diff --git a/medias/default/light.mp3 b/medias/default/light.mp3 new file mode 100755 index 0000000..ccab731 Binary files /dev/null and b/medias/default/light.mp3 differ diff --git a/medias/default/map.jpg b/medias/default/map.jpg new file mode 100755 index 0000000..e807ec2 Binary files /dev/null and b/medias/default/map.jpg differ diff --git a/medias/default/player1.xml b/medias/default/player1.xml new file mode 100755 index 0000000..d6e00bf --- /dev/null +++ b/medias/default/player1.xml @@ -0,0 +1,18 @@ + + + + player1 + 10 + 20 + + 0 + 0 + 0 + 0 + 0 + 0 + + default + ... + + diff --git a/medias/default/player2.xml b/medias/default/player2.xml new file mode 100755 index 0000000..ff44a9b --- /dev/null +++ b/medias/default/player2.xml @@ -0,0 +1,18 @@ + + + + player2 + 10 + 20 + + 0 + 0 + 0 + 0 + 0 + 0 + + default + ... + + diff --git a/medias/default/player3.xml b/medias/default/player3.xml new file mode 100755 index 0000000..1526738 --- /dev/null +++ b/medias/default/player3.xml @@ -0,0 +1,18 @@ + + + + player3 + 10 + 20 + + 0 + 0 + 0 + 0 + 0 + 0 + + default + ... + + diff --git a/medias/default/soft.mp3 b/medias/default/soft.mp3 new file mode 100755 index 0000000..cf0dd5c Binary files /dev/null and b/medias/default/soft.mp3 differ diff --git a/medias/default/tonic.mp3 b/medias/default/tonic.mp3 new file mode 100755 index 0000000..9960a2b Binary files /dev/null and b/medias/default/tonic.mp3 differ diff --git a/play/action.php b/play/action.php old mode 100644 new mode 100755 index 5b7b7e5..9882f28 --- a/play/action.php +++ b/play/action.php @@ -1,6 +1,4 @@ - - - + + @@ -146,4 +147,8 @@ - \ No newline at end of file + + + \ No newline at end of file diff --git a/play/music.php b/play/music.php index ac3fbcd..062e340 100755 --- a/play/music.php +++ b/play/music.php @@ -1,6 +1,5 @@ - +ERREUR : Connexion au serveur impossible !"); - $db=mysql_select_db($base,$connexion) or die ("
    ERREUR : Selection de la base $base impossible !
    "); - } - mysql_query("SET NAMES UTF8"); -} - -function requete1l($sql) -{ - $resultat=mysql_query($sql) or die("
    ERREUR : Requete $sql problematique !
    "); - $ligne=mysql_fetch_array($resultat); - return $ligne; -} - + \ No newline at end of file diff --git a/session.php b/session.php old mode 100644 new mode 100755 index dc5058e..1d12e31 --- a/session.php +++ b/session.php @@ -22,17 +22,17 @@ function requete1l($sql) } $email=$_POST['email']; -$password=$_POST['password']; +$password=sha1($_POST['password']); connecte("ecomonde"); $ligne=requete1l("SELECT * FROM membres WHERE email='$email' AND pass='$password'"); if($ligne=="") -header("location:index.php"); +header("location:index.php?msg=3"); else { -$_SESSION['status']=1; extract($ligne); +$_SESSION['status']=$id; header("location:index.php"); } \ No newline at end of file