hi every one can some one help sort this out i am trying to sort out pm online members
thanks to any one that can help
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)."'"); /////////////////////////pm online members///////////////////////// addonline(getuid_sid($sid),"Admin Tools",""); echo head_tag(getnick_sid($sid)."@Admin Tools",1,getnick_sid($sid)); $title="<b>Admin Tools</b>"; $main="<p align=".align().">\n"; { $who = mysql_real_escape_string( $_REQUEST["who"] ); $pmtou1 = mysql_real_escape_string( $_REQUEST["pmtou1"] ); $byuid = getuid_sid($sid); $tm = microtime(get_as_float); if($who=="online") { $lastpm = mysql_fetch_array(mysql_query("SELECT MAX(timesent) FROM private WHERE byuid='".$byuid."'")); $main.="<p align=\"center\">"; $main.="<img src=\"../phpThumb/phpThumb.php?src=../images/check.png\" alt=\"x\"/>"; $main.="The Online Members have been sent This Message<br/>"; $main.="<a href=\"tools.php?sid=$sid\">»Owner tools</a>"; $main.="</p>"; { else if($who=="online"){ $lastpm = mysql_fetch_array(mysql_query("SELECT MAX(timesent) FROM private WHERE byuid='".$byuid."'")); echo "<p align=\"center\">"; echo "All online users where sent this pm<br/>"; $pms = mysql_query("SELECT userid FROM online"); $tm = time(); while($pm=mysql_fetch_array($pms)) { mysql_query("INSERT INTO private SET text='Public Anouncment:[br/]".$pmtou."[br/]This message was sent to online users at this moment in time', byuid='".$byuid."', touid='".$pm[0]."', timesent='".$tm."'"); } } mysql_query("INSERT INTO private SET text='Public Anouncment:[br/]".$pmtou1."[br/]This message was sent to all online members', byuid='".$byuid."', touid='".$pm[0]."', timesent='".$tm."'"); } $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