-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathTrouvetateam.php
34 lines (33 loc) · 1.01 KB
/
Trouvetateam.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php session_start(); ?>
<?php
if (isset($_GET['tttd']) AND $_GET['tttd']==true)
{
$_SESSION['tttpseudo']=NULL;
$_SESSION['tttpass']=NULL;
$_SESSION['tttville']=NULL;
$_SESSION['tttmail']=NULL;
$_SESSION['tttphoto']=NULL;
$_SESSION['ttttelephone']=NULL;
$_SESSION['tttnom']=NULL;
$_SESSION['tttprenom']=NULL;
$_GET['tttd']=NULL;
}
else{
$_GET['tttd']=NULL;
}
?>
<?php
if (isset($_SESSION['tttpseudo'])){
include('TTT_BDD.php');
$time=date('Y-m-d', time());
$reqp = $bdd->prepare('UPDATE utilisateurs SET derniere_connexion = :derniere_connexion WHERE NomUtilisateur = :NomUtilisateur');
$reqp->execute(array(
'NomUtilisateur' => $_SESSION['tttpseudo'],
'derniere_connexion' =>$time
));
include("Accueilc.php");
}
else{
include("Accueild.php");
}
?>