Beispiel #1
0
    $s = $usersClass->login();
    if ($s === true) {
        if (isset($_SESSION['temp']['golink'])) {
            $web = $_SESSION['temp']['golink'];
            unset($_SESSION['temp']['golink']);
            refresh($web);
        }
        refresh('/' . $languageURL);
    } else {
        //            error_invalid_username_or_password
        //账号未激活
        if ($s == 'error_invalid_activation_no') {
            //通过用户名密码获取用户信息
            $username = $_POST['username'];
            $password = $_POST['password'];
            $user_info = $usersClass->getuserinfoByNamePwd($username, $password);
            $usersClass->res_send($user_info['user_id']);
            $res_data['show_status'] = 1;
            $res_mail = 'http://' . $usersClass->gotomail($user_info['email']);
            $_SESSION["THE_USER_RES_SEND_MAIL_4_M_MAIL"] = $res_mail;
            $_SESSION["THE_USER_RES_SEND_MAIL_4_M"] = $user_info['user_id'];
        } else {
            $res_data['user_info'] = array();
            $res_data['show_status'] = 0;
        }
        abr('res_data', $res_data);
        addErrorMessage($langArray[$s], '', 'error');
    }
}
#面包屑
abr('breadcrumb', '<a href="/' . $languageURL . '" title="">' . $langArray['home'] . '</a> \\ <a href="/' . $languageURL . 'users/login/" title="">' . $langArray['login'] . '</a>');
Beispiel #2
0
// +----------------------------------------------------------------------
// | Demila [ Beautiful Digital Content Trading System ]
// +----------------------------------------------------------------------
// | Copyright (c) 2015 http://demila.org All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Email author@demila.org
// +----------------------------------------------------------------------
_setView(__FILE__);
_setTitle($langArray['signup_setTitle']);
//重新发送邮件
if (isset($_POST['res_send']) && $_POST['res_send'] == 'yes' && isset($_POST['user_id']) && !empty($_POST['user_id'])) {
    $usersClass = new users();
    $res = $usersClass->res_send($_POST['user_id']);
    if ($res) {
        die('success');
    }
}
if (check_login_bool()) {
    refresh('/' . $languageURL . 'edit/');
}
if (get_id(2) == 'verify') {
    abr('verify', 'yes');
} elseif (get_id(2) == 'complete') {
    abr('complete', 'yes');
} else {
    require_once ROOT_PATH . '/apps/pages/models/pages.class.php';
    $pagesClass = new pages();
    $terms = $pagesClass->getByKey('terms');
Beispiel #3
0
<?php

require_once '../../../config.php';
require_once $config['root_path'] . '/core/functions.php';
include_once $config['system_core'] . "/initEngine.php";
//重新发送邮件
if (isset($_POST['res_send']) && $_POST['res_send'] == 'yes' && isset($_POST['user_id']) && !empty($_POST['user_id']) && $_SESSION['THE_USER_RES_SEND_MAIL_4_M'] && $_SESSION['THE_USER_RES_SEND_MAIL_4_M'] == $_POST['user_id']) {
    require_once ROOT_PATH . '/apps/users/models/users.class.php';
    $usersClass = new users();
    $res = $usersClass->res_send($_SESSION['THE_USER_RES_SEND_MAIL_4_M']);
    if ($res) {
        die(json_encode(array('status' => 'success')));
    } else {
        die(json_encode(array('status' => 'error')));
    }
}
//重置邮箱
if (isset($_POST['res_mail']) && $_POST['res_mail'] == 'yes' && isset($_POST['user_id']) && !empty($_POST['user_id']) && $_SESSION['THE_USER_RES_SEND_MAIL_4_M'] && $_SESSION['THE_USER_RES_SEND_MAIL_4_M'] == $_POST['user_id']) {
    require_once ROOT_PATH . '/apps/users/models/users.class.php';
    $usersClass = new users();
    $res = $usersClass->res_mail($_SESSION['THE_USER_RES_SEND_MAIL_4_M']);
    if ($res) {
        die(json_encode(array('status' => 'success', 'mail' => $_SESSION['THE_USER_RES_SEND_MAIL_4_M_MAIL'])));
    } else {
        die(json_encode(array('status' => 'error')));
    }
}
die;