本文整理匯總了PHP中Updater::findEmail方法的典型用法代碼示例。如果您正苦於以下問題:PHP Updater::findEmail方法的具體用法?PHP Updater::findEmail怎麽用?PHP Updater::findEmail使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Updater
的用法示例。
在下文中一共展示了Updater::findEmail方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: Resetter
$resetter = new Resetter();
$encodeExplorer = new EncodeExplorer();
$dest = filter_input(INPUT_POST, "user_email", FILTER_VALIDATE_EMAIL);
$pulito = filter_input(INPUT_POST, 'cleanurl', FILTER_SANITIZE_STRING);
$postcaptcha = filter_input(INPUT_POST, "captcha", FILTER_SANITIZE_STRING);
global $_USERS;
global $_TOKENS;
if (!$dest || $setUp->getConfig("show_captcha_reset") == true && !$postcaptcha) {
print "<div class=\"alert alert-warning\">" . $encodeExplorer->getString("fill_all_fields") . "</div>";
exit;
}
if (Utils::checkCaptchaReset($postcaptcha) !== true) {
print "<div class=\"alert alert-danger\">" . $encodeExplorer->getString("wrong_captcha") . "</div>";
exit;
}
if (!$updater->findEmail($dest)) {
print "<div class=\"alert alert-danger\">" . $encodeExplorer->getString("email_not_exist") . "</div>";
exit;
}
if (!$resetter->setToken($dest)) {
print "<div class=\"alert alert-danger\">Error: token not set</div>";
exit;
}
$token = $resetter->setToken($dest);
$setfrom = $setUp->getConfig('email_from');
$mail = new PHPMailer();
$mail->CharSet = 'UTF-8';
if ($setUp->getConfig('smtp_enable') == true) {
$timeconfig = $setUp->getConfig('default_timezone');
$timezone = strlen($timeconfig) > 0 ? $timeconfig : "UTC";
date_default_timezone_set($timezone);
示例2: array
$newquota = filter_input(INPUT_POST, "quota", FILTER_SANITIZE_STRING);
$newuserfolders = false;
if (isset($_POST['newuserfolders']) || $postnewuserfolder) {
$newuserfolders = array();
if (isset($_POST['newuserfolders'])) {
$newuserfolders = $_POST['newuserfolders'];
}
}
$postnewusermail = filter_input(INPUT_POST, "newusermail", FILTER_VALIDATE_EMAIL);
if ($postnewusername || $postnewuserpass) {
if (!$postnewusername || !$postnewuserpass) {
$success = $encodeExplorer->getString("indicate_username_and_password_for_new_user");
$status = 'nope';
} else {
$users = $_USERS;
if (!$updater->findUser($postnewusername) && !$updater->findEmail($postnewusermail)) {
$newuser = array();
$salt = $setUp->getConfig('salt');
$newuserpass = crypt($salt . urlencode($postnewuserpass), Utils::randomString());
$newuser['name'] = $postnewusername;
$newuser['pass'] = $newuserpass;
$newuser['role'] = $_POST['newrole'];
if ($postnewuserfolder) {
if (!file_exists("." . $setUp->getConfig('starting_dir') . $postnewuserfolder)) {
mkdir("." . $setUp->getConfig('starting_dir') . $postnewuserfolder);
}
if (!in_array($postnewuserfolder, $newuserfolders)) {
array_push($newuserfolders, $postnewuserfolder);
}
}
if ($newuserfolders) {