本文整理汇总了PHP中getPOST函数的典型用法代码示例。如果您正苦于以下问题:PHP getPOST函数的具体用法?PHP getPOST怎么用?PHP getPOST使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了getPOST函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: checkLogin
/**
* TODO description
**/
public function checkLogin()
{
$OBJ =& get_instance();
// if logging out
if (isset($_POST['logout'])) {
$this->logout();
}
$cookie_expires = time() + $this->cookie_expires;
// if logging in
if (isset($_POST['submitLogin'])) {
sleep(3);
// obscure prevention of absuse
$clean['userid'] = getPOST('uid', null, 'password', 12);
$clean['password'] = md5(getPOST('pwd', null, 'password', 12));
$this->prefs = $OBJ->db->selectArray('user', $clean, Db::FETCH_RECORD);
if ($this->prefs) {
// create a new user hash upon login
$temp['user_hash'] = md5(time() . $clean['password'] . 'secret');
$OBJ->db->updateArray('user', $temp, "ID = {$this->prefs['ID']}");
setcookie('ndxz_hash', $temp['user_hash'], $cookie_expires, '/');
setcookie('ndxz_access', $clean['password'], $cookie_expires, '/');
$this->settings();
return;
} else {
show_login('login err');
}
}
// return access
if (isset($_COOKIE['ndxz_access']) && isset($_COOKIE['ndxz_hash'])) {
$clean['user_hash'] = getCOOKIE($_COOKIE['ndxz_hash'], null, 'password', 32);
$clean['password'] = getCOOKIE($_COOKIE['ndxz_access'], null, 'password', 32);
$this->prefs = $OBJ->db->selectArray('user', $clean, Db::FETCH_RECORD);
if ($this->prefs) {
// we'll update each time so no more weird logouts
setcookie('ndxz_hash', $clean['user_hash'], $cookie_expires, '/');
setcookie('ndxz_access', $clean['password'], $cookie_expires, '/');
$this->settings();
return;
}
}
show_login();
}
开发者ID:WurdahMekanik,项目名称:hlf-ndxz,代码行数:45,代码来源:access.php
示例2: check_action
<?php
include 'library/init.inc.php';
$operation = 'shake';
$opera = check_action($operation, getPOST('opera'));
if ('shake' == $opera) {
$response = array('error' => 1, 'msg' => '');
$progress = intval(getPOST('progress'));
$cycle = intval(getPOST('cycle'));
if ($progress <= 0) {
$progress = 1;
}
if ($cycle <= 0) {
$response['msg'] = '参数错误';
}
if ($response['msg'] == '') {
$get_cycle_status = 'select `status` from ' . $db->table('cycle') . ' where `id`=' . $cycle;
$status = $db->fetchOne($get_cycle_status);
$get_shake = 'select `id`,`total`,`progress`,`goal` from ' . $db->table('shake') . ' where `account`=\'' . $_SESSION['account'] . '\'';
$shake = $db->fetchRow($get_shake);
if ($shake && $status == 1) {
$goal = false;
if ($shake['total'] < 100) {
if ($shake['total'] + $progress >= 100) {
$progress = 100 - $shake['total'];
$goal = true;
}
$shake_data = array('total' => $shake['total'] + $progress, 'progress' => $shake['progress'] + $progress, 'cycle' => $cycle);
if ($goal) {
$shake_data['end_time'] = microtime();
}
开发者ID:Winsen1990,项目名称:easyilife,代码行数:31,代码来源:shake.php
示例3: check_action
<?php
/**
* Created by PhpStorm.
* User: apple
* Date: 15/9/7
* Time: 上午11:22
*/
include 'library/init.inc.php';
$operation = 'edit';
$opera = check_action($operation, getPOST('opera'));
if ('edit' == $opera) {
$response = array('error' => 1, 'msg' => '');
$password = getPOST('password');
$ref = getPOST('ref');
if ($password == '') {
$response['msg'] = '请填写新密码';
}
if (!isset($_SESSION['token']) || $_SESSION['token'] != 'verify message code success.') {
$response['msg'] = '请先通过身份验证';
}
if ($response['msg'] == '') {
$password = md5($password . PASSWORD_END);
$data = array('password' => $password);
if ($db->autoUpdate('member', $data, '`account`=\'' . $_SESSION['account'] . '\'')) {
$response['msg'] = '修改密码成功';
$response['error'] = 0;
if (isset($_SERVER['HTTP_REFERER']) && strpos($_SERVER['HTTP_REFERER'], 'login.php') === false) {
$response['referer'] = $_SERVER['HTTP_REFERER'];
} else {
$response['referer'] = 'index.php';
开发者ID:Winsen1990,项目名称:easyilife,代码行数:31,代码来源:password.php
示例4: json_encode
$db->rollback();
}
}
echo json_encode($response);
exit;
}
if ('add' == $opera) {
$response = array('error' => 1, 'msg' => '', 'errmsg' => array());
$rule = trim(getPOST('rule'));
$response_content = trim(getPOST('response_content'));
$name = trim(getPOST('name'));
$order_view = intval(getPOST('order_view'));
$enabled = intval(getPOST('enabled'));
$match_mode = intval(getPOST('match_mode'));
$msgType = trim(getPOST('msgType'));
$content_id = intval(getPOST('content_id'));
if ($rule == '') {
$response['errmsg']['rule'] = '-请填写关键词';
} else {
$rule = $db->escape($rule);
}
if ($msgType == '') {
$response['errmsg']['msgType'] = '-请选择回复类型';
} else {
if (!array_key_exists($msgType, $msgType_array)) {
$response['errmsg']['msgType'] = '-请选择回复类型';
} else {
$msgType = $db->escape($msgType);
if ($msgType == 'news') {
if ($content_id <= 0) {
$response['errmsg']['content_id'] = '-请选择资讯';
开发者ID:Winsen1990,项目名称:easyilife,代码行数:31,代码来源:wechat_rule.php
示例5: intval
* User: apple
* Date: 15/9/15
* Time: 下午8:21
*/
include 'library/init.inc.php';
$id = intval(getGET('id'));
$template = 'category.phtml';
$product_list = array();
$flag = false;
$operation = 'sort';
$opera = check_action($operation, getPOST('opera'));
//产品排序
if ('sort' == $opera) {
$response = array('error' => 1, 'msg' => '');
$filter = getPOST('filter');
$mode = getPOST('mode');
$now = time();
$get_product_list = 'select `id`,`name`,if(`promote_end`>' . $now . ',`promote_price`,`price`) as `price`,`img` from ' . $db->table('product') . ' where `status`=4 ';
$response['filter'] = $filter;
//分组使用筛选条件
//关键词
if (isset($filter['id']) && $filter['id'] > 0) {
$id = intval($filter['id']);
$get_category_path = 'select `path` from ' . $db->table('category') . ' where `id`=' . $id;
$path = $db->fetchOne($get_category_path);
$get_category_ids = 'select `id` from ' . $db->table('category') . ' where `path` like \'' . $path . '%\' and `id` not in (' . $path . '0)';
$category_ids = $db->fetchAll($get_category_ids);
$category_ids_tmp = array();
$category_ids_str = '';
if ($category_ids) {
foreach ($category_ids as $key => $val) {
开发者ID:Winsen1990,项目名称:easyilife,代码行数:31,代码来源:product_list.php
示例6: array
<?php
/**
* Created by PhpStorm.
* User: apple
* Date: 15/8/24
* Time: 下午3:32
*/
include 'library/init.inc.php';
$log->record_array($_POST);
$response = array('error' => 1, 'msg' => '');
$access_token = get_access_token($config['appid'], $config['appsecret']);
$openid = getPOST('openid');
$openid = $db->escape($openid);
if ($access_token) {
if ($ticket = get_qrcode($openid, $access_token)) {
$response['url'] = 'http://wechat.wzcy188.com/facm/api/recommend.php?ticket=' . urlencode($openid);
$response['error'] = 0;
} else {
$response['msg'] = '服务器繁忙,请稍后再次获取';
}
} else {
$response['msg'] = '获取access_token失败';
}
echo json_encode($response);
exit;
开发者ID:Winsen1990,项目名称:direct-sale,代码行数:26,代码来源:get_qrcode.php
示例7: array
}
if ('add' == $opera) {
$response = array('error' => 1, 'msg' => '', 'errmsg' => array());
if (!check_purview('pur_ad_add', $_SESSION['purview'])) {
$response['msg'] = '没有操作权限';
echo json_encode($response);
exit;
}
$url = getPOST('url');
$img = getPOST('img');
$alt = getPOST('alt');
$forever = getPOST('forever');
$ad_pos_id = intval(getPOST('ad_pos_id'));
$order_view = intval(getPOST('order_view'));
$begin_time = getPOST('begin_time');
$end_time = getPOST('end_time');
if ($alt == '') {
$response['errmsg']['alt'] = '-请填写替换文字';
} else {
$alt = $db->escape($alt);
}
if ($ad_pos_id <= 0) {
$response['errmsg']['ad_pos_id'] = '-请选择广告位置';
}
if ($order_view < 0) {
$response['errmsg']['order_view'] = '-请输入广告排序';
}
if ($forever == 0) {
if ($begin_time == '' || $end_time == '') {
$response['errmsg']['time'] = '-请选择有效时间';
} else {
开发者ID:Winsen1990,项目名称:easyilife,代码行数:31,代码来源:ad.php
示例8: check_action
$act = $act == '' ? 'view' : $act;
$opera = check_action($operation, getPOST('opera'));
//===========================================================================
if ($opera == 'send') {
$get_reward_list = 'select `account`,`reward`,`remark`,`type`,`id` from ' . $db->table('reward') . ' where `status`=1';
$reward_list = $db->fetchAll($get_reward_list);
foreach ($reward_list as $reward) {
if (member_account_change($reward['account'], 0, $reward['reward'], -1 * $reward['reward'], 0, 0, 0, $_SESSION['admin_account'], 4, $reward['remark'])) {
$reward_status = array('status' => 2, 'solve_time' => time());
$db->autoUpdate('reward', $reward_status, '`id`=' . $reward['id']);
}
}
show_system_message('奖金发放完毕');
}
if ($opera == 'export') {
$reward_id = getPOST('order_id');
$account = getGET('account');
$status = intval(getGET('status'));
$type = intval(getGET('type'));
$begin_time = getGET('begin_time');
$end_time = getGET('end_time');
$sql = 'select * from ' . $db->table('reward');
$where = ' where 1';
if ($reward_id != '') {
$reward_id = substr($reward_id, 0, strlen($reward_id) - 1);
$reward_id = $db->escape($reward_id);
$where .= ' and `id` in (' . $reward_id . ')';
} else {
if ($account != '') {
$account = $db->escape($account);
$where .= ' and `account`=\'' . $account . '\'';
开发者ID:Winsen1990,项目名称:direct-sale,代码行数:31,代码来源:reward.php
示例9: getPost
<?php
include_once 'functions.inc';
## Form
if (isset($_POST['submit'])) {
# Get request properties
$form['firstname'] = getPost('firstname');
$form['lastname'] = getPOST('lastname');
$form['email'] = getPOST('email');
$form['password'] = getPOST('password');
$form['confirmPassword'] = getPOST('confPassword');
$form['subject'] = getPOST('subject');
$form['message'] = getPOST('message');
$form['captchaValue'] = getPOST('captchaValue');
$form['captchaId'] = getPOST('captchaId');
// Add datetime
date_default_timezone_set('Europe/Berlin');
$form['date'] = date("F j, Y, g:i a");
// Check for empty fields
foreach ($form as $key => $value) {
if (!$value) {
$errorMsg .= 'The field "' . $key . '" may not be empty.<br>';
}
}
if (!validateEmail($form['email'])) {
$errorMsg .= "Please check your email address entered.<br>";
}
if (!validatePassword($form['password'], $form['confirmPassword'])) {
$errorMsg .= "Passwords does not match.<br>";
}
if (!validateCaptcha($form['captchaValue'], $form['captchaId'])) {
开发者ID:changkun,项目名称:assignments-ws-15-16,代码行数:31,代码来源:index.php
示例10: trim
exit;
}
$business_account = trim(getPOST('account'));
if ('' == $business_account) {
show_system_message('参数错误', array());
exit;
}
$business_account = $db->escape($business_account);
$get_business = 'select * from ' . $db->table('business');
$get_business .= ' where business_account = \'' . $business_account . '\' and status = 1 limit 1';
$business = $db->fetchRow($get_business);
if (empty($business)) {
show_system_message('商户不存在', array());
exit;
}
$reason = trim(getPOST('reason'));
if ('' == $reason) {
$reason = '您的认证信息审核不通过,请重新提交';
} else {
$reason = $db->escape($reason);
}
$db->begin();
$transaction = true;
$update_business = 'update ' . $db->table('auth') . ' set status = 2';
$update_business .= ' where business_account = \'' . $business_account . '\' limit 1';
if (!$db->update($update_business)) {
$transaction = false;
}
//已系统消息形式返回驳回理由,返回到
$data = array('title' => '信息认证', 'content' => $reason, 'account' => $business['account'], 'business_account' => $business['business_account'], 'add_time' => time(), 'status' => 0);
if (!$db->autoInsert('message', array($data))) {
开发者ID:Winsen1990,项目名称:easyilife,代码行数:31,代码来源:business.php
示例11: check_action
* @email [email protected]
* @date 2015-8-19
* @version 1.0.0
*/
include 'library/init.inc.php';
$template = 'index/';
$action = 'login|forget|logout';
$operation = 'login|forget';
$act = check_action($action, getGET('act'));
$act = $act == '' ? 'login' : $act;
$opera = check_action($operation, getPOST('opera'));
$error = array();
//登陆
if ('login' == $opera) {
$account = trim(getPOST('account'));
$password = trim(getPOST('password'));
if ('' == $account) {
$error['account'] = '账号不能为空';
} else {
$account = $db->escape(htmlspecialchars($account));
}
if ('' == $password) {
$error['password'] = '密码不能为空';
} else {
$password = md5($password . PASSWORD_END);
}
if (preg_match('#@#', $account)) {
$checkAccount = 'select `password`,`role_id`,`business_account` from ' . $db->table('admin') . ' where `account`=\'' . $account . '\' limit 1';
$admin = $db->fetchRow($checkAccount);
if ($admin) {
if ($password == $admin['password']) {
开发者ID:Winsen1990,项目名称:easyilife,代码行数:31,代码来源:index.php
示例12: show_system_message
show_system_message('修改个人信息成功', $links);
exit;
} else {
show_system_message('系统繁忙,请稍后重试', array());
exit;
}
}
//修改密码
if ('passwd' == $opera) {
if (!check_purview('pur_passwd_edit', $_SESSION['purview'])) {
show_system_message('权限不足', array());
exit;
}
$old_password = trim(getPOST('old-password'));
$new_password = trim(getPOST('new-password'));
$confirm_password = trim(getPOST('confirm-password'));
if ('' == $old_password) {
show_system_message('原密码不能为空', array());
exit;
} else {
$old_password = md5($old_password . PASSWORD_END);
}
if ('' == $new_password) {
show_system_message('新密码不能为空', array());
exit;
}
if ($confirm_password != $new_password) {
show_system_message('两次输入的密码不一致', array());
exit;
}
$get_admin = 'select `password` from ' . $db->table('admin') . ' where account = \'' . $_SESSION['account'] . '\' limit 1';
开发者ID:Winsen1990,项目名称:monolith,代码行数:31,代码来源:profile.php
示例13: check_action
$opera = check_action($operation, getPOST('opera'));
if ('apply' == $opera) {
$response = array('error' => 1, 'msg' => '');
$shop_name = getPOST('shop_name');
$license = $_FILES['license'];
$identity = $_FILES['identity'];
$industry = intval(getPOST('industry'));
$category = intval(getPOST('category'));
$province = intval(getPOST('province'));
$city = intval(getPOST('city'));
$district = intval(getPOST('district'));
$group = intval(getPOST('group'));
$address = getPOST('address');
$contact = getPOST('contact');
$mobile = getPOST('mobile');
$email = getPOST('email');
$name = '';
if ($shop_name == '') {
$response['msg'] .= '-请填写网店名称<br/>';
} else {
$shop_name = $db->escape($shop_name);
}
if ($industry <= 0) {
$response['msg'] .= '-请选择主营行业<br/>';
}
if ($category <= 0) {
$response['msg'] .= '-请选择主营分类<br/>';
}
if ($province <= 0 || $city <= 0 || $district <= 0 || $group <= 0) {
$response['msg'] .= '-请选择所在地区<br/>';
}
开发者ID:Winsen1990,项目名称:easyilife,代码行数:31,代码来源:partner.php
示例14: date
}
$row += 2;
}
//输出
$filename = date('YmdHis') . '订单列表';
header('Content-Type: application/vnd.ms-excel');
header('Content-Disposition: attachment;filename="' . $filename . '.xls"');
header('Cache-Control: max-age=0');
$objWriter = PHPExcel_IOFactory::createWriter($excel, 'Excel5');
$objWriter->save('php://output');
exit;
}
if ($opera == 'edit') {
$order_sn = getPOST('eorder_sn');
$delivery_sn = getPOST('delivery_sn');
$delivery_company = getPOST('delivery_company');
if ($order_sn == '') {
show_system_message('参数错误');
} else {
$order_sn = $db->escape($order_sn);
}
if ($delivery_company == '') {
show_system_message('请填写物流公司');
} else {
$delivery_company = $db->escape($delivery_company);
}
if ($delivery_sn == '') {
show_system_message('请填写物流单号');
} else {
$delivery_sn = $db->escape($delivery_sn);
}
开发者ID:Winsen1990,项目名称:direct-sale,代码行数:31,代码来源:order.php
示例15: back_base_init
/**
* 消费券管理
* @author 王仁欢
* @email [email protected]
* @date 2015-10-16
* @version 1.0.0
*/
include 'library/init.inc.php';
back_base_init();
$template = 'virtual_order/';
assign('subTitle', '消费券管理');
$action = 'view';
$operation = '';
$act = check_action($action, getGET('act'));
$act = $act == '' ? 'view' : $act;
$opera = check_action($operation, getPOST('opera'));
$status_str = array(0 => '有效', 1 => '已使用', 2 => '已过期', 3 => '失效');
//===========================================================================
//===========================================================================
if ('view' == $act) {
if (!check_purview('pur_virtual_order_view', $_SESSION['purview'])) {
show_system_message('权限不足', array());
exit;
}
$status = intval(getGET('status'));
if ($status == 0) {
assign('status', 0);
assign('order_status', '');
$and_where = '';
} else {
switch ($status) {
开发者ID:Winsen1990,项目名称:easyilife,代码行数:31,代码来源:virtual_order.php
示例16: check_action
$action = 'view|consume';
$operation = 'consume';
$act = check_action($action, getGET('act'));
$act = $act == '' ? 'view' : $act;
$opera = check_action($operation, getPOST('opera'));
$status_str = array(0 => '有效', 1 => '已使用', 2 => '已过期', 3 => '失效');
//===========================================================================
if ('consume' == $opera) {
$response = array('error' => 1, 'msg' => '', 'errmsg' => array());
if (!check_purview('pur_virtual_order_edit', $_SESSION['business_purview'])) {
$response['msg'] = '权限不足';
echo json_encode($response);
exit;
}
$mobile = trim(getPOST('mobile'));
$code = trim(getPOST('code'));
if ('' == $mobile || 11 != strlen($mobile)) {
$response['msg'] = '参数错误';
$response['errmsg']['mobile'] = '-请输入手机号码';
}
if ('' == $code) {
$response['msg'] = '参数错误';
$response['errmsg']['code'] = '-请输入消费码';
}
if (0 != count($response['errmsg'])) {
echo json_encode($response);
exit;
}
$mobile = $db->escape($mobile);
$code = $db->escape($code);
$get_content = 'select * from ' . $db->table('order_content');
开发者ID:Winsen1990,项目名称:easyilife,代码行数:31,代码来源:virtual_order.php
示例17: assign
$get_city_name = 'select `city_name` from ' . $db->table('city') . ' where `id`=' . $order['city'];
$get_district_name = 'select `district_name` from ' . $db->table('district') . ' where `id`=' . $order['district'];
$get_group_name = 'select `group_name` from ' . $db->table('group') . ' where `id`=' . $order['group'];
$order['province_name'] = $db->fetchOne($get_province_name);
$order['city_name'] = $db->fetchOne($get_city_name);
$order['district_name'] = $db->fetchOne($get_district_name);
$order['group_name'] = $db->fetchOne($get_group_name);
assign('order', $order);
$template = 'order-detail.phtml';
$_SESSION['order_sn'] = $order_sn;
}
if ('paging' == $opera) {
$response = array('error' => 1, 'msg' => '');
if (!check_cross_domain() && isset($_SESSION['account'])) {
$page = intval(getPOST('page'));
$status = intval(getPOST('status'));
$where = ' o.account = \'' . $_SESSION['account'] . '\'';
if ($status > 0 && $status < 8) {
$where .= ' and o.`status`=' . $status;
}
if ($status > 0 && $status >= 8 && $status < 12) {
$where .= ' and o.`status`>=' . $status . ' and o.`status` < 12';
}
if ($status == 12) {
$where .= ' and o.`status`=' . $status;
}
$get_total = 'select count(id) from ' . $db->table('order') . ' as o where ' . $where;
$total = $db->fetchOne($get_total);
$total_page = ceil($total / $page_count);
$page = $page > $total_page ? $total_page : $page;
$page = $page < 1 ? 1 : $page;
开发者ID:Winsen1990,项目名称:easyilife,代码行数:31,代码来源:order.php
示例18: json_decode
*/
include 'library/init.inc.php';
if (!isset($_SESSION['account'])) {
echo json_decode(array('error' => 1, 'message' => '请先登陆'));
exit;
}
if (check_cross_domain()) {
echo json_decode(array('error' => 1, 'message' => '请从本站提交数据'));
exit;
}
$operation = 'get_children';
$opera = check_action($operation, getPOST('opera'));
if ('get_children' == $opera) {
$account = trim(getPOST('account'));
if ('' == $account) {
$current = trim(getPOST('current'));
if ('' == $current) {
echo json_encode(array('error' => 1, 'message' => '参数错误'));
exit;
} else {
$current = $db->escape($current);
$get_member = 'select id, account, parent_id, nickname as parentId from ' . $db->table('member');
$get_member .= ' where account = \'' . $current . '\' limit 1';
$member = $db->fetchRow($get_member);
if ($member) {
$member['name'] = $member['account'] . '-' . $member['nickname'];
$member['isParent'] = true;
echo json_encode(array('error' => 0, 'message' => '成功', 'data' => $member));
exit;
} else {
echo json_encode(array('error' => 1, 'message' => '会员不存在'));
开发者ID:Winsen1990,项目名称:easyilife,代码行数:31,代码来源:ajax.php
示例19: json_encode
if ($total_amount >= $user_info['balance']) {
$total_amount -= $user_info['balance'];
} else {
$total_amount = 0;
}
}
$response['error'] = 0;
$response['total_amount'] = $total_amount;
} else {
$response['msg'] = '404:参数错误';
}
echo json_encode($response);
exit;
}
if ('checkout' == $opera) {
$cart = getPOST('cart');
$response = array('error' => 1, 'msg' => '');
if (!check_cross_domain()) {
//过滤要购买的产品
$buy_number = 0;
$cart_data = array();
foreach ($cart as $c) {
if ($c['number'] > 0 && $c['checked']) {
$buy_number += intval($c['number']);
}
$log->record_array($c);
$cart_data[] = array('id' => intval($c['c_id']), 'number' => intval($c['number']), 'checked' => $c['checked'] == 'true' ? 1 : 0);
}
if ($buy_number == 0) {
$response['msg'] = '请选择要购买的产品';
} else {
开发者ID:Winsen1990,项目名称:easyilife,代码行数:31,代码来源:checkout.php
示例20: check_action
/**
* Created by PhpStorm.
* User: apple
* Date: 15/9/7
* Time: 上午11:22
*/
include 'library/init.inc.php';
$operation = 'edit';
$opera = check_action($operation, getPOST('opera'));
if ('edit' == $opera) {
$response = array('error' => 1, 'msg' => '');
$email = getPOST('email');
$sex = getPOST('sex');
$mobile = getPOST('mobile');
$identity = trim(getPOST('identity'));
if (!is_mobile($mobile)) {
$response['msg'] .= '-手机号码格式不正确<br/>';
} else {
$mobile = $db->escape($mobile);
//检查号码是否已被使用
$check_mobile = 'select `account` from ' . $db->table('member') . ' where `mobile`=\'' . $mobile . '\' and `account`<>\'' . $_SESSION['account'] . '\'';
if ($db->fetchOne($check_mobile)) {
$response['msg'] = '-该号码已被其他用户使用<br/>';
}
}
// if($email == '')
// {
// $response['msg'] .= '-请填写邮箱地址<br/>';
// } else {
// if(filter_var($email, FILTER_VALIDATE_EMAIL))
开发者ID:Winsen1990,项目名称:easyilife,代码行数:30,代码来源:profile.php
注:本文中的getPOST函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论