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


PHP asyn_userkey函数代码示例

本文整理汇总了PHP中asyn_userkey函数的典型用法代码示例。如果您正苦于以下问题:PHP asyn_userkey函数的具体用法?PHP asyn_userkey怎么用?PHP asyn_userkey使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。


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

示例1: define

 * 使用;不允许对程序代码以任何形式任何目的的再发布。
 * ============================================================================
*/
define('IN_QISHI', true);
ignore_user_abort(true);
require_once dirname(__FILE__) . '/../include/common.inc.php';
require_once QISHI_ROOT_PATH . 'include/mysql.class.php';
require_once QISHI_ROOT_PATH . 'include/fun_user.php';
$db = new mysql($dbhost, $dbuser, $dbpass, $dbname);
$act = !empty($_GET['act']) ? trim($_GET['act']) : '';
$uid = intval($_GET['uid']);
$key = trim($_GET['key']);
if (empty($uid) || empty($key)) {
    exit("error");
}
$asyn_userkey = asyn_userkey($uid);
if ($asyn_userkey != $key) {
    exit("error");
}
$SMSconfig = get_cache('sms_config');
$SMStemplates = get_cache('sms_templates');
$userinfo = get_user_inid($uid);
if ($SMSconfig['open'] != "1") {
    exit("error");
}
if ($act == 'jobs_apply') {
    $jobs_uid = intval($_GET['jobs_uid']);
    $comuser = get_user_inid($jobs_uid);
    if (empty($comuser['mobile']) || $comuser['mobile_audit'] == '0') {
        exit("error");
    } else {
开发者ID:source-hunter,项目名称:74cms,代码行数:31,代码来源:asyn_sms.php

示例2: adv_order_paid

function adv_order_paid($v_oid)
{
    global $db, $timestamp, $_CFG;
    $order = $db->getone("select * from " . table('adv_order') . " WHERE oid ='{$v_oid}' AND is_paid= '1' LIMIT 1 ");
    if ($order) {
        $user = get_adv_user($order['uid']);
        $sql = "UPDATE " . table('adv_order') . " SET is_paid= '2',payment_time='{$timestamp}' WHERE oid='{$v_oid}' LIMIT 1 ";
        if (!$db->query($sql)) {
            return false;
        }
        //填写管理员日志
        write_log("后台开通订单", $_SESSION['admin_name'], 3);
        //发送邮件
        $mailconfig = get_cache('mailconfig');
        if ($mailconfig['set_payment'] == "1" && $user['email_audit'] == "1") {
            dfopen($_CFG['site_domain'] . $_CFG['site_dir'] . "plus/asyn_mail.php?uid=" . $order['uid'] . "&key=" . asyn_userkey($order['uid']) . "&act=set_payment");
        }
        //发送邮件完毕
        //sms
        $sms = get_cache('sms_config');
        if ($sms['open'] == "1" && $sms['set_payment'] == "1" && $user['mobile_audit'] == "1") {
            dfopen($_CFG['site_domain'] . $_CFG['site_dir'] . "plus/asyn_sms.php?uid=" . $order['uid'] . "&key=" . asyn_userkey($order['uid']) . "&act=set_payment");
        }
        //微信通知
        set_payment($order['uid'], "广告订单", $order['oid'], $order['amount']);
        return true;
    }
    return true;
}
开发者ID:winiceo,项目名称:fenzhan,代码行数:29,代码来源:admin_ad_fun.php

示例3: write_memberslog

            write_memberslog($_SESSION['uid'], 1, 6001, $_SESSION['username'], "邀请 {$resume_user['username']} 面试");
        }
    }
    /*
    	发送短信提示 操作 
    */
    $sms = get_cache('sms_config');
    if ($sms['open'] == "1" && $sms['set_invite'] == "1" && $sms_notice == "1") {
        $user = get_user_info($_SESSION['uid']);
        if ($_CFG['company_sms'] == 1 && $user['sms_num'] > 0) {
            $success = dfopen($_CFG['site_domain'] . $_CFG['site_dir'] . "plus/asyn_sms.php?uid={$_SESSION['uid']}&key=" . asyn_userkey($_SESSION['uid']) . "&act=set_invite&companyname={$jobs['companyname']}&mobile={$resume['telephone']}");
            if ($success == "success") {
                reduce_user_sms($_SESSION['uid']);
            }
        } else {
            dfopen($_CFG['site_domain'] . $_CFG['site_dir'] . "plus/asyn_sms.php?uid={$_SESSION['uid']}&key=" . asyn_userkey($_SESSION['uid']) . "&act=set_invite&companyname={$jobs['companyname']}&mobile={$resume['telephone']}");
        }
    }
    //站内信
    if ($pms_notice == '1') {
        $jobs_url = url_rewrite('QS_jobsshow', array('id' => $jobs['id']));
        $company_url = url_rewrite('QS_companyshow', array('id' => $jobs['company_id']), false);
        $message = $jobs['companyname'] . "邀请您参加公司面试,面试职位:<a href=\"{$jobs_url}\" target=\"_blank\"> {$jobs['jobs_name']} </a>,<a href=\"{$company_url}\" target=\"_blank\">点击查看公司详情</a>";
        write_pmsnotice($resume['uid'], $resume_user['username'], $message);
    }
    //微信
    set_invite($resume['uid'], $jobs['id'], $jobs['companyname'], $jobs['jobs_name'], $jobs['contact']['address'], $jobs['contact']['contact'], $jobs['contact']['telephone'], $notes);
    $html = '<table width="100%" border="0" cellspacing="0" cellpadding="0" class="tableall" id="invited_ok">
	    <tr>
			<td width="140" align="right"><img height="100" src="' . $_CFG['site_template'] . 'images/big-yes.png" /></td>
			<td>
开发者ID:winiceo,项目名称:fenzhan,代码行数:31,代码来源:user_invited.php

示例4: switch

 if ($mailconfig['set_reg'] == "1") {
     switch ($user['utype']) {
         case '1':
             $utype_cn = '企业';
             break;
         case '2':
             $utype_cn = '个人';
             break;
         case '3':
             $utype_cn = '猎头';
             break;
         case '4':
             $utype_cn = '培训';
             break;
     }
     dfopen($_CFG['site_domain'] . $_CFG['site_dir'] . "plus/asyn_mail.php?uid=" . $user['uid'] . "&key=" . asyn_userkey($user['uid']) . "&sendemail=" . $email . "&sendusername=" . $user['username'] . "&sendpassword=" . $password . "&utype=" . $utype_cn . "&act=reg");
 }
 $user['uc_url'] = $login_js['uc_login'];
 $user['url'] = $login_js['qs_login'];
 if ($user['utype'] == '1') {
     $user['index_url'] = $_CFG['site_domain'] . $_CFG['site_dir'] . "user/company/company_info.php?act=company_profile";
 } elseif ($user['utype'] == '2') {
     $user['index_url'] = $_CFG['site_domain'] . $_CFG['site_dir'] . "user/personal/personal_resume.php?act=make1";
 } elseif ($user['utype'] == '3') {
     $user['index_url'] = $_CFG['site_domain'] . $_CFG['site_dir'] . "user/hunter/hunter_info.php?act=hunter_profile";
 } else {
     $user['index_url'] = $_CFG['site_domain'] . $_CFG['site_dir'] . "user/train/train_info.php?act=train_profile";
 }
 $smarty->assign('title', '会员注册 - ' . $_CFG['site_name']);
 $smarty->assign('user', $user);
 setcookie("isFirstReg", 1, time() + 3600 * 24);
开发者ID:winiceo,项目名称:job,代码行数:31,代码来源:user_reg.php

示例5: sms_order_paid

function sms_order_paid($v_oid)
{
    global $db, $timestamp, $_CFG;
    $order = $db->getone("select * from " . table('order') . " WHERE oid ='{$v_oid}' AND is_paid= '1' LIMIT 1 ");
    if ($order) {
        $user = get_user_info($order['uid']);
        $sql = "UPDATE " . table('order') . " SET is_paid= '2',payment_time='{$timestamp}' WHERE oid='{$v_oid}' LIMIT 1 ";
        if (!$db->query($sql)) {
            return false;
        }
        if ($order['is_paid'] == "1" && $order['payment_name'] == "points") {
            //积分充值
            report_deal($order['uid'], 2, intval($order['points']));
            $user_points = get_user_points($order['uid']);
            $user_sms_meal = get_sms_setmeal_one($order['setmeal']);
            //获取套餐中的短信数量
            $db->query("UPDATE " . table('members') . " SET `sms_num` = sms_num+" . $user_sms_meal['num'] . " WHERE `uid` = " . $order['uid'] . " LIMIT 1 ;");
            write_memberslog($_SESSION['uid'], 1, 9003, $_SESSION['username'], "积分短信充值:<strong>{$order['description']}</strong>,(- {$order['amount']}),(剩余:{$user_points})", 1, 1023, "短信充值", "- {$order['amount']}", "{$user_points}");
        } else {
            $user_sms_meal = get_sms_setmeal_one($order['setmeal']);
            //获取套餐中的短信数量
            $db->query("UPDATE " . table('members') . " SET `sms_num` = sms_num+" . $user_sms_meal['num'] . " WHERE `uid` = " . $order['uid'] . " LIMIT 1 ;");
            $user_points = get_user_points($order['uid']);
            write_memberslog($_SESSION['uid'], 1, 9003, $_SESSION['username'], "积分短信充值:<strong>{$order['description']}</strong>,(- {$order['amount']}),(剩余:{$user_points})", 1, 1023, "短信充值", "- {$order['amount']}", "{$user_points}");
        }
        //sendemail
        $mailconfig = get_cache('mailconfig');
        if ($mailconfig['set_payment'] == "1" && $user['email_audit'] == "1" && $order['amount'] > 0) {
            dfopen("{$_CFG['site_domain']}{$_CFG['site_dir']}plus/asyn_mail.php?uid={$order['uid']}&key=" . asyn_userkey($order['uid']) . "&act=set_payment");
        }
        //sms
        $sms = get_cache('sms_config');
        if ($sms['open'] == "1" && $sms['set_payment'] == "1" && $user['mobile_audit'] == "1" && $order['amount'] > 0) {
            dfopen("{$_CFG['site_domain']}{$_CFG['site_dir']}plus/asyn_sms.php?uid={$order['uid']}&key=" . asyn_userkey($order['uid']) . "&act=set_payment");
        }
        return true;
    }
    return true;
}
开发者ID:winiceo,项目名称:fenzhan,代码行数:39,代码来源:fun_company.php

示例6: edit_teachers_audit

function edit_teachers_audit($id, $audit, $reason, $pms_notice = '1')
{
    global $db, $_CFG;
    $audit = intval($audit);
    $reason = trim($reason);
    if (!is_array($id)) {
        $id = array($id);
    }
    $sqlin = implode(",", $id);
    $return = 0;
    if (preg_match("/^(\\d{1,10},)*(\\d{1,10})\$/", $sqlin)) {
        if (!$db->query("update  " . table('train_teachers') . " SET audit={$audit}  WHERE id IN ({$sqlin})")) {
            return false;
        }
        $return = $return + $db->affected_rows();
        write_log("将讲师id为" . $sqlin . "的讲师,审核状态设置为" . $audit . "共操作" . $return . "行", $_SESSION['admin_name'], 3);
        //发送站内信
        if ($pms_notice == '1') {
            $result = $db->query("SELECT uid,teachername FROM " . table('train_teachers') . " WHERE id IN ({$sqlin})");
            $reason = $reason == '' ? '原因:未知' : '原因:' . $reason;
            while ($list = $db->fetch_array($result)) {
                $user_info = get_user($list['uid']);
                $setsqlarr['message'] = $audit == '1' ? "您添加的讲师:{$list['teachername']},成功通过网站管理员审核!" : "您添加的讲师:{$list['teachername']},未通过网站管理员审核,{$reason}";
                $setsqlarr['msgtype'] = 1;
                $setsqlarr['msgtouid'] = $user_info['uid'];
                $setsqlarr['msgtoname'] = $user_info['username'];
                $setsqlarr['dateline'] = time();
                $setsqlarr['replytime'] = time();
                $setsqlarr['new'] = 1;
                $db->inserttable(table('pms'), $setsqlarr);
            }
        }
        //发送邮件
        $mailconfig = get_cache('mailconfig');
        $sms = get_cache('sms_config');
        if ($audit == "1" && $mailconfig['set_teaallow'] == "1") {
            $result = $db->query("SELECT teachername,uid  FROM " . table('train_teachers') . " WHERE id IN ({$sqlin})");
            while ($list = $db->fetch_array($result)) {
                $user_info = get_user($list['uid']);
                if ($user_info['email_audit'] == "1") {
                    dfopen($_CFG['site_domain'] . $_CFG['site_dir'] . "plus/asyn_mail.php?uid=" . $list['uid'] . "&key=" . asyn_userkey($list['uid']) . "&teachername=" . $list['teachername'] . "&act=set_teaallow");
                }
            }
        }
        if ($audit == "3" && $mailconfig['set_teanotallow'] == "1") {
            $result = $db->query("SELECT teachername,uid  FROM " . table('train_teachers') . " WHERE id IN ({$sqlin})");
            while ($list = $db->fetch_array($result)) {
                $user_info = get_user($list['uid']);
                if ($user_info['email_audit'] == "1") {
                    dfopen($_CFG['site_domain'] . $_CFG['site_dir'] . "plus/asyn_mail.php?uid=" . $list['uid'] . "&key=" . asyn_userkey($list['uid']) . "&teachername=" . $list['teachername'] . "&act=set_teanotallow");
                }
            }
        }
        //sms
        if ($audit == "1" && $sms['open'] == "1" && $sms['set_teaallow'] == "1") {
            $mobilearray = array();
            $result = $db->query("SELECT teachername,uid  FROM " . table('train_teachers') . " WHERE id IN ({$sqlin})");
            while ($list = $db->fetch_array($result)) {
                $user_info = get_user($list['uid']);
                if ($user_info['mobile_audit'] == "1") {
                    //将同一会员的课程放到数组中 并且确保该会员唯一的
                    $mobilearray[$list['uid']] = empty($mobilearray[$list['uid']]) ? $list['teachername'] : $mobilearray[$list['uid']] . ' , ' . $list['teachername'];
                }
            }
            foreach ($mobilearray as $key => $value) {
                dfopen($_CFG['site_domain'] . $_CFG['site_dir'] . "plus/asyn_sms.php?uid=" . $key . "&key=" . asyn_userkey($key) . "&teachername=" . $value . "&act=set_teaallow");
            }
        }
        //sms
        if ($audit == "3" && $sms['open'] == "1" && $sms['set_teanotallow'] == "1") {
            $mobilearray = array();
            $result = $db->query("SELECT teachername,uid  FROM " . table('train_teachers') . " WHERE id IN ({$sqlin})");
            while ($list = $db->fetch_array($result)) {
                $user_info = get_user($list['uid']);
                if ($user_info['mobile_audit'] == "1") {
                    //将同一会员的课程放到数组中 并且确保该会员唯一的
                    $mobilearray[$list['uid']] = empty($mobilearray[$list['uid']]) ? $list['teachername'] : $mobilearray[$list['uid']] . ' , ' . $list['teachername'];
                }
            }
            foreach ($mobilearray as $key => $value) {
                dfopen($_CFG['site_domain'] . $_CFG['site_dir'] . "plus/asyn_sms.php?uid=" . $key . "&key=" . asyn_userkey($key) . "&teachername=" . $value . "&act=set_teanotallow");
            }
        }
        //sms
        return $return;
    } else {
        return $return;
    }
}
开发者ID:winiceo,项目名称:job,代码行数:89,代码来源:admin_train_fun.php

示例7: order_paid

function order_paid($v_oid)
{
    global $db, $timestamp, $_CFG;
    $order = $db->getone("select * from " . table('order') . " WHERE oid ='{$v_oid}' AND is_paid= '1' LIMIT 1 ");
    if ($order['pay_type'] == '1' || $order['pay_type'] == '4') {
        $order_name = "套餐积分订单";
        $user = get_user($order['uid']);
        $sql = "UPDATE " . table('order') . " SET is_paid= '2',payment_time='{$timestamp}' WHERE oid='{$v_oid}' LIMIT 1 ";
        if (!$db->query($sql)) {
            return false;
        }
        if ($order['amount'] == '0.00') {
            $ismoney = 1;
        } else {
            $ismoney = 2;
        }
        if ($order['points'] > 0) {
            report_deal($order['uid'], 1, $order['points']);
            $user_points = get_user_points($order['uid']);
            $notes = "操作人:{$_SESSION['admin_name']},说明:确认收款。收款金额:{$order['amount']} 。" . date('Y-m-d H:i', time()) . "通过:" . get_payment_info($order['payment_name'], true) . " 成功充值 " . $order['amount'] . "元,(+{$order['points']}),(剩余:{$user_points}),订单:{$v_oid}";
            write_memberslog($order['uid'], 1, 9001, $user['username'], $notes);
            //会员套餐变更记录。管理员后台设置会员订单购买成功。4表示:管理员后台开通
            write_setmeallog($order['uid'], $user['username'], $notes, 4, $order['amount'], $ismoney, 1, 1);
        }
        if ($order['setmeal'] > 0) {
            set_members_setmeal($order['uid'], $order['setmeal']);
            $setmeal = get_setmeal_one($order['setmeal']);
            $notes = "操作人:{$_SESSION['admin_name']},说明:确认收款,收款金额:{$order['amount']} 。" . date('Y-m-d H:i', time()) . "通过:" . get_payment_info($order['payment_name'], true) . " 成功充值 " . $order['amount'] . "元并开通{$setmeal['setmeal_name']}";
            write_memberslog($order['uid'], 1, 9002, $user['username'], $notes);
            //会员套餐变更记录。管理员后台设置会员订单购买成功。4表示:管理员后台开通
            write_setmeallog($order['uid'], $user['username'], $notes, 4, $order['amount'], $ismoney, 2, 1);
        }
    } elseif ($order['pay_type'] == '2') {
        $order_name = "广告位订单";
        $sql = "UPDATE " . table('order') . " SET is_paid= '2',payment_time='{$timestamp}' WHERE oid='{$v_oid}' LIMIT 1 ";
        //is_paid =2 为确定支付
        if (!$db->query($sql)) {
            return false;
        }
        write_memberslog($_SESSION['uid'], 1, 9001, $_SESSION['username'], "申请广告位:<strong>{$order['description']}</strong>,(花费: {$order['amount']})。", 1, 1020, "申请广告位", "-{$order['amount']}", "{$user_points}");
    } elseif ($order['pay_type'] == '3') {
        $order_name = "短信订单";
        $user = get_user($order['uid']);
        $sql = "UPDATE " . table('order') . " SET is_paid= '2',payment_time='{$timestamp}' WHERE oid='{$v_oid}' LIMIT 1 ";
        if (!$db->query($sql)) {
            return false;
        }
        if ($order['setmeal'] > 0) {
            //查看短信套餐
            set_members_sms($order['uid'], intval($order['setmeal']));
            //支付成功,向用户增加短信条数
            $user_points = get_user_setmeal($order['uid']);
            write_memberslog($_SESSION['uid'], 1, 9003, $_SESSION['username'], "短信充值套餐:<strong>{$order['description']}</strong>,(- {$order['amount']}),(剩余:{$user_points['set_sms']})", 1, 1020, "申请广告位", "- {$order['amount']}", "{$user_points['set_sms']}");
        }
    } elseif ($order['pay_type'] == '7') {
        if ($order['amount'] == '0.00') {
            $ismoney = 1;
        } else {
            $ismoney = 2;
        }
        balance_deal($order['uid'], 1, $order['amount']);
        $user_balance = get_user_balance($order['uid']);
        $sql = "UPDATE " . table('order') . " SET is_paid= '2',payment_time='{$timestamp}' WHERE oid='{$v_oid}' LIMIT 1 ";
        //is_paid =2 为确定支付
        if (!$db->query($sql)) {
            return false;
        }
        $note = "余额充值:<strong>{$order['description']}</strong>,(: {$order['amount']})。当前余额为:{$user_balance}";
        write_memberslog($_SESSION['uid'], 1, 9101, $_SESSION['username'], $note, 4, $order['amount'], $ismoney, 1, 1);
    } elseif ($order['pay_type'] == '9') {
        if ($order['amount'] == '0.00') {
            $ismoney = 1;
        } else {
            $ismoney = 2;
        }
        if (get_user_can_balance($order['uid']) < $order['amount']) {
            adminmsg('余额不足', 1);
            return false;
        }
        balance_deal($order['uid'], 2, $order['amount']);
        $user_balance = get_user_balance($order['uid']);
        $sql = "UPDATE " . table('order') . " SET is_paid= '2',payment_time='{$timestamp}' WHERE oid='{$v_oid}' LIMIT 1 ";
        //is_paid =2 为确定支付
        if (!$db->query($sql)) {
            return false;
        }
        $note = "余额提现:<strong>{$order['description']}</strong>,(: {$order['amount']})。当前余额为:{$user_balance}";
        write_memberslog($_SESSION['uid'], 1, 9101, $_SESSION['username'], $note, 4, $order['amount'], $ismoney, 1, 1);
    }
    //发送邮件
    $mailconfig = get_cache('mailconfig');
    if ($mailconfig['set_payment'] == "1" && $user['email_audit'] == "1") {
        dfopen($_CFG['site_domain'] . $_CFG['site_dir'] . "plus/asyn_mail.php?uid=" . $order['uid'] . "&key=" . asyn_userkey($order['uid']) . "&act=set_payment");
    }
    //发送邮件完毕
    //sms
    $sms = get_cache('sms_config');
    if ($sms['open'] == "1" && $sms['set_payment'] == "1" && $user['mobile_audit'] == "1") {
        dfopen($_CFG['site_domain'] . $_CFG['site_dir'] . "plus/asyn_sms.php?uid=" . $order['uid'] . "&key=" . asyn_userkey($order['uid']) . "&act=set_payment");
    }
//.........这里部分代码省略.........
开发者ID:winiceo,项目名称:job,代码行数:101,代码来源:admin_company_fun.php

示例8: write_memberslog

            $order_name = "广告位订单";
            write_memberslog($_SESSION['uid'], 1, 9001, $_SESSION['username'], "申请广告位:<strong>{$order['description']}</strong>,(花费: {$order['amount']})。", 1, 1020, "申请广告位", "-{$order['amount']}", "{$user_points}");
        } elseif ($order['pay_type'] == '3') {
            $order_name = "短信套餐订单";
            $user = get_user_info($order['uid']);
            if ($order['setmeal'] > 0) {
                //查看短信套餐
                set_members_sms($order['uid'], intval($order['setmeal']));
                //支付成功,向用户增加短信条数
                $user_points = get_user_setmeal($order['uid']);
                write_memberslog($_SESSION['uid'], 1, 9003, $_SESSION['username'], "短信充值套餐:<strong>{$order['description']}</strong>,(- {$order['amount']}),(剩余:{$user_points['set_sms']})", 1, 1020, "申请广告位", "- {$order['amount']}", "{$user_points['set_sms']}");
            }
        }
        //sendemail
        $mailconfig = get_cache('mailconfig');
        if ($mailconfig['set_payment'] == "1" && $user['email_audit'] == "1" && $order['amount'] > 0) {
            dfopen("{$_CFG['site_domain']}{$_CFG['site_dir']}plus/asyn_mail.php?uid={$order['uid']}&key=" . asyn_userkey($order['uid']) . "&act=set_payment");
        }
        //sms
        $sms = get_cache('sms_config');
        if ($sms['open'] == "1" && $sms['set_payment'] == "1" && $user['mobile_audit'] == "1" && $order['amount'] > 0) {
            dfopen("{$_CFG['site_domain']}{$_CFG['site_dir']}plus/asyn_sms.php?uid={$order['uid']}&key=" . asyn_userkey($order['uid']) . "&act=set_payment");
        }
        //return true;
    }
    // else
    // {
    // 	//return true;
    // }
    echo $order['oid'];
}
开发者ID:winiceo,项目名称:job,代码行数:31,代码来源:respond_weixinpay.php

示例9: elseif

     } elseif ($setmeal['map_open'] == '0') {
         showmsg("你服务套餐:{$setmeal['setmeal_name']} 没有开通电子地图的权限,请升级服务套餐!", 0);
     }
 }
 $wheresql = "uid='" . $_SESSION['uid'] . "'";
 $setsqlarr['map_open'] = 1;
 if ($db->updatetable(table('company_profile'), $setsqlarr, $wheresql)) {
     //发送邮件
     $mailconfig = get_cache('mailconfig');
     if ($mailconfig['set_addmap'] == "1" && $user['email_audit'] == "1") {
         dfopen($_CFG['site_domain'] . $_CFG['site_dir'] . "plus/asyn_mail.php?uid=" . $_SESSION['uid'] . "&key=" . asyn_userkey($_SESSION['uid']) . "&act=set_addmap");
     }
     //sms
     $sms = get_cache('sms_config');
     if ($sms['open'] == "1" && $sms['set_addmap'] == "1" && $user['mobile_audit'] == "1") {
         dfopen($_CFG['site_domain'] . $_CFG['site_dir'] . "plus/asyn_sms.php?uid=" . $_SESSION['uid'] . "&key=" . asyn_userkey($_SESSION['uid']) . "&act=set_addmap");
     }
     //微信提醒
     set_addmap($_SESSION['uid'], $company_profile['address']);
     write_memberslog($_SESSION['uid'], 1, 8005, $_SESSION['username'], "开通了电子地图");
     if ($operation_mode == '1' || $operation_mode == '3') {
         if ($points['company_map']['value'] > 0) {
             report_deal($_SESSION['uid'], $points['company_map']['type'], $points['company_map']['value']);
             $user_points = get_user_points($_SESSION['uid']);
             $operator = $points['company_map']['type'] == "1" ? "+" : "-";
             write_memberslog($_SESSION['uid'], 1, 9001, $_SESSION['username'], "开通了电子地图({$operator}{$points['company_map']['value']}),(剩余:{$user_points})", 1, 1008, "开通电子地图", "{$operator}{$points['company_map']['value']}", "{$user_points}");
         }
     } elseif ($operation_mode == '2') {
         write_memberslog($_SESSION['uid'], 1, 9002, $_SESSION['username'], "使用服务套餐开通了电子地图", 2, 1008, "开通电子地图", "0", "");
     }
     header("Location: ?act=company_map_set");
开发者ID:winiceo,项目名称:fenzhan,代码行数:31,代码来源:company_info.php

示例10: add_order

function add_order($uid, $pay_type, $oid, $amount, $payment_name, $description, $addtime, $points = '', $setmeal = '', $utype = '1')
{
    global $db;
    $setsqlarr['uid'] = intval($uid);
    $setsqlarr['pay_type'] = $pay_type;
    $setsqlarr['oid'] = $oid;
    $setsqlarr['amount'] = $amount;
    $setsqlarr['payment_name'] = $payment_name;
    $setsqlarr['description'] = $description;
    $setsqlarr['addtime'] = $addtime;
    $setsqlarr['points'] = $points;
    $setsqlarr['setmeal'] = $setmeal;
    $setsqlarr['utype'] = $utype;
    write_memberslog($uid, 1, 3001, $_SESSION['username'], "添加订单,编号{$oid},金额{$amount}元");
    $userinfo = get_user_info($uid);
    //sendemail
    $mailconfig = get_cache('mailconfig');
    if ($mailconfig['set_order'] == "1" && $userinfo['email_audit'] == "1" && $amount > 0) {
        global $_CFG;
        $paymenttpye = get_payment_info($payment_name);
        dfopen("{$_CFG['site_domain']}{$_CFG['site_dir']}plus/asyn_mail.php?uid={$uid}&key=" . asyn_userkey($uid) . "&act=set_order&oid={$oid}&amount={$amount}&paymenttpye={$paymenttpye['byname']}");
    }
    //sendemail
    //sms
    $sms = get_cache('sms_config');
    if ($sms['open'] == "1" && $sms['set_order'] == "1" && $userinfo['mobile_audit'] == "1" && $amount > 0) {
        global $_CFG;
        $paymenttpye = get_payment_info($payment_name);
        dfopen("{$_CFG['site_domain']}{$_CFG['site_dir']}plus/asyn_sms.php?uid={$uid}&key=" . asyn_userkey($uid) . "&act=set_order&oid={$oid}&amount={$amount}&paymenttpye={$paymenttpye['byname']}");
    }
    //微信提醒
    set_order_msg($uid, $oid, $description, $amount);
    return $db->inserttable(table('order'), $setsqlarr, true);
}
开发者ID:winiceo,项目名称:job,代码行数:34,代码来源:fun_personal.php

示例11: order_paid

function order_paid($v_oid)
{
    global $db, $timestamp, $_CFG;
    $order = $db->getone("select * from " . table('order') . " WHERE oid ='{$v_oid}' AND is_paid= '1' LIMIT 1 ");
    if ($order) {
        $user = get_user($order['uid']);
        $sql = "UPDATE " . table('order') . " SET is_paid= '2',payment_time='{$timestamp}' WHERE oid='{$v_oid}' LIMIT 1 ";
        if (!$db->query($sql)) {
            return false;
        }
        if ($order['amount'] == '0.00') {
            $ismoney = 1;
        } else {
            $ismoney = 2;
        }
        if ($order['points'] > 0) {
            report_deal($order['uid'], 1, $order['points']);
            $user_points = get_user_points($order['uid']);
            $notes = "操作人:{$_SESSION['admin_name']},说明:确认收款。收款金额:{$order['amount']} 。" . date('Y-m-d H:i', time()) . "通过:" . get_payment_info($order['payment_name'], true) . " 成功充值 " . $order['amount'] . "元,(+{$order['points']}),(剩余:{$user_points}),订单:{$v_oid}";
            write_memberslog($order['uid'], 3, 9201, $user['username'], $notes);
            //会员套餐变更记录。管理员后台设置会员订单购买成功。4表示:管理员后台开通
            write_setmeallog($order['uid'], $user['username'], $notes, 4, $order['amount'], $ismoney, 1, 3);
        }
        if ($order['setmeal'] > 0) {
            set_members_setmeal($order['uid'], $order['setmeal']);
            $setmeal = get_setmeal_one($order['setmeal']);
            $notes = "操作人:{$_SESSION['admin_name']},说明:确认收款,收款金额:{$order['amount']} 。" . date('Y-m-d H:i', time()) . "通过:" . get_payment_info($order['payment_name'], true) . " 成功充值 " . $order['amount'] . "元并开通{$setmeal['setmeal_name']}";
            write_memberslog($order['uid'], 3, 9202, $user['username'], $notes);
            //会员套餐变更记录。管理员后台设置会员订单购买成功。4表示:管理员后台开通
            write_setmeallog($order['uid'], $user['username'], $notes, 4, $order['amount'], $ismoney, 2, 3);
        }
        //发送邮件
        $mailconfig = get_cache('mailconfig');
        if ($mailconfig['set_payment'] == "1" && $user['email_audit'] == "1") {
            dfopen($_CFG['site_domain'] . $_CFG['site_dir'] . "plus/asyn_mail.php?uid=" . $order['uid'] . "&key=" . asyn_userkey($order['uid']) . "&act=set_payment");
        }
        //发送邮件完毕
        //sms
        $sms = get_cache('sms_config');
        if ($sms['open'] == "1" && $sms['set_payment'] == "1" && $user['mobile_audit'] == "1") {
            dfopen($_CFG['site_domain'] . $_CFG['site_dir'] . "plus/asyn_sms.php?uid=" . $order['uid'] . "&key=" . asyn_userkey($order['uid']) . "&act=set_payment");
        }
        //sms
        write_log("将订单号为" . $v_oid . "的订单设为确认收款", $_SESSION['admin_name'], 3);
        return true;
    }
    return true;
}
开发者ID:winiceo,项目名称:fenzhan,代码行数:48,代码来源:admin_hunter_fun.php

示例12: write_memberslog

         if ($resume['talent'] == '2') {
             write_memberslog($_SESSION['uid'], 1, 9001, $_SESSION['username'], "邀请 {$resume_user['username']} 面试({$operator}{$points}),(剩余:{$user_points})", 1, 1007, "邀请高级人才面试", "{$operator}{$points}", "{$user_points}");
         } else {
             write_memberslog($_SESSION['uid'], 1, 9001, $_SESSION['username'], "邀请 {$resume_user['username']} 面试({$operator}{$points}),(剩余:{$user_points})", 1, 1006, "邀请普通人才面试", "{$operator}{$points}", "{$user_points}");
         }
         write_memberslog($_SESSION['uid'], 1, 6001, $_SESSION['username'], "邀请 {$resume_user['username']} 面试");
     }
 }
 $mailconfig = get_cache('mailconfig');
 $sms = get_cache('sms_config');
 if ($mailconfig['set_invite'] == "1" && $resume['email_notify'] == '1' && $resume_user['email_audit'] == "1") {
     dfopen("{$_CFG['website_dir']}plus/asyn_mail.php?uid={$_SESSION['uid']}&key=" . asyn_userkey($_SESSION['uid']) . "&act=set_invite&companyname={$jobs['companyname']}&email={$resume_user['email']}");
 }
 //sms
 if ($sms['open'] == "1" && $sms['set_invite'] == "1" && $resume_user['mobile_audit'] == "1") {
     dfopen("{$_CFG['website_dir']}plus/asyn_sms.php?uid={$_SESSION['uid']}&key=" . asyn_userkey($_SESSION['uid']) . "&act=set_invite&companyname={$jobs['companyname']}&mobile={$resume_user['mobile']}");
 }
 //站内信
 if ($pms_notice == '1') {
     $user = $db->getone("select username from " . table('members') . " where uid ={$resume['uid']} limit 1");
     $jobs_url = url_rewrite('QS_jobsshow', array('id' => $jobs['id']), true, $jobs['subsite_id']);
     $company_url = url_rewrite('QS_companyshow', array('id' => $jobs['company_id']), false);
     $message = $jobs['companyname'] . "邀请您参加公司面试,面试职位:<a href=\"{$jobs_url}\" target=\"_blank\"> {$jobs['jobs_name']} </a>,<a href=\"{$company_url}\" target=\"_blank\">点击查看公司详情</a>";
     write_pmsnotice($resume['uid'], $user['username'], $message);
 }
 //微信
 if (intval($_CFG['weixin_apiopen']) == 1) {
     $user = $db->getone("select weixin_openid from " . table('members') . " where uid ={$resume['uid']} limit 1");
     if ($user['weixin_openid'] != "") {
         $jobs_url = $_CFG['wap_domain'] . "/wap-jobs-show.php?id=" . $jobs['id'];
         $template = array('touser' => $user['weixin_openid'], 'template_id' => "sdjPV1l3vyv_9mclCe6_Fm8UzyAadMI_w5iIC1DPFPE", 'url' => $jobs_url, 'topcolor' => "#7B68EE", 'data' => array('first' => array('value' => urlencode(gbk_to_utf8($jobs['companyname'] . "邀请您参加公司面试")), 'color' => "#743A3A"), 'job' => array('value' => urlencode(gbk_to_utf8($jobs['jobs_name'])), 'color' => "#743A3A"), 'company' => array('value' => urlencode(gbk_to_utf8($jobs['companyname'])), 'color' => "#743A3A"), 'time' => array('value' => urlencode(gbk_to_utf8("请点击查看")), 'color' => "#743A3A"), 'address' => array('value' => urlencode(gbk_to_utf8($jobs['contact']['address'])), 'color' => "#743A3A"), 'contact' => array('value' => urlencode(gbk_to_utf8($jobs['contact']['contact'])), 'color' => "#743A3A"), 'tel' => array('value' => urlencode($jobs['contact']['telephone']), 'color' => "#743A3A"), 'remark' => array('value' => urlencode("\\n" . $notes), 'color' => "#743A3A")));
开发者ID:dalinhuang,项目名称:yy,代码行数:31,代码来源:wap_ajax.php

示例13: edit_resume_audit

function edit_resume_audit($id, $audit, $reason, $pms_notice)
{
    global $db, $_CFG;
    $audit = intval($audit);
    if (!is_array($id)) {
        $id = array($id);
    }
    $sqlin = implode(",", $id);
    if (preg_match("/^(\\d{1,10},)*(\\d{1,10})\$/", $sqlin)) {
        if (!$db->query("update  " . table('resume') . " SET audit='{$audit}'  WHERE id IN ({$sqlin}) ")) {
            return false;
        }
        if (!$db->query("update  " . table('resume_search_key') . " SET audit='{$audit}'  WHERE id IN ({$sqlin}) ")) {
            return false;
        }
        if (!$db->query("update  " . table('resume_search_rtime') . " SET audit='{$audit}'  WHERE id IN ({$sqlin}) ")) {
            return false;
        }
        if (!$db->query("update  " . table('resume_search_tag') . " SET audit='{$audit}'  WHERE id IN ({$sqlin}) ")) {
            return false;
        }
        foreach ($id as $key => $value) {
            set_resume_entrust($value);
        }
        // distribution_resume($id);
        //发送站内信
        if ($pms_notice == '1') {
            $result = $db->query("SELECT  fullname,title,uid  FROM " . table('resume') . " WHERE id IN ({$sqlin})");
            $reason = $reason == '' ? '原因:未知' : '原因:' . $reason;
            while ($list = $db->fetch_array($result)) {
                $user_info = get_user($list['uid']);
                $setsqlarr['message'] = $audit == '1' ? "您创建的简历:{$list['title']},真实姓名:{$list['fullname']},成功通过网站管理员审核!" : "您创建的简历:{$list['title']},真实姓名:{$list['fullname']},未通过网站管理员审核,{$reason}";
                $setsqlarr['msgtype'] = 1;
                $setsqlarr['msgtouid'] = $user_info['uid'];
                $setsqlarr['msgtoname'] = $user_info['username'];
                $setsqlarr['dateline'] = time();
                $setsqlarr['replytime'] = time();
                $setsqlarr['new'] = 1;
                inserttable(table('pms'), $setsqlarr);
            }
        }
        //审核未通过增加原因
        if ($audit == '3') {
            foreach ($id as $list) {
                $auditsqlarr['resume_id'] = $list;
                $auditsqlarr['reason'] = $reason;
                $auditsqlarr['addtime'] = time();
                inserttable(table('audit_reason'), $auditsqlarr);
            }
        }
        //发送邮件
        $mailconfig = get_cache('mailconfig');
        //获取邮件规则
        $sms = get_cache('sms_config');
        if ($audit == "1" && $mailconfig['set_resumeallow'] == "1") {
            $result = $db->query("SELECT * FROM " . table('resume') . " WHERE id IN ({$sqlin}) ");
            while ($list = $db->fetch_array($result)) {
                dfopen($_CFG['site_domain'] . $_CFG['site_dir'] . "plus/asyn_mail.php?uid=" . $list['uid'] . "&key=" . asyn_userkey($list['uid']) . "&act=set_resumeallow");
            }
        }
        if ($audit == "3" && $mailconfig['set_resumenotallow'] == "1") {
            $result = $db->query("SELECT * FROM " . table('resume') . " WHERE id IN ({$sqlin}) ");
            while ($list = $db->fetch_array($result)) {
                dfopen($_CFG['site_domain'] . $_CFG['site_dir'] . "plus/asyn_mail.php?uid=" . $list['uid'] . "&key=" . asyn_userkey($list['uid']) . "&act=set_resumenotallow");
            }
        }
        //sms
        if ($audit == "1" && $sms['open'] == "1" && $sms['set_resumeallow'] == "1") {
            $result = $db->query("SELECT * FROM " . table('resume') . " WHERE id IN ({$sqlin}) ");
            while ($list = $db->fetch_array($result)) {
                $user_info = get_user($list['uid']);
                if ($user_info['mobile_audit'] == "1") {
                    dfopen($_CFG['site_domain'] . $_CFG['site_dir'] . "plus/asyn_sms.php?uid=" . $list['uid'] . "&key=" . asyn_userkey($list['uid']) . "&act=set_resumeallow");
                }
            }
        }
        //sms
        if ($audit == "3" && $sms['open'] == "1" && $sms['set_resumenotallow'] == "1") {
            $result = $db->query("SELECT * FROM " . table('resume') . " WHERE id IN ({$sqlin}) ");
            while ($list = $db->fetch_array($result)) {
                $user_info = get_user($list['uid']);
                if ($user_info['mobile_audit'] == "1") {
                    dfopen($_CFG['site_domain'] . $_CFG['site_dir'] . "plus/asyn_sms.php?uid=" . $list['uid'] . "&key=" . asyn_userkey($list['uid']) . "&act=set_resumenotallow");
                }
            }
        }
        //sms
        //发送邮件
        return true;
    }
    return false;
}
开发者ID:dalinhuang,项目名称:yy,代码行数:92,代码来源:admin_personal_fun.php

示例14: exit

    }
    if (defined('UC_API')) {
        include_once QISHI_ROOT_PATH . 'uc_client/client.php';
        if (uc_user_checkname($username) < 0) {
            exit("err");
        }
        if (uc_user_checkemail($email) < 0) {
            exit("err");
        }
    }
    $register = user_register($username, $password, $member_type, $email);
    if ($register > 0) {
        $login_js = user_login($username, $password);
        $mailconfig = get_cache('mailconfig');
        if ($mailconfig['set_reg'] == "1") {
            dfopen($_CFG['website_dir'] . "plus/asyn_mail.php?uid=" . $_SESSION['uid'] . "&key=" . asyn_userkey($_SESSION['uid']) . "&sendemail=" . $email . "&sendusername=" . $username . "&sendpassword=" . $password . "&act=reg");
        }
        $ucjs = $login_js['uc_login'];
        $qsurl = $login_js['qs_login'];
        $qsjs = "<script language=\"javascript\" type=\"text/javascript\">window.location.href=\"" . $qsurl . "\";</script>";
        if ($ucjs || $qsurl) {
            exit($ucjs . $qsjs);
        } else {
            exit("err");
        }
    } else {
        exit("err");
    }
} elseif ($act == 'check_usname') {
    require_once QISHI_ROOT_PATH . 'include/fun_user.php';
    $usname = trim($_POST['usname']);
开发者ID:dalinhuang,项目名称:yy,代码行数:31,代码来源:ajax_user.php

示例15: edit_password

    }
    $info = edit_password($arr);
    if ($info == -1) {
        showmsg('旧密码输入错误,请重新输入!', 1);
    }
    if ($info == $_SESSION['username']) {
        //sendemail
        $mailconfig = get_cache('mailconfig');
        if ($mailconfig['set_editpwd'] == "1" && $user['email_audit'] == "1") {
            dfopen("{$_CFG['site_domain']}{$_CFG['site_dir']}plus/asyn_mail.php?uid={$_SESSION['uid']}&key=" . asyn_userkey($_SESSION['uid']) . "&act=set_editpwd&newpassword={$arr['password']}");
        }
        //sendemail
        //sms
        $sms = get_cache('sms_config');
        if ($sms['open'] == "1" && $sms['set_editpwd'] == "1" && $user['mobile_audit'] == "1") {
            dfopen("{$_CFG['site_domain']}{$_CFG['site_dir']}plus/asyn_sms.php?uid={$_SESSION['uid']}&key=" . asyn_userkey($_SESSION['uid']) . "&act=set_editpwd&newpassword={$arr['password']}");
        }
        //sms
        if (defined('UC_API')) {
            include_once QISHI_ROOT_PATH . 'uc_client/client.php';
            uc_user_edit($arr['username'], $arr['oldpassword'], $arr['password']);
        }
        showmsg('密码修改成功!', 2);
    }
} elseif ($act == 'save_username') {
    require_once QISHI_ROOT_PATH . 'include/fun_user.php';
    $arr['uid'] = $_SESSION['uid'];
    $_POST['newusername'] = utf8_to_gbk($_POST['newusername']);
    $arr['newusername'] = trim($_POST['newusername']) ? trim($_POST['newusername']) : showmsg('新用户名!', 1);
    $row_newname = $db->getone("SELECT * FROM " . table('members') . " WHERE username='{$arr['newusername']}' LIMIT 1");
    if ($row_newname) {
开发者ID:winiceo,项目名称:job,代码行数:31,代码来源:train_user.php


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