📄 user_count.php
字号:
<?php
include_once( "inc/auth.php" );
if ( !$ONE_USER_MUL_LOGIN )
{
$query = "select * from USER_ONLINE where UID='".$LOGIN_UID."'";
$cursor = exequery( $connection, $query );
if ( $ROW = mysql_fetch_array( $cursor ) )
{
$SID = $ROW['SID'];
}
if ( $SID != "" && $SID != session_id( ) )
{
session_start( );
ob_start( );
$LOGIN_ANOTHER = "1";
session_write_close( );
exit( );
}
}
if ( $CHECK_SMS == 1 )
{
$query = "SELECT SMS_ID from SMS,SMS_BODY where SMS.BODY_ID=SMS_BODY.BODY_ID and TO_ID='".$LOGIN_USER_ID."' and REMIND_FLAG='1' and DELETE_FLAG!='1' and SMS_TYPE='10' and SEND_TIME<='".date( "Y-m-d H:i:s" )."' limit 0,1";
$cursor = exequery( $connection, $query );
if ( 0 < mysql_num_rows( $cursor ) )
{
new_sms_remind( $LOGIN_UID, 1 );
}
}
update_my_online_status( );
$time = filemtime( $ROOT_PATH."inc/user_online.php" );
if ( $time === FALSE || $ONLINE_REF_SEC <= time( ) - $time )
{
clear_online_status( );
}
include( "inc/user_online.php" );
$USER_COUNT = count( $SYS_ONLINE_USER );
ob_end_clean( );
echo $USER_COUNT == 0 ? 1 : $USER_COUNT;
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -