Version 2007-10-27
This commit is contained in:
parent
b8e951f59d
commit
4909921671
98 changed files with 6096 additions and 2268 deletions
25
pages/ndepart.php
Normal file
25
pages/ndepart.php
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
<?php
|
||||
session_start();
|
||||
require_once('../connectBDD.php');
|
||||
|
||||
$Pid = $_POST['Pid'];
|
||||
|
||||
$id = $_SESSION['id'];
|
||||
$galaxy = $_SESSION['galaxy'];
|
||||
$ss = $_SESSION['ss'];
|
||||
$pos = $_SESSION['pos'];
|
||||
$race = $_SESSION['race'];
|
||||
|
||||
$y = mysql_query("SELECT * FROM planete WHERE id='$Pid'");
|
||||
$donnees = mysql_fetch_array($y);
|
||||
|
||||
|
||||
if ($donnees['id_user'] == $id) {
|
||||
$_SESSION['galaxy'] = $donnees['galaxie'];
|
||||
$_SESSION['ss'] = $donnees['ss'];
|
||||
$_SESSION['pos'] = $donnees['position'];
|
||||
header('Location: depart.php');
|
||||
}
|
||||
else header('Location: depart.php');
|
||||
mysql_close();
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue