Sfoglia il codice sorgente

insertion header pour la page session

master
heuzef 10 anni fa
parent
commit
e99e9f0bc2
13 ha cambiato i file con 22 aggiunte e 25 eliminazioni
  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 Vedi File


BIN
medias/00eeb8f16e3e42ed1fe6dd0e59714650/hard.mp3 Vedi File


BIN
medias/00eeb8f16e3e42ed1fe6dd0e59714650/light.mp3 Vedi File


BIN
medias/00eeb8f16e3e42ed1fe6dd0e59714650/map.jpg Vedi File

Prima Dopo
Larghezza: 2000  |  Altezza: 1400  |  Dimensione: 1.0 MiB

+ 18
- 0
medias/00eeb8f16e3e42ed1fe6dd0e59714650/prout.xml Vedi 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 Vedi File


BIN
medias/00eeb8f16e3e42ed1fe6dd0e59714650/tonic.mp3 Vedi File


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


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


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


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


+ 0
- 0
new_player.php Vedi File


+ 4
- 25
session.php Vedi 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");
}
}

?>

Caricamento…
Annulla
Salva