Beispiel #1
0
if ($op == 'getzfpwd') {
    $userInfo = keke_user_class::get_user_info(intval($userid));
    $email = $userInfo['email'];
    $strNewCode = kekezu::randomkeys(8);
    $strNewMd5Pwd = keke_user_class::get_password($strNewCode, $userInfo['rand_code']);
    $intRes = db_factory::updatetable(TABLEPRE . 'witkey_space', array('sec_code' => $strNewMd5Pwd), array('uid' => intval($userid)));
    if ($intRes) {
        $message_obj = new keke_msg_class();
        $message_obj->send_message($userInfo['uid'], $userInfo['username'], 'update_sec_code', '找回支付密码', array('支付密码' => $strNewCode), $userInfo['email'], $userInfo['mobile'], 2);
        $system_log_obj = new Keke_witkey_system_log_class();
        $system_log_obj->setLog_content('admin于' . date("Y-m-d H:i:s") . '重置了' . $userInfo['username'] . '的支付密码');
        $system_log_obj->setLog_ip(kekezu::get_ip());
        $system_log_obj->setLog_time(time());
        $system_log_obj->setUser_type($userInfo['group_id']);
        $system_log_obj->setUid($userInfo['uid']);
        $system_log_obj->setUsername($userInfo['username']);
        $system_log_obj->create_keke_witkey_system_log();
        $status = '重置成功';
    } else {
        $status = '重置失败';
    }
    echo json_encode(array('status' => $status));
    die;
}
if ($is_submit == 1) {
    if (!$edituid) {
        $regClass = new keke_register_class();
        $result = $regClass->check_email(trim($fds['email']));
        if ($result !== true) {
            kekezu::admin_show_msg('操作提示', "index.php?do=user&view=add", 3, $result, 'warning');
        }
Beispiel #2
0
 static function admin_system_log($msg)
 {
     global $_K, $admin_info;
     $system_log_obj = new Keke_witkey_system_log_class();
     $system_log_obj->setLog_content($msg);
     $system_log_obj->setLog_ip(kekezu::get_ip());
     $system_log_obj->setLog_time(time());
     $system_log_obj->setUser_type($admin_info['group_id']);
     $system_log_obj->setUid($admin_info['uid'] ? $admin_info['uid'] : $_SESSION['uid']);
     $system_log_obj->setUsername($admin_info['username'] ? $admin_info['username'] : $_SESSION['username']);
     $system_log_obj->create_keke_witkey_system_log();
 }