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


PHP kekezu::get_rand_kf方法代码示例

本文整理汇总了PHP中kekezu::get_rand_kf方法的典型用法代码示例。如果您正苦于以下问题:PHP kekezu::get_rand_kf方法的具体用法?PHP kekezu::get_rand_kf怎么用?PHP kekezu::get_rand_kf使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在kekezu的用法示例。


在下文中一共展示了kekezu::get_rand_kf方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: get_rand_kf

 public function get_rand_kf()
 {
     $this->_kf_info = kekezu::get_rand_kf();
 }
开发者ID:xupnge1314,项目名称:project,代码行数:4,代码来源:keke_shop_release_class.php

示例2: defined

<?php

defined('IN_KEKE') or exit('Access Denied');
if ($gUserInfo['user_type'] == '1') {
    kekezu::show_msg('非法操作', $strUrl . '&step=step2', NULL, NULL, 'ok');
}
$step = keke_auth_enterprise_class::get_auth_step($step, $arrAuthInfo);
$strUrl = "index.php?do=user&view=account&op=auth&code=" . $code;
if ($arrAuthInfo['auth_status'] == 1 && $step == 'step2') {
    $step = 'step3';
}
$strRandKf = kekezu::get_rand_kf();
switch ($step) {
    case "step1":
        if (isset($formhash) && kekezu::submitcheck($formhash)) {
            if (strtoupper(CHARSET) == 'GBK') {
                $username = kekezu::utftogbk($username);
                $enterprisename = kekezu::utftogbk($enterprisename);
            }
            $arrData = array('username' => $username, 'company' => $enterprisename, 'licen_num' => $licensenum, 'licen_pic' => $filepath);
            if ($objAuth->add_auth($arrData)) {
                $sql = "update " . TABLEPRE . "witkey_space set user_type = 2 where uid = " . $gUid;
                db_factory::execute($sql);
                kekezu::show_msg('认证信息已提交', $strUrl . '&step=step2', NULL, NULL, 'ok');
            } else {
                $tips['errors']['email'] = '认证信息提交失败';
                kekezu::show_msg($tips, NULL, NULL, NULL, 'error');
            }
        }
        break;
    case "step2":
开发者ID:huangbinzd,项目名称:kppwGit,代码行数:31,代码来源:index.php

示例3: exit

        } else {
            $objType = 'task';
        }
        $report_reason = keke_report_class::getRightsType($objType);
    } else {
        $report_reason = keke_report_class::getReportType($objType);
    }
    if (isset($formhash) && kekezu::submitcheck($formhash)) {
        $resText = keke_order_class::set_report($objId, $toUid, $type, $filepath, $tarContent, $sltReason);
        if ($resText === true) {
            kekezu::show_msg('感谢您的' . $transname . ',管理员会尽快受理,请耐心等待处理结果。', $strUrl . "&orderId=" . $orderId, 3, NULL, 'ok');
        } else {
            kekezu::show_msg($resText, null, null, NULL, 'fail');
        }
    } else {
        $strUrl = $reportUrl;
        require keke_tpl_class::template("tpl/default/ajax/report");
    }
    exit(0);
}
if ($action === 'showKf') {
    $kf_info = kekezu::get_rand_kf();
    require keke_tpl_class::template('shop/goods/tpl/default/order/kf_info');
    die;
    exit(0);
}
$serviceSql = 'select service_id,model_id,title,price from ' . TABLEPRE . 'witkey_service where uid = ' . $id . ' and service_status = 2 and model_id = 7 order by service_id desc limit 0,5';
$arrServiceLists = db_factory::query($serviceSql);
require $do . "/" . $reqPage . "_order.php";
require $kekezu->_tpl_obj->template($do . '/' . $reqPage . "_index");
die;
开发者ID:huangbinzd,项目名称:kppwGit,代码行数:31,代码来源:gy.php

示例4: reset_set_password

            $arrUserInfo = kekezu::get_user_info($strAccount, true);
            $arrPassInfo = reset_set_password($arrUserInfo);
            $arrNotifyArr = array('用户名' => $arrUserInfo['username'], '网站名称' => $kekezu->_sys_config['website_name'], '密码' => $arrPassInfo['code'], '安全码' => $arrPassInfo['sec_code']);
            keke_shop_class::notify_user($arrUserInfo['uid'], $arrUserInfo['username'], 'get_password', '找回密码', $arrNotifyArr, 2);
            kekezu::show_msg('您的新密码已发送到邮箱,请注意查收', $strUrl, NULL, NULL, 'ok');
        } else {
            $arrUserInfo = kekezu::get_user_info($account, true);
            $arrEmailAuths = db_factory::query(sprintf("select * from %switkey_auth_email where uid=%d and auth_status=1", TABLEPRE, $arrUserInfo['uid']));
            $arrEmailAuths and $strEmailInfo = $arrEmailAuths['0']['email'];
            $strEmail = explode('@', $strEmailInfo);
            $intLeng = strlen($strEmail[0]);
            $i = intval($intLeng / 2);
            $strRe = '*';
            $strRe = str_pad($strRe, $intLeng - $i, '*', STR_PAD_LEFT);
            $strEmail = substr_replace($strEmailInfo, $strRe, $i, $intLeng - $i);
            $strKfPhone = kekezu::get_rand_kf();
        }
        break;
}
function reset_set_password($user_info)
{
    $code = kekezu::randomkeys(6);
    $user_code = md5($code);
    $slt = kekezu::randomkeys(6);
    $user_seccode = keke_user_class::get_password($code, $slt);
    $sql = "update %switkey_member set password = '%s' , rand_code = '%s' where uid=%d";
    $sql = sprintf($sql, TABLEPRE, $user_code, $slt, $user_info['uid']);
    $res = db_factory::execute($sql);
    $sql = "update %switkey_space set  password = '%s' , sec_code = '%s' where uid=%d";
    $sql = sprintf($sql, TABLEPRE, $user_code, $user_seccode, $user_info['uid']);
    db_factory::execute($sql);
开发者ID:huangbinzd,项目名称:kppwGit,代码行数:31,代码来源:retrieve.bak.php


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