Since djhowarth has posted a better version of this in the premium section which has search, delete and unknown user for deleted users, I have decided to move my old version from the premium section to here for people to use. If you are a torrent trader premium member then you can find djhowarth's [url="http://www.torrenttrader.org/index.php?showtopic=12817"]here[/url]
this is the normal message spy but it with a difference. it censors the message so that lower staff classes do not see the messages you sent. this was coded for V2.3 a couple years back so there may be some problems with the newer release. if there is then let me know.
in your admincp.php find the code for the message spy and replace it with this:
here screen shot of when a lower staff class sees what the owners have wrote in a message. it shows a message which says Sorry Censored!!!
this is the normal message spy but it with a difference. it censors the message so that lower staff classes do not see the messages you sent. this was coded for V2.3 a couple years back so there may be some problems with the newer release. if there is then let me know.
in your admincp.php find the code for the message spy and replace it with this:
if ($action=="messagespy"){
stdhead("Message Spy");
navmenu();
$res2 = mysql_query("SELECT COUNT(*) FROM messages");
$row = mysql_fetch_array($res2);
$count = $row[0];
$perpage = 50;
list($pagertop, $pagerbottom, $limit) = pager($perpage, $count, "admincp.php?action=messagespy&");
begin_frame("Message Spy");
echo $pagertop;
$res = mysql_query("SELECT * FROM messages WHERE location='in' ORDER BY id DESC $limit") or die(mysql_error());
print("<CENTER><table border=1 cellspacing=0 cellpadding=3 class=table_table>n");
print("<tr><td class=table_head align=left>Sender</td><td class=table_head align=left>Receiver</td><td class=table_head align=left>Text</td><td class=table_head align=left>Date</td></tr>n");
while ($arr = mysql_fetch_assoc($res)){
$res2 = mysql_query("SELECT * FROM users WHERE id=" . $arr["receiver"]) or die(mysql_error());
$arr2 = mysql_fetch_assoc($res2);
$receiver = "<a href=account-details.php?id=" . $arr["receiver"] . "><b>" . $arr2["username"] . "</b></a>";
$res3 = mysql_query("SELECT * FROM users WHERE id=" . $arr["sender"]) or die(mysql_error());
$arr3 = mysql_fetch_assoc($res3);
$sender = "<a href=account-details.php?id=" . $arr["sender"] . "><b>" . $arr3["username"] . "</b></a>";
if( $arr["sender"] == 0 )
$sender = "<font color=red><b>System</b></font>";
$msg = format_comment($arr["msg"]);
if ( $CURUSER["class"] < $arr2["class"] || $CURUSER["class"] < $arr3["class"])
$msg = "<center><font color=red size=3><b>Sorry Censored!!!</b></center></font>";
$added = utc_to_tz($arr["added"]);
print("<tr><td align=left class=table_col1>$sender</td><td align=left class=table_col2>$receiver</td><td align=left class=table_col1>$msg</td><td align=left class=table_col2>$added</td></TR>");
}
print("</table></CENTER><BR>");
print($pagerbottom);
end_frame();
stdfoot();
}here screen shot of when a lower staff class sees what the owners have wrote in a message. it shows a message which says Sorry Censored!!!