diff options
Diffstat (limited to 'final')
-rw-r--r-- | final/app/auth_dialog.php | 15 | ||||
-rw-r--r-- | final/app/css/default_img/index.html | 0 | ||||
-rw-r--r-- | final/app/css/ice_img/index.html | 0 | ||||
-rw-r--r-- | final/app/css/ice_moche_img/index.html | 0 | ||||
-rw-r--r-- | final/app/include/connect.inc.php | 4 | ||||
-rw-r--r-- | final/app/profil.php | 13 | ||||
-rw-r--r-- | final/doc/Manuel utilisateur.rar | bin | 1455499 -> 0 bytes | |||
-rw-r--r-- | final/doc/Manuel_Utilisateur.pdf | bin | 916698 -> 916725 bytes | |||
-rw-r--r-- | final/doc/Manuel_Utilisateur.sxw (renamed from final/doc/Manuel_Utilisateur2.sxw) | bin | 796128 -> 796128 bytes | |||
-rw-r--r-- | final/doc/Manuel_Utilisateur2.pdf | bin | 916725 -> 0 bytes | |||
-rw-r--r-- | final/doc/Rapport_final_1e.rar | bin | 1540734 -> 0 bytes | |||
-rw-r--r-- | final/install/base.sql | 6 |
12 files changed, 18 insertions, 20 deletions
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 --- /dev/null +++ b/final/app/css/default_img/index.html 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 --- /dev/null +++ b/final/app/css/ice_img/index.html 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 --- /dev/null +++ b/final/app/css/ice_moche_img/index.html 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(<nom_ou_ip_serveur_mysql>, <utilisateur_mysql>, <mot_de_passe_en_clair_mysql>); -$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 "<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"; diff --git a/final/doc/Manuel utilisateur.rar b/final/doc/Manuel utilisateur.rar Binary files differdeleted file mode 100644 index 1bedc29..0000000 --- a/final/doc/Manuel utilisateur.rar +++ /dev/null diff --git a/final/doc/Manuel_Utilisateur.pdf b/final/doc/Manuel_Utilisateur.pdf Binary files differindex 89d6cd6..b52b413 100644 --- a/final/doc/Manuel_Utilisateur.pdf +++ b/final/doc/Manuel_Utilisateur.pdf diff --git a/final/doc/Manuel_Utilisateur2.sxw b/final/doc/Manuel_Utilisateur.sxw Binary files differindex f75ddc9..f75ddc9 100644 --- a/final/doc/Manuel_Utilisateur2.sxw +++ b/final/doc/Manuel_Utilisateur.sxw diff --git a/final/doc/Manuel_Utilisateur2.pdf b/final/doc/Manuel_Utilisateur2.pdf Binary files differdeleted file mode 100644 index b52b413..0000000 --- a/final/doc/Manuel_Utilisateur2.pdf +++ /dev/null diff --git a/final/doc/Rapport_final_1e.rar b/final/doc/Rapport_final_1e.rar Binary files differdeleted file mode 100644 index 2d27286..0000000 --- a/final/doc/Rapport_final_1e.rar +++ /dev/null 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, |