Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Torrent Trader (http://www.bvlist.com/forumdisplay.php?f=29)
-   -   Edit or torrent update error (http://www.bvlist.com/showthread.php?t=12332)

Botanicar 11th February 2021 11:21

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:


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

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

?>


joeroberts 11th February 2021 14:42

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');

Botanicar 11th February 2021 20:27

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") . "'";

MicroMonkey 16th March 2021 01:12

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"])."'";

joeroberts 19th March 2021 21:30

Quote:

Originally Posted by MicroMonkey (Post 55365)
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!

MicroMonkey 19th March 2021 22:36

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

joeroberts 19th March 2021 22:41

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.

MicroMonkey 20th March 2021 22:57

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 :)

Botanicar 26th March 2021 19:20

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

JohnHasher 28th March 2021 15:08

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 ?


All times are GMT +2. The time now is 23:32.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.