Exemplo n.º 1
0
$m->add_form_method("post");
$m->add_form_check("true");
$m->add_mess(utf8_java("[french] * désigne un champ obligatoire [/french][english] * indicate an obligatory field [/english]"));
$m->add_submit_value("ok");
$m->add_url("modules.php");
$m->add_field("ModStart", "", $ModStart, 'hidden', false);
$m->add_field("ModPath", "", $ModPath, 'hidden', false);
/************************************************/
include $sform_path . "contact/formulaire.php";
/************************************************/
// Manage the <form>
switch ($ok) {
    case 'Soumettre':
    case 'Submit':
        if (!$sformret) {
            $m->make_response();
            //anti_spambot
            if (!R_spambot($asb_question, $asb_reponse, $message)) {
                Ecr_Log("security", "Contact", "");
                $ok = "";
            } else {
                $message = $m->aff_response("class=\"ligna\"", "not_echo", "");
                global $notify_email;
                send_email($notify_email, "Contact site", aff_langue($message), "", "", "html");
                echo "<p class=\"lead text-xs-center\">" . aff_langue("[french]Votre demande est prise en compte. Nous y r&#xE9;pondrons au plus vite[/french][english]Your request is taken into account. We will answer it as fast as possible.[/english]") . "</p>";
                break;
            }
        } else {
            $ok = "";
        }
    default: