Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
User Posts

Go to Profile

Anti-Flood [TTv3] — 2019-12-06 15:20:49 in v3 Mods Completed
Bumping this topic, as there still appears to be a bug as mentioned by shadows above.
"m-jay, post: 67564, member: 20288":

its maybe best to add this to config so it can be turned on & off,

Wrap function
// DEBUG Error Report
if ($site_config['SETDEBUG']){
const TT_ERRORS_FILE = 'errors/unknown-errors.txt';
require_once(BACKEND."/errors-helper.php");
set_error_handler('tt_error_handler');
}


in config
$site_config['SETDEBUG'] = true;



By adding like this I get white pages and http 500 error.

Adding it without the wrapper, works ok.

Has it been tested?
"m-jay, post: 67547, member: 20288":

Do you have snatchlist mod and your snatched table like this
[URL unfurl="true"]https://www.torrenttrader.xyz/index.php?threads/anti-hit-run-ttv3.9830/[/url]


Yes

[ATTACH]5272[/ATTACH]
The edit of the footer file throws an error >>

Database Error in themes/default/footer.php on line 6: Unknown column 'COUNT' in 'field list'. Query was: SELECT COUNT `hnr` FROM `snatched` WHERE `uid` = '1' AND `hnr` = 'yes'.
Thanks for checking and for confirming some of my assumptions.
"shadows, post: 67442, member: 20311":

I accidentally deleted files one week ago from my xampp test ?


Oops, will you be able to rebuild?
Or is this project considered dead?
Dear Shadows,

Very much like this development! Kudos to your efforts.
Are we looking at a Christmas release?
Would like to know if you are making headway in the development.

Frank
Dear [USER=1398]@serph[/USER] , when applying this mod to the 3.0 code the following raises questions >>

Point 1)

Both the fields appear to be there already from the install SQL code of TT3, be it with slightly different default values


`invited_by` int(10) NOT NULL default '0',
`invitees` varchar(100) NOT NULL default '',
`invites` smallint(5) NOT NULL default '0',


Should the values be changed to the values of this mod?


Code:
ALTER TABLE `users` ADD `invited_by` int(10) NOT NULL default '0';
ALTER TABLE `users` ADD  `invites` smallint(4) NOT NULL default '0';


Point 2)

The file account-confirm-ok.php from the zip file is from 2.08 still and has the following code which is not present in the 3.0 file:

elseif ($type == "invite") {
stdhead("User invite");
        show_error_msg(T_("SUCCESS"), T_("INVITE_DONE"), 1);
stdfoot();


See also the image attached here >>

[ATTACH type="full" alt="5223"]5223[/ATTACH]

Should this code be added to the 3.0 file?

Point 3)

In the mod, it is asked to look for the following code and replace it >>

ret = SQL_Query_exec("INSERT INTO users (username, password, secret, email, status, added, age, country, gender, client, stylesheet, language, class, invited_by, invitedate) VALUES (" .

     implode(",", array_map("sqlesc", array($wantusername, $wantpassword, $secret, $email, $status, get_date_time(), $age, $country, $gender, $client, $site_config["default_theme"], $site_config["default_language"], $signupclass, $i["inviter"],get_date_time()))).")");
     $id = mysqli_insert_id($GLOBALS["DBconnector"]);


This code is by default not present in the account-signup.php file. The code that resembles it closest is the following >>

    SQL_Query_exec("INSERT INTO users (username, password, secret, email, status, added, last_access, age, country, gender, client, stylesheet, language, class, ip) VALUES (" .
     implode(",", array_map("sqlesc", array($wantusername, $wantpassword, $secret, $email, $status, get_date_time(), get_date_time(), $age, $country, $gender, $client, $site_config["default_theme"], $site_config["default_language"], $signupclass, getip()))).")");

   $id = mysqli_insert_id($GLOBALS["DBconnector"]);


Would we have to replace this code?

Point 4)

Should we overwrite the invite.php file which comes with the default TT3 code, with the one provided in the ZIP file?

My files are for the most still default TT3 files.
TorrentTrader 3.0 — 2019-10-25 17:20:18 in v3 Download
What is the main difference between 2.08 and 3.0 ?

Are we able to assist with converting mods/hacks, or should this be left to the main developers?
Anti-Flood [TTv3] — 2019-10-18 19:07:21 in v3 Mods Completed
I would also suggest anti-flood on reseed requests
Anti-Flood [TTv3] — 2019-10-18 18:46:00 in v3 Mods Completed
"shadows, post: 66642, member: 20311":

[USER=20288]@m-jay[/USER] seems like there is a bug with new topic in forum anti-flood. If the topic is created it will show error message for anti-flood but will post a new thread from "deluser" with no post message. We need to include new topic too.

Has this been fixed?
This one >>

<td align="center"><a href="ownercp.php?action=sqlerr"><img src="images/admin/sql_error.png" border="0" width="118" width="80" alt="" /><br />SQL Error<br /></a></td>


Does not exist in the original code, nor does the ownercp.php file
Mods/Hacks to consider >>

1) Ban Clients (not that single line solution  from config.php)
  Believe this is this agents mod, not sure. I believe there are 2 or 3 solutions that I remember.

2) Ban users from, using the admin section of user profile:

  •    forum (OK)
  •    downloading
  •    shoutbox
  •    commenting
  •    sending pm (only to admin)

   
3) Shoutbox >>
   PM member from shoutbox
   Reply to shoutbox post, inside shoutbox
   
4) Bonus System >>

   How do I get points?
   
   - You receive 0.1 points for every 'Thank You' you make on a torrent
   - You receive 0.5 points for every rating you make on a torrent
   - You receive 1.0 points per hour the system registers you as being a seeder.
   - You receive 7.5 points for every torrent offer you make
   - You receive 10.0 points for every request you fill by uploading a torrent
   - You receive 15.0 points for every torrent you upload
   
   How do I lose points?
   
   - When you exchange your bonus points for one of the options listed above
   - You lose 1.0 points for any of your comments being deleted
   - You lose 5.0 points for every torrent request you make        
   
5) Bookmarking torrents
6) Your catalog of torrents
7) Attachments in comments
8) Subscribe to torrents and or torrent comments
9) same as point 8, but then for the general forum
10) Do we have polls?
11) Donate system flexible to handle more then just paypal or CC.
12) Searchcloud
13) iplog
14)
   
General ideas to consider>>

- The system keeps track of where the user was last time he/she logged in. This could use some fine tuning compared to 2.0x
-
I have tried to get to grips what this addon to the tracker does, and please correct me if I am wrong.

I managed to add the code succesfully, but the full working is still a bit unclear to me. I tried to write something down for the admins/mods to the website I am developing, and that is the following:

- [url="http://www.torrenttrader.org/index.php?showtopic=10420"]http://www.torrenttrader.org/index.php?showtopic=10420[/url] [ADDON]complex snatchlist mod

- [url="http://www.torrenttrader.org/index.php?showtopic=10430"]http://www.torrenttrader.org/index.php?showtopic=10430[/url] [HACK]HIT & RUN Full Auto , Addon to Complex Snatched List

What is the complex snatchlist?

The complex snatchlist records, in all details,

- per torrent what has been downloaded/upload and by whom.

- per torrent how long it has been seeded, and specifically by whom...this means you can easily spot hit and runs...(see the addon to this mod!!)

- per user what he/she has been downloaded/uploaded, and for how long...

- if the download has been completed yes or no

- for how long the torrent has been seeded

- when the last seed action has been done

- more to follow in this list...

These stats are kept in memory and can be used to 'observe' members or torrents in question.

Some of these observing actions have been automated by the 'Hit and Run Full Auto' modification.

What is the Hit and Run function?

The Hit and Run addon to this modification does the following with the snatchlist data:

- Auto Sends Re-seed Requests via a PM from the system to users if they stop seeding a torrent before reaching 1:1 ratio status for the specific torrent(No active downloader check ? but can be added so only sends PM if downloaders are/where still active on the torrent after they stopped)

- Adds a Hit and Run warning to a users account if they fail to re-seed and if their ratio is less then 1:1 and there are downloaders still active on the torrent(If no downloaders present no warning given).

- If the number of Hit and Run warnings are 10 or higher then downloads are disabled untill such time the Hit and Run warnings are less then 10. (the number of 10 is set in the cleanup.php script)

- If you have downloaded more than 1GB and if a torrent has been uploaded more then 3 hours ago you will not be recorded as hit and runner.

(No active downloader check ? but can be added so only sends PM if downloaders are/where still active on the torrent after they stopped)

Other topics about this:

[url="http://www.tbdev.net/index.php?showtopic=17656&hl="]http://www.tbdev.net/index.php?showtopic=17656&hl=[/url]

[url="http://www.tbdev.net/index.php?showtopic=17340"]http://www.tbdev.net/index.php?showtopic=17340[/url]

[url="http://www.torrenttrader.org/index.php?showtopic=10430"]http://www.torrenttrader.org/index.php?showtopic=10430[/url]

[url="http://www.torrenttrader.org/index.php?showtopic=8715"]http://www.torrenttrader.org/index.php?showtopic=8715[/url]

Is there more to add? Have I made mistakes? Please let me know, because not all is clear to me from looking at the code.

Thanks in advance...

Frank
[ADDON] Teams — 2009-08-16 18:59:59 in v2 Only Mods Complete
Dear Simon,

I have downloaded the latest SVN code of torrenttrader v2, and it already has the following things included:

- Teams table in SQL

- A create teams option in the admincp

- and two files, teams-create.php and teams-view.php

Is this the same as your mod?

Or is this something which is developed separately...

This is the teams-create.php

<?php

//

//  TorrentTrader v2.x

// This file was last updated: 7/Sept/2007

//

// http://www.torrenttrader.org

//

//

require_once ("backend/functions.php");

require_once ("backend/bbcode.php");

dbconn(false);



loggedinonly();



if (!$CURUSER || $CURUSER["control_panel"]!="yes"){

show_error_msg("Error","Sorry you do not have the rights to access this page!",1);

}





foreach($_POST as $key=>$value) $$key=$value;

foreach($_GET as $key=>$value) $$key=$value;



$sure = $_GET['sure'];

$del = $_GET['del'];

$team = htmlspecialchars($_GET['team']);

$edited = (int)$_GET['edited'];

$id = (int)$_GET['id'];

$team_name = $_GET['team_name'];

$team_info = $_GET['team_info'];

$team_image = $_GET['team_image'];

$team_description = $_GET['team_description'];

$teamownername = $_GET['team_owner'];

$editid = $_GET['editid'];

$editmembers = $_GET['editmembers'];

$name = $_GET['name'];

$image = $_GET['image'];

$owner = $_GET['owner'];

$info = $_GET['info'];

$add = $_GET['add'];







stdhead("Teams");

begin_frame("Teams Management");





//Delete Team

if($sure == "yes") {



$query = "UPDATE users SET team=0 WHERE team=" .sqlesc($del) . "";

$sql = mysql_query($query);



$query = "DELETE FROM teams WHERE id=" .sqlesc($del) . " LIMIT 1";

$sql = mysql_query($query);

echo("Team Successfully Deleted![<a href='teams-create.php'>Back</a>]");

write_log($CURUSER['username']." has deleted team id:$del");

end_frame();

stdfoot();

die();

}



if($del > 0) {

echo("You and in the truth wish to delete team? ($team) ( <b><a href='teams-create.php?del=$del&team=$team&sure=yes'>Yes!</a></b> / <b><a href='teams-create.php'>No!</a></b> )");

end_frame();

stdfoot();

die();

}



//Edit Team

if($edited == 1) {

$aa = mysql_query("SELECT class, id FROM users WHERE username='$teamownername'");

$ar = mysql_fetch_assoc($aa);

$team_owner = $ar["id"];

$query = "UPDATE teams SET name = '$team_name', info = '$team_info', owner = '$team_owner', image = '$team_image' WHERE id=".sqlesc($id);

$sql = mysql_query($query);



mysql_query("UPDATE users SET team = '$id' WHERE id= '$team_owner'");



if($sql) {

echo("<table class=main cellspacing=0 cellpadding=5 width=50%>");

echo("<tr><td><div align='center'><b>Successfully Edited</b>[<a href='teams-create.php'>Back</a>]</div></tr>");

echo("</table>");

write_log($CURUSER['username']." has edited team ($team_name)");

end_frame();

stdfoot();

die();

}

}



if($editid > 0) {

echo("<form name='smolf3d' method='get' action='teams-create.php'>");

echo("<CENTER><table cellspacing=0 cellpadding=5 width=50%>");

echo("<div align='center'><input type='hidden' name='edited' value='1'></div>");

echo("<br>");

echo("<input type='hidden' name='id' value='$editid'<table class=main cellspacing=0 cellpadding=5 width=50%>");

echo("<tr><td>Team Name: </td><td align='right'><input type='text' size=50 name='team_name' value='$name'></td></tr>");

echo("<tr><td>Team Logo URL: </td><td align='right'><input type='text' size=50 name='team_image' value='$image'></td></tr>");

echo("<tr><td>Owner Name: </td><td align='right'><input type='text' size=50 name='team_owner' value='$owner'></td></tr>");

echo("<tr><td valign=top>Description: </td><td align='right'><textarea name=team_info cols=35 rows=5>$info</textarea><BR>(BBCode is allowed)</td></tr>");

echo("<tr><td></td><td><div align='right'><input type='Submit' value=Update></div></td></tr>");

echo("</table></CENTER></form>");

end_frame();

stdfoot();

die();

}



//View Members

if($editmembers > 0) {

echo("<CENTER><table class=table_table cellspacing=0 cellpadding=3>");

echo("<td class=table_head>Username</td><td class=table_head>Uploaded</td><td class=table_head>Downloaded</td></tr>");

$query = "SELECT id,username,uploaded,downloaded FROM users WHERE team=$editmembers";

$sql = mysql_query($query);

while ($row = mysql_fetch_array($sql)) {

$username = htmlspecialchars($row['username']);

$uploaded = mksize($row['uploaded']);

$downloaded = mksize($row['downloaded']);



echo("<tr><td class=table_col1><a href=account-details.php?id=$row[id]>$username</a></td><td class=table_col2>$uploaded</td><td class=table_col1>$downloaded</td></tr>");

}

echo "</table></CENTER>";

end_frame();

stdfoot();

die();

}





//Add Team

if($add == 'true') {

$aa = mysql_query("SELECT id FROM users WHERE username='$teamownername'");

$ar = mysql_fetch_assoc($aa);

$team_owner = $ar["id"];

$query = "INSERT INTO teams SET name = '$team_name', owner = '$team_owner' ,info = '$team_description', image = '$team_image'";

$sql = mysql_query($query);



$tid = mysql_insert_id();



mysql_query("UPDATE users SET team = '$tid' WHERE id= '$team_owner'");



if($sql) {

write_log($CURUSER['username']." has created new team ($team_name)");

$success = TRUE;

}else{

$success = FALSE;

}

}



print("<b>Add new team:</b>");

print("<br>");

print("<br>");

echo("<form name='smolf3d' method='get' action='teams-create.php'>");

echo("<CENTER><table cellspacing=0 cellpadding=5 width=50%>");

echo("<tr><td>Team: </td><td align='left'><input type='text' size=50 name='team_name'></td></tr>");

echo("<tr><td>Owner Name: </td><td align='left'><input type='text' size=50 name='team_owner'></td></tr>");

echo("<tr><td valign=top>Description: </td><td align='left'><textarea name=team_description cols=35 rows=5></textarea><BR>(BBCode is allowed)</td></tr>");

echo("<tr><td>Teams Logo URL: </td><td align='left'><input type='text' size=50 name='team_image'><input type='hidden' name='add' value='true'></td></tr>");

echo("<tr><td></td><td><div align='left'><input value='Create Team' type='Submit'></div></td></tr>");

echo("</table></CENTER>");

if($success == TRUE) {

print("<b>team successfully added!</b>");

}

echo("<br>");

echo("</form>");



//ELSE Display Teams

print("<b>Current Teams:</b>");

print("<br>");

print("<br>");

echo("<CENTER><table class=table_table cellspacing=0 cellpadding=3>");

echo("<td class=table_head>ID</td><td class=table_head>Logo</td><td class=table_head>Name</td><td class=table_head>Owner</td><td class=table_head>Description</td><td class=table_head>Other</td>");

$query = "SELECT * FROM teams";

$sql = mysql_query($query);

while ($row = mysql_fetch_array($sql)) {

$id = (int)$row['id'];

$name = htmlspecialchars($row['name']);

$image = htmlspecialchars($row['image']);

$owner = (int)$row['owner'];

$info = format_comment($row['info']);

$OWNERNAME1 = mysql_query("SELECT username, class FROM users WHERE id=$owner");

$OWNERNAME2 = mysql_fetch_array($OWNERNAME1);

$OWNERNAME = $OWNERNAME2['username'];



echo("<tr><td class=table_col1><b>$id</b> </td> <td class=table_col2 align=center><img src='$image'></td> <td class=table_col1><b>$name</b></td><td class=table_col2><a href=account-details.php?id=$owner>$OWNERNAME</a></td><td class=table_col1>$info</td><td class=table_col2><a href=teams-create.php?editmembers=$id>[Members]</a>&nbsp;<a href='teams-create.php?editid=$id&name=$name&image=$image&info=$info&owner=$OWNERNAME'>[Edit]</a>&nbsp;<a href='teams-create.php?del=$id&team=$name'>[Delete]</a></td></tr>");

}

echo "</table></CENTER>";



end_frame();

stdfoot();



?>





And this is the teams-view.php





<? 

//

//  TorrentTrader v2.x

// This file was last updated: 7/Sept/2007

//

// http://www.torrenttrader.org

//

//

require_once("backend/functions.php");

dbconn(false);



stdhead("Teams");

begin_frame("Teams");



echo "<br><B><CENTER>Please <a href=staff.php>contact</a> a member of staff if you would like a new team creating</CENTER></B><BR><BR>";





$query = "SELECT * FROM teams";

$sql = mysql_query($query);



$numres = mysql_num_rows($sql);

if($numres == 0) {

echo "<BR><B>No Teams</b><BR>\n";

}else{

while ($row = mysql_fetch_array($sql)) {

$image = $row['image'];



$OWNERNAME1 = mysql_query("SELECT id,username FROM users WHERE id=$row[owner]");

$OWNERNAME2 = mysql_fetch_array($OWNERNAME1);



echo("<table cellspacing=0 cellpadding=3 width=100% class=table_table>");

echo("<td width=10% class=table_head><b>Group:</b></td><td width=90% class=table_head><b>Owner:</b> <a href=account-details.php?id=$OWNERNAME2[id]>$OWNERNAME2[username]</a>&nbsp;-&nbsp;<b>Info:</b></td>");

echo "<tr><td width=10% class=table_col1><b><img src='".htmlspecialchars($image)."' border='0'></b></td><td valign=top class=table_col1 align=left width=90%>".format_comment($row["info"])."</td></tr><tr><td width=100% colspan=2 class=table_col2><b>Members:&nbsp;&nbsp;</b>";



$res2 = mysql_query("SELECT id, username FROM users WHERE team = ".$row["id"]."") or die(mysql_error());

while ($row2 = mysql_fetch_array($res2)) {

echo "<a href=account-details.php?id=".$row2["id"].">".$row2["username"]."</a>, ";

}

echo "</td></tr>";

echo "</table><BR>";

}

}

end_frame();

stdfoot();

?>
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 1
  • Members: 0
  • Guests online: 1
  • Comments: 3
  • Messages: 1,728