本文整理匯總了PHP中users::res_send方法的典型用法代碼示例。如果您正苦於以下問題:PHP users::res_send方法的具體用法?PHP users::res_send怎麽用?PHP users::res_send使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類users
的用法示例。
在下文中一共展示了users::res_send方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: unset
$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>');
示例2: users
// +----------------------------------------------------------------------
// | 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');
示例3: users
<?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;