Browse Source

insertion header pour la page session

master
heuzef 10 years ago
parent
commit
e99e9f0bc2
13 changed files with 22 additions and 25 deletions
  1. BIN
      medias/00eeb8f16e3e42ed1fe6dd0e59714650/dark.mp3
  2. BIN
      medias/00eeb8f16e3e42ed1fe6dd0e59714650/hard.mp3
  3. BIN
      medias/00eeb8f16e3e42ed1fe6dd0e59714650/light.mp3
  4. BIN
      medias/00eeb8f16e3e42ed1fe6dd0e59714650/map.jpg
  5. +18
    -0
      medias/00eeb8f16e3e42ed1fe6dd0e59714650/prout.xml
  6. BIN
      medias/00eeb8f16e3e42ed1fe6dd0e59714650/soft.mp3
  7. BIN
      medias/00eeb8f16e3e42ed1fe6dd0e59714650/tonic.mp3
  8. +0
    -0
      medias/c0f08ae603e364cb554fe71c9fc94ffd/Afyaka.xml
  9. +0
    -0
      medias/c0f08ae603e364cb554fe71c9fc94ffd/Heuzef.xml
  10. +0
    -0
      medias/c0f08ae603e364cb554fe71c9fc94ffd/Tyrek.xml
  11. +0
    -0
      medias/c0f08ae603e364cb554fe71c9fc94ffd/Zycheron.xml
  12. +0
    -0
      new_player.php
  13. +4
    -25
      session.php

BIN
medias/00eeb8f16e3e42ed1fe6dd0e59714650/dark.mp3 View File


BIN
medias/00eeb8f16e3e42ed1fe6dd0e59714650/hard.mp3 View File


BIN
medias/00eeb8f16e3e42ed1fe6dd0e59714650/light.mp3 View File


BIN
medias/00eeb8f16e3e42ed1fe6dd0e59714650/map.jpg View File

Before After
Width: 2000  |  Height: 1400  |  Size: 1.0 MiB

+ 18
- 0
medias/00eeb8f16e3e42ed1fe6dd0e59714650/prout.xml View File

@@ -0,0 +1,18 @@
<?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 View File


BIN
medias/00eeb8f16e3e42ed1fe6dd0e59714650/tonic.mp3 View File


+ 0
- 0
medias/c0f08ae603e364cb554fe71c9fc94ffd/Afyaka.xml View File


+ 0
- 0
medias/c0f08ae603e364cb554fe71c9fc94ffd/Heuzef.xml View File


+ 0
- 0
medias/c0f08ae603e364cb554fe71c9fc94ffd/Tyrek.xml View File


+ 0
- 0
medias/c0f08ae603e364cb554fe71c9fc94ffd/Zycheron.xml View File


+ 0
- 0
new_player.php View File


+ 4
- 25
session.php View File

@@ -1,31 +1,8 @@
<?php
session_start();

function connecte($base)
{
$hote="localhost";
$utilisateur="ecomonde";
$pass="proot";
if(!isset($connexion))
{
$connexion=mysql_connect($hote,$utilisateur,$pass) or die ("<div class='alert alert-danger'><strong>ERREUR : </strong>Connexion au serveur impossible !</div>");
$db=mysql_select_db($base,$connexion) or die ("<div class='alert alert-danger'><strong>ERREUR : </strong>Selection de la base $base impossible !</div>");
}
mysql_query("SET NAMES UTF8");
}

function requete1l($sql)
{
$resultat=mysql_query($sql) or die("<div class='alert alert-danger'><strong>ERREUR : </strong>Requete $sql problematique !</div>");
$ligne=mysql_fetch_array($resultat);
return $ligne;
}
<?php include "header.php";

$email=$_POST['email'];
$password=sha1($_POST['password']);

connecte("ecomonde");

$ligne=requete1l("SELECT * FROM membres WHERE email='$email' AND pass='$password'");

if($ligne=="")
@@ -35,4 +12,6 @@ else
extract($ligne);
$_SESSION['status']=$id;
header("location:index.php");
}
}

?>

Loading…
Cancel
Save