forked from halo-battle/game
First code received by Master Leon
This commit is contained in:
commit
4230eb6922
330 changed files with 15543 additions and 0 deletions
19
page/nom.php
Normal file
19
page/nom.php
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
<?php
|
||||
session_start();
|
||||
$id=$_SESSION['id'];
|
||||
$galaxy=$_SESSION['galaxy'];
|
||||
$ss=$_SESSION['ss'];
|
||||
$pos=$_SESSION['pos'];
|
||||
mysql_connect("leon.redby.fr", "leon0", "7268032");
|
||||
mysql_select_db("leon0");
|
||||
|
||||
|
||||
if (isset($_POST['nouveaunom']) && $_POST['nouveaunom']!='') {
|
||||
mysql_query("UPDATE user SET nomplanete='".$_POST['nouveaunom']."' WHERE id='".$id."' AND galaxy='".$galaxy."' AND pos='".$pos."' AND ss='".$ss."'");
|
||||
header("Location: depart.php");
|
||||
}
|
||||
else { header("Location: depart.php"); }
|
||||
|
||||
|
||||
mysql_close();
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue