From 35a23f6145bb772b9bfa8c8eeb500aa8c02437d3 Mon Sep 17 00:00:00 2001 From: Ludovic Pouzenc Date: Thu, 5 Jul 2018 00:28:24 +0200 Subject: Version awor_1.0_20070316.tar.bz2 --- final/app/profil.php | 65 +++++++++++++++++++++++++++++++++++++--------------- 1 file changed, 46 insertions(+), 19 deletions(-) (limited to 'final/app/profil.php') diff --git a/final/app/profil.php b/final/app/profil.php index bd88afd..16d3449 100644 --- a/final/app/profil.php +++ b/final/app/profil.php @@ -5,8 +5,14 @@ require_once('include/connect.inc.php'); require_once('include/ju.inc.php'); if ( isset($_REQUEST['action']) ) { - $nom_func = 'traiter_formulaire_' . $_REQUEST['action']; - $nom_func(); + if ($_POST['action'] == "maj_profil") + { + if (1==1)//Verification auth puis traitement + { + $nom_func = 'traiter_formulaire_' . $_REQUEST['action']; + $nom_func(); + } + } } generate_html_doctype_and_head("Administration du profil"); @@ -31,27 +37,48 @@ else { $nom = $_SESSION['session_loginP']; } -$resultat = mysql_query("SELECT * FROM AWOR_Personne WHERE idP = '".$_SESSION['session_idP']."'"); -if($resultat != false) +if (isset($_POST['pre_action']) & $_POST['pre_action']=="verif_profil") { - $p = mysql_fetch_array($resultat); - echo "
\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "
Methode d'authentification : \n
Votre login :
Votre adresse mail :
Votre nom :
Votre prenom :
\n"; + + echo "\n"; + echo ""; + echo ""; + echo ""; + echo ""; + echo "
Confirmer votre authentification
Identifiant : ".$_POST['loginP']."
Mot de passe :
"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; echo "\n"; echo "
\n"; - echo "\n"; } -if ( isset ($errmsg) ) generate_html_div_errmsg($errmsg); +else +{ + + $resultat = mysql_query("SELECT * FROM AWOR_Personne WHERE idP = '".$_SESSION['session_idP']."'"); + if($resultat != false) + { + $p = mysql_fetch_array($resultat); + echo "
\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "
Methode d'authentification : \n
Votre login :
Votre adresse mail :
Votre nom :
Votre prenom :
\n"; + echo "\n"; + echo "
\n"; + echo "\n"; + } + if ( isset ($errmsg) ) generate_html_div_errmsg($errmsg); +} ?>
-- cgit v1.2.3