diff options
Diffstat (limited to 'beta_old1/app/sendmail.php')
-rw-r--r-- | beta_old1/app/sendmail.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/beta_old1/app/sendmail.php b/beta_old1/app/sendmail.php index e62a4a5..6969701 100644 --- a/beta_old1/app/sendmail.php +++ b/beta_old1/app/sendmail.php @@ -48,7 +48,7 @@ if( isset($_POST['envoi']) ) else { // Potentiellement dangereux... - $query='SELECT nomP, prenomP, courrielP FROM Personne WHERE idP=\'' . implode("' OR idP='", $_POST['dataParticipants']) . "'"; + $query='SELECT nomP, prenomP, courrielP FROM AWOR_Personne WHERE idP=\'' . implode("' OR idP='", $_POST['dataParticipants']) . "'"; //~ echo " DEBUG : QUERY : $query\n"; $result = mysql_query($query); if ( ! $result ) @@ -65,7 +65,7 @@ if( isset($_POST['envoi']) ) $to=implode(', ',$to); - if ( ! mail ( $to, urldecode($_POST['msgObject']), wordwrap(urldecode($_POST['msgText']),70), 'From: ' . $CONFIG['automatedMail'] . "\r\n" ) ) + if ( ! mail ( $to, $_POST['msgObject'], wordwrap($_POST['msgText'],70), 'From: ' . $CONFIG['automatedMail'] . "\r\n" ) ) { $errmsg = "Erreur lors de l'émission de l'email : Erreur inconnue"; } @@ -86,7 +86,7 @@ if( isset($_POST['envoi']) ) } -$result = mysql_query("SELECT idL FROM Reunion WHERE idR='$idR'"); +$result = mysql_query("SELECT idL FROM AWOR_Reunion WHERE idR='$idR'"); if (mysql_num_rows($result)===1) { list($idL) = mysql_fetch_array($result); @@ -119,7 +119,7 @@ else <select name="contactDispo" size="10" id="contactDispo"> <?php $personnes = array(); - $req = 'SELECT P.idP , P.courrielP , P.nomP , P.prenomP FROM Personne P, Appartenir A WHERE P.idP=A.idP AND A.idL=' . $idL; + $req = 'SELECT P.idP , P.courrielP , P.nomP , P.prenomP FROM AWOR_Personne P, AWOR_Appartenir A WHERE P.idP=A.idP AND A.idL=' . $idL; $result = mysql_query($req) ; if (mysql_num_rows($result)>0) |