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

Error sql — 2023-07-24 09:36:04 in v3 Support
@Spiritblue try this announce,
First post updated , there was some issues on it
It is working at least for me i have just shared the code thank you
This is just an mod that auto demote uploaders if they didnt upload any torrents in 2 days

add in cleanup before last ?>
// Demote Uploaders if NO UPLOADS in 7 days
$maxdt = get_date_time(gmtime() - 86400 * 7);
$maxdt = sqlesc($maxdt);

$res = SQL_Query_exec("
   SELECT u.id, u.username, u.modcomment, COUNT(t.owner) AS upload_count
   FROM users u
   LEFT JOIN torrents t ON t.owner = u.id AND t.added > $maxdt
   WHERE u.class = 9
   GROUP BY u.id, u.username
", [$maxdt]);

if (mysqli_num_rows($res) > 0) {
   $dt = get_date_time();
   $msg = "Unfortunately, you have been demoted from UPLOADER to Flat Cested due to not uploading any torrents in the last 7 days.";
   $msg = sqlesc($msg);

   while ($arr = mysqli_fetch_assoc($res)) {
       $userId = $arr['id'];
       $username = $arr['username'];
       $modcomment = $arr['modcomment'];
       $uploadCount = $arr['upload_count'];

       if ($uploadCount == 0) {
           $modcomment = gmdate("Y-m-d") . " - Has been demoted from Uploader to Flat Cested. No uploads in 7 days\n " . $modcomment;
           $modcomment = sqlesc($modcomment);

           SQL_Query_exec("UPDATE users SET modcomment = modcomment, class = 1 WHERE id = $userId", [$modcomment, $userId]);
           SQL_Query_exec("INSERT INTO messages (sender, receiver, added, msg, poster) VALUES (0, $userId, $dt, $msg, 0)", [$userId, $dt, $msg]);

           write_log("User <a href=account-details.php?id=$userId>$username</a> was automatically demoted from Uploader to Flat Cested by the system. Reason: No uploads for 7 Days");
       }
   }
}


change u.class = 9 with your uploader class
change $maxdt = get_date_time(gmtime() - 86400*7); with how many days you want to give for uploaders .
You can add warn
i think  you have to add in that query all the fields that youhave in torrents table, i mean notall but check the db with the query and try to add one by oneand see witch one was the problem. If in that query is the problem
When i click on forum from index it just sends me to that forum topic not the last post in that topic.

Debts of seed — 2023-06-18 00:23:40 in v2.08 Support
ill put the code here maybe someone needs it . If error just ping me :P

This mod shows how much you have to make to one torrent according to your site requirements (ex: Ratio 1:1 or seed time in this case 4 days):  

Need snatchlist mod https://torrenttrader.uk/post/9959

in blocks/login_block.php

after
echo "<tr><td style='font:bold 12px Tahoma' class=table_head width=100% align=left><img src='images/lb-profile.png' border=0> <a href=account.php>".T_("YOUR_PROFILE")."</a></td></tr>";


add:
echo "<tr><td style='font:bold 12px Tahoma' class=table_head width=100% align=left><img src='images/lb-debt.png' border=0> <a href=debts.php>".T_("DEBTS_OF_SEEDING")."</a></td></tr>";


in language older add:


$LANG["DEBTS_OF_SEEDING"] = "Your Debt of Seed";
$LANG["DEBT_OF_SEED"] = "Debt of Seed";
$LANG["DEBT_OF_SEED_FOR"] = "Debt of Seed for: ";
$LANG["DEBTS_OF_SEEDING_MESSAGE"] = "This page displays all downloaded torrents which did not meet the minimum seeding limit</b>.
<div style='margin-top:5px'>These torrents represents your debt of seeding.</div></br>You need to keep seed them not to get Hit and Run Warn!";


If your requriments are set to 48 hours(2 days) of seed just modify the line in debts.php:
WHERE (ltime < '345590' || snatched.uload > snatched.dload) AND users.status = 'confirmed' AND torrents.banned = 'no' AND snatched.uid = '$uid' 


should be like this:
WHERE (ltime < '172800' || snatched.uload > snatched.dload) AND users.status = 'confirmed' AND torrents.banned = 'no' AND snatched.uid = '$uid' 


 

and the attached file upload to /root
Debts of seed — 2023-06-17 18:52:47 in v2.08 Support
@STorrents no it just show the debts (if the user does not meet the requirements ex. ratio 1:1 or seedtime 48 H it will show it there, if the requrements are meet then it will disapear ).
i mean thats how i did it
Debts of seed — 2023-06-16 19:34:24 in v2.08 Support
@ Botanicar How did you manage DEBT page? i get Sorry nothing to show this time... even if i know that i have Thanx in advance or can you share your debt.php?
 Edit: i have did it thank you
Sql inject — 2023-06-11 18:16:47 in v3 Support
yeps looks like it stop it in a way , thank you
Sql inject — 2023-06-11 11:01:53 in v3 Support
i think i need the function for
$crypt = new Cryptage();
Sql inject — 2023-06-10 13:13:33 in v3 Support
I will try thank you
Sql inject — 2023-06-10 08:30:29 in v3 Support
3.0 Micro Edition
Sql inject — 2023-06-10 04:17:16 in v3 Support
Looks like in invite.php there is a code that gets sql inject . I dont have much information, only that he can find passwords of users through invite page.
Thats all that he said to me thanks in advance
Server Load help — 2023-05-22 05:46:55 in General Chat

find in php.ini and find disable_funcions make the line like this
disable_functions = system,passthru,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname

reboot apache/server
make sure mod security is off
and upload or get the code from block and put it where you want

P.S. I have made it for System information to show only theDistribution name



Seed Time — 2023-05-16 21:29:49 in v2.08 Support
i saw this at me also  . If you give a FORCE CLEAN it adds on all users the clean interval what i assume is the default one. So every time you give foce clean itwill add at least 30 mins in seed time.
In my side i did notfind the issue . i assume it is on snatched file
Thanks Botanicar like this is working , i was thinking that you made it in mybonus page, there when i add it and click exchange says that i didnt fill the id of torrent but bonus points are dededuted.
the rst it is working i can use bonus points when that apears that i have a H&R .
Thank you aniway
Can you share it?? If no i understand thank you
@Botanicar did you manage to do the h&r part from mybonus? have the same issue  points deducted but get the same think "you must fill the box with the id..."

Thanks in advance
Media info — 2023-04-21 13:37:50 in v3 Support
Botanicar thats right my bad i didnt knew to explain more better
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