Exemplo n.º 1
0
        } elseif (substr($a_rg[3], 0, 1) == 'i') {
            $_GET['upid'] = substr($a_rg[3], 1);
        }
    }
}
require_once 'function.php';
$f = 'active_img.php';
if ($udb['uid'] > 0) {
    if ($udb['iswc'] != 1 && ($udb['qx'] == 5 || $udb['qx'] == 6) || $udb['isnc'] == 0) {
        echo '<script type="text/javascript">location.href=\'./\';</script>';
        exit;
    }
}
if ($xqid > 0) {
    if ($user_id > 0) {
        yjl_vlog($xqid);
    }
    $uSQL = sprintf('update %s set c_fw=c_fw+1 where xqid=%s', $yjl_dbprefix . 'xq', $xqid);
    $result = mysql_query($uSQL) or die('');
    $page_title = $xqdb['name'] . ' 小区活动';
    $c_l1id = $xqdb['l1id'];
} else {
    $page_title = '小区活动';
}
$js_c = '';
$c = '';
$page = isset($_GET['p']) && intval($_GET['p']) > 0 ? intval($_GET['p']) : 1;
$hdid = isset($_GET['id']) && intval($_GET['id']) > 0 ? intval($_GET['id']) : 1;
$q_res = sprintf('select * from %s where hdid=%s', $yjl_dbprefix . 'hd', $hdid);
$res = mysql_query($q_res) or die('');
$r_res = mysql_fetch_assoc($res);
Exemplo n.º 2
0
            mysql_free_result($req);
            $a_fz[$r_res['fzid']] = $r_res;
        } while ($r_res = mysql_fetch_assoc($res));
    }
    mysql_free_result($res);
    $fzid = isset($_GET['fz']) && isset($a_fz[$_GET['fz']]) ? $_GET['fz'] : 0;
    $c .= '<div class="state"><span><a href="' . $f . '">全部(' . $udb['follow_count'] . ')</a>';
    if (isset($a_fz)) {
        foreach ($a_fz as $v) {
            $c .= '&nbsp;&nbsp;&nbsp;<a href="?fz=' . $v['fzid'] . '">' . $v['name'] . '(' . $v['c_user'] . ')</a>';
        }
    }
    $c .= '</span></div><a href="?fzgl=1" class="frd_more"' . (isset($_GET['fzgl']) && $_GET['fzgl'] == 1 ? ' rel="#overlay_newct" id="open_ldiv"' : '') . '>分组管理</a>';
}
if ($user_id > 0 && $user_id != $cuid) {
    yjl_vlog($cuid, 2);
}
if (in_array($uadb[$cuid]['ys_1'], $a_uys)) {
    $page = isset($_GET['p']) && intval($_GET['p']) > 0 ? intval($_GET['p']) : 1;
    if ($user_id > 0 && $user_id == $cuid && $fzid > 0) {
        $q_rep = sprintf('select b.uid, b.face, c.xqid, c.nc, c.qx, c.gzfl from %s as a, %s as b, %s as c, %s as d where a.uid=%s and a.buddyid=b.uid and b.uid=c.uid and a.buddyid=d.uid and d.fzid=%s order by a.dateline desc', $dbprefix . 'buddys', $dbprefix . 'members', $yjl_dbprefix . 'members', $yjl_dbprefix . 'ffz_f', $cuid, $fzid);
    } else {
        $q_rep = sprintf('select b.uid, b.face, c.xqid, c.nc, c.qx, c.gzfl from %s as a, %s as b, %s as c where a.uid=%s and a.buddyid=b.uid and b.uid=c.uid order by a.dateline desc', $dbprefix . 'buddys', $dbprefix . 'members', $yjl_dbprefix . 'members', $cuid);
    }
    $a_rep = mysql_query($q_rep) or die('');
    $tr_rep = mysql_num_rows($a_rep);
    if ($tr_rep > 0) {
        $c .= '<ul class="list_friend hover">';
        $tp_rep = ceil($tr_rep / $p_size);
        if ($page > $tp_rep) {
            $page = $tp_rep;