From a5dba7cbf654d45763d85130e52f66cdce7871ba Mon Sep 17 00:00:00 2001 From: Ludovic Pouzenc Date: Thu, 5 Jul 2018 00:35:24 +0200 Subject: Version AWOR_v1.1 --- final/app/auth_dialog.php | 15 ++++++++------- final/app/css/default_img/index.html | 0 final/app/css/ice_img/index.html | 0 final/app/css/ice_moche_img/index.html | 0 final/app/include/connect.inc.php | 4 ++-- final/app/profil.php | 13 +++++-------- final/doc/Manuel utilisateur.rar | Bin 1455499 -> 0 bytes final/doc/Manuel_Utilisateur.pdf | Bin 916698 -> 916725 bytes final/doc/Manuel_Utilisateur.sxw | Bin 0 -> 796128 bytes final/doc/Manuel_Utilisateur2.pdf | Bin 916725 -> 0 bytes final/doc/Manuel_Utilisateur2.sxw | Bin 796128 -> 0 bytes final/doc/Rapport_final_1e.rar | Bin 1540734 -> 0 bytes final/install/base.sql | 6 +++--- 13 files changed, 18 insertions(+), 20 deletions(-) create mode 100644 final/app/css/default_img/index.html create mode 100644 final/app/css/ice_img/index.html create mode 100644 final/app/css/ice_moche_img/index.html delete mode 100644 final/doc/Manuel utilisateur.rar create mode 100644 final/doc/Manuel_Utilisateur.sxw delete mode 100644 final/doc/Manuel_Utilisateur2.pdf delete mode 100644 final/doc/Manuel_Utilisateur2.sxw delete mode 100644 final/doc/Rapport_final_1e.rar (limited to 'final') diff --git a/final/app/auth_dialog.php b/final/app/auth_dialog.php index fce5948..180f23c 100644 --- a/final/app/auth_dialog.php +++ b/final/app/auth_dialog.php @@ -96,13 +96,14 @@ function authentification($loginP,$pass,$verifAuth="") } } - - - session_start(); - $_SESSION['session_loginP']=$loginP; - $_SESSION['session_nomP']=$nomP; - $_SESSION['session_prenomP']=$prenomP; - $_SESSION['session_idP']=$idP; + if ($verifAuth == "") + { + session_start(); + $_SESSION['session_loginP']=$loginP; + $_SESSION['session_nomP']=$nomP; + $_SESSION['session_prenomP']=$prenomP; + $_SESSION['session_idP']=$idP; + } } return ($auth_is_ok?true:$errmsg); } diff --git a/final/app/css/default_img/index.html b/final/app/css/default_img/index.html new file mode 100644 index 0000000..e69de29 diff --git a/final/app/css/ice_img/index.html b/final/app/css/ice_img/index.html new file mode 100644 index 0000000..e69de29 diff --git a/final/app/css/ice_moche_img/index.html b/final/app/css/ice_moche_img/index.html new file mode 100644 index 0000000..e69de29 diff --git a/final/app/include/connect.inc.php b/final/app/include/connect.inc.php index 469ebd1..b5a70a7 100644 --- a/final/app/include/connect.inc.php +++ b/final/app/include/connect.inc.php @@ -4,9 +4,9 @@ */ // $bd représente le nom de la database à utiliser -$bd = "awor_final"; +$bd = "awor"; // mysql_connect(, , ); -$link = @mysql_connect('localhost', 'lud_restricted', 'maille_ess_ku_elle'); +$link = @mysql_connect('localhost', 'root', ''); @mysql_select_db($bd , $link); 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 été 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 "

\n"; } @@ -94,6 +90,7 @@ if ($verif_auth==false) echo "
\n"; echo "\n"; echo "\n"; diff --git a/final/doc/Manuel utilisateur.rar b/final/doc/Manuel utilisateur.rar deleted file mode 100644 index 1bedc29..0000000 Binary files a/final/doc/Manuel utilisateur.rar and /dev/null differ diff --git a/final/doc/Manuel_Utilisateur.pdf b/final/doc/Manuel_Utilisateur.pdf index 89d6cd6..b52b413 100644 Binary files a/final/doc/Manuel_Utilisateur.pdf and b/final/doc/Manuel_Utilisateur.pdf differ diff --git a/final/doc/Manuel_Utilisateur.sxw b/final/doc/Manuel_Utilisateur.sxw new file mode 100644 index 0000000..f75ddc9 Binary files /dev/null and b/final/doc/Manuel_Utilisateur.sxw differ diff --git a/final/doc/Manuel_Utilisateur2.pdf b/final/doc/Manuel_Utilisateur2.pdf deleted file mode 100644 index b52b413..0000000 Binary files a/final/doc/Manuel_Utilisateur2.pdf and /dev/null differ diff --git a/final/doc/Manuel_Utilisateur2.sxw b/final/doc/Manuel_Utilisateur2.sxw deleted file mode 100644 index f75ddc9..0000000 Binary files a/final/doc/Manuel_Utilisateur2.sxw and /dev/null differ diff --git a/final/doc/Rapport_final_1e.rar b/final/doc/Rapport_final_1e.rar deleted file mode 100644 index 2d27286..0000000 Binary files a/final/doc/Rapport_final_1e.rar and /dev/null differ diff --git a/final/install/base.sql b/final/install/base.sql index 6d1ba97..48ea5a1 100644 --- a/final/install/base.sql +++ b/final/install/base.sql @@ -47,7 +47,7 @@ CREATE TABLE IF NOT EXISTS `AWOR_Creneau` ( DROP TABLE IF EXISTS `AWOR_Fichier`; CREATE TABLE IF NOT EXISTS `AWOR_Fichier` ( `idFic` int(11) NOT NULL auto_increment, - `nomFic` varchar(256) NOT NULL, + `nomFic` varchar(254) NOT NULL, `idR` int(11) NOT NULL, PRIMARY KEY (`idFic`) ); @@ -97,7 +97,7 @@ DROP TABLE IF EXISTS `AWOR_Repondre`; CREATE TABLE IF NOT EXISTS `AWOR_Repondre` ( `idR` int(11) NOT NULL, `idP` int(11) NOT NULL, - `commentaireReponse` varchar(500) default NULL, + `commentaireReponse` BLOB default NULL, PRIMARY KEY (`idR`,`idP`) ); @@ -113,7 +113,7 @@ CREATE TABLE IF NOT EXISTS `AWOR_Reunion` ( `objetR` varchar(80) NOT NULL, `ordreJourR` varchar(250), `lieuR` varchar(50), - `remarquesR` varchar(500), + `remarquesR` BLOB, `montrerDispoR` set('oui','non') NOT NULL default 'non', `estAnnulee` set('oui','non') NOT NULL default 'non', `idP_Orga` int(11) NOT NULL, -- cgit v1.2.3
Methode d'authentification : \n