Ejemplo n.º 1
0
die('<p style="font-size:36px;color:black;font-weight:bold;">404!</p>');
global $_str;
//если регистрируемся
if (system::isset_ctrl('formregistration')) {
    switch ($_GET['formregistration']) {
        // новый пользователь
        case "fpasword":
            // добавление
            if ($_POST) {
                if (!captcha::check_captcha()) {
                    //выводим сообщение
                    Message::GetMessage(0, v::getI18n('message_error_captcha'));
                    // форма регистрации
                    $_str = system::show_tpl(array('city' => dbh::get_city()), "frontend/registration/fpasword.php");
                } else {
                    if (!registration::is_Mail($_POST['FORM']['email'])) {
                        //выводим сообщение
                        Message::GetMessage(0, v::getI18n('mail_error_login'));
                        // убиваем логин
                        unset($_POST['FORM']['email']);
                        // форма регистрации
                        $_str = system::show_tpl(array('city' => dbh::get_city()), "frontend/registration/fpasword.php");
                    } else {
                        // получаем данные пользователя
                        $_user = registration::get_User_By_Email($_POST['FORM']['email']);
                        // авторизуем пользователя
                        //registration::autorize_User($_user);
                        //---------------------------------------------------------//
                        //---------- Отправляем мыло useru ------------------------//
                        //---------------------------------------------------------//
                        // парсим тело письма