本文整理匯總了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();
}
示例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":
示例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;
示例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);