summaryrefslogtreecommitdiff
path: root/final/app/profil.php
diff options
context:
space:
mode:
authorLudovic Pouzenc <ludovic@pouzenc.fr>2018-07-05 00:35:24 +0200
committerLudovic Pouzenc <ludovic@pouzenc.fr>2018-07-05 00:35:24 +0200
commita5dba7cbf654d45763d85130e52f66cdce7871ba (patch)
treef5623cbdc7500c3f639d722b346b8576b01ceb11 /final/app/profil.php
parente7cf0e99f41ab8ba3bab8aed516123c6f4ff3979 (diff)
download2007-AWOR-a5dba7cbf654d45763d85130e52f66cdce7871ba.tar.gz
2007-AWOR-a5dba7cbf654d45763d85130e52f66cdce7871ba.tar.bz2
2007-AWOR-a5dba7cbf654d45763d85130e52f66cdce7871ba.zip
Version AWOR_v1.1HEADmaster
Diffstat (limited to 'final/app/profil.php')
-rw-r--r--final/app/profil.php13
1 files changed, 5 insertions, 8 deletions
diff --git a/final/app/profil.php b/final/app/profil.php
index eebc750..55e91ff 100644
--- a/final/app/profil.php
+++ b/final/app/profil.php
@@ -11,20 +11,17 @@ if ( isset($_REQUEST['action']) )
if ($_POST['action'] == "maj_profil")
{
include('auth_dialog.php');
- if ( authentification(addslashes_if_needed($_POST['loginP']),addslashes_if_needed($_POST['pass']),addslashes_if_needed($_POST['methodeAuth'])) === true )
+ $result_fonc = authentification(addslashes_if_needed($_POST['loginP']),addslashes_if_needed($_POST['pass']),addslashes_if_needed($_POST['methodeAuth']));
+ if ($result_fonc === true )
{
$nom_func = 'traiter_formulaire_' . $_REQUEST['action'];
$result_fonc = $nom_func();
}
- else
- {
- $result_fonc = -1;
- }
}
}
if (isset($_POST['pre_action']) )
{
- if (($_POST['pre_action'] == "verif_profil" & ($_POST["oldLogin"] == $_POST["loginP"]) | ($_POST["oldMethodeAuth"] == $_POST["methodeAuth"])))
+ if (($_POST['pre_action'] == "verif_profil" & ($_POST["oldLogin"] == $_POST["loginP"]) & ($_POST["oldMethodeAuth"] == $_POST["methodeAuth"])))
{
$nom_func = 'traiter_formulaire_maj_profil';
$result_fonc = $nom_func();
@@ -85,8 +82,7 @@ if ($verif_auth==false)
if (isset($result_fonc))
{
if ($result_fonc === true) echo "Les modifications ont &eacute;t&eacute; prises en compte.";
- if ($result_fonc === false) echo "Erreur de modification de votre compte.";
- if ($result_fonc === -1) echo "Erreur, le mot de passe et le login ne sont pas conformes.";
+ else echo $result_fonc;
echo "<br/><br/>\n";
}
@@ -94,6 +90,7 @@ if ($verif_auth==false)
echo "<form method=\"post\" action=\"profil.php\" onSubmit=\"return verifProfil()\" >\n";
echo "<table summary=\"Formulaire permettant de modifier le profil de l'utilisateur\" >\n";
echo "<tr><td>Methode d'authentification : </td><td>\n<select name=\"methodeAuth\">\n";
+ //echo "<option value=\"bypass\" selected=\"selected\">bypass</option>\n";
if($p["methodeAuth"] == "webetud") echo "<option value=\"webetud\" selected=\"selected\">Webetud</option>\n"; else echo "<option value=\"webetud\">Webetud</option>\n";
if($p["methodeAuth"] == "pop") echo "<option value=\"pop\" selected=\"selected\">POP3</option>\n"; else echo "<option value=\"pop\">POP3</option>\n";
echo "</select></td></tr>\n";