本文整理汇总了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) {