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


PHP kekezu::get_ip方法代码示例

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


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

示例1: write

 function write($session_id, $session_data)
 {
     $tablename = TABLEPRE . "witkey_session";
     $_SESSION[uid] > 0 and $uid = $_SESSION['uid'] or $uid = 0;
     $data_arr = array('session_id' => $session_id, 'session_data' => $session_data, 'session_expirse' => time() + $this->_left_time, 'session_ip' => kekezu::get_ip(), 'session_uid' => $uid);
     return $this->_db->inserttable($tablename, $data_arr, 1, 1);
 }
开发者ID:huangbinzd,项目名称:kppwGit,代码行数:7,代码来源:keke_session_class.php

示例2: user_register

 static function user_register($username, $password, $email)
 {
     global $kekezu;
     $member_obj = new Keke_witkey_member_class();
     $space_obj = new Keke_witkey_space_class();
     $slt = kekezu::randomkeys(6);
     $pwd = self::get_password($password, $slt);
     if ($kekezu->_sys_config['user_intergration'] == 2) {
         require_once S_ROOT . '/uc_client/client.php';
         $reg_uid = uc_user_register($username, $password, $email);
     }
     die;
     if ($reg_uid > 0 || $kekezu->_sys_config['user_intergration'] == '1') {
         $reg_uid and $member_obj->setUid($reg_uid);
         $member_obj->setEmail($email);
         $member_obj->setUsername($username);
         $member_obj->setPassword($pwd);
         $member_obj->setRand_code($slt);
         $reg_uid = $member_obj->create_keke_witkey_member();
         $space_obj->setUid($reg_uid);
         $kekezu->_sys_config[allow_reg_action] == 1 and $space_obj->setStatus(2) or $space_obj->setStatus(1);
         $space_obj->setUsername($username);
         $space_obj->setPassword($pwd);
         $space_obj->setSec_code($pwd);
         $space_obj->setEmail($email);
         $space_obj->setReg_time(time());
         $space_obj->setReg_ip(kekezu::get_ip());
         $space_obj->create_keke_witkey_space();
         $info = array('uid' => $reg_uid, 'username' => $username, 'email' => $email);
         $kekezu->_sys_config[allow_reg_action] == 1 and self::send_email_action_user($info);
         return $info;
     } else {
         return false;
     }
 }
开发者ID:xupnge1314,项目名称:project,代码行数:35,代码来源:keke_user_class.php

示例3: __construct

 function __construct($reg_type = 1)
 {
     global $kekezu;
     $this->_space_obj = new Keke_witkey_space_class();
     $this->_member_obj = new Keke_witkey_member_class();
     $this->_sys_config = $kekezu->_sys_config;
     $this->_message_obj = new keke_msg_class();
     $this->_oltime_obj = new Keke_witkey_member_oltime_class();
     $this->_shop_obj = new Keke_witkey_shop_class();
     $this->_reg_ip = kekezu::get_ip();
     $this->_reg_type = intval($reg_type);
 }
开发者ID:xupnge1314,项目名称:project,代码行数:12,代码来源:keke_register_class.php

示例4: get_pay_url

function get_pay_url($charge_type, $pay_amount, $payment_config, $subject, $order_id, $model_id = null, $obj_id = null, $service = "DEFAULT", $sign_type = 'MD5', $show_url = 'index.php?do=user&view=finance&op=details')
{
    global $_K, $uid, $username;
    $tenpayid = $payment_config['seller_id'];
    $tenpaykey = $payment_config['safekey'];
    $tenpay_return_url = $_K['siteurl'] . '/include/payment/tenpay/return.php';
    $order_no = $order_id;
    $product_name = $subject;
    $order_price = $pay_amount;
    $out_trade_no = "charge-{$charge_type}-{$uid}-{$obj_id}-{$order_id}-{$model_id}-" . time();
    $remarkexplain = $out_trade_no;
    $bargainor_id = $tenpayid;
    $key = $tenpaykey;
    $return_url = $tenpay_return_url;
    $strDate = date("Ymd");
    $strTime = date("His");
    $randNum = rand(1000, 9999);
    $strReq = $strTime . $randNum;
    $sp_billno = $order_no;
    $transaction_id = $bargainor_id . $strDate . $strReq;
    $total_fee = $order_price * 100;
    $desc = $product_name;
    $reqHandler = new PayRequestHandler();
    $reqHandler->init();
    $reqHandler->setKey($key);
    $reqHandler->setParameter("bargainor_id", $bargainor_id);
    $reqHandler->setParameter("sp_billno", $sp_billno);
    $reqHandler->setParameter("transaction_id", $transaction_id);
    $reqHandler->setParameter("total_fee", $total_fee);
    $reqHandler->setParameter("return_url", $return_url);
    $reqHandler->setParameter("desc", $desc);
    $reqHandler->setParameter("attach", $remarkexplain);
    $reqHandler->setParameter("bank_type", $service);
    $reqHandler->setParameter('cs', CHARSET);
    $reqHandler->setParameter("spbill_create_ip", kekezu::get_ip());
    $reqUrl = $reqHandler->getRequestURL();
    keke_order_class::create_order_charge('online_charge', 'tenpay', null, $obj_id, $uid, $username, $pay_amount, 'wait', '用户充值', $out_trade_no);
    return build_postform($reqUrl);
}
开发者ID:huangbinzd,项目名称:kppwGit,代码行数:39,代码来源:order.php

示例5: check_if_voted

 public function check_if_voted($work_id)
 {
     global $_lang;
     $vote_count = db_factory::get_count(sprintf(" select count(vote_id) from %switkey_vote where\n\t\t work_id='%d' and uid='%d' and vote_ip='%s'", TABLEPRE, $work_id, $this->_uid, kekezu::get_ip()));
     if ($vote_count > 0) {
         return $_lang['you_have_vote'];
     } else {
         return true;
     }
 }
开发者ID:huangbinzd,项目名称:kppwGit,代码行数:10,代码来源:sreward_task_class.php

示例6: array

    $member_arr = kekezu::get_user_info($edituid);
    $shop_open = db_factory::get_count('select shop_id from ' . TABLEPRE . 'witkey_shop where uid=' . $edituid);
}
$member_group_arr = db_factory::query(sprintf("select group_id,groupname from %switkey_member_group", TABLEPRE));
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();
开发者ID:pengfeiaaa,项目名称:web,代码行数:31,代码来源:admin_user_add.php

示例7: admin_system_log

 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();
 }
开发者ID:xupnge1314,项目名称:project,代码行数:12,代码来源:keke_core_class.php

示例8: switch

             kekezu::show_msg($resText, $strUrl, 3, null, 'fail');
         }
     }
     break;
 case 'step2':
     if (isset($action)) {
         switch ($action) {
             case 'confirm_pay':
                 if ($_SESSION['UserBalance']) {
                     $arrUserBalance = explode('|', $_SESSION['UserBalance']);
                     $strUid = $arrUserBalance[0];
                     $strIp = $arrUserBalance[1];
                     $strSec_code = $arrUserBalance[2];
                     $strMd5Pwd = keke_user_class::get_password($strSec_code, $gUserInfo['rand_code']);
                     $arrUserInfo = db_factory::get_one(sprintf("select * from %switkey_space where uid=%d and sec_code='%s'", TABLEPRE, intval($strUid), $strMd5Pwd));
                     if ($strIp != kekezu::get_ip() || $strUid != $gUid || !$arrUserInfo) {
                         kekezu::show_msg('你的支付密码不正确!', 'index.php?do=index', NULL, NULL, 'ok');
                         die;
                     }
                 }
                 $objGoods = new goods_shop_class();
                 $resText = $objGoods->dispose_order($orderId, 'ok');
                 unset($objGoods);
                 if (true === $resText) {
                     kekezu::show_msg('订单付款完成,该订单已确认付款', $strUrl . "&step=step3&orderId=" . $orderId, 3, null, 'ok');
                 } else {
                     kekezu::show_msg($resText, null, null, null, 'fail');
                 }
                 break;
             default:
                 kekezu::show_msg('访问页面不存在', 'index.php', 3, null, 'warning');
开发者ID:huangbinzd,项目名称:kppwGit,代码行数:31,代码来源:buyer_order.php

示例9: intval

            break;
        case 'gy':
            $fina_type = "buy_gy";
            $tips['errors']['zfpwd'] = '你已经支付成功了,不需要再次支付!';
            $stryzfUrl = NULL;
            $strwzfUrl = 'index.php?do=gy&id=' . $id . '&step=step3&orderId=' . $orderId . '&action=pay';
            $strSql = "select * from " . TABLEPRE . "witkey_order where order_id=" . intval($orderId) . " and order_status='ok'";
            break;
        case 'taskCash':
            $fina_type = "hosted_reward";
            $tips = '你已经支付成功了,不需要再次支付!';
            $stryzfUrl = 'index.php?do=task&id=' . intval($id);
            $strwzfUrl = "index.php?do=taskhandle&op=consign&taskId=" . $id;
            $strSql = "select * from " . TABLEPRE . "witkey_finance where obj_id=" . intval($id) . " and fina_action='.{$fina_type}.'";
            break;
    }
    $people = array("task", "goods", "service", "pubservice", "gy", "taskCash");
    if ($arrUserInfo && $type && in_array($type, $people)) {
        $arrFinance = db_factory::get_one($strSql);
        if ($arrFinance) {
            kekezu::show_msg($tips, $stryzfUrl, '', '', 'success');
        } else {
            $userIp = kekezu::get_ip();
            $_SESSION['UserBalance'] = $gUid . '|' . $userIp . '|' . $sec_code;
            kekezu::show_msg('密码验证成功', $strwzfUrl, '', '', 'success');
        }
    } else {
        $tip['errors']['zfpwd'] = '密码验证失败';
        kekezu::show_msg($tip, NULL, NULL, NULL, 'error');
    }
}
开发者ID:huangbinzd,项目名称:kppwGit,代码行数:31,代码来源:balance.php


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