Esempio n. 1
0
 function wqueue()
 {
     $do = $this->Get['do'];
     if ($do == 'run') {
         if ($this->Config['wqueue_enabled']) {
             $url = 'http:/' . '/' . $this->Config['wqueue']['host'] . '/?name=' . $this->Config['wqueue']['name'] . '&opt=get&auth=' . $this->Config['wqueue']['auth'];
             while (true) {
                 $r = dfopen($url);
                 if (!in_array($r, array('HTTPSQS_GET_END', 'HTTPSQS_ERROR'))) {
                     $data = unserialize(base64_decode($r));
                     $data['datas']['content'] = base64_decode($data['datas']['content']);
                     $r = jlogic('topic')->Add($data['datas'], $data['totid'], $data['imageid'], $data['attachid'], $data['from'], $data['type'], $data['uid'], $data['item'], $data['item_id'], true);
                     if (DEBUG) {
                         if (is_array($r) && $r['tid']) {
                             echo 'publish success' . "\n";
                         } else {
                             echo var_export($r, true) . "\n";
                         }
                         ob_flush();
                     }
                 } else {
                     sleep(1);
                 }
             }
         } else {
             exit('weibo.queue.close');
         }
     } else {
         exit('weibo.action.no');
     }
 }
function tpl_function_qishi_get_salary_data_salary_pie($params, &$smarty)
{
    global $db, $_CFG;
    $arr = explode(',', $params['set']);
    foreach ($arr as $str) {
        $a = explode(':', $str);
        switch ($a[0]) {
            case "调用名称":
                $aset['alias'] = $a[1];
                break;
            case "列表名":
                $aset['listname'] = $a[1];
                break;
            case "地区":
                $aset['district'] = $a[1];
                break;
            case "职位":
                $aset['category'] = $a[1];
                break;
        }
    }
    $filename = urlencode($aset['district'] . '_' . $aset['category']) . '_salary_pie.cache';
    $result = check_cache($filename, 'salary', 7);
    if (!$result) {
        $result = dfopen("http://www.74cms.com/salary/get_salary_data_salary_pie.php?district=" . $aset['district'] . "&category=" . $aset['category'] . "&certification=" . $_SERVER['SERVER_NAME']);
        write_cache($filename, $result, 'salary');
    }
    $smarty->assign($aset['listname'], $result);
}
Esempio n. 3
0
	public function status_ajax()
	{
		$this->CheckAdminPrivs('wips','ajax');
		if (ini('wips.sql.enabled'))
		{
			$string = 'WIPS已开启';
			if (ini('wips.sql.autoups') == 'true')
			{
				$lastc = fcache('wips.sql.rule.sync', 86400);
				if ($lastc)
				{

				}
				else
				{
															$server = base64_decode('aHR0cDovL3NxbC50dHR1YW5nb3UubmV0L3dpcHMvdXBkYXRlLnBocA==');
					$r = dfopen($server, 10485760, '', '', true, 10, 'CENWOR.TTTG.WIPS.SYNC.AGENT.'.SYS_VERSION.'.'.SYS_BUILD);
					if ($r)
					{
						$data = (array)json_decode($r, true);
						if (isset($data['hash']) && $data['hash'])
						{
							foreach ($data['rules'] as $rk => $rv)
							{
								if (substr($rk, 0, -4) == '.md5')
								{
									continue;
								}
								if (md5($rv) == $data['rules'][$rk.'.md5'])
								{
									if (ini('wips.sql.'.$rk) != $rv)
									{
																				ini('wips.sql.'.$rk, $rv);
										$updated = true;
									}
								}
							}
						}
					}
					fcache('wips.sql.rule.sync', 'lastCheck @ '.date('Y-m-d H:i:s', time()));
					if ($updated)
					{
						$string = 'WIPS自动升级完成';
					}
				}
			}
		}
		else
		{
			$string = 'WIPS未开启,有风险';
		}
		exit('<a href="admin.php?mod=wips">'.$string.'</a>');
	}
Esempio n. 4
0
 function request($url)
 {
     if (strpos($url, ':/' . '/') === false) {
         $url = $GLOBALS['_J']['site_url'] . '/' . $url;
     }
     if (!$_SERVER['HTTP_USER_AGENT'] || !$_COOKIE || 'remote_script' == get_param('request_from')) {
         dfopen($url, -1, $post, $cookie, true, 3);
         @usleep(rand(10000, 100000));
     } else {
         $GLOBALS['iframe'] .= "<iframe src='{$url}' border=0 width=0 height=0></iframe>";
     }
 }
Esempio n. 5
0
	function request($url)
	{
		$config=&Obj::registry('config');
		if(strpos($url,':/'.'/')===false) {
			$url=$config['site_url'].'/'.$url;
		}

		if ((defined('ROBOT_NAME') && false!==ROBOT_NAME) || 			('remote_script' == $_REQUEST['request_from']) || 			(!$_SERVER['HTTP_USER_AGENT']) || 			(!$_COOKIE)) {
			@dfopen($url,-1,$post,$cookie,true,3);
			@usleep(rand(10000,100000)); 		} else {
			$GLOBALS['iframe'] .="<iframe src='{$url}' border=0 width=0 height=0></iframe>";
		}
	}
Esempio n. 6
0
function sms_remain()
{
	$sms = ConfigHandler::get('sms');
	$sms['server'] = sms_server_init();
	$data = 'name='.$sms['account'].'&password='******'password']);
	$result = dfopen($sms['server'].'?method=remaincount&'.$data, 10485760, '', '', true);
	$result = iconv('GB2312', 'UTF-8/'.'/IGNORE', $result);
	preg_match('/<describe>(.*?)<\/describe>/', $result, $match);
	$status = $match[1];
	preg_match('/<count>(.*?)<\/count>/', $result, $match);
	$remain = (int)$match[1]/10;
	if ($match[0] == '')
	{
		preg_match('/<message>(.*?)<\/message>/', $result, $match);
		$remain = $match[1];
	}
	return array('status'=>$status, 'remain'=>$remain);
}
Esempio n. 7
0
 function qmd_list($uid = 0, $pic_path = '')
 {
     $uid = is_numeric($uid) ? $uid : 0;
     if ($GLOBALS['_J']['config']['is_qmd']) {
         $TopicLogic = jlogic('topic');
         $condition = " where `type` = 'first' and `uid`='{$uid}' order by `dateline` desc limit 1 ";
         $topic_list = $TopicLogic->Get($condition);
         if ($topic_list) {
             foreach ($topic_list as $v) {
                 $topic = $v;
             }
         } else {
             return false;
         }
         $temp_face = true === UCENTER_FACE && true === UCENTER ? $topic['face_small'] : $topic['face_original'];
         if (false === strpos($temp_face, ':/' . '/')) {
             $member_face = $temp_face;
         } else {
             $field = 'temp_face';
             $image_path = RELATIVE_ROOT_PATH . './data/cache/' . $field . '/' . face_path($topic['uid']);
             $image_file_small = $image_path . $topic['uid'] . "_s.jpg";
             if (!file_exists($image_file_small)) {
                 if (!is_dir($image_path)) {
                     jio()->MakeDir($image_path);
                 }
                 $temp_image = dfopen($temp_face, 999999, '', '', true, 5, $_SERVER['HTTP_USER_AGENT']);
                 if ($temp_image) {
                     jio()->WriteFile($image_file_small, $temp_image);
                 }
                 if (!is_image($image_file_small)) {
                     @copy(ROOT_PATH . 'images/noavatar.gif', $image_file_small);
                 }
             }
             $member_face = $image_file_small;
         }
         $content = strip_tags($topic['content']);
         $content = str_replace(array("\r\n", "\n", "\r", "\t", "  "), ' ', $content);
         $content = cut_str($content, 74);
         $qmd_data = array('uid' => $topic['uid'], 'nickname' => $topic['nickname'], 'validate' => $topic['validate'], 'face' => $member_face, 'content' => $content, 'dateline' => date('m月d日 H:i', $topic['addtime']));
         $qmd_list = $this->qmd_img_list($pic_path, $qmd_data);
         return $qmd_list;
     }
     return false;
 }
Esempio n. 8
0
/**
 * 作者:狐狸<*****@*****.**>
 * 功能描述:request 相关
 * @version $Id: request.func.php 5114 2013-11-27 07:06:10Z wuliyong $
 */
function __request($action, $post = array(), &$error)
{
    settype($post, "array");
    $post['system_env'] = $post['system_env'] ? array_merge((array) $post['system_env'], (array) get_system_env()) : (array) get_system_env();
    $aclData = upsCtrl()->Account();
    $post['__acl__']['account'] = $aclData['account'];
    $post['__acl__']['token'] = $aclData['token'];
    $data = '_POST=' . urlencode(base64_encode(serialize($post)));
    $config = jconf::get();
    $charset = strtolower(str_replace('-', '', $config['charset']));
    $version = urlencode(SYS_VERSION);
    $pid = 2;
    #if NEDU
    if (defined('NEDU_MOYO')) {
        $pid = 3;
    }
    #endif
    $server_url = base64_decode('aHR0cDovL3VwZGF0ZS5jZW53b3IuY29tL3NlcnZlci5yZXF1ZXN0LnBocA==') . "?do={$action}&pid={$pid}&charset={$charset}&iver={$version}";
    $response = dfopen($server_url, 5000000, $data);
    $error_msg = array(1 => "error_nodata", 2 => "error_format");
    if ($response == "") {
        $result = $error_msg[$error = 1];
    } else {
        $int = preg_match("/<DATA>(.*)<\\/DATA>/s", $response, $m);
        if ($int < 1) {
            $result = $error_msg[$error = 2];
        } else {
            if (false !== strpos($m[1], "\n")) {
                $m[1] = preg_replace('~\\s+\\w{1,10}\\s+~', '', $m[1]);
            }
            $response = unserialize(base64_decode($m[1]));
            $result = $response['data'];
            if ($response['type']) {
                $error = 3;
            }
        }
    }
    return $result;
}
Esempio n. 9
0
	private function SMS_ServerTest_connector($url)
	{
		if (!$url) return false;
		$html = dfopen($url, 10485760, '', '', true, 10, 'CENWOR.TTTG.SMS.AGENT.'.SYS_VERSION.'.'.SYS_BUILD);
		if ($html)
		{
			return true;
		}
		else
		{
			return false;
		}
	}
Esempio n. 10
0
 }
 include_once ROOT_PATH . './uc_client/client.php';
 $ucinfo = dfopen($ucapi . '/index.php?m=app&a=ucinfo&release=' . UC_CLIENT_RELEASE, 500, '', '', 1, $ucip);
 list($status, $ucversion, $ucrelease, $uccharset, $ucdbcharset, $apptypes) = explode('|', $ucinfo);
 if ($status != 'UC_STATUS_OK') {
     show_msg('uc_url_unreachable', $ucapi, 0);
 } else {
     $dbcharset = strtolower($dbcharset ? str_replace('-', '', $dbcharset) : $dbcharset);
     $ucdbcharset = strtolower($ucdbcharset ? str_replace('-', '', $ucdbcharset) : $ucdbcharset);
     if (UC_CLIENT_VERSION > $ucversion) {
         show_msg('uc_version_incorrect', $ucversion, 0);
     } elseif ($dbcharset && $ucdbcharset != $dbcharset) {
         show_msg('uc_dbcharset_incorrect', '', 0);
     }
     $postdata = "m=app&a=add&ucfounder=&ucfounderpw=" . urlencode($ucpw) . "&apptype=" . urlencode($app_type) . "&appname=" . urlencode($app_name) . "&appurl=" . urlencode($app_url) . "&appip=&appcharset=" . CHARSET . '&appdbcharset=' . DBCHARSET . '&' . $app_tagtemplates . '&release=' . UC_CLIENT_RELEASE;
     $ucconfig = dfopen($ucapi . '/index.php', 500, $postdata, '', 1, $ucip);
     if (empty($ucconfig)) {
         show_msg('uc_api_add_app_error', $ucapi, 0);
     } elseif ($ucconfig == '-1') {
         show_msg('uc_admin_invalid', '', 0);
     } else {
         list($appauthkey, $appid) = explode('|', $ucconfig);
         $ucconfig_array = explode('|', $ucconfig);
         $ucconfig_array[] = $ucapi;
         $ucconfig_array[] = $ucip;
         if (empty($appauthkey) || empty($appid)) {
             show_msg('uc_data_invalid', '', 0);
         } elseif ($succeed = save_uc_config($ucconfig_array, ROOT_PATH . CONFIG_UC)) {
             if (VIEW_OFF) {
                 show_msg('app_reg_success');
             } else {
Esempio n. 11
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");
}
Esempio n. 12
0
	function ETS_iServer($action = 'check')
	{
				$server = base64_decode('aHR0cDovL3NlcnZlci50dHR1YW5nb3UubmV0L3Byb2Nlc3Nvci9ldHMvdXBkYXRlLnBocA==').'?charset='.ini('settings.charset').'&';
		return dfopen($server.'do='.$action, 10485760, '', '', true, 10, 'CENWOR.TTTG.ETS.UPC.AGENT.'.SYS_VERSION.'.'.SYS_BUILD);
	}
Esempio n. 13
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) {
Esempio n. 14
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>
Esempio n. 15
0
		}
		$str .= '</select>';
		showmessage($str);
	} else {
		showmessage("$language[uch_noalbum]<a href=\"$uchomeurl/cp.php?ac=upload\" target=\"_blank\">$language[click_here]</a>$language[uch_createalbum]");
	}


} elseif($action == 'getphotoes' && $discuz_uid && $aid) {

	$page = max(1, intval($page));
	$perpage = 8;
	$start = ($page - 1) * $perpage;
	$aid = intval($aid);
	$photonum = intval($photonum);
	$photoes = @unserialize(dfopen("$uchomeurl/api/discuz.php?ac=album&uid=$discuz_uid&start=$start&count=$photonum&perpage=$perpage&aid=$aid"));

	if($photoes && is_array($photoes)) {
		$i = 0;
		$str = '<table cellspacing="2" cellpadding="2" class="imglist"><tr>';
		foreach($photoes as $photo) {
			if($i++ == $perpage) {
				break;
			}
			$picurl = substr(strtolower($photo['bigpic']), 0, 7) == 'http://' ? '' : $uchomeurl.'/';
			$str .= '<td valign="bottom" width="25%"><a href="javascript:;"><img src="'.$picurl.$photo['pic'].'" title="'.$photo['filename'].'" onclick="wysiwyg ? insertText(\'<img src='.$picurl.$photo[bigpic].' border=0 /> \', false) : insertText(\'[img]'.$picurl.$photo[bigpic].'[/img]\');" onload="thumbImg(this, 1)" _width="110" _height="110"></a></td>'.
			($i % 4 == 0 && isset($photoes[$i]) ? '</tr><tr>' : '');
		}
		$str .= '</tr></table>'.multi($photonum, $perpage, $start / $perpage + 1, "api/uchome.php?action=getphotoes&aid=$aid&photonum=$photonum");
		showmessage($str);
	} else {
Esempio n. 16
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;
}
Esempio n. 17
0
 function automap(){
 	$ishtml = config::get('isautoctmap');
 	if($ishtml && !front::get('ishtml')){
 		$file = "./data/ctmap.db";
 		$str = @file_get_contents($file);
 		$today = date('Y-m-d');
 		if($str != $today){
 			$indexurl = get('site_url').'sitemap.php';
 			dfopen($indexurl);
 			$listurl = get('site_url').'index.php?case=cache&act=make_baidu&admin_dir='.config::get('admin_dir').'&ishtml=1&site=default';
 			dfopen($listurl,0,"XmlOutNum=450&XmlMaxPerPage=90&frequency=1440&submit=1");
 			file_put_contents($file, $today);
 		}
 	}
 }
Esempio n. 18
0
    $parameter[] = 'ac=app';
    if (!empty($settings['uid'])) {
        $parameter[] = 'uid=' . trim($settings['uid']);
    } elseif ($discuz_uid) {
        $parameter[] = 'uid=' . $GLOBALS['discuz_uid'];
    }
    if (!empty($settings['type'])) {
        $parameter[] = 'type=' . intval($settings['type']);
    }
    $start = !empty($settings['start']) ? intval($settings['start']) : 0;
    $limit = !empty($settings['limit']) ? intval($settings['limit']) : 10;
    $parameter[] = 'start=' . $start;
    $parameter[] = 'limit=' . $limit;
    $plus = implode('&', $parameter);
    $url = $GLOBALS['uchomeurl'] . "/api/discuz.php?{$plus}";
    $applist = unserialize(dfopen($url));
    $writedata = '';
    if ($applist && is_array($applist)) {
        $writedata = '<div class="sidebox"><h4>' . $settings['title'] . '</h4><table>';
        foreach ($applist as $app) {
            $searchs = $replaces = array();
            foreach (array_keys($app) as $key) {
                $searchs[] = '{' . $key . '}';
                $replaces[] = $app[$key];
            }
            $writedata .= '<tr><td>' . str_replace($searchs, $replaces, stripslashes($settings['template'])) . '</td></tr>';
        }
        $writedata .= '</table></div>';
    }
} else {
    $request_version = '1.0';
Esempio n. 19
0
function getstatinfo($mark, $version, $siteid, $key) {
	global $db, $tablepre, $dbcharset, $_DCACHE;
	$onlineip = $GLOBALS['onlineip'];
	$funcurl = 'http://stat.discuz.com/func/funcstat.php';
	$members = $_DCACHE['settings']['totalmembers'];
	$bbname = $_DCACHE['settings']['bbname'];
	$PHP_SELF = htmlspecialchars($_SERVER['PHP_SELF'] ? $_SERVER['PHP_SELF'] : $_SERVER['SCRIPT_NAME']);
	$url = htmlspecialchars('http://'.$_SERVER['HTTP_HOST'].preg_replace("/\/+(api|archiver|wap)?\/*$/i", '', substr($PHP_SELF, 0, strrpos($PHP_SELF, '/'))).'/');
	$posts = $db->result($db->query("SELECT count(*) FROM {$tablepre}posts"), 0);
	$hash = $bbname.$url.$mark.$version.$posts;
	$threads = $db->result($db->query("SELECT count(*) FROM {$tablepre}threads"), 0);
	$hash = md5($hash.$members.$threads.$email.$siteid.md5($key).'install');
	$q = "bbname=$bbname&url=$url&mark=$mark&version=$version&dz_ver=".DISCUZ_RELEASE."&posts=$posts&members=$members&threads=$threads&email=$email&siteid=$siteid&key=".md5($key)."&ip=$onlineip&time=".time()."&hash=$hash";
	$q=rawurlencode(base64_encode($q));
	$siteinfo = dfopen($funcurl."?action=install&q=$q");
	if(empty($siteinfo)) {
		$siteinfo = dfopen($funcurl."?action=install&q=$q");
	}
	if($siteinfo && preg_match("/^[a-zA-Z0-9_]+,[A-Z]+$/i", $siteinfo)) {
		include_once DISCUZ_ROOT.'./include/cache.func.php';
		$siteinfo = explode(',', $siteinfo);
		$db->query("REPLACE INTO {$tablepre}settings (variable, value) VALUES ('funcsiteid', '$siteinfo[0]')");
		$db->query("REPLACE INTO {$tablepre}settings (variable, value) VALUES ('funckey', '$siteinfo[1]')");
		updatecache('settings');
	}
}
Esempio n. 20
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;
}
Esempio n. 21
0
                showsetting('', 'focus_img', '', '<div id="focus_img_preview"></div><input type="hidden" name="focus_filename" value="" />');
            }
        }
        echo '<script type="text/JavaScript">var attachkeys = [];';
        foreach ($attachkeys as $aid => $key) {
            echo 'attachkeys[' . $aid . '] = \'' . $key . '\';';
        }
        echo <<<EOT
\t\$('cpform').focus_aid.onchange = function() {
\t\t\$('focus_img_preview').innerHTML = this.value > 0 ? '<img src="image.php?aid=' + this.value + '&size=58x58&key=' + attachkeys[this.value] + '&nocache=yes" />' : '';
\t\tthis.form.focus_filename.value = this.options[this.options.selectedIndex].innerHTML;
\t};
</script>
EOT;
        ajaxshowfooter();
        exit;
    }
} elseif ($operation == 'checkstat') {
    if ($statid && $statkey) {
        $q = "statid={$statid}&statkey={$statkey}";
        $q = rawurlencode(base64_encode($q));
        $url = 'http://stat.discuz.com/stat_ins.php?action=checkstat&q=' . $q;
        $key = dfopen($url);
        $newstatdisable = $key == $statkey ? 0 : 1;
        if ($newstatdisable != $statdisable) {
            $db->query("REPLACE {$tablepre}settings SET variable='statdisable', value='{$newstatdisable}'");
            require_once DISCUZ_ROOT . './include/cache.func.php';
            updatecache('settings');
        }
    }
}
Esempio n. 22
0
function getstatinfo()
{
    if ($siteid && $key) {
        return;
    }
    $version = '7.2';
    $onlineip = '';
    if (getenv('HTTP_CLIENT_IP') && strcasecmp(getenv('HTTP_CLIENT_IP'), 'unknown')) {
        $onlineip = getenv('HTTP_CLIENT_IP');
    } elseif (getenv('HTTP_X_FORWARDED_FOR') && strcasecmp(getenv('HTTP_X_FORWARDED_FOR'), 'unknown')) {
        $onlineip = getenv('HTTP_X_FORWARDED_FOR');
    } elseif (getenv('REMOTE_ADDR') && strcasecmp(getenv('REMOTE_ADDR'), 'unknown')) {
        $onlineip = getenv('REMOTE_ADDR');
    } elseif (isset($_SERVER['REMOTE_ADDR']) && $_SERVER['REMOTE_ADDR'] && strcasecmp($_SERVER['REMOTE_ADDR'], 'unknown')) {
        $onlineip = $_SERVER['REMOTE_ADDR'];
    }
    $funcurl = 'http://stat' . '.disc' . 'uz.co' . 'm/stat_ins.php';
    $PHP_SELF = htmlspecialchars($_SERVER['PHP_SELF'] ? $_SERVER['PHP_SELF'] : $_SERVER['SCRIPT_NAME']);
    $url = htmlspecialchars('http://' . $_SERVER['HTTP_HOST'] . preg_replace("/\\/+(api|archiver|wap)?\\/*\$/i", '', substr($PHP_SELF, 0, strrpos($PHP_SELF, '/'))));
    $url = substr($url, 0, -8);
    $hash = md5("{$url}\$version{$onlineip}");
    $q = "url={$url}&version={$version}&ip={$onlineip}&time=" . time() . "&hash={$hash}";
    $q = rawurlencode(base64_encode($q));
    dfopen($funcurl . "?action=newinstall&q={$q}");
}
Esempio n. 23
0
require_once QISHI_ROOT_PATH . 'include/mysql.class.php';
require_once QISHI_ROOT_PATH . 'include/fun_personal.php';
$smarty->cache = false;
$db = new mysql($dbhost, $dbuser, $dbpass, $dbname);
$act = !empty($_REQUEST['act']) ? trim($_REQUEST['act']) : 'salary';
$smarty->cache = false;
$filename = urlencode($_GET['district'] . '_' . $_GET['category']) . '_all_salary.cache';
$result = check_cache($filename, 'salary', 7);
if (!$result) {
    $result = dfopen("http://www.74cms.com/salary/get_salary_data_all_salary.php?district=" . $_GET['district'] . "&category=" . $_GET['category'] . "&certification=" . $_SERVER['SERVER_NAME']);
    write_cache($filename, $result, 'salary');
}
if ($result != "-1") {
    $result = json_decode($result, true);
} else {
    $result = "error";
}
$str1 = $_GET['district'] != '' ? $_GET['district'] : '全国';
$str2 = $_GET['category'] != '' ? $_GET['category'] : '职工';
$str3 = $_GET['category'] != '' ? $_GET['category'] : '企业';
$smarty->assign('str', $str1 . $str2);
$smarty->assign('str2', $str1 . $str3);
$smarty->assign('all_salary', $result);
$filename = urlencode($_GET['district'] . '_' . $_GET['category']) . '_salary_barchart.cache';
$result = check_cache($filename, 'salary', 7);
if (!$result) {
    $result = dfopen("http://www.74cms.com/salary/get_salary_data_salary_barchart.php?district=" . $_GET['district'] . "&category=" . $_GET['category'] . "&certification=" . $_SERVER['SERVER_NAME']);
    write_cache($filename, $result, 'salary');
}
$smarty->assign('salary_barchart_experience', $result);
$smarty->display("m/m-salary.html");
Esempio n. 24
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']}");
Esempio n. 25
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;
    }
}
Esempio n. 26
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);
Esempio n. 27
0
    $parameter = array();
    $parameter[] = 'ac=feed';
    if (!empty($settings['uids'])) {
        $parameter[] = 'uids=' . trim($settings['uids']);
    }
    if (!empty($settings['friend'])) {
        $parameter[] = 'friend=' . intval($GLOBALS['discuz_uid']);
        $nocache = 1;
    }
    $start = !empty($settings['start']) ? intval($settings['start']) : 0;
    $limit = !empty($settings['limit']) ? intval($settings['limit']) : 10;
    $parameter[] = 'start=' . $start;
    $parameter[] = 'limit=' . $limit;
    $plus = implode('&', $parameter);
    $url = $GLOBALS['uchomeurl'] . "/api/discuz.php?{$plus}";
    $feedlist = unserialize(dfopen($url));
    $writedata = '';
    if ($feedlist && is_array($feedlist)) {
        $writedata = '<div class="sidebox"><h4>' . $settings['title'] . '</h4><table>';
        foreach ($feedlist as $feed) {
            $searchs = $replaces = array();
            foreach (array_keys($feed) as $key) {
                $searchs[] = '{' . $key . '}';
                $replaces[] = $feed[$key];
            }
            $writedata .= '<tr><td>' . str_replace($searchs, $replaces, stripslashes($settings['template'])) . '</td></tr>';
        }
        $writedata .= '</table></div>';
    }
} else {
    $request_version = '1.0';
Esempio n. 28
0
	public function rd3service($api)
	{
		$url = base64_decode('aHR0cDovL3NlcnZlci50dHR1YW5nb3UubmV0LzNyZC9wYXltZW50cy9hcGkucGhw').'?r='.$api.'&charset='.ini('settings.charset');
		try{
			$res = dfopen($url, 10485760, '', '', true, 5, 'CENWOR.TTTG.AUTH.BDT.AGENT.'.SYS_VERSION.'.'.SYS_BUILD);
			return $res;
		} catch (Exception $e) {
		    return 'error';
		}
	}
Esempio n. 29
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('密码修改成功!');
    }
}
Esempio n. 30
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;
}