Beispiel #1
0
 * 使用;不允许对程序代码以任何形式任何目的的再发布。
 * ============================================================================
*/
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 {
Beispiel #2
0
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;
}
Beispiel #3
0
            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>
Beispiel #4
0
 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="******"&sendpassword="******"&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);
Beispiel #5
0
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;
}
Beispiel #6
0
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;
    }
}
Beispiel #7
0
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");
    }
    //微信通知
    set_payment($order['uid'], $order_name, $order['oid'], $order['amount']);
    write_log("将订单号为" . $v_oid . "的订单设置为确认收款", $_SESSION['admin_name'], 3);
    return true;
}
Beispiel #8
0
            $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'];
}
Beispiel #9
0
     } 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");
Beispiel #10
0
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);
}
Beispiel #11
0
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;
}
Beispiel #12
0
         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")));
Beispiel #13
0
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;
}
Beispiel #14
0
    }
    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="******"&sendpassword="******"&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']);
Beispiel #15
0
    }
    $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='******'newusername']}' LIMIT 1");
    if ($row_newname) {
Beispiel #16
0
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_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['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 = 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);
            //会员套餐变更记录。会员购买成功。2表示:会员自己购买
            write_setmeallog($order['uid'], $user['username'], $notes, 2, $order['amount'], $ismoney, 1);
        } elseif ($order['setmeal'] > 0) {
            set_members_setmeal($order['uid'], $order['setmeal']);
            $setmeal = get_setmeal_one($order['setmeal']);
            $notes = 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);
            //会员套餐变更记录。会员购买成功。2表示:会员自己购买
            write_setmeallog($order['uid'], $user['username'], $notes, 2, $order['amount'], $ismoney, 2, 1);
        }
        //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");
        }
        //sendemail
        //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");
        }
        //sms
        return true;
    }
    return true;
}
Beispiel #17
0
    $addarr['mobile'] = $mobile;
    $addarr['personal_uid'] = intval($_SESSION['uid']);
    $addarr['course_id'] = $course['id'];
    $addarr['course_name'] = $course['course_name'];
    $addarr['train_id'] = $course['train_id'];
    $addarr['train_name'] = $course['trainname'];
    $addarr['train_uid'] = $course['uid'];
    $addarr['notes'] = $notes;
    if (strcasecmp(QISHI_DBCHARSET, "utf8") != 0) {
        $addarr['notes'] = utf8_to_gbk($addarr['notes']);
        $addarr['realname'] = utf8_to_gbk($addarr['realname']);
        $addarr['mobile'] = utf8_to_gbk($addarr['mobile']);
    }
    $addarr['apply_addtime'] = time();
    $addarr['personal_look'] = 1;
    if ($db->inserttable(table('personal_course_apply'), $addarr)) {
        $mailconfig = get_cache('mailconfig');
        $course['contact'] = $db->getone("select notify  from " . table('course_contact') . " where pid='{$course['id']}' LIMIT 1 ");
        $sms = get_cache('sms_config');
        $trainuser = get_user_info($course['uid']);
        if ($mailconfig['set_applycou'] == '1' && $trainuser['email_audit'] == '1' && $course['contact']['notify'] == '1') {
            dfopen($_CFG['site_domain'] . $_CFG['site_dir'] . "plus/asyn_mail.php?uid={$_SESSION['uid']}&key=" . asyn_userkey($_SESSION['uid']) . "&act=set_applycou&course_id={$course['id']}&coursename={$course['course_name']}&personal_fullname={$realname}&email={$trainuser['email']}");
        }
        //sms
        if ($sms['open'] == "1" && $sms['set_applycou'] == "1" && $trainuser['mobile_audit'] == "1") {
            dfopen($_CFG['site_domain'] . $_CFG['site_dir'] . "plus/asyn_sms.php?uid={$_SESSION['uid']}&key=" . asyn_userkey($_SESSION['uid']) . "&act=set_applycou&course_id={$course['id']}&coursename={$course['course_name']}&personal_fullname={$realname}&mobile={$trainuser['mobile']}");
        }
        write_memberslog($_SESSION['uid'], 2, s, $_SESSION['username'], "申请课程,课程:{$course['course_name']}");
    }
    exit("ok");
}
Beispiel #18
0
 $setsqlarr["apply_addtime"] = time();
 if ($db->inserttable(table('personal_jobs_apply'), $setsqlarr)) {
     $sql = "select * from " . table("jobs") . " where  id = " . $setsqlarr["jobs_id"];
     $jobs = $db->getone($sql);
     $mailconfig = get_cache('mailconfig');
     $weixinconfig = get_cache('weixin_config');
     $jobs['contact'] = $db->getone("select * from " . table('jobs_contact') . " where pid='{$jobs['id']}' LIMIT 1 ");
     $sms = get_cache('sms_config');
     $comuser = get_user_info($jobs['uid']);
     if ($mailconfig['set_applyjobs'] == "1" && $comuser['email_audit'] == "1" && $jobs['contact']['notify'] == "1") {
         dfopen($_CFG['site_domain'] . $_CFG['site_dir'] . "plus/asyn_mail.php?uid={$_SESSION['uid']}&key=" . asyn_userkey($_SESSION['uid']) . "&act=jobs_apply&jobs_id={$jobs['id']}&jobs_name={$jobs['jobs_name']}&personal_fullname={$personal_fullname}&email={$comuser['email']}&resume_id={$resumeid}");
     }
     //sms
     if ($sms['open'] == "1" && $sms['set_applyjobs'] == "1" && $comuser['mobile_audit'] == "1") {
         //修正bug,求职者申请职位不发送短信
         dfopen($_CFG['site_domain'] . $_CFG['site_dir'] . "plus/asyn_sms.php?uid={$_SESSION['uid']}&key=" . asyn_userkey($_SESSION['uid']) . "&act=jobs_apply&jobs_id=" . $jobs['id'] . "&jobs_name=" . $jobs['jobs_name'] . '&jobs_uid=' . $jobs['uid'] . "&personal_fullname=" . $personal_fullname . "&mobile=" . $comuser['mobile']);
     }
     //站内信
     if ($pms_notice == '1') {
         $user = $db->getone("select username from " . table('members') . " where uid ={$jobs['uid']} limit 1");
         $user = array_map("addslashes", $user);
         $jobs_url = url_rewrite('QS_jobsshow', array('id' => $jobs['id']));
         $resume_url = url_rewrite('QS_resumeshow', array('id' => $resumeid));
         $message = $personal_fullname . "申请了您发布的职位:<a href=\"{$jobs_url}\" target=\"_blank\">{$jobs['jobs_name']}</a>,<a href=\"{$resume_url}\" target=\"_blank\">点击查看</a>";
         write_pmsnotice($jobs['uid'], $user['username'], $message);
     }
     // 查看操作记录表 统计创建简历积分所奖励积分  判断是否超过上限   若没超过上限 则继续添加积分
     $today = mktime(0, 0, 0, date('m'), date('d'), date('Y'));
     $info = $db->getone("SELECT sum(points) as num FROM " . table('members_handsel') . " WHERE uid ='{$_SESSION['uid']}' AND htype='resumeapplyjobs' AND addtime>{$today} ");
     if (intval($info['num']) >= intval($_CFG['apply_jobs_points_max'])) {
         write_memberslog($_SESSION['uid'], 2, 1301, $_SESSION['username'], "投递了简历,职位:{$jobs['jobs_name']}");
Beispiel #19
0
    $arr['password'] = trim($_POST['password']) ? trim($_POST['password']) : exit('请输入新密码!');
    if ($arr['password'] != trim($_POST['password1'])) {
        exit('两次输入密码不相同,请重新输入!');
    }
    //edit_password()修改密码的方法
    $info = edit_password($arr);
    if ($info == -1) {
        exit('旧密码输入错误,请重新输入!');
    }
    if ($info == $_SESSION['username']) {
        //发送邮件
        $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="******"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="******"修改密码");
        exit('密码修改成功!');
    }
}
Beispiel #20
0
        }
    } elseif ($_CFG['operation_train_mode'] == "1") {
        $points_rule = get_cache('points_rule');
        $points = $points_rule['down_apply']['value'];
        $ptype = $points_rule['down_apply']['type'];
        $mypoints = get_user_points($_SESSION['uid']);
        if ($mypoints < $points) {
            exit("err");
        }
        if (add_down_apply($id, $_SESSION['uid'])) {
            if ($points > 0) {
                report_deal($_SESSION['uid'], $ptype, $points);
                $user_points = get_user_points($_SESSION['uid']);
                $operator = $ptype == "1" ? "+" : "-";
                write_memberslog($_SESSION['uid'], 4, 9101, $_SESSION['username'], "查看了 {$ruser['username']} 的课程申请联系方式({$operator}{$points}),(剩余:{$user_points})");
                write_memberslog($_SESSION['uid'], 4, 8206, $_SESSION['username'], "查看了 {$ruser['username']} 的课程申请联系方式");
            }
            $mailconfig = get_cache('mailconfig');
            $sms = get_cache('sms_config');
            $personuser = get_user_info($applyshow['personal_uid']);
            if ($mailconfig['set_downapp'] == '1' && $personuser['email_audit'] == '1') {
                dfopen("{$_CFG['site_domain']}{$_CFG['site_dir']}plus/asyn_mail.php?uid={$_SESSION['uid']}&key=" . asyn_userkey($_SESSION['uid']) . "&act=set_downapp&coursename={$applyshow['course_name']}&trainname={$applyshow['train_name']}&email={$personuser['email']}");
            }
            //sms
            if ($sms['open'] == '1' && $sms['set_downapp'] == '1' && $personuser['mobile_audit'] == '1') {
                dfopen("{$_CFG['site_domain']}{$_CFG['site_dir']}plus/asyn_sms.php?uid={$_SESSION['uid']}&key=" . asyn_userkey($_SESSION['uid']) . "&act=set_downapp&coursename={$applyshow['course_name']}&trainname={$applyshow['train_name']}&mobile={$personuser['mobile']}");
            }
            exit("ok");
        }
    }
}