Exemplo n.º 1
0
<?php

/************************************************************************/
/* SFORM Extender for NPDS USER                                         */
/* ===========================                                          */
/* NPDS Copyright (c) 2002-2015 by Philippe Brunier                     */
/*                                                                      */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License.       */
/************************************************************************/
/* Dont modify this file is you dont know what you make                 */
/************************************************************************/
$sform_path = "modules/sform/";
include_once $sform_path . "sform.php";
global $m;
$m = new form_handler();
//********************
$m->add_form_title("Register");
$m->add_form_method("post");
$m->add_form_check("false");
$m->add_url("user.php");
/************************************************/
include $sform_path . "extend-user/mod_formulaire.php";
/************************************************/
echo $m->print_form('');
Exemplo n.º 2
0
/************************************************************************/
/* SFORM Extender for NPDS V Forum .                                    */
/* ===========================                                          */
/*                                                                      */
/* P. Brunier 2002 - 2011                                               */
/*                                                                      */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License.       */
/************************************************************************/
/* Dont modify this file is you dont know what you make                 */
/************************************************************************/
$sform_path = "modules/sform/";
include_once $sform_path . "sform.php";
global $m;
$m = new form_handler();
//********************
$m->add_form_title("Bugs_Report");
$m->add_form_method("post");
$m->add_form_check("false");
$m->add_mess(" * désigne un champ obligatoire ");
$m->add_submit_value("submitS");
$m->add_url("newtopic.php");
/************************************************/
include $sform_path . "forum/{$formulaire}";
/************************************************/
if (!$submitS) {
    echo $m->print_form("class=\"ligna\"");
} else {
    $message = $m->aff_response("class=\"ligna\"", "not_echo", "");
}
Exemplo n.º 3
0
$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:
        echo aff_langue($m->print_form("class=\"ligna\""));
        break;
}
Exemplo n.º 4
0
$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:
        echo aff_langue($m->print_form('class="ligna"'));
        break;
}