Change page messages

This commit is contained in:
Bertrand 2012-05-23 18:27:42 +02:00
parent d74f8ef47c
commit 821b537e93
2 changed files with 5 additions and 4 deletions

View File

@ -57,7 +57,8 @@ while ($line == $question->get_validator())
echo "La question a été validée"
echo "Merci de votre participation <br/>";
echo "Une personne va maintenant confirmer votre question"
?>

View File

@ -55,14 +55,14 @@ if (isset ($_POST['send']))
echo 'Mail of user : ' . $_POST['email'] . "<br/>";
/* This code works, perhaps should be placed in a method in Question class?
/* This code works, perhaps should be placed in a method in Question class?*/
$to = $_POST['email'];
$subject = "[Nemubot] Confirmation de question";
$headers = "From: Nemubot <bot@nemunai.re>";
$message = "Bonjour,\n" .
"Êtes vous la personne qui a posté une nouvelle question ?\n" .
"Adresse de validation:
$confirmationAddress . $quest->getId()";
"Adresse de validation:"
. $confirmationAddress . $quest->getId();
if (mail($to, $subject, $message, $headers))
{