Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > TBDev > Mods & Themes
Reply
  #1  
Old 24th April 2008, 15:50
Fynnon's Avatar
Fynnon Fynnon is offline
xxx
 
Join Date: Nov 2007
P2P
Posts: 984
Default See Tracker PM`s
Get this files: spam.php and take_delmp.php and put them in the tracker root

spam.php
PHP Code:
<?
ob_start
("ob_gzhandler");

require 
"include/bittorrent.php";

dbconn(false);

loggedinorreturn();

if (
get_user_class() < UC_SYSOP)
stderr("Error""Permission denied.");

stdhead("Spam test");
//////////PAGER////////////
$res2 mysql_query("SELECT COUNT(*) FROM messages $where");
        
$row mysql_fetch_array($res2);
        
$count $row[0];
$perpage 30;
    list(
$pagertop$pagerbottom$limit) = pager($perpage$count$_SERVER["PHP_SELF"] ."?" );
echo 
$pagertop;
//////////END PAGER///////////
$res mysql_query("SELECT * FROM messages ORDER BY id DESC $limit") or sqlerr(__FILE____LINE__);print("<h1>Spam test</h1>\n");
  print(
"<table border=1 cellspacing=0 cellpadding=5>\n");
  
///////////////////////////////////////
?>
<form method="post" action="/take-delmp.php">
<?
///////////////////////////////////////
  
print("<tr><td class=colhead align=left>Sender</td><td class=colhead align=left>Receiver</td><td class=colhead align=left>Text</td><td class=colhead align=left>Date</td><td class=colhead>Delete</td></tr>\n");
  while (
$arr mysql_fetch_assoc($res))
  {
    
$res2 mysql_query("SELECT username FROM users WHERE id=" $arr["receiver"]) or sqlerr();
    
$arr2 mysql_fetch_assoc($res2);
    
$receiver "<a href=userdetails.php?id=" $arr["receiver"] . "><b>" $arr2["username"] . "</b></a>";
    
$res3 mysql_query("SELECT username FROM users WHERE id=" $arr["sender"]) or sqlerr();
    
$arr3 mysql_fetch_assoc($res3);
    
$sender "<a href=userdetails.php?id=" $arr["sender"] . "><b>" $arr3["username"] . "</b></a>";
             if( 
$arr["sender"] == )
             
$sender "<font color=red><b>System</b></font>";
    
$msg format_comment($arr["msg"]);
  
$added format_comment($arr["added"]);
  print(
"<tr><td>$sender</td><td>$receiver</td><td align=left>$msg</td><td align=left>$added</td>");
/////////////////////////////////////////////////////////////////////////////////
  
if ($_GET[check] == "yes") {
    echo(
"<TD><INPUT type=\"checkbox\" checked name=\"delmp[]\" value=\"" $arr['id'] . "\"></TD>\n</TR>\n");
   }
   else {
    echo(
"<TD><INPUT type=\"checkbox\" name=\"delmp[]\" value=\"" $arr['id'] . "\"></TD>\n</TR>\n");
   }

  
/////////////////////////////////////////////////////////////////////////////////
}
print(
"</table>");
print(
"<p>Times are in GMT.</p>\n");
?>
<input type="submit" value="Delete!" />
</form>
<!------------------------------------------------->
<A href="spam.php?&page=<? echo $_GET[page];?>action=<? echo $_GET[action]; ?>&box=<? echo $_GET[box]; ?>&check=yes">Select All</A>
<!------------------------------------------------->
<?
print($pagerbottom);
stdfoot();
?>
take_delmp.php

PHP Code:
<?
require_once("include/bittorrent.php");
dbconn();
loggedinorreturn();
if (
get_user_class() == UC_SYSOP) {

if(isset(
$_POST["delmp"])) {
$do="DELETE FROM messages WHERE id IN (" implode(", "$_POST[delmp]) . ")";
$res=mysql_query($do);
}
}
header("Refresh: 0; url=/spam.php");
?>
Copyright: TBDev.net - Read tracker member PM`s
Attached Files
File Type: php spam.php (2.7 KB, 103 views)
File Type: php take_delmp.php (296 Bytes, 90 views)
Reply With Quote
  #2  
Old 3rd February 2010, 20:16
ajax's Avatar
ajax ajax is offline
Senior Member
 
Join Date: Apr 2009
United Kingdom
Posts: 165
Default
Tnx.,old but good!
Reply With Quote
  #3  
Old 3rd February 2010, 21:35
mid's Avatar
mid mid is offline
Senior Member
 
Join Date: May 2009
P2P
Posts: 28
Default
change take_delmp.php to take-delmp.php
__________________

Reply With Quote
  #4  
Old 3rd March 2013, 11:54
Vedda013 Vedda013 is offline
Member
 
Join Date: Feb 2013
P2P
Posts: 2
Default Thx!
Work's Perfect, btw mid you right, need to modify that file name
Reply With Quote
Reply

Tags
pm`s , tracker

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Selling Tracker mod Tbdev source doom123 Sell & Buy 11 3rd December 2016 13:55
I need help with announce.php on TBDeV based tracker simalingur Community Cafe 9 2nd February 2010 12:05
Looking for designer for tbdev based tracker! Viperia Sell & Buy 1 26th July 2009 15:26
tbdev tracker problem AwakeN Community Cafe 0 14th June 2009 09:13
List of all peers on tracker adrian21 Mods & Themes 0 4th January 2009 18:02



All times are GMT +2. The time now is 07:30. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.