Bravo List
Register
Go Back   > Bravo List > Source Code > Active Trackers > Torrent Trader
Reply
  #11  
Old 11th February 2021, 11:21
Botanicar's Avatar
Botanicar Botanicar is offline
Senior Member
 
Join Date: Jun 2013
Croatia
Posts: 127
Default torrent-edit
Hi to all, here comes torrent-edit.php, torrents-upload.php and function.php

Version: 2.5
PHP: 5.6.4
Apache: 2.4.39
MariaDB: 10.2.36



torrent-edit.php
Code:
<?php

if ($CURUSER["edit_torrents"] == "yes")
$updateset[] = "freeleech = '".$_POST["freeleech"]."'";

//webseed
if ($CURUSER["edit_torrents"] == "yes")
$updateset[] = "webseed = '".$_POST["webseed"]."'";
//webseed
stdfoot();

?>

Last edited by Botanicar; 11th February 2021 at 20:13.
Reply With Quote
  #12  
Old 11th February 2021, 14:42
joeroberts's Avatar
joeroberts joeroberts is offline
BT.Manager Owner
 
Join Date: Jan 2008
United States
Posts: 2,113
Default
fined
Code:
$updateset[] = "freeleech = '".$_POST["freeleech"]."'";
and replace with
Code:
$updateset[] = "freeleech = " . ($_POST["freeleech"] ? '1' : '0');
now find
Code:
$updateset[] = "webseed = '".$_POST["webseed"]."'";
and replace with
Code:
$updateset[] = "webseed = " . ($_POST["webseed"] ? '1' : '0');
__________________
Do not ask me to help you work on your site that is not phpMyBitTorrent
Do not ask me to make a mod for any other source
Do not Ask me to setup your site.
I will no longer help you setup your site, there is a setup script if you have trouble with it post in the forum here or in BT.Manager™ forum
My Current Demo is here http://demo.btmanager.org/
Reply With Quote
The Following User Says Thank You to joeroberts For This Useful Post:
Botanicar (11th February 2021)
  #13  
Old 11th February 2021, 20:27
Botanicar's Avatar
Botanicar Botanicar is offline
Senior Member
 
Join Date: Jun 2013
Croatia
Posts: 127
Default
Thanks Joe and other guys
Have fixed that on my own way, don't ask how and whay but it works right now

Code:
$updateset[] = "freeleech = '" . ($_POST["freeleech"] ? "1" : "0") . "'";

Code:
$updateset[] = "webseed = '" . ($_POST["webseed"] ? "1" : "0") . "'";
Reply With Quote
  #14  
Old 16th March 2021, 01:12
MicroMonkey's Avatar
MicroMonkey MicroMonkey is offline
Senior Member
 
Join Date: Jun 2016
P2P
Posts: 52
Default
just for a future reference to whomever may read this. My torrents-upload.php has this
Quote:
$updateset[] = "freeleech = '".intval($_POST["freeleech"])."'";
SQL_Query_exec("UPDATE torrents SET " . join(",", $updateset) . " WHERE id = $id");
and torrents-edit.php
Quote:
$updateset[] = "freeleech = '".intval($_POST["freeleech"])."'";
__________________
More torrenttrader stuff at https://torrenttrader.uk
Reply With Quote
  #15  
Old 19th March 2021, 21:30
joeroberts's Avatar
joeroberts joeroberts is offline
BT.Manager Owner
 
Join Date: Jan 2008
United States
Posts: 2,113
Default
Quote:
Originally Posted by MicroMonkey View Post
just for a future reference to whomever may read this. My torrents-upload.php has this

and torrents-edit.php
Maybe because you have a different version then what he is using!
So that makes your post not needed or helpful in any way!
__________________
Do not ask me to help you work on your site that is not phpMyBitTorrent
Do not ask me to make a mod for any other source
Do not Ask me to setup your site.
I will no longer help you setup your site, there is a setup script if you have trouble with it post in the forum here or in BT.Manager™ forum
My Current Demo is here http://demo.btmanager.org/
Reply With Quote
  #16  
Old 19th March 2021, 22:36
MicroMonkey's Avatar
MicroMonkey MicroMonkey is offline
Senior Member
 
Join Date: Jun 2016
P2P
Posts: 52
Default
Ok then Mr happy. Just posted some code that I thought could be useful. Sorry for that. I wont do it again. geez this place is volatile
__________________
More torrenttrader stuff at https://torrenttrader.uk
Reply With Quote
  #17  
Old 19th March 2021, 22:41
joeroberts's Avatar
joeroberts joeroberts is offline
BT.Manager Owner
 
Join Date: Jan 2008
United States
Posts: 2,113
Default
Your Post seems like your trying to make hem Look like he don't know what he is doing or posting the wrong code because your file dose not have the same code as what his has with out stating the fact that you are using a different or maybe a newer version then what he is using. What your post may have said was that maybe this was repaired in a later version and that he may want to look into upgrading.
__________________
Do not ask me to help you work on your site that is not phpMyBitTorrent
Do not ask me to make a mod for any other source
Do not Ask me to setup your site.
I will no longer help you setup your site, there is a setup script if you have trouble with it post in the forum here or in BT.Manager™ forum
My Current Demo is here http://demo.btmanager.org/
Reply With Quote
The Following User Says Thank You to joeroberts For This Useful Post:
papad (24th March 2021)
  #18  
Old 20th March 2021, 22:57
MicroMonkey's Avatar
MicroMonkey MicroMonkey is offline
Senior Member
 
Join Date: Jun 2016
P2P
Posts: 52
Default
ok, fair enough, but I can promise you I wasnt trying to make him look bad. Why would I do that? I was just thinking I was helping, but I guess Its not perceived that way sadly. I have done a slew of editing over the years on this script, so apparently the intval was put there by me some time ago, so its not a different version, it was apparently a problem that I must have found some time ago and was just passing some info along. But no worries, all is well :)
__________________
More torrenttrader stuff at https://torrenttrader.uk
Reply With Quote
The Following User Says Thank You to MicroMonkey For This Useful Post:
papad (24th March 2021)
  #19  
Old 26th March 2021, 19:20
Botanicar's Avatar
Botanicar Botanicar is offline
Senior Member
 
Join Date: Jun 2013
Croatia
Posts: 127
Default
OK guys think I have to get involved in this discussion a little bit, thanks to you both, you are both right in your statement, it is true that I myself use a "modified" version of TT and it does not differ much of the original version with some things I have modified myself for my own needs.
Sometimes it is the case that some posts help and sometimes it is not in life as well.
I have tested both scripts you are involved in and think you do an extremely strong job in this area and really appreciate it

I have chosen one of them and think it works according to my needs

Wish you all the best in further script development
Reply With Quote
  #20  
Old 28th March 2021, 15:08
JohnHasher JohnHasher is offline
Coder
 
Join Date: Apr 2020
P2P
Posts: 62
Default
hey guys , can anyone send me the latest torrent trader source , let me see what i can do in it.

Bump: is there a version that will support php 7.4 ?
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT +2. The time now is 16:25. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.