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
Anti Hit & Run System
Nothing found.
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / v2.08 / v2.08 Mods Completed

2014-06-29 13:11:57
error required.php


Warning: mysql_fetch_row() expects parameter 1 to be resource, null given in /home/xxx/public_html/required.php on line 115[/php]

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=7045"]required.php[/url]
required.php
Download

2014-06-29 13:49:12
...Ok! change



            while ($row = mysql_fetch_row($res)):


For

            while ($row = mysql_fetch_row($res2)):



If it may help another person!.  ;)
Unknown User
2014-08-20 08:19:07
 
#===============================================================#
# Warned Users - Updated by BigMax (25-Mar-2013)                                             #
#===============================================================#
if ($action == "warned") {

if ($do == "delete") {

if ($_POST["removeall"]) {
   $res = SQL_Query_exec("SELECT `id` FROM `users` WHERE `enabled` = 'yes' AND `status` = 'confirmed' AND `warned` = 'yes'");

while ($row = mysql_fetch_assoc($res)) {
   SQL_Query_exec("DELETE FROM `warnings` WHERE `active` = 'yes' AND `userid` = '$row[id]'");
   SQL_Query_exec("UPDATE `users` SET `warned` = 'no' WHERE `id` = '$row[id]'");
}
} else {

if (!@count($_POST['warned'])) show_error_msg("Error", "Nothing selected", 1);
   $ids = array_map("intval", $_POST["warned"]);
   $ids = implode(", ", $ids);
           
   SQL_Query_exec("DELETE FROM `warnings` WHERE `active` = 'yes' AND `userid` IN ($ids)");
   SQL_Query_exec("UPDATE `users` SET `warned` = 'no' WHERE `id` IN ($ids)");
}
   autolink("admincp.php?action=warned", "Entries Confirmed");
}
   $perpage = 50;
   $count = get_row_count("users", "WHERE enabled = 'yes' AND status = 'confirmed' AND warned = 'yes'");
   
   list($pagertop, $pagerbottom, $limit) = pager($perpage, $count, 'admincp.php?action=warned&');

   $res = SQL_Query_exec("SELECT `id`, `username`, `class`, `added`, `last_access`, `downloaded`, `uploaded` FROM `users` WHERE `enabled` = 'yes' AND `status` = 'confirmed' AND `warned` = 'yes' ORDER BY `added` DESC $limit");

stdhead("Warned Users");
navmenu();

begin_frame("Warned Users");

   $warnedusers = number_format($count);
?>

   <div style="margin-top:10px; margin-bottom:10px" align="center"><font size="2">
       This page displays all users which are enabled and have active warnings<? if (get_user_class() == 10) { ?>, they can be mass deleted or deleted per user<br />
       Please note that if you delete a warning which was for poor ratio, then this is extending the time user has left to expire<? } ?>
   <div style="margin-top:10px" align="center">We have <font color="#FF2200"><b><?php echo $warnedusers; ?></b></font> warned user<?php echo ($warnedusers != 1 ? "s" : ""); ?></div></font></div>

<?php
if ($count > $perpage) {
   print($pagertop);
}
?>
<?php if ($count > 0): ?>
   <form id="warned" method="post" action="admincp.php?action=warned&amp;do=delete">
   <table border="0" cellpadding="4" cellspacing="0" width="100%" align="center" class="table_table">
<tr>
   <th class="table_head" align="left">Username</th>
   <th class="table_head" align="left">Class</th>
   <th class="table_head" align="left">Uploaded</th>
   <th class="table_head" align="left">Downloaded</th>
   <th class="table_head" align="left">Ratio</th>
   <th class="table_head">Ajouter</th>
   <th class="table_head">Last Access</th>
   <th class="table_head">Warnings</th>
<th class="table_head"><font color="#FF2200"><b>Hit</b><small>&</small><b>Run</b></font></th>
<?php
if (get_user_class() >= 6) {
?>
   <th class="table_head"><input type="checkbox" name="checkall" onclick="checkAll(this.form.id);" /></th>
<?php } ?>
</tr>

<?php
while ($row = mysql_fetch_assoc($res)):
   $qry = SQL_Query_exec("SELECT COUNT(`hnr`) FROM `snatched` WHERE `uid` = '".$row["id"]."' AND `hnr` = 'yes'");
   $res2 = mysql_fetch_row($qry);

if ($res2[0] > 0) {
   $hnr = "<font style=background-color:B50000 color=#FEFEFE><b>&nbsp; ".$res2[0]." &nbsp;</b></font>";
}
   else { $hnr = "<font color=limegreen><b>Non</b></font>"; }
   
   $addeded = date("d-M-Y H:i", utc_to_tz_time($row["added"]));
   $joined = ("".get_elapsed_time(sql_timestamp_to_unix_timestamp($row["added"]))." ago");
   $lastaccess = (($row["last_access"] == "0000-00-00 00:00:00") ? "Never logged" : "".date("d-M-Y H:i", utc_to_tz_time($row["last_access"]))."");
   $lastseen = (($row["last_access"] == "0000-00-00 00:00:00") ? "---" : "".get_elapsed_time(sql_timestamp_to_unix_timestamp($row["last_access"]))." ago" );
   $downloaded = "<font color=#FF2200><b>".mksize($row["downloaded"])."</b></font>";
   $uploaded = "<font color=limegreen><b>".mksize($row["uploaded"])."</b></font>";

if($row["downloaded"] != 0){ $ratio = number_format($row["uploaded"] / $row["downloaded"], 2); } else { $ratio = "---"; }
   $ratio = "<font color=".get_ratio_color($ratio)."><b>$ratio</b></font>";
?>

<tr>
   <td class="table_col1"><a href="account-details.php?id=<?php echo $row["id"]; ?>"><b><?php echo class_user($row["username"]); ?></b></a></td>
   <td class="table_col2"><?php echo get_user_class_name($row["class"]); ?></td>
   <td class="table_col1"><?php echo $uploaded; ?></td>
   <td class="table_col2"><?php echo $downloaded; ?></td>
   <td class="table_col1"><?php echo $ratio; ?></td>
   <td class="table_col2" align="center"><?php echo "".$addeded."<br />".$joined.""; ?></td>
   <td class="table_col1" align="center"><?php echo "".$lastaccess."<br />".$lastseen.""; ?></td>
   <td class="table_col1" align="center"><font color="#FF2200"><b>Active</b></font>: &nbsp;&nbsp; [<a href="account-details.php?id=<?php echo $row["id"]; ?>#warnings"><b><?php echo number_format(get_row_count("warnings", "WHERE userid = '$row[id]' AND active = 'yes'")); ?></b></a>]
<div style="margin-top:4px"><font color="limegreen"><b>Expired</b></font>: &nbsp;[<a href="account-details.php?id=<?php echo $row["id"]; ?>#warnings"><b><?php echo number_format(get_row_count("warnings", "WHERE userid = '$row[id]' AND active != 'yes'")); ?></b></a>]</div></td>
    <td class="table_col1" align="center"><?php echo $hnr; ?></td>
<?php
if (get_user_class() >= 6) {
?>
<td class="table_col2" align="center"><input type="checkbox" name="warned[]" value="<?php echo $row["id"]; ?>" /></td>
<?php } ?>
</tr>
<?php endwhile; ?>
<?php
if (get_user_class() >= 6) {
?>
<tr>
   <td colspan="10" align="right">
   <input type="submit" value="Remove Checked" />
   <input type="submit" name="removeall" value="Remove All" />
</td>
</tr>
<?php } ?>
</table>        
</form>
<?php else: ?>
<center><font size="2"><b>No Warned Users!</b></font></center>
<?php
endif;

if ($count > $perpage) {
   print($pagerbottom);
} else {
   print("<br />");
}

end_frame();
stdfoot();
}

#===================================================#
#    End Warned Users - Updated by BigMax                                   #
#===================================================#
Unknown User
2014-08-29 18:02:26
"AzuriS, post: 89231":

Seems to work well on my dev site from more than 1 month with hard testing, so here it is

How does it works :

Every time a torrent is completed, user have to seed $ hours in an interval of $ days he start the download

after $ days he take 1 H&R if seedtime is < $ hours

to delete H&R, he just need to complete $ hours

when user take $ H&R, he is warn for $ days and he need to del 1 H&r min to del warn

after $ days warned, he is banned

when user take $ H&R he is banned directly

Write Log, Modcomment and email to user with reason when ban

You need SQL, function.php and announce.php modifications from 1st post MVP's snatchlist [url="http://www.torrenttrader.pw/index.php?/topic/16962-snatchlist/"]http://www.torrentt...962-snatchlist/[/url]

English

Hello there

You asked to use this Snatched, but the link no longer works and I'm looking I have found nullle part.

By cons is that it is compatible?

[url="http://devscorner.xyz/topic/12318-anti-hit-n-run/#036;"]http://devscorner.xyz/topic/12318-anti-hit-n-run/#036;[/url]

French

Bonjour

Vous demandé d'utiliser ce snatched, mais le lien ne fonctionne plus et j'ai beau chercher je ne l'ai trouvé nullle part.

Par contre est-ce que celui-ci est compatible?

[url="http://devscorner.xyz/topic/12318-anti-hit-n-run/#036;"]http://devscorner.xyz/topic/12318-anti-hit-n-run/#036;[/url]
2014-08-29 18:57:27
Yes / Oui!
Unknown User
2014-08-29 19:33:31
Ok thank you for the answer, more than to get to work

Ok merci de la réponse, plus qu'a me mettre au travail
2015-01-02 05:15:07
"McGyver, post: 93170":

Ok thank you for the answer, more than to get to work

Ok merci de la réponse, plus qu'a me mettre au travail

SQL:

CREATE TABLE `snatched` (
`id` int(11) NOT NULL auto_increment,
`torrentid` int(11) default '0',
`userid` int(11) default '0',
`ip` varchar(64) NOT NULL default '',
`port` smallint(5) unsigned NOT NULL default '0',
`uploaded` bigint(20) unsigned NOT NULL default '0',
`downloaded` bigint(20) unsigned NOT NULL default '0',
`agent` varchar(60) NOT NULL default '',
`peer_id` varchar(20) NOT NULL default '',
`finished` enum('yes','no') NOT NULL default 'no',
`complete_date` datetime NOT NULL default '0000-00-00 00:00:00',
`start_date` datetime NOT NULL default '0000-00-00 00:00:00',
`last_action` datetime NOT NULL default '0000-00-00 00:00:00',
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=1;
 
ALTER TABLE `snatched` ADD `seed_end` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00';


Edit and search annouce.php :

function get_date_time($timestamp = 0)
{
if ($timestamp)
    return date("Y-m-d H:i:s", $timestamp);
else
    return gmdate("Y-m-d H:i:s");
}


Add After :

////////////////////Snatched////////////////////
$dt = gmtime() - 180;
$dt = sqlesc(get_date_time($dt));
////////////////End Snatched////////////////


Find :

if ($event == "stopped") {


Add After :

/////////////////////////////////////////SNATCHED/////////////////////////////////////////
                $res_se = SQL_Query_exec("SELECT userid, seed_end, torrentid FROM snatched WHERE torrentid = $torrentid AND userid = $userid");
while ($row_se = mysql_fetch_assoc($res_se)) {
SQL_Query_exec("UPDATE snatched SET seed_end = $dt WHERE finished = 'yes' AND torrentid = ". $row_se[torrentid] ." AND userid = ". $row_se[userid] ."");
}
/////////////////////////////////////////END SNATCHED/////////////////////////////////////////


Find:

$updateset = "times_completed = times_completed + 1";


Add After :

/////////////////////////////////////////SNATCHED/////////////////////////////////////////
    SQL_Query_exec("UPDATE snatched SET finished = 'yes', complete_date = $dt WHERE torrentid = $torrentid AND userid = $userid");
/////////////////////////////////////////END SNATCHED/////////////////////////////////////////


Find :

if (isset($self)){


Add After :

/////////////////////////////////////////SNATCHED/////////////////////////////////////////
    $res_s = SQL_Query_exec("SELECT uploaded, downloaded FROM snatched WHERE torrentid = $torrentid AND userid = $userid");
    $row_s = mysql_fetch_array($res_s);
    $downloaded2 = max(0, $downloaded - $self["downloaded"]);
    $uploaded2 = max(0, $uploaded - $self["uploaded"]);
    SQL_Query_exec("UPDATE snatched SET uploaded = uploaded + $uploaded2, port = $port, agent= " . sqlesc($agent) . ", last_action = $dt WHERE torrentid = $torrentid AND userid = $userid");
    SQL_Query_exec("UPDATE snatched SET downloaded = downloaded + $downloaded2 WHERE torrentid = $torrentid AND userid = $userid");
/////////////////////////////////////////END SNATCHED/////////////////////////////////////////


Find :

$updateset[] = "seeders = seeders - 1";
            $updateset[] = "leechers = leechers + 1";

        }

    }

} else {

Add After :

/////////////////////////////////////////SNATCHED/////////////////////////////////////////
    $res1_s = SQL_Query_exec("SELECT torrentid, userid FROM snatched WHERE torrentid = $torrentid AND userid = $userid") or err('Tracker error (120)');

    $row1_s = mysql_fetch_assoc($res1_s);

    if (!$row1_s)

    SQL_Query_exec("INSERT INTO snatched (torrentid, userid, port, start_date, agent,ip,peer_id) VALUES ($torrentid, $userid, $port, $dt, " . sqlesc($agent) . "," . sqlesc($ip) . "," . sqlesc($peer_id) . ")");

/////////////////////////////////////////END SNATCHED/////////////////////////////////////////

[size=18px]NOW YOU HAVE TWO CHOISES[/size]

[size=14px]For those who want to have the snatchedlist in torrents detail :[/size]

Edit and search torrents-details.php :

if ($CURUSER) {
        echo "<CENTER>";

        echo "<form name="comment" method="post" action="torrents-details.php?id=$row[id]&takecomment=yes">";

        echo "".textbbcode("comment","body")."<br>";

        echo "<input type="submit" class=bouton value="Add Comment" />";

        echo "</form></CENTER>";

    }

    end_frame();

Add After :

/////////////////////////////////////////SNATCHED/////////////////////////////////////////
begin_frame("Snatched List");

if ($CURUSER["edit_torrents"] == "yes"){

    $res3 = SQL_Query_exec("SELECT count(snatched.id) from snatched inner join users on snatched.userid = users.id inner join torrents on snatched.torrentid = torrents.id where snatched.torrentid =" . $_GET[id]) or die(mysql_error());

    $row = mysql_fetch_array($res3);

    $count = $row[0];

    $perpage = 15;

    list($pagertop, $pagerbottom, $limit) = pager($perpage, $count, $_SERVER["PHP_SELF"] . "?id=" . $_GET[id] . "&" );

    $res6 = SQL_Query_exec("SELECT name, category from torrents where id = $_GET[id]");

    $arr6 = mysql_fetch_assoc($res6);

    $dt = gmtime() - 180;

    $dt = sqlesc(get_date_time($dt));

    print("<table width=80% border=1 cellspacing=0 cellpadding=5 align=center>n");

    print("<tr><td class=table_table align=center colspan=11>Snatchdetails for: $s</td></tr>");

    print("<tr>");

    print("<td class=table_head align=center><b>Username</b></td>");

    print("<td class=table_head align=center><b>Uploaded</b></td>");

    print("<td class=table_head align=center><b>Downloaded</b></td>");

    print("<td class=table_head align=center><b>Ratio</b></td>");

    if ($CURUSER["edit_torrents"] == "yes"){

        print("<td class=table_head align=center><b>Connected</b></td>");

        print("<td class=table_head align=center><b>Stats</b></td>");

        }

        print("<td class=table_head align=center><b>Startdate</b></td>");

        print("<td class=table_head align=center><b>Enddate</b></td>");

        print("<td class=table_head align=center><b>Last action</b></td>");

        print("<td class=table_head align=center><b>Seed end</b></td>");

        print("<td class=table_head align=center><b>Seedtime</b></td>");

        print("<td class=table_head align=center><b>Finished</b></td>");

        print("<td class=table_head align=center><b>Seeding</b></td>");

        print("</tr>");

        $res = SQL_Query_exec("select users.id, users.username, users.uploaded, users.downloaded, snatched.userid, UNIX_TIMESTAMP(snatched.start_date) AS st, UNIX_TIMESTAMP(snatched.last_action) AS lt, UNIX_TIMESTAMP(snatched.complete_date) AS ct, UNIX_TIMESTAMP(snatched.seed_end) AS se from snatched inner join users on snatched.userid = users.id inner join torrents on snatched.torrentid = torrents.id where snatched.torrentid =" . $_GET[id] . " ORDER BY snatched.id desc $limit");

        while ($arr = mysql_fetch_assoc($res)) {

            $res2 = SQL_Query_exec("SELECT id,donated,title,enabled,warned,last_access FROM users WHERE id=$arr[userid]") or sqlerr(__FILE__, __LINE__);            $arr2 = mysql_fetch_assoc($res2);

            $res3 = SQL_Query_exec("SELECT * FROM peers WHERE torrent=$_GET[id] AND userid=$arr[userid]");

            $arr3 = mysql_fetch_assoc($res3);

            if ($arr["downloaded"] > 0) {

                $ratio = number_format($arr["uploaded"] / $arr["downloaded"], 3);

                $ratio = "<font color=" . get_ratio_color($ratio) . ">$ratio</font>";

                }elseif ($arr["uploaded"] > 0)

                $ratio = "Inf.";

                else$ratio = "---";

                $uploaded =mksize($arr["uploaded"]);

                $downloaded = mksize($arr["downloaded"]);

                $res5 = SQL_Query_exec("SELECT * FROM snatched WHERE torrentid = " . $_GET[id] . " AND userid = ". $arr[userid] ."");

                while ($arr5 = mysql_fetch_assoc($res5)) {

                    if ($arr5["downloaded"] > 0) {

                        $ratio1 = number_format($arr5["uploaded"] / $arr5["downloaded"], 3);

                        $ratio1 = "<font color=" . get_ratio_color($ratio1) . ">$ratio1</font>";

                        }elseif ($arr5["uploaded"] > 0)$ratio1 = "Inf.";

                        else

                        $ratio1 = "---";

                        $stime = mkprettytime($arr[se] - $arr[ct]);

                        print("<tr>");

                        print("<td class=table_col1 align=center><a href=account-details.php?id=$arr[userid]><b>$arr[username]</b></a></td>");

                        print("<td class=table_col2 align=center><font class=small><font color=green><u>Global:</u></font></font><br>$uploaded<br><font class=small><font color=green><u>Torrent:</u></font></font><br>". mksize($arr5[uploaded]) ."</td>");

                        print("<td class=table_col1 align=center><font class=small><font color=green><u>Global:</u></font></font><br>$downloaded<br><font class=small><font color=green><u>Torrent:</u></font></font><br>". mksize($arr5[downloaded]) ."</td>");

                        print("<td class=table_col2 align=center><font class=small><font color=green><u>Global:</u></font></font><br>$ratio<br><font class=small><font color=green><u>Torrent:</u></font></font><br>$ratio1</td>");

                        if ($CURUSER["edit_torrents"] == "yes"){

                        print("<td class=table_col1 align=center><font class=small><font color=green><u>Client:</u></font></font><br>". $arr5[agent] ."<br><font class=small><font color=green><u>Peer-ID:</u></font></font><br>". $arr5[peer_id] ."</td>");

                        print("<td class=table_col2 align=center><font class=small><font color=green><u>IP:</u></font></font><br>". $arr5[ip] ."<br><font class=small><font color=green><u>Port:</u></font></font><br>". $arr5[port] ."</td>");

                        }

                        print("<td class=table_col1 align=center>". $arr5[start_date] ."</td>");

                        print("<td class=table_col2 align=center>". $arr5[complete_date] ."</td>");

                        print("<td class=table_col1 align=center>". $arr5[last_action] ."</td>");

                        if ($arr3["seeder"] == "yes")

                        print("<td class=table_col2 align=center><font color=green>Waiting<br>for<br>stats</font></td>");

                        else

                        print("<td class=table_col1 align=center>". $arr5[seed_end] ."</td>");

                        if ($arr3["seeder"] == "yes")

                        print("<td class=table_col2 align=center><font color=green>Waiting<br>for<br>stats</font></td>");

                        else

                        print("<td class=table_col1 align=center>$stime</td>");

                        print("<td class=table_col2 align=center>" . ($arr5["finished"] == "yes" ? "<b><font color=green>Yes</font>" : "<font color=red>No</font></b>") . "</td>");

                        print("<td class=table_col1 align=center>" . ($arr3["seeder"] == "yes" ? "<b><font color=green>Yes</font>" : "<font color=red>No</font></b>") . "</td>");

                        print("</tr>n");

                        }

                        }

                        print("</table><br>n");

                        print("$pagertop");

                        }//// end ////

end_frame();

/////////////////////////////////////////END SNATCHED/////////////////////////////////////////

[size=14px]For Those who prefer see the snatchedlist in a new page (better for the server load)[/size]

Edit and search torrents-details.php :

echo "[<a href='torrents-edit.php?id=$row[id]&amp;returnto=" . urlencode($_SERVER["REQUEST_URI"]) . "'><b>".T_("EDIT_TORRENT")."</b></a>]";


Replace by :

        echo "&nbsp; <a href='torrents-edit.php?id=$row[id]'><img border='0' src='images/editer-detail-torrent.png' title='Éditer votre torrent !' width='40' height='40' /></a>&nbsp; &nbsp;";

        echo "&nbsp; <a href='snatched.php?tid=".$row['id']."'><img border='0' src='images/H&R.png' title='Votre H&R !' width='40' height='40' /></a>";

And create viewsnatches.php with the following code, and upload it to root folder :

<?php
require_once("backend/functions.php");

dbconn(false);

loggedinonly();

stdhead("Snatch Details");

$res3 = SQL_Query_exec("select count(snatched.id) from snatched inner join users on snatched.userid = users.id inner join torrents on snatched.torrentid = torrents.id where snatched.torrentid =" . $_GET[id]) or die(mysql_error());

$row = mysql_fetch_array($res3);

$count = $row[0];

$perpage = 50;

$res6 = SQL_Query_exec("select name, category from torrents where id = $_GET[id]");

$arr6 = mysql_fetch_assoc($res6);

$dt = gmtime() - 180;

$dt = sqlesc(get_date_time($dt));

list($pagertop, $pagerbottom, $limit) = pager($perpage, $count, $_SERVER["PHP_SELF"] . "?id=" . $_GET[id] . "&" );

begin_frame("Snatch Details for <a href=torrents-details.php?id=$_GET[id]><b>" . $arr6["name"] . "</b></a>");

print("<p align=center>The users at the top finished the download most recently</p>");

print("<table width=80% border=1 cellspacing=0 cellpadding=5 align=center class=table_table>n");

print("<tr><td class=table_table align=center colspan=11>Snatchdetails for: $arr6[name]</td></tr>");

print("<tr>");

print("<td class=table_head align=center><b>Username</b></td>");

print("<td class=table_head align=center><b>Uploaded</b></td>");

print("<td class=table_head align=center><b>Downloaded</b></td>");

print("<td class=table_head align=center><b>Ratio</b></td>");

if ($CURUSER["edit_torrents"] == "yes"){

print("<td class=table_head align=center><b>Connected</b></td>");

print("<td class=table_head align=center><b>Stats</b></td>");

}

print("<td class=table_head align=center><b>Startdate</b></td>");

print("<td class=table_head align=center><b>Enddate</b></td>");

print("<td class=table_head align=center><b>Last action</b></td>");

print("<td class=table_head align=center><b>Seed end</b></td>");

print("<td class=table_head align=center><b>Seedtime</b></td>");

print("<td class=table_head align=center><b>Finished</b></td>");

print("<td class=table_head align=center><b>Seeding</b></td>");

print("</tr>");

$res = SQL_Query_exec("select users.id, users.username, users.uploaded, users.downloaded, snatched.userid, UNIX_TIMESTAMP(snatched.start_date) AS st, UNIX_TIMESTAMP(snatched.last_action) AS lt, UNIX_TIMESTAMP(snatched.complete_date) AS ct, UNIX_TIMESTAMP(snatched.seed_end) AS se from snatched inner join users on snatched.userid = users.id inner join torrents on snatched.torrentid = torrents.id where snatched.torrentid =" . $_GET[id] . " ORDER BY snatched.id desc $limit");

while ($arr = mysql_fetch_assoc($res)) {

$res2 = SQL_Query_exec("SELECT id,donated,title,enabled,warned,last_access FROM users WHERE id=$arr[userid]") or sqlerr(__FILE__, __LINE__);

$arr2 = mysql_fetch_assoc($res2);

$res3 = SQL_Query_exec("SELECT * FROM peers WHERE torrent=$_GET[id] AND userid=$arr[userid]");

$arr3 = mysql_fetch_assoc($res3);

if ($arr["downloaded"] > 0) {    

$ratio = number_format($arr["uploaded"] / $arr["downloaded"], 3);    

$ratio = "<font color=" . get_ratio_color($ratio) . ">$ratio</font>";

} else    if ($arr["uploaded"] > 0)     $ratio = "Inf.";

else     $ratio = "---";

$uploaded =mksize($arr["uploaded"]);

$downloaded = mksize($arr["downloaded"]);

$res5 = SQL_Query_exec("SELECT * FROM snatched WHERE torrentid = " . $_GET[id] . " AND userid = ". $arr[userid] ."");

while ($arr5 = mysql_fetch_assoc($res5)) {    

if ($arr5["downloaded"] > 0) {    

$ratio1 = number_format($arr5["uploaded"] / $arr5["downloaded"], 3);    

$ratio1 = "<font color=" . get_ratio_color($ratio1) . ">$ratio1</font>";    

}    else     if ($arr5["uploaded"] > 0)        $ratio1 = "Inf.";

else        $ratio1 = "---";

$stime = mkprettytime($arr[se] - $arr[ct]);

print("<tr>");    

print("<td class=table_col1 align=center><a href=account-details.php?id=$arr[userid]><b>$arr[username]</b></a></td>");

print("<td class=table_col2 align=center><font class=small><font color=green><u>Global:</u></font></font><br>$uploaded<br><font class=small><font color=green><u>Torrent:</u></font></font><br>". mksize($arr5[uploaded]) ."</td>");

print("<td class=table_col1 align=center><font class=small><font color=green><u>Global:</u></font></font><br>$downloaded<br><font class=small><font color=green><u>Torrent:</u></font></font><br>". mksize($arr5[downloaded]) ."</td>");

print("<td class=table_col2 align=center><font class=small><font color=green><u>Global:</u></font></font><br>$ratio<br><font class=small><font color=green><u>Torrent:</u></font></font><br>$ratio1</td>");

if ($CURUSER["edit_torrents"] == "yes"){    

print("<td class=table_col1 align=center><font class=small><font color=green><u>Client:</u></font></font><br>". $arr5[agent] ."<br><font class=small><font color=green><u>Peer-ID:</u></font></font><br>". $arr5[peer_id] ."</td>");

print("<td class=table_col2 align=center><font class=small><font color=green><u>IP:</u></font></font><br>". $arr5[ip] ."<br><font class=small><font color=green><u>Port:</u></font></font><br>". $arr5[port] ."</td>");

}    

print("<td class=table_col1 align=center>". $arr5[start_date] ."</td>");

print("<td class=table_col2 align=center>". $arr5[complete_date] ."</td>");

print("<td class=table_col1 align=center>". $arr5[last_action] ."</td>");

if ($arr3["seeder"] == "yes")

print("<td class=table_col2 align=center><font color=green>Waiting<br>for<br>stats</font></td>");

else

print("<td class=table_col1 align=center>". $arr5[seed_end] ."</td>");

if ($arr3["seeder"] == "yes")

print("<td class=table_col2 align=center><font color=green>Waiting<br>for<br>stats</font></td>");

else

print("<td class=table_col1 align=center>$stime</td>");

print("<td class=table_col2 align=center>" . ($arr5["finished"] == "yes" ? "<b><font color=green>Yes</font>" : "<font color=red>No</font></b>") . "</td>");

print("<td class=table_col1 align=center>" . ($arr3["seeder"] == "yes" ? "<b><font color=green>Yes</font>" : "<font color=red>No</font></b>") . "</td>");

print("</tr>n");

print("</tr>");

}

}

print("</table>");

print("$pagerbottom");

end_frame();

stdfoot();

?>

Now Edit account-details.php

And where do you want to display the snatched List put this code :

//////////////////////////////////////SNATCHED/////////////////////////////////
$r = SQL_Query_exec("SELECT snatched.torrentid, snatched.uploaded, snatched.downloaded, snatched.complete_date, snatched.last_action, snatched.start_date, torrents.seeders, torrents.leechers, UNIX_TIMESTAMP(snatched.start_date) AS st, UNIX_TIMESTAMP(snatched.last_action) AS lt, UNIX_TIMESTAMP(snatched.complete_date) AS ct, snatched.start_date FROM snatched JOIN torrents ON torrents.id = snatched.torrentid WHERE snatched.finished='yes' AND userid=$id ORDER BY last_action") or sqlerr();

$completed = "<table class=main border=1 cellspacing=0 cellpadding=3>n" ."<tr>n" ."<td class=table_head align=center>Cat</td>n" ."<td class=table_head align=center>Torrent</td>n" ."<td class=table_head align=center>Upl.</td>n" ."<td class=table_head align=center>Downl.</td>n" ."<td class=table_head align=center>Startdate</td>n" ."<td class=table_head align=center>Enddate</td>n" ."<td class=table_head align=center>Last action</td>n" ."<td class=table_head align=center>Leechtime</td>n" ."<td class=table_head align=center>Seeder</td>n" ."<td class=table_head align=center>Leecher</td>n" ."</tr>n";

while ($a = mysql_fetch_assoc($r)) {

    $r1 = SQL_Query_exec("SELECT * FROM torrents WHERE id = ". $a[torrentid] ."") or sqlerr(__FILE__, __LINE__);

    $a1 = mysql_fetch_assoc($r1);

    $r2 = SQL_Query_exec("SELECT name, image FROM categories WHERE id = ". $a1[category] ."") or sqlerr(__FILE__, __LINE__);

    $a2 = mysql_fetch_assoc($r2);

    if ($a["downloaded"] > 0) {

        $ratio = number_format($a["uploaded"] / $a["downloaded"], 3);

        $ratio = "<font color=" . get_ratio_color($ratio) . ">$ratio</font>";

        }elseif ($a["uploaded"] > 0)

        $ratio = "Inf.";

        else

        $ratio = "---";

        $uploaded =mksize($a["uploaded"]);

        $downloaded = mksize($a["downloaded"]);

        $cat = "<img src="/images/categories/$a2[image]" alt="$a2[name]">";

        $starttime = $a['start_date'];

        $endtime = $a['complete_date'];

        $last_action = $a['last_action'];

        $leechtime = mkprettytime($a[ct] - $a[st]);

        $seedtime = mkprettytime($a[lt] - $a[ct]);

        $td = mysql_query("SELECT * FROM torrents WHERE id = ". $a[torrentid] ."");

        while ($tdl = mysql_fetch_assoc($td)) {

            $timesdownloaded = $a["downloaded"] / $tdl["size"];

        }

        $smallname3 =substr(htmlspecialchars($a1["name"]) , 0, 20);

        if ($smallname3 != htmlspecialchars($a1["name"])) {

            $smallname3 .= '...';

            }

            $completed .= "<tr>n" ."<td class=table_col1 align=center><a href=torrents.php?cat=". $a1[category] .">$cat</a></td>n" ."<td class=table_col2><a href=torrents-details.php?id=". $a[torrentid] ."><b>$smallname3</b></a></td>n" ."<td class=table_col1 align=center>$uploaded</td>n" ."<td class=table_col2 align=center>$downloaded</td>n" ."<td class=table_col1 align=center>$starttime</td>n" ."<td class=table_col2 align=center>$endtime</td>n" ."<td class=table_col1 align=center>$last_action</td>n" ."<td class=table_col2 align=center>$leechtime</td>n" ."<td class=table_col1 align=center>". $a[seeders] ."</td>n" ."<td class=table_col1 align=center>". $a[leechers] ."</td>n" ."</tr>n";

            }

            $completed .= "</table>";

            $res_tor_c = SQL_Query_exec("SELECT id FROM snatched WHERE userid = ". $user[id] ." AND finished='yes'");

$tor_c = mysql_num_rows($res_tor_c);

if ($user["id"] == $CURUSER["id"] || $CURUSER["edit_torrents"]=="yes") {

if ($completed)

begin_frame("User's Snatched Torrents");

echo "<b>Completed torrents:</b>&nbsp;<img src='images/plus.gif' id='pic1' onclick='klappe_torrent(1)'>&nbsp;&nbsp;&nbsp;&nbsp;<b>$tor_c Completed Torrent(s)</b><div id='k1' style='display: none;'>$completed</div>";

end_frame();

}

//////////////////////////////////////////////////////////////////////////////

Now the cleaning part..

Edit and search ../backend/functions.php :

SQL_Query_exec("DELETE FROM torrents WHERE id = $id");


Add After :

SQL_Query_exec("DELETE FROM snatched WHERE torrentid = $id");


Find :

SQL_Query_exec("DELETE FROM users WHERE id = $userid");


Add Before :

SQL_Query_exec("DELETE FROM snatched WHERE userid = $userid");


Upload attached file to root folder.

NOTE : This is a backup to me that comes from ValVanDeCamp whom I thank.
Unknown User
2015-03-30 15:01:50
[size=18px]The old Snatchlist mod was lost and you do not can install this mod without it...[/size]

[size=18px]So I added Snatchlist again, fully optimized.[/size]

[size=18px]The link is:[/size] [size=18px][url="http://devscorner.xyz/topic/18257-snatchlist"]http://devscorner.xyz/topic/18257-snatchlist[/url][/size]
2015-03-30 22:43:12
"BigMax1, post: 93803":
[size=18px]The old Snatchlist mod was lost and you do not can install this mod without it...[/size]

[size=18px]So I added Snatchlist again, fully optimized.[/size]

[size=18px]The link is:[/size] [size=18px][url="http://devscorner.xyz/topic/18257-snatchlist"]http://devscorner.xyz/topic/18257-snatchlist[/url][/size]

exact!  :D
Unknown User
2015-04-06 13:23:43
Hi, I installed the version of the first topic, everything works fine except that I have not received mp if I delete the file before the time, and the box hit and always on no, any idea?( the preview is just a sample for my problem) thank you

hnr.jpg
hnr.jpg
2015-04-06 15:26:19
"mitch84, post: 93846":

Hi, I installed the version of the first topic, everything works fine except that I have not received mp if I delete the file before the time, and the box hit and always on no, any idea?( the preview is just a sample for my problem) thank you
Check your config !
Unknown User
2015-04-06 15:27:42
already checked
2015-04-06 15:32:41
"mitch84, post: 93848":

already checked
While waiting for your config and your system goes into operation as you configure your config.
Unknown User
2018-02-13 03:38:16
Please Help folling Errors from the Cleanup

Warning: include_once(Net/SMTP.php): failed to open stream: No such file or directory in /usr/share/php/Mail/smtp.php on line 365

Warning: include_once(): Failed opening 'Net/SMTP.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /usr/share/php/Mail/smtp.php on line 365

Warning: require_once(backend/Net_SMTP.php): failed to open stream: No such file or directory in /home/projekte/seite_neu/backend/functions.php on line 1892

Fatal error: require_once(): Failed opening required 'backend/Net_SMTP.php' (include_path='.:/usr/share/php:/usr/share/pear') in /home/projekte/seite_neu/backend/functions.php on line 1892
2018-02-13 13:11:52
try posting in correct section
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: 2
  • Members: 0
  • Guests online: 2
  • Comments: 3
  • Messages: 1,728