Files
Testing/onlinemembers2.php
sean 0e8a8b3028
Some checks are pending
deploy-testing / deploy (push) Waiting to run
Initial testing snapshot
2026-11-17 16:15:01 -05:00

96 lines
3.1 KiB
PHP

<?php
$page = "onlinemembers";
include "header.php";
echo $_SESSION["user_id"];
function general()
{
global $user, $url, $_SESSION, $database;
$message1="";
$message2="";
$message3="";
$message4="";
$numclicks=0;
$query=$database->database_query("SELECT * FROM arrowchat WHERE `from`='".$user->user_info["user_id"]."' LIMIT 4");
while($row=$database->database_fetch_array($query)){
if(strlen($row["message"])>10)
{
if($message1!=""){
if($message1==$row["message"])
{
$message2=$row["message"];
}
}
if($message2!=""){
if($message2==$row["message"])
{
$message3=$row["message"];
}
}
if($message3!=""){
if($message3==$row["message"])
{
$message4="disabled";
$numclicks=5;
}
}
$message1=$row["message"];
}
}
?>
<script>
var nuofclicks=<?php echo $numclicks;?>;
function leo(val, owner)
{
nuofclicks=nuofclicks+1;
if(nuofclicks <= 4){
jqac.arrowchat.chatWith(owner);
}
}
</script>
<div style="margin-bottom:1px;clear:both;">
<iframe src="https://pc20160522.com/releasese/activepage8046.asp?wid=126371505975&ptype=3&queryid=8&promocode=728" width="900" height="100" frameborder="0" scrolling="no"></iframe>
</div>
<div class='page_header'><span style="font-size:20pt; font-weight:bold; text-transform:uppercase;">ONLINE MEMBERS</span></div>
<div>Click on a Member name to visit their profile. Click on "I'm Available" to open an Instant Message window.</div><br /><?
$query=$database->database_query("SELECT DISTINCT se_users.user_id userid, se_users.user_displayname username, arrowchat_status.session_time lastactivity, CONCAT(se_users.user_id ,CONCAT('/',se_users.user_photo)) avatar, se_users.user_username link, arrowchat_status.is_admin, arrowchat_status.status
FROM se_users
JOIN arrowchat_status
ON se_users.user_id = arrowchat_status.userid
WHERE ('".time()."' - arrowchat_status.session_time - 60 < '120')
ORDER BY se_users.user_username ASC");
?>
<div style="clear:both;padding-left:5px;padding-top:5px;padding-bottom:5px;">
<? while($row=$database->database_fetch_array($query)){
$owner1=new SEUser(Array($row["userid"]));
?>
<div class="invite_1" style="height:60px;"><div class="invite_2"><a href="<?=$url->url_create('profile', $owner1->user_info["user_username"])?>" style="color:white;" target="_blank"><img height="30" width="30" src="<?=$owner1->user_photo("./images/nophoto.png")?>"></a></div><div class="invite_3"><a href="<?=$url->url_create('profile', $owner1->user_info["user_username"])?>" target="_blank" ><?=$owner1->user_info["user_username"]?></a><br><a class="leoclick" href="javascript:;" onClick="leo('<? echo $user->user_info["user_id"]?>', '<? echo $owner1->user_info["user_id"]?>');"><span style="color:#999">I'm available</span></a><br>
<?=substr(strip_tags($owner1->user_info["user_status"]),0, 20)?></div><div style="clear:both"></div></div>
<? }?>
</div>
<div style="clear: both; margin-top: 10px;">&nbsp;</div>
<div style="clear: both;"></div>
</div>
<? //<iframe src="http://bateworld.com/cometchat/list.php" height="550px" width="950px"></iframe>?>
<?
}
include "footer.php";
?>