本文整理匯總了PHP中Members::checkUserExist方法的典型用法代碼示例。如果您正苦於以下問題:PHP Members::checkUserExist方法的具體用法?PHP Members::checkUserExist怎麽用?PHP Members::checkUserExist使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Members
的用法示例。
在下文中一共展示了Members::checkUserExist方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: implode
$company_id = $_POST['id'];
$vals = $_POST['data']['company'];
if (isset($_POST['manage_type'])) {
$managetype = implode(",", $_POST['manage_type']);
$vals['manage_type'] = $managetype;
}
if (isset($_POST['FoundDate'])) {
$vals['found_date'] = Times::dateConvert($_POST['FoundDate']);
}
if (isset($_POST['company']['main_market'])) {
$mainmarket = implode(",", $_POST['company']['main_market']);
$vals['main_market'] = $mainmarket;
}
if (isset($_POST['data']['username'])) {
$username = trim($_POST['data']['username']);
$user_info = $member->checkUserExist($username, true);
if ($user_info) {
$vals['member_id'] = $member->info['id'];
}
}
if (!empty($company_id)) {
$vals['modified'] = $time_stamp;
$result = $company->save($vals, "update", $company_id);
} else {
$vals['created'] = $vals['modified'] = $time_stamp;
$result = $company->save($vals);
}
if (!$result) {
flash();
}
}
示例2: Members
* @version $Revision: 2098 $
*/
define('CURSCRIPT', 'getpasswd');
require "libraries/common.inc.php";
require "share.inc.php";
require "libraries/sendmail.inc.php";
uses("member");
$member = new Members();
if (isset($_POST['do'])) {
pb_submit_check('data');
$do = trim($_POST['do']);
if ($do == "reset") {
$username = trim($_POST['data']['username']);
$userpass = trim($_POST['data']['password1']);
if (!empty($userpass) && !empty($username)) {
$user_exists = $member->checkUserExist($username, true);
if (!$user_exists) {
flash("member_not_exists");
} else {
$result = $pdb->Execute("UPDATE {$tb_prefix}members SET userpass='" . $member->authPasswd($userpass) . "' WHERE id=" . $member->info['id'] . " AND status='1'");
if ($result) {
flash("reset_and_login", "logging.php");
}
}
}
}
}
if (isset($_POST['action'])) {
pb_submit_check("data");
$checked = true;
$login_name = trim($_POST['data']['username']);