本文整理匯總了PHP中MooGetphoto函數的典型用法代碼示例。如果您正苦於以下問題:PHP MooGetphoto函數的具體用法?PHP MooGetphoto怎麽用?PHP MooGetphoto使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了MooGetphoto函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: getone
function getone()
{
global $_MooClass, $dbTablePre, $userid, $memcached;
$sendid = MooGetGPC('sendid', 'integer', 'G');
//$sendid = '21691205';
$user = MooMembersData($sendid);
if ($user['uid'] != $sendid || $sendid == '') {
$error = '查無此人';
echo return_data($error, false);
exit;
}
if (MooGetphoto($user['uid'], 'com')) {
$mainimg = MooGetphoto($userid, 'com');
$user['mainimg'] = $mainimg;
}
$user['password'] = '';
$user['regip'] = '';
$user['qq'] = '';
$user['msn'] = '';
$user['telphone'] = '';
$user['username'] = '';
//print_r($user);
echo return_data($user, true);
exit;
}
示例2: MooGetphoto
<dl class="left-likes">
<dt>
<div class="left-likes-img">
<p>
<a style="display:block;" href="space_<?php
echo $able_likes['uid'];
?>
.html">
<?php
if ($able_likes['images_ischeck'] == '1' && $able_likes['mainimg']) {
?>
<img id="show_pic" src="<?php
if (MooGetphoto($able_likes['uid'], 'index')) {
echo IMG_SITE . MooGetphoto($able_likes['uid'], 'index');
} elseif (MooGetphoto($able_likes['uid'], 'medium')) {
echo IMG_SITE . MooGetphoto($able_likes['uid'], 'medium');
} elseif ($able_likes['gender'] == '1') {
echo 'public/system/images/woman_100.gif';
} else {
echo 'public/system/images/man_100.gif';
}
?>
" onload="javascript:DrawImage(this,100,125)" width="100"/>
<?php
} elseif ($able_likes['mainimg']) {
?>
<?php
if ($able_likes['gender'] == '1') {
?>
<img id="show_pic" src="public/system/images/woman_100.gif" />
<?php
示例3: MooGetphoto
}
?>
<div class="r-s-img-in">
<p> <a style="display:block;" href="index.php?n=space&h=viewpro&uid=<?php
echo $comment['cuid'];
?>
" target="_blank">
<?php
if ($send_user1['images_ischeck'] == '1' && $send_user1['mainimg']) {
?>
<img src="
<?php
if (MooGetphoto($send_user1['uid'], 'index')) {
echo MooGetphoto($send_user1['uid'], 'index');
} elseif (MooGetphoto($send_user1['uid'], 'medium')) {
echo MooGetphoto($send_user1['uid'], 'medium');
} elseif ($send_user1['gender'] == '1') {
echo 'public/system/images/woman_100.gif';
} else {
echo 'public/system/images/man_100.gif';
}
?>
" onload="javascript:DrawImage(this,100,125)" />
<?php
} elseif ($send_user1['mainimg']) {
?>
<?php
if ($send_user1['gender'] == '1') {
?>
<img src="public/system/images/woman_100.gif"/>
<?php
示例4: MooCutstr
echo $user['nickname'] ? MooCutstr($user['nickname'], 12, '') : 'ID:' . $user['uid'];
} else {
?>
我<?php
}
?>
的征婚資料</span></div>
<div class="pInfo">
<div class="myself">
<p style="width:110px;height:138px;overflow:hidden;padding-top:5px;margin-left:8px;">
<?php
if ($user['images_ischeck'] == '1' && $user['mainimg']) {
?>
<img id="show_pic_1" class="fixphoto_" src="<?php
if (MooGetphoto($user['uid'], 'mid')) {
echo IMG_SITE . MooGetphoto($user['uid'], 'mid');
} elseif ($user['gender'] == '1') {
echo 'public/system/images/woman_1.gif';
} else {
echo 'public/system/images/man_1.gif';
}
?>
" flag=''/></a>
<?php
} elseif ($user['mainimg']) {
?>
<?php
if ($user['gender'] == '1') {
?>
<img id="show_pic_1" src="public/system/images/woman.gif"/>
<?php
示例5: quick_search_page
//.........這裏部分代碼省略.........
$isdispmore = true;
}
}
if ($marriage) {
$cond[] = array('marriage', $marriage, false);
}
if ($salary) {
$cond[] = array('salary', $salary, false);
}
if ($education) {
$cond[] = array('education', $education, false);
}
if ($height1 || $height2) {
if ($height1 == 0) {
$cond_height1 = 154;
} else {
$cond_height1 = $height1;
}
if ($height2 == 0) {
$cond_height2 = 201;
} else {
$cond_height2 = $height2;
}
$cond[] = array('height', array($cond_height1, $cond_height2), false);
}
$sortway = MooGetGPC('sortway');
$sort_str = getSortsStr($sortway, $cond);
$rs = sphinx_search($index, $cond, $sort_str, $page, $pagesize);
if (!$rs || is_array($rs) && empty($rs)) {
//沒有結果
//MooMessage("您指定的搜索不存在或已過期", "index.php?n=search", '03');
$error = "找不到匹配的結果";
echo return_data($error, false);
exit;
} else {
$data = $rs['user'];
$total = $rs['total'];
if ($total > 600) {
$total = 600;
}
$user_list = implode(',', $data);
if (empty($data)) {
//MooMessage("您指定的搜索不存在或已過期", "index.php?n=search", '03');
$error = "找不到匹配的結果";
echo return_data($error, false);
exit;
} else {
$user = array();
$sortway = isset($_GET['sortway']) ? $_GET['sortway'] : '1';
$sql = "select s.*,b.mainimg,b.showinformation_val from `{$dbTablePre}members_search` s left join `{$dbTablePre}members_base` b on s.uid=b.uid where s.uid in ({$user_list})";
$user = $_MooClass['MooMySQL']->getAll($sql);
$sql = "select lastvisit from web_members_login where uid in ({$user_list})";
$user_lastvisit = $_MooClass['MooMySQL']->getAll($sql);
foreach ($user_lastvisit as $key => $val) {
$user[$key]['lastvisit'] = $val['lastvisit'];
}
}
//會員基本信息補充
if ($user) {
$user = userbasicadd($user);
//排序
$tmp_user = array();
foreach ($data as $k => $v) {
foreach ($user as $key => $val) {
if ($v == $val['uid']) {
$tmp_user[] = $user[$key];
break;
}
}
}
$user = $tmp_user;
foreach ($user as $k => $u) {
$mainimg = MooGetphoto($u['uid'], $style = "com");
$users[] = array('uid' => $u['uid'], 'nickname' => $u['nickname'], 'birthyear' => $u['birthyear'], 'height' => $u['height'], 'salary' => $u['salary'], 'province' => $u['province'], 'city' => $u['city'], 'mainimg' => $mainimg, 'gender' => $u['gender']);
}
echo return_data($users);
exit;
/*
foreach($user as $va){
echo $va['nickname'].'<br />';
}
exit;*/
//$error = "找不到匹配的結果";
/*
$str = 'gender:'.$gender.'age_start:'.$age_start.'age_end:'.$age_end.'work_province:'.$work_province.'work_city:'.$work_city.'marriage:'.$marriage.'salary'
.$salary.'education:'.$education.'height1:'.$height1.'height2:'.$height2;
$return[] = $str;
$return[] = $user;
*/
//echo return_data($user,true);exit;
}
//note 找不到匹配的結果返回單獨提示頁麵
if (empty($user) && empty($user1)) {
$error = "找不到匹配的結果";
echo return_data($error, false);
exit;
}
}
}
示例6: recommendMember
//.........這裏部分代碼省略.........
if (!is_array(${$add})) {
${$add} = array();
}
//enky add
foreach (${$add} as $user) {
$user_list[] = $user['uid'];
}
if (!empty($user_list)) {
$user_in .= ',' . implode(',', $user_list);
}
//echo $user_in;exit;
//已有總數
$count += count(${$add});
}
}
//$countryadd have data
$userList = array_merge($userList, $cityadd, $provinceadd, $countryadd);
//省其它類型會員緩存文件
//$province_othercachefile = "userlist_{$id}_other".'_'.md5($param).'.data';
}
//生成的block緩存文件存庫
/* $city = $city ? $city : 0;
$sql = "SELECT * FROM {$dbTablePre}index_cachefile WHERE province='{$province}' AND city='{$city}'";
$cache_arr = $_MooClass['MooMySQL']->getAll($sql);
if(empty($cache_arr)){
$province_cachefile = isset($province_cachefile)?$province_cachefile:'';
$sql = "INSERT INTO {$dbTablePre}index_cachefile SET province='{$province}',city='{$city}',provincestarfile='{$province_cachefile}',citystarfile='{$city_cachefile}',provinceotherfile='{$province_othercachefile}'";
$_MooClass['MooMySQL']->query($sql);
} */
//推薦列表中如果存在,則以推薦列表中的指定的sort替換
$sql = "SELECT * FROM {$dbTablePre}members_recommend WHERE province='{$province}' AND city='{$city}' order by sort asc";
$recommend_list = $_MooClass['MooMySQL']->getAll($sql);
if (!empty($recommend_list)) {
foreach ($recommend_list as $list) {
$sort = $list['sort'] < 1 ? 0 : $list['sort'] - 1;
if (MOOPHP_ALLOW_FASTDB) {
$u = MooFastdbGet('members_search', 'uid', $list['uid']);
$u2 = MooFastdbGet('members_base', 'uid', $list['uid']);
if (is_array($u) && is_array($u2)) {
$u = array_merge($u, $u2);
}
} else {
$sql = "SELECT s.uid,s.nickname,s.gender,s.images_ischeck,s.province,s.city,s.birthyear,s.s_cid,s.city_star,b.mainimg,i.introduce FROM {$dbTablePre}members_search s left join {$dbTablePre}members_base b on s.uid=b.uid left join {$dbTablePre}members_introduce as i on s.uid=i.uid WHERE s.uid='{$list['uid']}'";
$u = $_MooClass['MooMySQL']->getOne($sql);
}
if ($u) {
foreach ($userList as $key => $val) {
if ($list['uid'] == $val['uid']) {
$user_key = $key;
break;
}
}
if (isset($user_key)) {
if (isset($userList[$sort])) {
$userList[$key] = $userList[$sort];
}
$userList[$sort] = $u;
} else {
$userList[$sort] = $u;
}
}
}
}
//刪除數組中多餘的部分
array_splice($userList, 6);
$result = array();
$imgSrcSmall = $imgSrcMid = $imgSrcUrl = '';
foreach ($userList as $v) {
$introduce = '';
if (isset($v['introduce'])) {
$introduce = MooCutstr($v['introduce'], 50, '...');
}
$imgSrcSmall = MooGetphoto($v['uid'], 'small');
$imgSrcMid = MooGetphoto($v['uid'], 'mid');
if ($imgSrcSmall) {
$imgSrc = $imgSrcMid;
} elseif ($v['gender'] == '1') {
$imgSrc = "module/index/templates/default/images/se_woman.gif";
} else {
$imgSrc = "module/index/templates/default/images/se_man.gif";
}
if (isset($v['mainimg']) && !empty($v['mainimg']) && isset($v['images_ischeck']) && $v['images_ischeck'] == 1) {
$imgUrl = "<a href=\"index.php?n=space&uid={$v['uid']}\" target=\"_blank\"><img src={$imgSrc} width=\"120\"/> </a>";
} else {
if (isset($v['gender']) && $v['gender']) {
$imgUrl = "<a href=\"index.php?n=space&uid={$v['uid']}\" target=\"_blank\"><img src=\"module/index/templates/default/images/se_woman.gif\" /> </a> ";
} else {
$imgUrl = "<a href=\"index.php?n=space&uid={$v['uid']}\" target=\"_blank\"><img src=\"module/index/templates/default/images/se_man.gif\" /></a> ";
}
}
if ($v['birthyear']) {
$birthyear = date('Y') - $v['birthyear'] . '歲';
} else {
$birthyear = '年齡保密';
}
$result[] = array("uid" => $v['uid'], "mainimg" => $v['mainimg'], "images_ischeck" => $v['images_ischeck'], "gender" => $v['gender'], "introduce" => $introduce, "imgUrl" => $imgUrl, "nickname" => $v['nickname'], "birthyear" => $birthyear, "province" => $v['province'], "city" => $v['city']);
}
echo json_encode($result);
}
示例7: youAbleLiker
function youAbleLiker()
{
global $user_arr;
$result = array();
//月薪
$salary = array("0" => "不限", "1" => "1000元以下", "2" => "1001-2000元", "3" => "2001-3000元", "4" => "3001-5000元", "5" => "5001-8000元", "6" => "8001-10000元", "7" => "10001-20000元", "8" => "20001-50000元", "9" => "50000元以上");
$marriage = array("0" => "不限", "1" => "未婚", "3" => "離異", "4" => "喪偶");
$education = array("0" => "不限", "3" => "高中及以下", "4" => "大專", "5" => "大學本科", "6" => "碩士", "7" => "博士");
$userid = $user_arr['uid'];
$offset = MooGetGPC('offset', 'integer', 'P');
if (empty($userid)) {
return array();
}
//note 您可能喜歡的人,匹配相同地區
$result = youAbleLike($l, $offset);
if ($offset > (int) $l) {
unset($result);
$result = youAbleLike($l, 0);
} elseif ($offset + 5 > (int) $l) {
//5是偏移量,固定取5個會員
$result_ = youAbleLike($l, 0);
$result = array_slice(array_merge($result, $result_), 0, 5);
}
$str = '';
foreach ($result as $k => $able_likes) {
if ($able_likes['images_ischeck'] == '1' && $able_likes['mainimg']) {
if (MooGetphoto($able_likes['uid'], 'index')) {
$image = IMG_SITE . MooGetphoto($able_likes['uid'], 'index');
} elseif (MooGetphoto($able_likes['uid'], 'medium')) {
$image = IMG_SITE . MooGetphoto($able_likes['uid'], 'medium');
} elseif ($able_likes['gender'] == '1') {
$image = 'public/system/images/woman_100.gif';
} else {
$image = 'public/system/images/man_100.gif';
}
$image = "<img id='show_pic' src='{$image}' onload='javascript:DrawImage(this,100,125)' width='100'/>";
} elseif ($able_likes['mainimg']) {
if ($able_likes['gender'] == '1') {
$image = '<img id="show_pic" src="public/system/images/woman_100.gif" />';
} else {
$image = '<img id="show_pic" src="public/system/images/man_100.gif" />';
}
} else {
if ($able_likes['gender'] == '1') {
$image = '<img src="public/system/images/nopic_woman_100.gif" />';
} else {
$image = '<img src="public/system/images/nopic_man_100.gif" />';
}
}
$nickname = $able_likes['nickname'] ? $able_likes['nickname'] : 'ID:' . $able_likes['uid'];
$birthyear = $able_likes['birthyear'] ? gmdate('Y', time()) - $able_likes['birthyear'] . '歲' : '年齡保密';
$m = $able_likes['marriage'] == 0 ? '婚姻狀況:保密' : "{$marriage[$able_likes['marriage']]}";
$e = $able_likes['education'] == 0 ? '保密' : "{$education[$able_likes['education']]}";
$s = $able_likes['salary'] == 0 ? '薪資:保密' : "{$salary[$able_likes['salary']]}";
$str .= <<<EOT
\t\t\t<dl class="left-likes" data-len="{$l}">
\t\t\t\t<dt><div class="left-likes-img"><p><a style="display:block;" href="space_{$able_likes['uid']}.html">{$image}</a></p></div></dt>
\t\t\t\t<dd class="f-b-d73c90"><a href="space_{$able_likes['uid']}.html" class="f-ed0a91-a"></a>{$nickname}</dd>
\t\t\t\t<dd>{$birthyear}</dd>
\t\t\t\t<dd>{$m}</dd>
\t\t\t\t<dd>{$e}</dd>
\t\t\t\t<dd>{$s}</dd>
\t\t\t</dl>
\t
EOT;
}
echo $str;
}
示例8: MooGetphoto
?>
<img src="public/system/images/se_man.jpg" />
<?php
}
?>
<?php
} else {
?>
<?php
if (isset($users['mainimg']) && $users['mainimg'] && isset($users['images_ischeck']) && $users['images_ischeck'] == 1) {
?>
<img src="<?php
if (MooGetphoto($users['uid'], 'mid')) {
echo IMG_SITE . MooGetphoto($users['uid'], 'mid');
} elseif (MooGetphoto($users['uid'], 'medium')) {
echo IMG_SITE . MooGetphoto($users['uid'], 'medium');
} elseif ($users['gender'] == '1') {
echo 'public/system/images/se_woman.jpg';
} else {
echo 'public/system/images/se_man.jpg';
}
?>
" />
<?php
} else {
?>
<img src="public/system/images/se_woman.jpg" />
<?php
}
?>
<?php
示例9: public_showmsg
function public_showmsg($uid)
{
header("Expires: Mon, 26 Jul 1970 05:00:00 GMT");
header("Cache-Control:no-cache, must-revalidate");
header("Pragma:no-cache");
global $_MooClass, $dbTablePre, $timestamp, $memcached, $user_arr;
//會員ID
//$uid = MooGetGPC('uid','integer');
//初始化顯示數據
$str = '';
$n = 0;
//未讀消息條數
//$msg = $_MooClass['MooMySQL']->getOne("select count(*) from {$dbTablePre}services where s_uid={$uid} and s_status='0' and flag = '1' and s_uid_del='0'");
//$msg_count = $msg['count(*)'];
$msg_count = header_show_total($uid);
//前台顯示
if ($msg_count) {
//3個發件人的ID
$user_msg_id = $_MooClass['MooMySQL']->getAll("select distinct s_fromid from {$dbTablePre}services where s_uid={$uid} and s_status='0' and s_uid_del='0' order by s_time desc limit 3");
$inidArr = array();
foreach ($user_msg_id as $v) {
if ($v['s_fromid'] == 0) {
$from_kefu = 1;
} else {
$inidArr[] = $v['s_fromid'];
}
}
$inid = implode(',', $inidArr);
//提示信息
$user_msg = array();
if (MOOPHP_ALLOW_FASTDB) {
foreach ($inidArr as $arruid) {
$user_msg[] = MooFastdbGet('members_search', 'uid', $arruid);
}
} else {
$user_msg = $_MooClass['MooMySQL']->getAll("select uid,nickname,s_cid from {$dbTablePre}members_search where uid in ({$inid})");
}
$str .= '<p>您有<a href="index.php?n=service&h=message">' . $msg_count . '條新消息</a></p>';
foreach ($user_msg as $vv) {
//設置不同鏈接
if ($vv) {
//$nickname=$vv['nickname2']?$vv['nickname2']:$vv['nickname'];
$nickname = $vv['nickname'];
if ($nickname) {
$str .= '<p>查看<a href="index.php?n=service&h=message&t=membermessage">' . $nickname . '給您發的新郵件</a></p>';
} else {
$str .= '<p>查看<a href="index.php?n=service&h=message&t=membermessage">會員ID ' . $vv['uid'] . '給您發的新郵件</a></p>';
}
}
}
if ($from_kefu) {
$str .= '<p>查看<a href="index.php?n=service&h=message&t=hlmessage">真愛一生網發新郵件</a></p>';
}
$n++;
}
//提示被哪些用戶訪問主頁
if ($user_arr['regdate'] < time() - 7200) {
if ($user_arr['showinformation']) {
$visitor_msg = public_showmsg_two($uid);
}
//$nickname=$visitor_msg['nickname2']?$visitor_msg['nickname2']:$visitor_msg['nickname'];
$nickname = $visitor_msg['nickname'];
$nc = $nickname ? $nickname : 'ID:' . $visitor_msg['uid'];
if ($visitor_msg) {
//偽造查看共多少秒,存memcached
$makevisit_sec = $memcached->get('makevisit' . $visitor_msg['uid'] . '_' . $uid);
if ($makevisit_sec) {
$sec = $makevisit_sec;
} else {
$sec = rand(100, 200);
$memcached->set('makevisit' . $visitor_msg['uid'] . '_' . $uid, $sec, 60);
}
$img = MooGetphoto($visitor_msg['uid'], 'page');
//顯示訪問者的頭像
$mid_img = MooGetphoto($visitor_msg['uid'], 'mid');
if ($mid_img && !$img) {
$image = MooAutoLoad('MooImage');
$pic_dir = substr($mid_img, 0, 28);
$new_file_name = $visitor_msg['uid'] * 3 . "_page.jpg";
$image->config(array('thumbDir' => $pic_dir, 'thumbStatus' => '1', 'saveType' => '0', 'thumbName' => $new_file_name, 'waterMarkMinWidth' => '82', 'waterMarkMinHeight' => '114', 'waterMarkStatus' => 9));
$image->thumb(49, 62, $mid_img);
$img = $page_img;
}
if ($img) {
$photo = "<a target='_blank' href='index.php?n=space&h=viewpro&uid=" . $visitor_msg['uid'] . "'><img src=" . $img . " class='u-photo'></a>";
$str .= '<div class="c-line"></div><p>您的資料正在被:</p>' . $photo . '<p><a target="_blank" href="index.php?n=space&h=viewpro&uid=' . $visitor_msg['uid'] . '">' . $nc . '</a>查看,</p><p>已查看' . $sec . '秒,</p><p><a target="_blank" href="index.php?n=space&h=viewpro&uid=' . $visitor_msg['uid'] . '">查看Ta的資料</a></p><div style="clear:both"></div>';
} else {
$str .= '<p>您的資料正在被' . $photo . '<a target="_blank" href="index.php?n=space&h=viewpro&uid=' . $visitor_msg['uid'] . '">' . $nc . '</a>查看,已查看' . $sec . '秒,<a target="_blank" href="index.php?n=space&h=viewpro&uid=' . $visitor_msg['uid'] . '">查看Ta的資料</a></p>';
}
$n++;
}
}
//提示當前會員有未讀在線聊天消息
$chat_msg = public_showmsg_three($uid);
$new_message = '';
if ($chat_msg) {
$str .= '<p>您有<a style="cursor:pointer" onclick="javascript:window.open(\'index.php?n=service&h=chat&chatorid=' . $chat_msg['s_fromid'] . '\', \'_blank\', \'height=500, width=700, toolbar =no, menubar=no, scrollbars=no, resizable=yes, location=no, status=no\')">新的在線消息</a></p>';
$new_message = '|new_message';
$n++;
}
//.........這裏部分代碼省略.........
示例10: foreach
<div class="vote-right-content">
<span class="right-title fleft">等您打分的會員</span>
<ul class="votr-photos">
<?php
if (isset($pic_4)) {
foreach ((array) $pic_4 as $pic) {
?>
<li>
<div class="votr-photos-list">
<p>
<?php
if ($pic['images_ischeck'] == '1' && $pic['mainimg']) {
?>
<img src="<?php
if (MooGetphoto($pic['uid'], 'mid')) {
echo IMG_SITE . MooGetphoto($pic['uid'], 'mid');
} elseif ($pic['gender'] == '1') {
echo 'public/system/images/se_woman_60.jpg';
} else {
echo 'public/system/images/se_man_60.jpg';
}
?>
" width="60" height="75"/>
<?php
} elseif ($pic['mainimg']) {
?>
<?php
if ($pic['gender'] == '1') {
?>
<img src="public/system/images/se_woman_60.jpg" width="60" height="75"/>
<?php
示例11: leer_send_user1
?>
<?php
$send_user1 = leer_send_user1($visitors['visitorid']);
?>
<li>
<dl class="r-like-c-data">
<dt><div><a style="display:block;" href="space_<?php
echo $visitors['visitorid'];
?>
.html" target="_blank">
<?php
if ($send_user1['mainimg'] && $send_user1['images_ischeck'] == '1') {
?>
<img class="_photo_ fixphoto" src=" <?php
if (MooGetphoto($send_user1['uid'], 'mid')) {
echo IMG_SITE . MooGetphoto($send_user1['uid'], 'mid');
} elseif ($send_user1['gender'] == '1') {
echo 'public/system/images/woman_100.gif';
} else {
echo 'public/system/images/man_100.gif';
}
?>
" />
<?php
} elseif ($send_user1['mainimg']) {
?>
<?php
if ($send_user1['gender'] == '1') {
?>
<img src="public/system/images/woman_100.gif" />
<?php
示例12: shadow_master
function shadow_master()
{
global $_MooClass, $dbTablePre, $userid, $user_arr, $memcached, $uuid;
$womenList = array('30407189', '21186208', '21199933', '20686096', '20223069', '20520991', '20069562', '21156987', '21023025', '21206132', '21201459', '21161703', '20619161', '20301718', '20719091', '21740236', '20681292', '21424242', '20554506', '20111310', '20660269', '30632759', '30631960', '30630519', '30608962', '30387074', '30378615', '30360483', '30300309', '30252809', '30214641');
$manList = array('30391348', '21793878', '30129941', '21514524', '30087732', '30621435', '30071838', '30610492', '30619608', '30080561', '30403838', '30211025', '30069490', '30359171', '30368726', '30405061', '30192000', '30069742', '30141451', '30052221', '30253012', '30016533', '30286293', '30247063', '30403530', '30365362', '21767568', '30341955', '21359517', '21708383', '30041513');
$uid = $_GET['uid'] = isset($_GET['uid']) ? $_GET['uid'] : '';
if ($uid) {
$userid = $mem_uid = $memcached->get('uid_' . $uid);
$user_arr = MooMembersData($userid);
}
if ($userid) {
$and_uuid = isset($_GET['uuid']) ? $_GET['uuid'] : '';
$checkuuid = check_uuid($and_uuid, $userid);
if (!$checkuuid) {
$error = "uuid_error";
echo return_data($error, false);
exit;
}
}
if ($userid) {
$gender = $user_arr['gender'] == 1 ? 0 : 1;
} else {
$gender = $_GET['gender'];
}
if ($gender == 0) {
$rand_keys = array_rand($manList, 12);
for ($i = 0; $i < 12; $i++) {
$returnarr[] = $manList[$rand_keys[$i]];
}
} elseif ($gender == 1) {
$rand_keys = array_rand($womenList, 12);
for ($i = 0; $i < 12; $i++) {
$returnarr[] = $womenList[$rand_keys[$i]];
}
} else {
$rand_keys = array_rand($womenList, 6);
for ($i = 0; $i < 6; $i++) {
$returnarr[] = $womenList[$rand_keys[$i]];
}
$rand_keys = array_rand($manList, 6);
for ($i = 0; $i < 6; $i++) {
$returnarr[] = $manList[$rand_keys[$i]];
}
//shuffle($returnarr);
}
foreach ($returnarr as $value) {
$mainimg = MooGetphoto($value, $style = "com");
$users[] = array('uid' => $value, 'mainimg' => $mainimg);
}
echo return_data($users);
exit;
}
示例13: MooGetphoto
}
?>
<div class="r-s-img-in">
<p style="width:105px;">
<a style="display:block;" href="index.php?n=service&h=commission&t=getcontactdata1&uid=<?php
echo $contact['l']['other_contact_you'];
?>
">
<?php
if ($contact['s']['images_ischeck'] == '1' && $contact['s']['mainimg']) {
?>
<img src="<?php
if (MooGetphoto($contact['s'][uid], 'mid')) {
echo MooGetphoto($contact['s'][uid], 'mid');
} elseif (MooGetphoto($contact['s'][uid], 'medium')) {
echo MooGetphoto($contact['s'][uid], 'medium');
} elseif ($contact['s']['gender'] == '1') {
echo 'public/system/images/woman_100.gif';
} else {
echo 'public/system/images/man_100.gif';
}
?>
" />
<?php
} elseif ($contact['s']['mainimg']) {
?>
<?php
if ($contact['s']['gender'] == '1') {
?>
<img src="public/system/images/woman_100.gif"/>
<?php
示例14: MooGetphoto
<a class="citystar2"><img src="module/service/templates/default/images/citystar.gif" /></a><?php
}
?>
<div class="r-s-img-in">
<p style="width:105px;"> <a style="display:block;" href="index.php?n=space&h=viewpro&uid=<?php
echo $friend['l']['friendid'];
?>
" target="_blank">
<?php
if ($friend['s']['images_ischeck'] == '1' && $friend['s']['mainimg']) {
?>
<img src="<?php
if (MooGetphoto($friend['s'][uid], 'mid')) {
echo MooGetphoto($friend['s'][uid], 'mid');
} elseif (MooGetphoto($friend['s'][uid], 'medium')) {
echo MooGetphoto($friend['s'][uid], 'medium');
} elseif ($friend['s']['gender'] == '1') {
echo 'public/system/images/woman_100.gif';
} else {
echo 'public/system/images/man_100.gif';
}
?>
" />
<?php
} elseif ($friend['s']['mainimg']) {
?>
<?php
if ($friend['s']['gender'] == '1') {
?>
<img src="public/system/images/woman_100.gif"/>
<?php
示例15: MooGetphoto
<img src="module/service/templates/default/images/bind-img.gif" class="fleft" />
<dl class="bindtwo">
<dt>
<div class="cl-photo-img">
<p><a style="display:block;" href="index.php?n=space&h=viewpro&uid=<?php
echo $user_bind['uid'];
?>
" target="_blank">
<?php
if ($user_bind['images_ischeck'] == '1' && $user_bind['mainimg']) {
?>
<img src="<?php
if (MooGetphoto($user_bind['uid'], 'com')) {
echo MooGetphoto($user_bind['uid'], 'com');
} elseif (MooGetphoto($user_bind['uid'], 'medium')) {
echo MooGetphoto($user_bind['uid'], 'medium');
} elseif ($user_bind['gender'] == '1') {
echo 'public/system/images/woman.gif';
} else {
echo 'public/system/images/man.gif';
}
?>
" onload="javascript:DrawImage(this,110,138)" />
<?php
} elseif ($user_bind['mainimg']) {
?>
<?php
if ($user_bind['gender'] == '1') {
?>
<img src="public/system/images/woman.gif"/>
<?php