コード例 #1
0
 public function get_rand_kf()
 {
     $this->_kf_info = kekezu::get_rand_kf();
 }
コード例 #2
0
ファイル: index.php プロジェクト: huangbinzd/kppwGit
<?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
0
ファイル: gy.php プロジェクト: huangbinzd/kppwGit
        } 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
0
ファイル: retrieve.bak.php プロジェクト: huangbinzd/kppwGit
            $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 = '******' , 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 = '******' , sec_code = '%s' where uid=%d";
    $sql = sprintf($sql, TABLEPRE, $user_code, $user_seccode, $user_info['uid']);
    db_factory::execute($sql);