hi there good coders i am trying to do a idle members list but having problems with it i got this far can some one help me please i keep getting string error and i can not see where i am going wrong
this is for a wapdesire v_2 kind of script i am also after tis coding for idle staff as well can any of u good coders please help mewith this please it be a great help if any one can help me with this and thanks to any one that helps me get this going
Code:
<?php
define('WCS',true);
include('../core/main.inc');
header_type();
cleardata();
if(ipbanned(ip(),browser())){
if(!shield(getuid_sid($sid))){
echo head_tag("Ip Blocked!!!",0,0);
echo ipbanned_msg();
echo foot_tag();
exit();
}
}
if(!islogged($sid)){
echo head_tag("Error!!!",0,0);
echo session_expired();
echo foot_tag();
exit();
}
if(banned(getuid_sid($sid))){
echo head_tag("Error!!!",1,getnick_sid($sid));
echo banned_msg($sid);
echo foot_tag();
exit();
}
mysql_query("UPDATE users SET browser='".browser()."', ipaddress='".ip()."', host='".subno()."' WHERE id='".getuid_sid($sid)."'");
/////////////////////////IDLE LIST/////////////////////////
addonline(getuid_sid($sid),"idle members","");
echo head_tag(getnick_sid($sid)."@idle members",1,getnick_sid($sid));
$main.="idle members";
$norm = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM user WHERE lastact>'".$norm[1]."'"));
$main.=""Current Number of Idle Members:".$norm[1]."<br/><br/>";
$main.="Idle Date: $tdte,<br/>Only Members Who have NOT been online after this date are displayed below<br/><br/>";
$nolq = mysql_query("SELECT * FROM users WHERE lastact<'".$norm[1]."'");
while ($row=mysql_fetch_array($nolq))
{
$main.="Username: <a href=\"../profile.php?who=$item[0]&sid=$sid\" style=\"color:$color\">".getnick_uid($item[0])."</a>";
$main.="<br/>";
$jdt = date("d m y-H:i:s",$row[lastact]);
$main.="Last Online: ".time_msg(time()-$info[lastact],0)."<br/><br/>";
}
$L1="$sixkey<a $key6 href=\"../inbox/inbox.php?sid=$sid\">Inbox</a>";
$L2="$sevenkey<a $key7 href=\"../buds/buds.php?sid=$sid\">BuddyList</a>";
$L3="$eightkey<a $key8 href=\"../chat/public.php?sid=$sid\">Chat</a>";
$L4="$ninekey<a $key9 href=\"../forums/forums.php?sid=$sid\">Forums</a>";
$L5="$zerokey<a $key0 href=\"../main.php?sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Main Menu</a>";
echo xhtml($sid,$title,1,$L1,$L2,$L3,$L4,$L5,0,0,0,$main);
?>

Comment