예제 #1
0
파일: default.php 프로젝트: omusico/Social
" target="_blank"><img src="<?php 
    echo $val['user_ico'];
    ?>
" alt="<?php 
    echo $val['user_name'];
    ?>
" /></a></dt>
                <dd><a href="home.php?h=<?php 
    echo $val['user_id'];
    ?>
" hidefocus="true" target="_blank"><?php 
    echo sub_str($val['user_name'], 5, true);
    ?>
</a></dd>
                <dd class="time"><?php 
    echo format_datetime_short($val['lastlogin_datetime']);
    ?>
</dd>
            </dl>
        <?php 
}
?>
    </div>

        </div>
        <div class="snsintro">
        	<dl>
                <dt class="space1"><?php 
echo $ah_langpackage->ah_personal_space;
?>
</dt><?php 
예제 #2
0
파일: home.php 프로젝트: omusico/Social
 } else {
     $last_mood_txt = $mo_langpackage->mo_null_txt;
     $last_mood_time = '';
 }
 //主人姓名
 set_session($holder_id . '_holder_name', $user_info['user_name']);
 $user_online = array();
 //登录状态
 $ol_state_ico = "skin/{$skinUrl}/images/online.gif";
 $ol_state_label = $ah_langpackage->ah_current_online;
 $timer_txt = '';
 $user_online = get_user_online_state($dbo, $t_online, $holder_id);
 if ($is_self == 'N' && (empty($user_online) || $user_online['hidden'] == 1)) {
     $ol_state_ico = "skin/{$skinUrl}/images/offline.gif";
     $ol_state_label = $ah_langpackage->ah_offline;
     $timer_txt = '(' . format_datetime_short($user_info['lastlogin_datetime']) . ')';
 } else {
     if ($is_self == 'Y' && $user_online['hidden'] == 1) {
         $ol_state_ico = "skin/{$skinUrl}/images/hiddenline.gif";
         $ol_state_label = $ah_langpackage->ah_stealth;
     }
 }
 $is_admin = get_sess_admin();
 if ($is_admin == '' && $is_self == 'N') {
     if ($user_info['is_pass'] == 0) {
         $show_error = true;
         $show_info = $pu_langpackage->pu_lock;
     } elseif ($user_info['access_limit'] == 1 && $user_id == '') {
         $show_error = true;
         $show_info = $pr_langpackage->pr_acc_false;
     } elseif ($user_info['access_limit'] == 2 && !api_proxy("pals_self_isset", $holder_id)) {
예제 #3
0
파일: invite.php 프로젝트: omusico/Social
//引入公共方法
require "foundation/module_mood.php";
//引入语言包
$u_langpackage = new userslp();
$ah_langpackage = new arrayhomelp();
//变量获得
$holder_id = intval(get_argg('uid'));
//主人id
//数据表定义区
$t_users = $tablePreStr . "users";
$t_online = $tablePreStr . "online";
$dbo = new dbex();
//读写分离定义方法
dbtarget('r', $dbServs);
$info_item_init = $u_langpackage->u_unset;
$user_info = get_user_info($dbo, $t_users, $holder_id);
$user_sex_txt = get_user_sex($user_info['user_sex']);
$user_lastlogin_time = $user_info['lastlogin_datetime'];
if (!$user_info) {
    echo $u_langpackage->u_not_invite;
    exit;
}
$user_online = get_user_online_state($dbo, $t_online, $holder_id);
$ol_state_ico = "skin/default/jooyea/images/offline.gif";
$ol_state_label = $u_langpackage->u_not_onl . '(' . format_datetime_short($user_lastlogin_time) . ')';
if ($user_online['hidden'] === '0') {
    $ol_state_ico = "skin/default/jooyea/images/online.gif";
    $ol_state_label = $u_langpackage->u_onl;
}
//设置发出邀请用户的id
set_session("InviteFromUid", $user_info['user_id']);
예제 #4
0
파일: guest.php 프로젝트: omusico/Social
    echo $val['guest_user_ico'];
    ?>
" />
		</a>
		<span class="name"><a href="home.php?h=<?php 
    echo $val["guest_user_id"];
    ?>
" target="_blank" title="<?php 
    echo $gu_langpackage->gu_see;
    ?>
"><?php 
    echo sub_str(filt_word($val['guest_user_name']), 6, true);
    ?>
</a></span>
		<span class="time"><?php 
    echo format_datetime_short($val['add_time']);
    ?>
</span>
		<span>
		<img style="cursor:pointer;" onclick="<?php 
    echo $send_hi;
    ?>
(<?php 
    echo $val["guest_user_id"];
    ?>
)" src="skin/<?php 
    echo $skinUrl;
    ?>
/images/hi.gif" title="<?php 
    echo $gu_langpackage->gu_greet;
    ?>