$u_pic_user = $_POST['user']; $u_pic_param = $_POST['param']; $u_param = $_GET['param']; $zhiye = $_GET['zhiye']; $qianming = $_GET['qianming']; $uid = $_GET['uid']; //设备的唯一id $os = $_GET['os']; //操作系统 $version = $_GET['v']; //程序的版本 //判断是否被黑名单 if (!empty($umd5)) { //is_black($umd5,$uid);//待思考--》更新资料可以,但是注册不可以 } is_black($umd5, $uid); //待测试 if (!empty($action)) { if ($action == 'u') { //更新资料 if (!empty($umd5) || !empty($u_pic_user)) { if ($u_param == 'nickname') { //昵称 $update = array('name' => $name); $res = $db->row_update('user', $update, "umd5 = '{$umd5}' "); if ($res) { $resJson = array('headurl' => "", 'nickname' => "" . $name, 'age' => "" . $age, 'sex' => "" . $sex, 'zhiye' => "", 'qianming' => ""); json('yes', "{$res}", $resJson); } else { json('no', "更新失败,请重试", ""); }
<?php include 'conf.php'; $action = $_GET['action']; //c 请求昵称和头像链接(用于chatactivity) e为根据email查询用户头像和昵称 i 为请求用户详细资料 d为拉黑举报 $umd5 = $_GET['user']; //被请求的用户 $from = $_GET['f_user']; //from 为要请求用户的用户 //$from = $_GET['from']; $email = $_GET['email']; $uid = $_GET['uid']; //判断是否被黑名单 is_black($from, $uid); if (!empty($action)) { if ($action == 'c') { $res = $db->row_select_one("user", "umd5 = '{$umd5}' ", " name ,headurl "); if (!empty($res)) { $nickname = $res['name']; $headurl = $res['headurl']; $res_json = array('nickname' => $nickname, 'headurl' => $headurl); json('yes', '', $res_json); } else { json('no', '暂无该用户', ""); } } else { if ($action == 'e') { $res = $db->row_select_one("user", "email = '{$email}' ", " name ,headurl,umd5 "); if (!empty($res)) { $nickname = $res['name']; $headurl = $res['headurl'];
$content = urldecode($_POST['content']); //发布故事的内容 $jwd = $_POST['jwd']; //用户的经纬度 $page = $_GET['page']; $f_user = $_GET['f_user']; //请求者 $q_user = $_GET['q_user']; //被请求者 $uid_get = $_GET['uid']; //设备唯一id $gu_id = $_GET['gu_id']; //要删除的故事id //判断是否被黑名单 is_black($user, $uid); is_black($f_user, $uid_get); $upzan = $_GET['upzan']; if (!empty($upzan)) { $mem = new Memcache(); $mem->connect("127.0.0.1", 11211); $zanlog = $mem->get($f_user . $upzan); if ($zanlog == 1) { } else { $userjiedao = $mem->set($f_user . $upzan, 1, 0, 10000); QMC::input("upzan", $f_user . '#' . $upzan); //写入队列 $insert = array("user" => $f_user, "zan" => $upzan); $db->row_insert('zan', $insert); } } //$content = str_replace('\n','',$content);
<?php include 'conf.php'; $action = $_GET['action']; //action = u 为更新资料 $umd5 = $_GET['user']; //用户唯一id md5加密 $load = $_GET['load']; //获取当前加载方式-第一次加载(f)、刷新(r)、加载更多(l) //$Latitude = $_GET['Latitude'];//纬度 //$Longitude = $_GET['Longitude'];//经度 $jingweidu = $_GET['jingweidu']; //经纬度 $jiedao = $_GET['jiedao']; //判断是否被黑名单 is_black($umd5); /***************性别筛选****************/ $sex = $_GET['sex']; //请求的性别 if ($sex == "1") { $sqlsex = " AND `user`.sex = '1' "; } else { if ($sex == "2") { $sqlsex = " AND `user`.sex = '2' "; } else { $sqlsex = ''; } } /*******************************/ /***************距离筛选****************/ $juli = $_GET['juli'];