summaryrefslogtreecommitdiff
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
parente7cf0e99f41ab8ba3bab8aed516123c6f4ff3979 (diff)
download2007-AWOR-master.tar.gz
2007-AWOR-master.tar.bz2
2007-AWOR-master.zip
Version AWOR_v1.1HEADmaster
-rw-r--r--final/app/auth_dialog.php15
-rw-r--r--final/app/css/default_img/index.html0
-rw-r--r--final/app/css/ice_img/index.html0
-rw-r--r--final/app/css/ice_moche_img/index.html0
-rw-r--r--final/app/include/connect.inc.php4
-rw-r--r--final/app/profil.php13
-rw-r--r--final/doc/Manuel utilisateur.rarbin1455499 -> 0 bytes
-rw-r--r--final/doc/Manuel_Utilisateur.pdfbin916698 -> 916725 bytes
-rw-r--r--final/doc/Manuel_Utilisateur.sxw (renamed from final/doc/Manuel_Utilisateur2.sxw)bin796128 -> 796128 bytes
-rw-r--r--final/doc/Manuel_Utilisateur2.pdfbin916725 -> 0 bytes
-rw-r--r--final/doc/Rapport_final_1e.rarbin1540734 -> 0 bytes
-rw-r--r--final/install/base.sql6
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&eacute;sente le nom de la database &agrave; 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 &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";
diff --git a/final/doc/Manuel utilisateur.rar b/final/doc/Manuel utilisateur.rar
deleted file mode 100644
index 1bedc29..0000000
--- a/final/doc/Manuel utilisateur.rar
+++ /dev/null
Binary files differ
diff --git a/final/doc/Manuel_Utilisateur.pdf b/final/doc/Manuel_Utilisateur.pdf
index 89d6cd6..b52b413 100644
--- a/final/doc/Manuel_Utilisateur.pdf
+++ b/final/doc/Manuel_Utilisateur.pdf
Binary files differ
diff --git a/final/doc/Manuel_Utilisateur2.sxw b/final/doc/Manuel_Utilisateur.sxw
index f75ddc9..f75ddc9 100644
--- a/final/doc/Manuel_Utilisateur2.sxw
+++ b/final/doc/Manuel_Utilisateur.sxw
Binary files differ
diff --git a/final/doc/Manuel_Utilisateur2.pdf b/final/doc/Manuel_Utilisateur2.pdf
deleted file mode 100644
index b52b413..0000000
--- a/final/doc/Manuel_Utilisateur2.pdf
+++ /dev/null
Binary files differ
diff --git a/final/doc/Rapport_final_1e.rar b/final/doc/Rapport_final_1e.rar
deleted file mode 100644
index 2d27286..0000000
--- a/final/doc/Rapport_final_1e.rar
+++ /dev/null
Binary files 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,