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


PHP Members::checkUserExist方法代码示例

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

示例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']);
开发者ID:renduples,项目名称:alibtob,代码行数:31,代码来源:getpasswd.php


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