Beispiel #1
0
require "foundation/module_group.php";
require "api/base_support.php";
$group_rs = array();
//按钮控制
$button = 0;
$button_show = "content_none";
$button_hidden = "";
if ($is_self == 'Y') {
    $group_title = $g_langpackage->g_mine;
    $no_data = $g_langpackage->g_none_group;
    $button = 1;
    $button_show = "";
    $button_hidden = "content_none";
    $show_mine = "";
    $show_his = "content_none";
} else {
    $show_mine = "content_none";
    $show_his = "";
    $holder_name = get_hodler_name($url_uid);
    $group_title = str_replace("{holder}", $holder_name, $g_langpackage->g_his_group);
    $no_data = $g_langpackage->g_none;
}
$group_rs = api_proxy("group_self_by_uid", "*", $userid, 'getRs');
//数据显示控制
$list_show = "";
$list_hidden = "content_none";
if (empty($group_rs)) {
    $list_show = "content_none";
    $list_hidden = "";
}
$g_join_num = $g_langpackage->g_join_num;
Beispiel #2
0
 *
 * 如有您有问题请到官方论坛(http://tech.jooyea.com/bbs/)提问,谢谢您的支持。
 */
//引入公共方法
require "foundation/module_users.php";
require "foundation/fcontent_format.php";
require "api/base_support.php";
//引入语言包
$u_langpackage = new userslp();
$rf_langpackage = new recaffairlp();
$ah_langpackage = new arrayhomelp();
//变量获得
$holder_id = intval(get_argg('user_id'));
//主人id
$user_id = get_sess_userid();
$holder_name = get_hodler_name($holder_id);
$is_self = $holder_id == $user_id ? 'Y' : 'N';
$msg_act = $user_id ? "send_msg({$holder_id})" : "parent.goLogin()";
//数据表定义区
$t_users = $tablePreStr . "users";
$t_blog = $tablePreStr . "blog";
$t_album = $tablePreStr . "album";
$t_photo = $tablePreStr . "photo";
//留言板展示
$user_info = api_proxy("user_self_by_uid", "inputmess_limit", $holder_id);
$show_msg = 1;
if ($is_self == 'N' && $user_info['inputmess_limit']) {
    if ($user_info['inputmess_limit'] == 2) {
        $show_msg = 0;
    } else {
        if ($user_info['inputmess_limit'] == 1) {
Beispiel #3
0
if (get_argg("2id") == "") {
    $user_rs = getPals_mine_all($dbo, $t_mypals, $user_id);
}
$reTitle = "";
if (get_argg("rt") != "") {
    $reTitle = $m_langpackage->m_res . ":" . short_check(get_argg("rt"));
}
$have_2id = "";
$to_user_name = "";
if (get_argg("2id") != "") {
    $to_user_id = intval(get_argg("2id"));
    $to_id = "<input name='2id' value='" . get_argg("2id") . "' type=hidden>";
    $id_confirm = "";
    $id_noconfirm = "content_none";
    $have_2id = "msToId";
    $to_user_name = get_hodler_name($to_user_id);
} else {
    $to_id = "";
    $id_confirm = "content_none";
    $id_noconfirm = "";
    $no_2id = "msToId";
}
if (get_argg("nw") == "1") {
    $b_can = "";
    $b_bak = "content_none";
} else {
    $b_can = "content_none";
    $b_bak = "";
}
$i = 0;
?>
Beispiel #4
0
<?php

//引入模块公共方法文件
require "foundation/module_users.php";
require "foundation/fcontent_format.php";
require "api/base_support.php";
//引入语言包
$u_langpackage = new userslp();
//变量区
$userid = intval(get_argg('user_id'));
$info_item_init = $u_langpackage->u_set;
//info_item_format($info_item_init,$inputTxt)
$user_info = api_proxy("user_self_by_uid", "*", $userid);
$user_sex_txt = get_user_sex($user_info['user_sex']);
$user_birthday = brithday_format($user_info['birth_year'], $user_info['birth_month'], $user_info['birth_day']);
$user_marrstate = get_user_marry($user_info['user_marry']);
$user_lastlogin_time = $user_info['lastlogin_datetime'];
$holder_name = get_hodler_name($userid);
Beispiel #5
0
require "foundation/auser_validate.php";
require "foundation/module_mypals.php";
require "api/base_support.php";
//数据显示控制
$show_data = "";
$show_error = "content_none";
$show_content = "content_none";
//数据表定义区
$t_photo = $tablePreStr . "photo";
$t_photo_comment = $tablePreStr . "photo_comment";
$t_users = $tablePreStr . "users";
$t_album = $tablePreStr . "album";
$album_info = array();
$photo_row = array();
$album_info = api_proxy("album_self_by_aid", "album_name", $album_id);
$a_who = $is_self == 'Y' ? $a_langpackage->a_mine : str_replace('{holder}', filt_word(get_hodler_name($url_uid)), $a_langpackage->a_holder);
if ($album_info) {
    //查找相册信息
    $album_name = $album_info['album_name'];
    if ($prev_next) {
        $photo_rs = api_proxy('album_photo_by_aid', 'photo_id', $album_id);
        $num = count($photo_rs);
        foreach ($photo_rs as $key => $val) {
            if ($val['photo_id'] == $photo_id) {
                $photo_id = $photo_rs[$prev_next === 'next' ? $key == $num - 1 ? 0 : $key + 1 : ($prev_next === 'prev' ? $key == 0 ? $num - 1 : $key - 1 : 0)]['photo_id'];
                break;
            }
        }
    }
    $photo_row = api_proxy("album_photo_by_photoid", "*", $photo_id);
    //查找照片信息