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

Unknown User
2013-03-21 15:13:00
This is a wrong place?



}else{



   $elapsed = ($self['seeder'] == 'yes') ? (gmtime() - $self['ez']) : 0;

   $upthis = max(0, $uploaded - $self["uploaded"]);

   $downthis = max(0, $downloaded - $self["downloaded"]);



   if (($upthis > 0 || $downthis > 0 || $elapsed > 0) && is_valid_id($userid)){ // LIVE STATS!)



If is so, where should be placed?
Unknown User
2013-03-21 22:57:56
looks right.. i dont get it unless you are missing ez var farther up..

$peerfields = "seeder, UNIX_TIMESTAMP(last_action) AS ez, peer_id, ip, port, uploaded, downloaded, userid, passkey"; //peers details to get
or something along those lines..  I made an live seedtime display on my sites peers and it seems to be right..

Unknown User
2013-03-22 05:39:31
Thanks ArcticWolf, this line is OK but for me not works properly and I don't know why...

I think I solved the problem in another way. Because at every `$event == "stopped"` is added to `ltime` the value of `$site_config ['announce_interval']`, this value must to be subtracted back from `ltime`.

Into announce.php below this line:



if ($event == "stopped") { // UPDATE "STOPPED" EVENT

I added this new line:




SQL_Query_exec("UPDATE LOW_PRIORITY `snatched` SET `ltime` = `ltime` - '".$site_config['announce_interval']."' WHERE `tid` = '$torrentid' AND `uid` = '$userid'");




After the tests that I've done show that it works correctly now but I'll be more confident after a few days.

Please tell your opinion about this change.
Unknown User
2013-03-22 11:19:42
@azuris his works for datalife engine :)
Unknown User
2013-03-25 04:14:34
"Tiloup, post: 89363":
Here the text information for your members to add to your FAQ  :rolleyes:

French...

<b><u>Qu'est-ce que le Hit And Run ?</u></b>



L'expression « Hit And Run » signifie « coupable de délit de fuite ».

<br /><br />

C'est l'action qui consiste à retirer prématurément un téléchargement terminé de son client Bittorrent.

<br />

Ce geste est proscrit. Tout téléchargement doit être maintenu en partage pour une période allant de un à plusieurs jours, selon vos statistiques de partage.

<br />

Tout manquement abusif de cette règle pourrait entraîner une suspension temporaire de votre droit de téléchargement ou une suspension permanente de votre compte.

<br />

[/code]


j'ai déjà lu cà quelque part......

ah oui, ftdb...........
Unknown User
2013-03-25 10:11:58
[size=18px]A new "Warned Users" code especially for this system[/size]



Into admincp.php replace the warned code with this one:

#======================================================================#
# 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&amp;');

$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">Added</th>
<th class="table_head">Last Access</th>
<th class="table_head">Warnings</th>
<th class="table_head"><font color="#FF2200"><b>H</b><small>&</small><b>R</b></font></th>
<? 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>No</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();
}
Unknown User
2013-03-26 07:00:17
"BigMax1, post: 89571":
Into backend/functions.php replace the warned code with this one:


I think you mean admincp.php ;)
Unknown User
2013-03-26 17:04:41
You're right  :lol:   I corrected.
Unknown User
2013-03-27 15:25:26
nice one bigmax  ;)

i don't have time to update first post now

will do it soon with all addon there's here

i also find an issue, when user is warned for low ratio, he can't be warn for h&r and if he's warned for h&r, he can't be warn for low ratio

i already fix it but don't have time to write it here for now, so here is my cleanup.php

changes are in low ratio warn and unwarn, warn and unwarn for other reason and in h&r part

don't use the file like that it's heavy modded

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=6664"]cleanup.php[/url]
cleanup.php
Download
Unknown User
2013-03-28 10:00:46
By cons I do not know if it is the same thing but when I was 10 hit and runners Get a single one other MP are not warned not mp

French

Par contre je sais pas si vous c'est la meme chose mais quand j'ai 10 hit and runners 1 seul reçois un MP les autres ne sont pas avertis pas mp
Unknown User
2013-03-29 02:48:21
sorry didnt mean to kill this thread with my question :rolleyes:
Unknown User
2013-04-02 07:27:16
How to file cleanup.php for the donor and the staff members do not be banned?
Unknown User
2013-04-03 17:11:21
There is a concern with the MP is not stopped to receive during my test I can get about 100 a day

French

Il y a un soucis avec les MP on arrete pas d'en recevoir lors de mes essai je peux en avoir 100 sur une journée
Unknown User
2013-04-04 11:11:53
use the last cleanup i post
Unknown User
2013-04-04 14:47:00
Yes this is the one I took, but I always get the MP has at least put an option in the fields for example, if users have already received an MP is sent over.
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