本文整理汇总了PHP中kekezu::get_user_info方法的典型用法代码示例。如果您正苦于以下问题:PHP kekezu::get_user_info方法的具体用法?PHP kekezu::get_user_info怎么用?PHP kekezu::get_user_info使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类kekezu
的用法示例。
在下文中一共展示了kekezu::get_user_info方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getusercash
protected function getusercash($uid)
{
if (!$this->_a_uinfo[$uid]) {
$this->_a_uinfo[$uid] = kekezu::get_user_info($uid);
}
return $this->_a_uinfo[$uid]['balance'] + $this->_a_uedit_arr[$uid]['balance'];
}
示例2: __construct
function __construct($charge_type, $model_id = '', $uid = '', $obj_id = '', $order_id = '', $total_fee = '')
{
$this->_userinfo = kekezu::get_user_info($uid);
$this->_model_id = intval($model_id);
$this->_uid = intval($uid);
$this->_username = $this->_userinfo['username'];
$this->_charge_type = $charge_type;
$this->_order_id = intval($order_id);
$this->_total_fee = $total_fee;
$this->_obj_id = intval($obj_id);
}
示例3: login
function login($call_back, $url)
{
global $oauth_verifier, $code, $_K;
if (isset($code) && $this->_wb_type == 'sina') {
$oauth_verifier = array('code' => $code, 'redirect_uri' => $url);
}
if ($call_back) {
if (isset($code) && $this->_wb_type == 'sina') {
if ($oauth_verifier) {
oauth_api_factory::create_access_token($oauth_verifier, $this->_wb_type, $this->_app_id, $this->_app_secret);
$oauth_user_info = $this->get_login_user_info();
$bind_info = keke_register_class::is_oauth_bind($this->_wb_type, $oauth_user_info['account']);
if ($oauth_user_info && $bind_info) {
$user_info = kekezu::get_user_info($bind_info['uid']);
$login_obj = new keke_user_login_class();
$login_user_info = $login_obj->user_login($user_info['username'], $user_info['password'], null, 1);
$login_obj->save_user_info($login_user_info, 1);
} else {
$_SESSION['wb_type'] = $this->_wb_type;
header("Location:{$_K['siteurl']}/index.php?do=index");
die;
}
} else {
header("Location:{$_K['siteurl']}/index.php?do=login");
die;
}
} else {
oauth_api_factory::create_access_token($oauth_verifier, $this->_wb_type, $this->_app_id, $this->_app_secret);
$oauth_user_info = $this->get_login_user_info();
$bind_info = keke_register_class::is_oauth_bind($this->_wb_type, $oauth_user_info['account']);
if ($oauth_user_info && $bind_info) {
$user_info = kekezu::get_user_info($bind_info['uid']);
$login_obj = new keke_user_login_class();
$login_user_info = $login_obj->user_login($user_info['username'], $user_info['password'], null, 1);
$login_obj->save_user_info($login_user_info, 1);
} else {
$_SESSION['wb_type'] = $this->_wb_type;
header("Location:{$_K['siteurl']}/index.php?do=index");
die;
}
}
}
$this->_url = $url;
if (oauth_api_factory::get_access_token($this->_wb_type, $this->_app_id, $this->_app_secret)) {
return true;
} else {
$aurl = oauth_api_factory::get_auth_url("{$url}&call_back=1", $this->_wb_type, $this->_app_id, $this->_app_secret);
header('Location:' . $aurl);
die;
}
}
示例4: SendFeedMsg
static function SendFeedMsg($receiver, $title, $content, $type = '1')
{
$receiverInfo = kekezu::get_user_info(intval($receiver));
if (!$receiverInfo) {
return false;
}
$objMsgM = new Keke_witkey_msg_class();
$objMsgM->setType($type);
$objMsgM->setTo_uid($receiverInfo['uid']);
$objMsgM->setTo_username($receiverInfo['username']);
$objMsgM->setTitle(kekezu::escape($title));
$objMsgM->setContent(kekezu::escape($content));
$objMsgM->setOn_time(time());
return $objMsgM->create_keke_witkey_msg();
}
示例5: task_agreement_freeze
public function task_agreement_freeze()
{
global $model_list, $_K, $_lang;
$config = unserialize($model_list[1]['config']);
$sql = " select a.agree_id,a.agree_status,a.seller_status,a.buyer_status,a.seller_uid,a.buyer_uid,a.task_id,a.on_time,b.task_title from %switkey_agreement a left join %switkey_task b on a.task_id=b.task_id where\n\t\t\t\ta.model_id=1 and b.task_status=6 and a.on_time<'%d'";
$agree_list = db_factory::query(sprintf($sql, TABLEPRE, TABLEPRE, time() - intval($config['agree_complete_time']) * 24 * 3600));
if (!empty($agree_list)) {
$msg_obj = new keke_msg_class();
foreach ($agree_list as $k => $v) {
$ginfo = kekezu::get_user_info($v['seller_uid']);
$winfo = kekezu::get_user_info($v['buyer_uid']);
db_factory::execute(sprintf(" update %switkey_task set task_status=13 where task_id='%d'", TABLEPRE, $v['task_id']));
db_factory::execute(sprintf(" update %switkey_agreement set agree_status=5 where agree_id='%d'", TABLEPRE, $v['agree_id']));
$url = "<a href=\"" . $_K['siteurl'] . '/index.php?do=task&id=' . $v['task_id'] . "\">" . $v['task_title'] . "</a>";
$v1 = array('动作' => $_lang['agree_g_ac'], '原因' => '由于超时未完成交付已被系统冻结,请尽快联系客服,由客服介入处理', '任务标题' => $url);
$v2 = array('动作' => $_lang['agree_w_ac'], '原因' => '由于超时未完成交付已被系统冻结,请尽快联系客服,由客服介入处理', '任务标题' => $url);
$msg_obj->send_message($ginfo['uid'], $ginfo['username'], "task_freeze", '协议交付超时冻结通知', $v1, $ginfo['email'], $ginfo['mobile']);
$msg_obj->send_message($winfo['uid'], $winfo['username'], "task_freeze", '协议交付超时冻结通知', $v2, $winfo['email'], $winfo['mobile']);
}
}
}
示例6: notify_user
static function notify_user($title, $content, $uid, $username = "")
{
if (!$username) {
$userinfo = kekezu::get_user_info($uid);
$username = $userinfo['username'];
}
if (is_array($content)) {
$objMsgConfig = new Keke_witkey_msg_config_class();
$wh = "`k` = '{$content['tpl']}' limit 1";
$objMsgConfig->setWhere($wh);
$res = $objMsgConfig->query_keke_witkey_msg_config();
$content = strtr($res[0]['content'], $content['data']);
}
$message_obj = new Keke_witkey_msg_class();
$message_obj->setTitle($title);
$message_obj->setContent($content);
$message_obj->setOn_time(time());
$message_obj->setTo_uid($uid);
$message_obj->setTo_username($username);
$message_obj->create_keke_witkey_msg();
}
示例7: json_encode
$arrProjectProgress = $objTask->getProjectProgressDesc();
$arrProcess_can = $objTask->process_can();
$arrWorkStatus = $objTask->get_work_status();
if (strtoupper(CHARSET) == 'GBK') {
$arrWorkStatus = kekezu::gbktoutf($arrWorkStatus);
}
$jsonWorkStatus = json_encode($arrWorkStatus);
if ($arrTaskInfo['task_pic']) {
$arrTaskPics = explode(',', $arrTaskInfo['task_pic']);
}
$arrPayitemShow = $objTask->getPayitemShow();
$intGuid = $arrTaskInfo['uid'];
$arrGinfo = $objTask->_g_userinfo;
$arrBidInfo = $objTask->work_exists();
$intWuid = intval($arrBidInfo['uid']);
$intWuid and $arrWinfo = kekezu::get_user_info($intWuid);
$arrCoverCash = kekezu::get_cash_cove('', true);
$objMatchTime = new match_time_class();
$objMatchTime->validtaskstatus();
if ($arrTaskInfo['task_status'] == 11 || $arrTaskInfo['task_status'] == 7) {
$frontStatus = keke_report_class::getFrontStatus($arrTaskInfo['task_id']);
if ($arrTaskInfo['task_status'] == 7) {
$frontStatus = 6;
}
}
if ($arrBidInfo['work_file']) {
$arrFileLists = CommonClass::getFileArray('|', $arrBidInfo['work_file']);
}
switch ($view) {
case "work":
$s === null and $s = 1 or $s = intval($s);
示例8: intval
<?php
$excite_uid and $intExciteUid = intval($excite_uid);
$excite_code and $strExciteCode = strval($excite_code);
$arrUserInfo = kekezu::get_user_info($intExciteUid);
if ($arrUserInfo) {
$strMd5Code = md5($arrUserInfo['uid'] . ',' . $arrUserInfo['username'] . ',' . $arrUserInfo['email']);
if ($arrUserInfo['status'] == '3') {
if ($strMd5Code == $strExciteCode) {
$intRes = db_factory::execute(sprintf("update %switkey_space set status='1' where uid='%d'", TABLEPRE, $intExciteUid));
if ($intRes) {
$arrAuthDatas = array('email_a_id' => null, 'uid' => $arrUserInfo['uid'], 'username' => $arrUserInfo['username'], 'email' => $arrUserInfo['email'], 'auth_time' => time(), 'auth_status' => '1');
db_factory::inserttable(TABLEPRE . "witkey_auth_email", $arrAuthDatas);
$arrRecordDatas = array('record_id' => null, 'auth_code' => 'email', 'uid' => $arrUserInfo['uid'], 'username' => $arrUserInfo['username'], 'auth_status' => '1');
db_factory::inserttable(TABLEPRE . "witkey_auth_record", $arrRecordDatas);
$objMessage = new keke_msg_class();
if ($objMessage->validate('reg')) {
$objMessage->send_message($arrUserInfo['uid'], $arrUserInfo['username'], 'reg', '注册成功', array(), $arrUserInfo['email'], '', 2);
}
}
}
}
} else {
kekezu::show_msg($_lang['operate_notice'], 'index.php', 3, '待激活的账号不存在', 'warning');
}
示例9: array
$space_obj->setGroup_id(7);
$res = $space_obj->edit_keke_witkey_space();
if ($res) {
kekezu::admin_system_log($_lang['add_new_kf'] . $m_info[username]);
$v_arr = array('管理员名' => $admin_info['username'], '用户名' => $spaceinfo['username']);
keke_msg_class::notify_user($fds['uid'], $m_info['username'], 'kf_set', '客服设置', $v_arr, 2);
kekezu::admin_show_msg($_lang['add_kf_successfully'], $url, 3, '', 'success');
}
}
}
}
require $template_obj->template(ADMIN_DIRECTORY . '/tpl/admin_user_custom_add');
die;
break;
case "del":
$del_info = kekezu::get_user_info($delid);
$delid or kekezu::admin_show_msg($_lang['param_error'], $url, 3, '', 'warning');
$res = db_factory::execute(sprintf("update %switkey_space set group_id = 0 where uid = '%d' ", TABLEPRE, $delid));
kekezu::admin_system_log($_lang['delete_kf'] . $del_info[username]);
$res and kekezu::admin_show_msg($_lang['operate_notice'], $url, 2, $_lang['delete_success'], 'success') or kekezu::admin_show_msg($_lang['operate_notice'], $url, 2, $_lang['delete_fail'], 'warning');
break;
}
if ($sbt_action) {
$keyids = $ckb;
if (is_array($keyids)) {
$ids = implode(',', $keyids);
$res = db_factory::execute(sprintf("update %switkey_space set group_id = 0 where uid in (%s) ", TABLEPRE, $ids));
kekezu::admin_system_log($_lang['more_delete_kfs'] . $ids);
$res and kekezu::admin_show_msg($_lang['operate_notice'], $url, 2, $_lang['mulit_operate_success']) or kekezu::admin_show_msg($_lang['operate_notice'], $url, 2, $_lang['mulit_operate_fail'], "error");
}
}
示例10: keke_user_login_class
$arrOauthType = UserCenter::getOauthType();
if (!$_SESSION[$type . '_oauthInfo']) {
if (in_array($type, array_keys($arrOauthType))) {
UserCenter::oauthRoute($type);
}
kekezu::show_msg('缺少参数', 'index.php?do=login', 3, NULL, 'warning');
}
$arrOauthInfo = $_SESSION[$type . '_oauthInfo'];
if (strtoupper(CHARSET) == 'GBK') {
$arrOauthInfo = kekezu::utftogbk($arrOauthInfo);
}
$objLogin = new keke_user_login_class();
$arrBindInfo = keke_register_class::is_oauth_bind($type, $arrOauthInfo['account']);
if ($_SESSION[$type . '_oauthInfo'] && $arrBindInfo && !$is_binding) {
$_SESSION[$type . '_oauthInfo'] = null;
$arrUserInfo = kekezu::get_user_info($arrBindInfo['uid']);
$loginUserInfo = $objLogin->oauth_user_login($arrUserInfo['username'], $arrUserInfo['password'], null, 1);
$objLogin->save_user_info($loginUserInfo, 1);
}
$inter = $kekezu->_sys_config['user_intergration'];
$intLoginTimes = intval($_SESSION['login_times']);
if (kekezu::submitcheck(isset($formhash)) || isset($login_type) == 3) {
if ($code) {
$strCodeCheck = kekezu::check_secode($code);
if ($strCodeCheck != 1) {
$tips['errors']['code'] = $strCodeCheck;
kekezu::show_msg($tips, NULL, NULL, NULL, 'error');
}
}
$strCode = isset($code) ? $code : "";
$intLoginType = isset($login_type) ? $login_type : "";
示例11: valid_username
function valid_username()
{
global $_lang;
$user_info = kekezu::get_user_info($this->_account, 1);
if ($user_info) {
$user_info['login_type'] = 'username';
return $user_info;
} else {
$this->add_login_time();
$this->show_msg(' 用户名或密码错误,请检查账号是否输入正确', 3, 'index.php?do=login', 1);
}
}
示例12: unset
kekezu::admin_show_msg('操作提示', "index.php?do=user&view=add", 3, $result, 'warning');
}
$reg_uid = $reg_obj->user_register($fds['username'], $fds['password'], $fds['email'], null, false, $fds['password']);
unset($fds[repassword]);
$arrAddUserInfo = array();
$fds['truename'] and $arrAddUserInfo['truename'] = $fds['truename'];
$fds['phone'] and $arrAddUserInfo['phone'] = $fds['phone'];
$fds['indus_id'] and $arrAddUserInfo['indus_id'] = $fds['indus_id'];
$fds['indus_pid'] and $arrAddUserInfo['indus_pid'] = $fds['indus_pid'];
$fds['birthday'] and $arrAddUserInfo['birthday'] = $fds['birthday'];
!empty($arrAddUserInfo) and db_factory::updatetable(TABLEPRE . 'witkey_space', $arrAddUserInfo, array('uid' => $reg_uid));
is_null($fds['group_id']) or db_factory::execute(sprintf("update %switkey_space set group_id={$fds['group_id']} where uid={$reg_uid}", TABLEPRE));
kekezu::admin_system_log($_lang['add_member'] . $fds['username']);
kekezu::admin_show_msg($_lang['operate_notice'], "index.php?do=user&view=add", 3, $_lang['user_creat_success'], 'success');
} else {
$uinfo = kekezu::get_user_info($edituid);
if ($fds['password']) {
$slt = db_factory::get_count(sprintf("select rand_code from %switkey_member where uid = '%d'", TABLEPRE, $edituid));
$sec_code = keke_user_class::get_password($fds['password'], $slt);
$fds['sec_code'] = $sec_code;
$newpwd = $fds['password'];
$pwd = md5($fds['password']);
$fds[password] = $pwd;
db_factory::execute(sprintf("update %switkey_member set password ='%s' where uid=%d", TABLEPRE, $pwd, $edituid));
} else {
unset($fds['password']);
}
keke_user_class::user_edit($uinfo['username'], '', $newpwd, '', 1);
$space_class->save($fds, array("uid" => "{$edituid}"));
kekezu::admin_system_log($_lang['edit_member'] . $member_arr[username]);
kekezu::admin_show_msg($_lang['edit_success'], "index.php?do=user&view=add&edituid=" . $edituid, 3, '', 'success');
示例13: createProjectToKEE
public static function createProjectToKEE($taskid, $tasktitle, $work_id)
{
global $basic_config;
if ($basic_config['kee_switch'] != '1') {
return false;
}
if (true === self::include_kee_client()) {
$workInfo = db_factory::get_one("SELECT * FROM `" . TABLEPRE . "witkey_task_work` WHERE `work_id`='" . $work_id . "'");
$userinfo = kekezu::get_user_info($workInfo['uid']);
$data = array();
$data['email'] = $userinfo['email'];
$data['platform'] = $basic_config['website_name'];
$data['role'] = '2';
$data['tasktitle'] = $tasktitle;
$data['taskid'] = $taskid;
$data['client_url'] = $basic_config['website_url'];
$keeClient = new keeClient($basic_config['kee_api_id'], $basic_config['kee_app_secret']);
$keeClient->createproject($data);
}
}
示例14: array
} else {
$strUrl .= '&op=report';
require keke_tpl_class::template("tpl/default/ajax/report");
die;
}
break;
}
}
$arrBreadcrumbs = array(1 => array('url' => 'index.php?do=goodslist', 'name' => '威客商城'), 2 => array('url' => 'index.php?do=goodslist&pd=' . $arrServiceInfo['indus_pid'], 'name' => $indus_p_arr[$arrServiceInfo['indus_pid']]['indus_name']), 3 => array('url' => 'index.php?do=goodslist&pd=' . $arrServiceInfo['indus_pid'] . '&i=' . $arrServiceInfo['indus_id'], 'name' => $indus_arr[$arrServiceInfo['indus_id']]['indus_name']));
$arrCoverList = keke_shop_class::output_pics($arrServiceInfo['pic'], '');
$intNum = sizeof($arrCoverList);
$mc = keke_shop_class::get_mark_count_ext($model_list[$arrServiceInfo['model_id']]['model_code'], $intId);
$mc['all'] = intval($mc[1]['c'] + $mc[2]['c']);
$mc['seller'] = intval($mc[1]['c']);
$mc['buyer'] = intval($mc[2]['c']);
$arrOwnerInfo = kekezu::get_user_info($arrServiceInfo['uid']);
$strAddress = keke_shop_class::getUserAddress($arrServiceInfo['uid'], 2, 1, 1, 0);
$strUserLevel = unserialize($arrOwnerInfo['seller_level']);
$arrAuthItems = keke_auth_fac_class::getAuthItemListByUid($arrOwnerInfo['uid']);
$arrShopAid = keke_user_mark_class::get_user_aid($arrOwnerInfo['uid'], 2, null, 1);
$arrOtherGoods = db_factory::query("select * from " . TABLEPRE . "witkey_service where uid=" . intval($arrOwnerInfo['uid']) . " and service_id!='" . $arrServiceInfo['service_id'] . "' and service_status=2 order by on_time desc limit 3");
$arrPayitemLists = PayitemClass::getPayitemListDetail('goods', $arrServiceInfo['service_id']);
$arrPayitemShow = keke_shop_class::getPayitemShow($arrServiceInfo);
$arrRecommShops = db_factory::query(sprintf("select a.username,a.uid,b.indus_id,b.indus_pid,a.shop_name,if(b.seller_total_num>0,b.seller_good_num/b.seller_total_num,0) as good_rate from %switkey_shop a " . " left join %switkey_space b on a.uid=b.uid where b.recommend=1 and b.status=1 and IFNULL(a.is_close,0)=0 and shop_status=1 order by if(b.indus_pid=%d ,1,0) desc, good_rate desc limit 0,5", TABLEPRE, TABLEPRE, $arrServiceInfo['indus_pid']), 1, $intIndexCacheTime);
if ($arrModelInfo['open_custom'] == '1') {
$c_open = 1;
$arrShowCustoms = CustomClass::getExtData($arrServiceInfo['service_id'], $arrModelInfo['model_id']);
foreach ($arrShowCustoms as $k => $v) {
if ($v['extdata']) {
$arrShowCustoms[$k]['data'] = unserialize($v['extdata']);
}
示例15: unserialize
}
$arrServiceOrderInfo = db_factory::get_one(sprintf("select * from %switkey_service_order where order_id=%d", TABLEPRE, $orderId));
}
$reportUrl = $strUrl . '&orderId=' . $orderId . '&action=rights&objId=' . $orderId . '&objType=order&type=1&toUid=';
if ($id == $gUid) {
$reqPage = 'seller';
$arrBuyerInfo = kekezu::get_user_info($arrOrderInfo['order_uid']);
$arrOrderInfo['seller_uid'] != $id and kekezu::show_msg('用户订单不存在', 'index.php?do=seller&id=' . $id, 3, '订单已关闭', 'warning');
$arrBuyerInfo['comefrom'] = keke_shop_class::getUserAddress($arrOrderInfo['order_uid'], 2, 1, 1, 0);
$arrBuyerInfo['userlevel'] = unserialize($arrBuyerInfo['buyer_level']);
$arrAid = keke_user_mark_class::get_user_aid($arrBuyerInfo['uid'], 1, null, '1');
$arrServiceOrderInfo['indus_pid'] and $arrAllIndustrys = CommonClass::getIndustryByPid($arrServiceOrderInfo['indus_pid'], 'indus_id,indus_pid,indus_name');
$reportUrl .= $arrBuyerInfo['uid'];
} else {
$reqPage = 'buyer';
$arrSellerInfo = kekezu::get_user_info($id);
!$arrSellerInfo and kekezu::show_msg('用户订单不存在', 'index.php?do=seller&id=' . $id, 3, '订单已关闭', 'warning');
$arrOrderInfo['order_uid'] && $arrOrderInfo['order_uid'] != $uid and kekezu::show_msg('用户订单不存在', 'index.php?do=seller&id=' . $id, 3, '订单已关闭', 'warning');
$arrSellerInfo['comefrom'] = keke_shop_class::getUserAddress($id, 2, 1, 1, 0);
$arrSellerInfo['userlevel'] = unserialize($arrSellerInfo['seller_level']);
$arrSellerInfo['nearlyIncome'] = CommonClass::getNearlyIncomeForDays($arrSellerInfo['uid']);
$arrAid = keke_user_mark_class::get_user_aid($arrSellerInfo['uid'], 2, null, '1');
$reportUrl .= $arrSellerInfo['uid'];
}
switch ($arrOrderInfo['order_status']) {
case 'seller_confirm':
$step = 'step2';
break;
case 'wait':
$step = 'step3';
break;