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

ok, I have rifared the modifications and this time it has worked. probably I had mistaken something. the problems now are 2:

- I do not visualize the video. it follows screenshot, (the link inserted is corrected like from example)

- It lacks edit in torrent-edit. i can't modify/verify the youtube url!



thanks.
it is an interesting thing, but us it must be some problem. I have brought all the indicated modifications, but on the pages interested I do not visualize differences. As an example in torrent-upload I do not visualize the field in order to insert the link of youtube, and in torrent-details I do not see the video.
ok thanx..

I have understood only now as the system to points works. I have a question, as I can visualize in login_block the value of $bonuspay and $speeduu? thanks.
no..

target=_top = all page

not in the shoutbox frame!
little modify:

find:

print("<font color=#FF0000 size=3><B><center><blink>You Got A New PM </font>[<a href=mailbox.php?inbox class=link2 target=_blank><font color=#FF0000> $unreadmail </font></a>]</blink></center></b></a></font>&nbsp;&nbsp;");
replace with:


print("<font color=#FF0000 size=3><B><center><blink>You Got A New PM </font>[<a href=mailbox.php?inbox class=link2 target=_top><font color=#FF0000> $unreadmail </font></a>]</blink></center></b></a></font>&nbsp;&nbsp;");



now, your message is open in same windows.

first in a new page... no good ;)
today have a big problem...

this is my cleanup:

<?php

function do_cleanup() {

global $site_config;



//LOCAL TORRENTS - GET PEERS DATA AND UPDATE BROWSE STATS

$torrents = array();

$res = mysql_query("SELECT torrent, seeder, COUNT(*) AS c FROM peers GROUP BY torrent, seeder");

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

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

$key = "seeders";

else

$key = "leechers";

$torrents[$row["torrent"]][$key] = $row["c"];

}



$fields = explode(":", "comments:leechers:seeders");

$res = mysql_query("SELECT id, seeders, leechers FROM torrents WHERE external !='yes'");

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

$id = $row["id"];

$torr = $torrents[$id];

foreach ($fields as $field) {

if (!isset($torr[$field]))

$torr[$field] = 0;

}

$update = array();

foreach ($fields as $field) {

if ($torr[$field] != $row[$field])

$update[] = "$field = " . $torr[$field];

}

if (count($update))

mysql_query("UPDATE torrents SET " . implode(",", $update) . " WHERE id = $id AND external !='yes'");

}



// DELETE DOUBLE PEERS, (Toglie i peers morti da 1ora=3600 - 30min=1800)

// mysql_query("DELETE FROM peers WHERE ".gmtime()."-UNIX_TIMESTAMP(last_action) >= 1800");



// DELETE IP HISTORY, (Rimuove gli IP inutilizzati da 14 gg)

// mysql_query("DELETE FROM iplog WHERE lastused >= FROM_UNIXTIME(".(gmtime() - 1209600).")");



//LOCAL TORRENTS - MAKE NON-ACTIVE/OLD TORRENTS INVISIBLE

$deadtime = gmtime() - $site_config["max_dead_torrent_time"];

mysql_query("UPDATE torrents SET visible='no' WHERE visible='yes' AND last_action < FROM_UNIXTIME($deadtime) AND external !='yes'");



//PROMOTE USERS TO UPLOADER

//IF YOUR DEFAULT USERS CLASS IS NOT 1, CHANGE IT

//IF YOUR DEFAULT POWER USER CLASS IS NOT 2, CHANGE IT

//10 GB = 10737418240

//1 GB = 1073741824

//This variable containes the needed amount of uploaded data

$up = 134217728000;

mysql_query("UPDATE users SET class = '2' WHERE uploaded > '$up' AND class = '1'");





/////////Update Seederbonus by speed/////////

/// MOD from TBDEV - dottor

/// edited and adapted by MasterRoot

/// www.maniatorrent.org

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

$res = mysql_query("SELECT DISTINCT userid FROM peers WHERE seeder = 'yes'") or sqlerr(__FILE__, __LINE__);



if (mysql_num_rows($res) > 0)

{

while ($arr = mysql_fetch_assoc($res))

{

$work = mysql_query("select count(*) from peers WHERE seeder ='yes' AND userid = $arr[userid]");

$row_count = mysql_result($work,0,"count(*)");

$speedu = mysql_query("SELECT sum(((p.uploaded - p.uploadoffset )) / (unix_timestamp(p.last_action) - unix_timestamp(p.started))) AS speed FROM peers p INNER JOIN users u ON p.userid=u.id WHERE u.id=$arr[userid]");



if($speeduu > "100.00")

$bonuspay="0.750"; //// if over 100kbs = 3 per hr

elseif($speeduu > "75.00")

$bonuspay="0.500"; //// if over 75 but less than 100 = 2.0 per hr

elseif($speeduu > "50.00")

$bonuspay="0.375"; //// if over 50kbs but under 75kbs = 1.5 per hr

elseif($speeduu > "30.00")

$bonuspay="0.250"; /// if over 30kbs but under 50 kbs = 1.0 an hr

elseif($speeduu > "15.00")

$bonuspay="0.1875"; //// if over 15 kbs but less than 30kbs = .75 per hr

elseif($speeduu > "1.00")

$bonuspay="0.125"; //// if over 1kbs but less than 15kbs = .5 per hr

elseif($speeduu < "1.00")

$bonuspay="0.0225"; //// less than kb/s = 1/4 per hr





mysql_query("UPDATE users SET seedbonus = seedbonus+$bonuspay*$row_count WHERE id = $arr[userid]") or sqlerr(__FILE__, __LINE__);

}

}

/////////End Update Seederbonus by speed/////////

/// MOD from TBDEV - dottor

/// edited and adapted by MasterRoot

/// www.maniatorrent.org

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



//DELETE OLD NON-ACTIVE PEERS

$res = mysql_query("DELETE FROM peers WHERE ".gmtime()."-UNIX_TIMESTAMP(last_action) >= 1800");



//DELETE PENDING USER ACCOUNTS OVER TIMOUT AGE

$deadtime = gmtime() - $site_config["signup_timeout"];

mysql_query("DELETE FROM users WHERE status = 'pending' AND added < FROM_UNIXTIME($deadtime)");



//LEECHWARN USERS WITH LOW RATIO



if ($site_config["ratiowarn_enable"]){

$minratio = $site_config["ratiowarn_minratio"];

$downloaded = $site_config["ratiowarn_mingigs"]*1024*1024*1024;

$length = $site_config["ratiowarn_daystowarn"];



//ADD WARNING

$res = mysql_query("SELECT id,username FROM users WHERE class = 1 AND warned = 'no' AND enabled='yes' AND uploaded / downloaded < $minratio AND downloaded >= $downloaded");



if (mysql_num_rows($res) > 0){

$timenow = get_date_time();

$reason = "You have been warned because of having low ratio. You need to get a ".$minratio." before next ".$length." days or your account may be banned.";



$expiretime = gmdate("Y-m-d H:i:s", gmtime() + (86400 * $length));



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

mysql_query("INSERT INTO warnings (userid, reason, added, expiry, warnedby, type) VALUES ('".$arr["id"]."','".$reason."','".$timenow."','".$expiretime."','0','Poor Ratio')");

mysql_query("UPDATE users SET warned='yes' WHERE id='".$arr["id"]."'");

mysql_query("INSERT INTO messages (sender, receiver, added, msg, poster) VALUES ('0', '".$arr["id"]."', '".$timenow."', '".$reason."', '0')");

write_log("Auto Leech warning has been <B>added</B> for: <a href=account-details.php?id=".$arr["id"].">".$arr["username"]."</a>");

}

}



//REMOVE WARNING

$res1 = mysql_query("SELECT id,username FROM users WHERE warned = 'yes' AND enabled='yes' AND uploaded / downloaded >= $minratio AND downloaded >= $downloaded");



if (mysql_num_rows($res1) > 0){

$timenow = get_date_time();

$reason = "Your warning of low ratio has been removed. We highly recommend you to keep a your ratio up to not be warned again.\n";



while ($arr1 = mysql_fetch_assoc($res1)){

write_log("Auto Leech warning has been removed for: <a href=account-details.php?id=".$arr1["id"].">".$arr1["username"]."</a>");



mysql_query("UPDATE users SET warned = 'no' WHERE id = '".$arr1["id"]."'");

mysql_query("UPDATE warnings SET expiry = '".$timenow."' WHERE userid = '".$arr1["id"]."'");

mysql_query("INSERT INTO messages (sender, receiver, added, msg, poster) VALUES ('0', '".$arr1["id"]."', '".$timenow."', '".$reason."', '0')");

}

}



//BAN WARNED USERS

$res = mysql_query("SELECT id,username FROM users WHERE class = 1 AND enabled='yes' AND warned = 'yes' AND uploaded / downloaded < $minratio AND downloaded >= $downloaded");



if (mysql_num_rows($res) > 0){

$timenow = get_date_time();

$expires = (86400 * $length);



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

$r = mysql_query("SELECT id, UNIX_TIMESTAMP(expiry) as expiry FROM warnings WHERE userid=$arr[id]");

$row = mysql_fetch_assoc($r);



if (gmtime() - $row["expiry"] >= 0) {

mysql_query("UPDATE users SET enabled='no', warned='no' WHERE id='".$arr["id"]."'");

write_log("User <a href=account-details.php?id=".$arr["id"].">".$arr["username"]."</a> has been banned (Auto Leech warning).");

}

}

}



}//check if warning system is on

//END//



//TOTAL SEED TIME

$res = mysql_query("SELECT DISTINCT userid FROM peers WHERE seeder = 'yes'") or sqlerr(__FILE__, __LINE__);

  if (mysql_num_rows($res) > 0)

  {

  while ($arr = mysql_fetch_assoc($res))

  {

  mysql_query("UPDATE users SET seed_time = seed_time+$site_config[autoclean_interval]");

  }

  }





//OPTIMISE TABLES

mysql_query("OPTIMIZE TABLE `peers` , `torrents` , `tasks` , `guests` , `users` , `messages`; ");



}//end func



?>


every time i force a clean, my seed point add + 0.3

and not count a speed!

if i seed to 1k i force clean and my point +0.3

if i seed to 60k i froce clean and my point +0.3

if i force a clean 3 times my point +0.3 +0.3 +0.3 everytime!!!

HELP!!!
mmmm i have try to add this mod today.... work fine and no syntax error..

a lot probably the other time I have mistaken something
sorry, my mod say:

"'Sorry you do not have the rights to access this page!'"

when try to send a PM at an user

mod & smod can't interact with this page
i use this code:

<?
if ($CURUSER){

begin_block("Ultime 72ore");

?>

<style type="text/css">

#marqueecontainer{

position: relative;

/*width: 200px; marquee width */

height: 400px; /*marquee height */

background-color: transparent;

overflow: hidden;

/*border: 3px solid orange;*/

padding: 2px;

padding-left: 4px;

}

</style>

<script type="text/javascript">

/***********************************************

* Cross browser Marquee II-
OK! thanx!

i try to insert this code, i wait for my mod/smod responce...

i tell you if this work!
i need help to delete in ip history table, all ip more old of 15 days..

i would insert in cleanup.php a similar code:

mysql_query("DELETE FROM iplog WHERE lastused >= 1296000");


can you help me to find a correct syntax to indicate "lastused >= 15 days" ?

thanx
i use modcp.php and mod.php pannel, for mod and supermod..

i must add anything at this two page?
Add in admincp.php:

<td align="center"><a href=leechers.php><img src="images/admin/watchedusers.gif" border=0 width=32 height=32><BR>User Bad Ratio Alert</a><BR></td>


Use your prefer image change this: images/admin/watchedusers.gif

-------------------------------------------------------------------------------------------

little problem: my mod and smod, can't interact with leecher.php page.

"you don't have right"

where i can find a class check to modify?

thanx
if you log-out receive a syntax error in shoutbox
good work!

but i have set to 8px the [e]

thanx!
yes, work very well!
yes, an alternative is:

insert in cleanup.php

mysql_query("DELETE FROM peers WHERE ".gmtime()."-UNIX_TIMESTAMP(last_action) >= 10800");


code from: TorrentialStorm

personally i have set the time at 3600 seconds (1 hours)
if you have a double o triple peers, or if you want reset ALL peer (seeder e leecher) for any reason, you can install this shortcut in your adminCP

in admincp-php find:

<td align="center"><a href=admincp.php?action=clearshoutbox><img src="images/admin/forums.gif" border=0 width=32 height=32><BR>Clear Shoutbox</a><BR></td>
add after:


<td align="center"><a href=admincp.php?action=delpeers><img src="images/admin/disabledaccounts.gif" border=0 width=32 height=32><BR>Truncate Peers</a><BR></td>





at the end of page, but first by:



?>





add:



#======================================================================#

# TRUNCATE TABLE 'peers'

#======================================================================#

if ($action=="delpeers"){

stdhead("RESET PEERS");

navmenu();

begin_frame("Reset peers", center);

  if ($yes == "yes") {

  mysql_query("TRUNCATE TABLE `peers`");

  print("<font size=2 color=red><center>Success, All peers as been reset!</b></center></font><br>\n");

  } else {

  echo "Are you sure you want to RESET ALL PEERS?<br>";

  echo "<a href='admincp.php?action=delpeers&yes=yes'><b>Yes</b></a>";

}



end_frame();

stdfoot();

}



i hope this can be usefull
i can have a code to ADD/REMOVE/MODIFY

for this hack?

I would want to integrate with my pages but without to replace them
I have carried out several tests, but to my opinion something does not work. CleanTime, in the config file, must be set up various from default?it is any formulation detail to set?

i have tested with 2 pc's and 2 account

with a tranfer to 80k, in 5 hour, only in one torrent, i have take only 0.3 seed point
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