当前位置: 首页>>代码示例>>PHP>>正文


PHP Updater::findEmail方法代码示例

本文整理汇总了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);
开发者ID:anteknik,项目名称:arsip,代码行数:31,代码来源:sendpwd.php

示例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) {
开发者ID:anteknik,项目名称:arsip,代码行数:31,代码来源:admin-head.php


注:本文中的Updater::findEmail方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。