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

editing torrents — 2023-01-10 21:52:05 in v2.08 Support
they can edit their own torrents

however if they upload the wrong .torrent or made a mistake when creating it and all they want to do is edit the torrent and upload the new .torrent file instead of deleting the full torrent and details and having to reupload them, is there a way to do this?
editing torrents — 2023-01-10 21:35:18 in v2.08 Support
Hi all,

First off hope the festive period was great and relaxing for all.. but now I think it's time for the snow to go bye bye lol

I am helping sal2azz where and how i can, however a member asked tonight why they cant edit their own .torrent field, i know its missing but anyone able to help please?

here is the torrents-edit.php - running TT 2.0.8 BIGMAX version

<?php
#================================#
#       TorrentTrader 2.08       #
#  http://www.torrenttrader.org  #
#--------------------------------#
#       Modified by BigMax       #
#================================#

require_once("backend/functions.php");
dbconn();
security();
loggedinonly();

$id = (int) $_REQUEST["id"];
if (!is_valid_id($id)) show_error_msg(T_("ERROR"), T_("INVALID_ID"), 1);
$action = $_REQUEST["action"];

$row = mysqli_fetch_assoc(SQL_Query_exec("SELECT `owner` FROM `torrents` WHERE id=$id"));
//if($CURUSER["edit_torrents"]=="no" && $CURUSER['id'] != $row['owner'])
if($CURUSER["edit_torrents"]=="no" && $CURUSER['id'] != $row['owner'] || $CURUSER["can_upload"] != "yes") //===| BigMax |===//
   show_error_msg(T_("ERROR"), T_("NO_TORRENT_EDIT_PERMISSION"), 1);

$ownertor = $row['owner'];
$row2 = mysqli_fetch_assoc(SQL_Query_exec("SELECT `points` FROM `motm` WHERE id=$ownertor"));
$actpoints = $row2['points'];

function uploadimage($x, $imgname, $tid) {
   global $site_config;

   $imagesdir = $site_config["torrent_dir"]."/images";

   $allowed_types = &$site_config["allowed_image_types"];  

   if ( !( $_FILES["image$x"]["name"] == "" ) ) {
       if ($imgname != "") {
           $img = "$imagesdir/$imgname";
           $del = unlink($img);
       }

       $y = $x + 1;

$im = getimagesize($_FILES["image$x"]["tmp_name"]);

if (!$im[2])
show_error_msg("Error", "Invalid Image $y.", 1);

if (!array_key_exists($im['mime'], $allowed_types))
show_error_msg(T_("ERROR"), T_("INVALID_FILETYPE_IMAGE"), 1);

       if ($_FILES["image$x"]["size"] > $site_config['image_max_filesize'])
           show_error_msg(T_("ERROR"), sprintf(T_("INVAILD_FILE_SIZE_IMAGE"), $y), 1);

       $uploaddir = "$imagesdir/";

   $ifilename = $tid . $x . $allowed_types[$im['mime']];
                                             
       $copy = copy($_FILES["image$x"]["tmp_name"], $uploaddir.$ifilename);

       if (!$copy)
           show_error_msg(T_("ERROR"), sprintf(T_("ERROR_UPLOADING_IMAGE"), $y), 1);

       return $ifilename;
   }
} // end function


// GET DATA FROM DB
$res = SQL_Query_exec("SELECT * FROM torrents WHERE id = $id");
$row = mysqli_fetch_array($res);
if (!$row) {
   show_error_msg(T_("ERROR"), T_("TORRENT_ID_GONE"), 1);
}

$torrent_dir = $site_config["torrent_dir"];    
$nfo_dir = $site_config["nfo_dir"];    

// DELETE TORRENT
if ($action=="deleteit") {
   $torrentid = (int) $_POST["torrentid"];
   $delreason = sqlesc($_POST["delreason"]);
   $torrentname = $_POST["torrentname"];

   if (!is_valid_id($torrentid))
       show_error_msg(T_("FAILED"), T_("INVALID_TORRENT_ID"), 1);

   If ($_POST["delreason"] == '') {
       show_error_msg(T_("ERROR"), "You must write a reason for deletion!", 1);
   }

   deletetorrent($torrentid);

   write_log("<a href=account-details.php?id=".$CURUSER['id']."><b>".$CURUSER['username']."</b></a> has deleted torrent ID: [<b>$torrentid</b>] - ".htmlspecialchars($torrentname)." - Reason: ".htmlspecialchars($delreason));
   if ($CURUSER['id'] != $row['owner']) {
$delreason = $_POST["delreason"];
SQL_Query_exec("INSERT INTO messages (sender, receiver, added, subject, msg, unread, location) VALUES(0, ".$row['owner'].", '".get_date_time()."', 'Your torrent \'$torrentname\' has been deleted by ".$CURUSER['username']."', ".sqlesc("'$torrentname' was deleted by ".$CURUSER['username']."\n\nReason: $delreason").", 'yes', 'in')");
   }
$owner = $_POST["ownerid"];
$points = $_POST["points"];
SQL_Query_exec("UPDATE motm SET points = $points-25 WHERE id = $owner");

   show_error_msg(T_("COMPLETED"), htmlspecialchars($torrentname)." ".T_("HAS_BEEN_DEL_DB"),1);
   die;
}

// DO THE SAVE TO DB HERE
if ($action=="doedit")
{
   $updateset = array();

// NFO Action
$nfoaction = $_POST['nfoaction'];
if ($nfoaction == "update")
{
$nfofile = $_FILES['nfofile'];
if (!$nfofile) die("No data " . var_dump($_FILES));
if ($nfofile['size'] > 65535)
show_error_msg("NFO is too big!", "Max 65,535 bytes.",1);
$nfofilename = $nfofile['tmp_name'];
if (@is_uploaded_file($nfofilename) && @filesize($nfofilename) > 0)
{
@move_uploaded_file($nfofilename, "$nfo_dir/$id.nfo");
$updateset[] = "nfo = 'yes'";
}
}
// End NFO Action

   if (!empty($_POST["name"]))
        $updateset[] = "name = " . sqlesc($_POST["name"]);

if ( $_POST['imdb'] != $row['imdb'] )
{
$updateset[] = "imdb = " . sqlesc($_POST["imdb"]);
$TTCache->Delete("imdb/$id");
}
   
   $updateset[] = "descr = " . sqlesc($_POST["descr"]);
$updateset[] = "genre = " . sqlesc($_POST["genre"]);
$updateset[] = "category = " . (int) $_POST["type"];
   $updateset[] = "torrentlang = " . (int) $_POST["language"];

   if ($CURUSER["edit_torrents"] == "yes") {
       if ($_POST["banned"]) {
           $updateset[] = "banned = 'yes'";
           $_POST["visible"] = 0;
       } else {
           $updateset[] = "banned = 'no'";
       }
   }

   $updateset[] = "visible = '" . ($_POST["visible"] ? "yes" : "no") . "'";

if (!empty($_POST['video']))
$video = unesc($_POST['video']);
$updateset[] = "video = " . sqlesc($video);

//==| check if cover image ia a valid URL
if ($_POST['poster']) { $cover = $_POST['poster']; }
if(!isValidURL($cover) && $_POST['poster'] != "") { show_error_msg(T_("UPLOAD_FAILED"), T_("INVALID_COVER_URL"), 1); }

//==| Cover Image Link
if (!empty($_POST['poster']))
$poster = unesc($_POST['poster']);
$updateset[] = "poster = " . sqlesc($poster);

   if ($CURUSER["edit_torrents"] == "yes") {
if ($_POST["sticky"] == "yes") {
$updateset[] = "sticky = 'yes'";
} else {
$updateset[] = "sticky = 'no'";
}

if ($_POST["recommended"] == "yes") {
$updateset[] = "recommended = 'yes'";
} else {
$updateset[] = "recommended = 'no'";
}

if ($_POST["recommended2"] == "yes") {
$updateset[] = "recommended2 = 'yes'";
} else {
$updateset[] = "recommended2 = 'no'";
}

if ($_POST["recommended3"] == "yes") {
$updateset[] = "recommended3 = 'yes'";
} else {
$updateset[] = "recommended3 = 'no'";
}
}

if(get_user_class($CURUSER) > 1){
               if ($_POST["rosub"] == "yes"){
               $updateset[] = "rosub = 'yes'";
                }else{
               $updateset[] = "rosub = 'no'";
       }
}

if(get_user_class($CURUSER) > 1){
               if ($_POST["ensub"] == "yes"){
               $updateset[] = "ensub = 'yes'";
                }else{
               $updateset[] = "ensub = 'no'";
       }
}

if(get_user_class($CURUSER) > 1){
               if ($_POST["roeng"] == "yes"){
               $updateset[] = "roeng = 'yes'";
                }else{
               $updateset[] = "roeng = 'no'";
       }
}

//$updateset[] = "freeleech = '".$_POST["freeleech"]."'"; //--| Original
$updateset[] = "freeleech = '".($_POST["freeleech"] ? "1" : "0")."'"; //--| Added by BigMax

   $updateset[] = "anon = '" . ($_POST["anon"] ? "yes" : "no") . "'";

   //update images
   $img1action = $_POST['img1action'];
   if ($img1action == "update")
       $updateset[] = "image1 = " .sqlesc(uploadimage(0, $row["image1"], $id));
   if ($img1action == "delete") {
       if ($row[image1]) {
           $del = unlink($site_config["torrent_dir"]."/images/$row[image1]");
           $updateset[] = "image1 = ''";
       }
   }

   $img2action = $_POST['img2action'];
   if ($img2action == "update")
       $updateset[] = "image2 = " .sqlesc(uploadimage(1, $row["image2"], $id));
   if ($img2action == "delete") {
       if ($row[image2]) {
           $del = unlink($site_config["torrent_dir"]."/images/$row[image2]");
           $updateset[] = "image2 = ''";
       }
   }

   SQL_Query_exec("UPDATE torrents SET " . join(",", $updateset) . " WHERE id = $id");

   $returl = "torrents-edit.php?id=$id&edited=1";
   if (isset($_POST["returnto"])){
       $returl = $_POST["returnto"];
   }

   write_log("Torrent <a href='torrents-details.php?id=$id'><b>".htmlspecialchars($_POST["name"])."</b></a> was edited by <a href=account-details.php?id=$CURUSER[id]><b>".$CURUSER['username']."</b></a>");

   header("Location: $returl");
   die();
} // END SAVE TO DB

// UPDATE CATEGORY DROPDOWN
$catdropdown = "<select name=\"type\">\n";
if ($CURUSER["language"] == 2) { $cats = genrelistro(); } else { $cats = genrelist(); }
   foreach ($cats as $catdropdownubrow) {
       $catdropdown .= "<option value=\"" . $catdropdownubrow["id"] . "\"";
       if ($catdropdownubrow["id"] == $row["category"])
           $catdropdown .= " selected=\"selected\"";
       $catdropdown .= ">" . htmlspecialchars($catdropdownubrow["parent_cat"]) . ": " . htmlspecialchars($catdropdownubrow["name"]) . "</option>\n";
   }
$catdropdown .= "</select>\n";
// END CATDROPDOWN

// UPDATE TORRENTLANG DROPDOWN
$langdropdown = "<select name=\"language\"><option value='0'>Unknown</option>\n";
if ($CURUSER["language"] == 2) { $lang = langlistro(); } else { $lang = langlist(); }
foreach ($lang as $lang) {
   $langdropdown .= "<option value=\"" . $lang["id"] . "\"";
   if ($lang["id"] == $row["torrentlang"])
       $langdropdown .= " selected=\"selected\"";
   $langdropdown .= ">" . htmlspecialchars($lang["name"]) . "</option>\n";
}
$langdropdown .= "</select>\n";
// END TORRENTLANG

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

if ($_GET["edited"]) { show_error_msg("Edited OK", T_("TORRENT_EDITED_OK"), 1); }

$char1 = 90; //==|Cut name length
$shortname = CutName(htmlspecialchars($row["name"]), $char1);

stdhead("".T_("EDIT_TORRENT").": ".$shortname."");
begin_frame("".T_("EDIT_TORRENT").": ".$shortname."");

//==| Get action
print("<form method='post' name=\"bbform\" enctype=\"multipart/form-data\" action=\"torrents-edit.php?action=doedit\">\n");
print("<input type=\"hidden\" name=\"id\" value=\"$id\" />\n");
if (isset($_GET["returnto"]))
print("<input type=\"hidden\" name=\"returnto\" value=\"" . htmlspecialchars($_GET["returnto"]) . "\" />\n");

print("<table width='99%' border='0' cellspacing='0' cellpadding='5' align='center'>\n");
echo "<tr><td></td></tr>"; //==| Vertical space

//==| Name
echo "<tr><td align='right'>".T_("NAME").":</td>
<td><input type=\"text\" name=\"name\" value=\"" . htmlspecialchars($row["name"]) . "\" class=\"btnHuge2\" /></td></tr>";

//==| Genre
echo "<tr><td align='right' valign='top'><div style='margin-top:5px'>".T_("GENRE").":</div></td>
<td><input type=\"text\" name=\"genre\" value=\"" . htmlspecialchars($row["genre"]) . "\" class=\"btnHuge2\" maxlength=\"300\" />
<div style='margin-top:2px'>&nbsp;".T_("GENRE_EXAMPLE")."</div></td></tr>";
echo "<tr><td></td></tr>"; //==| Vertical space

//==| Cover Image Link
$poster = ("" . htmlspecialchars($row["poster"]) . "");
echo "<tr><td align='right' valign='top'><div style='margin-top:5px'>".T_("COVER_IMAGE_LINK").":</div></td>
<td><input type=\"text\" name=\"poster\" value=\"" . $poster . "\" class=\"btnHuge2\" /></td></tr>";
echo "<tr><td height='5'></td></tr>"; //==| Vertical space

//==| Cover image Upload
echo "<tr><td align='right' valign='bottom'><div style='margin-bottom:5px'>".T_("COVER_IMAGE_UPLOAD").":</div></td>
<td><div style='margin-bottom:5px'><input type='radio' name='img1action' value='keep' checked='checked' />
".T_("KEEP_IMAGE")."&nbsp;&nbsp;"."<input type='radio' name='img1action' value='delete' />
".T_("DELETE_IMAGE")."&nbsp;&nbsp;"."<input type='radio' name='img1action' value='update' />
".T_("UPDATE_IMAGE")."</div><input type='file' name='image0'  class='btnHuge2' /></td></tr>";
echo "<tr><td height='5'></td></tr>"; //==| Vertical space

/*/==| Poster Image Upload
If ($CURUSER["class"] > 9) {
echo "<tr class='table_col1'><td align='right' valign='bottom'><div style='margin-bottom:5px'>".T_("POSTER_IMAGE_UPLOAD").":</div></td>
<td><div style='margin-bottom:5px'><input type='radio' name='img2action' value='keep' checked='checked' />
".T_("KEEP_IMAGE")."&nbsp;&nbsp;"."<input type='radio' name='img2action' value='delete' />
".T_("DELETE_IMAGE")."&nbsp;&nbsp;"."<input type='radio' name='img2action' value='update' />
".T_("UPDATE_IMAGE")."</div><input type='file' name='image1' class='btnHuge3' /></td></tr>";
echo "<tr><td height='5'></td></tr>"; //==| Vertical space
} //*/

//==| NFO
echo "<tr><td align='right' valign='bottom'><div style='margin-bottom:5px'>".T_("NFO_FILE").":</div></td>
<td><div style='margin-bottom:5px'><input type='radio' name='nfoaction' value='keep' checked='checked' />
".T_("KEEP_NFO")." &nbsp; <input type='radio' name='nfoaction' value='update' /> ".T_("UPDATE_NFO")." &nbsp;";
if ($row["nfo"] == "yes") {
//echo "&nbsp;&nbsp;[<a href='nfoview.php?id=".$row["id"]."' target='_blank'><b>".T_("VIEW_CURRENT_NFO")."</b></a>]";
echo "&nbsp;&nbsp;[<a href=\"javascript:void(0);\" onclick=\"window.open('/nfoview.php?id=".$row["id"]."', 'mywindow5', 'width=800, height=900, menubar=no, toolbar=no, scrollbars=yes');\"><b>".T_("VIEW_CURRENT_NFO")."</b></a>]";
} else {
echo "&nbsp;&nbsp;<font color='#ff0000'><b>".T_("NO_NFO_UPLOADED")."</b></font>";
}
echo "</div><input type='file' name='nfofile' class='btnHuge2' /></td></tr>";

//==| IMDb
echo("<tr><td align='right' valign='top'><div style='margin-top:10px'>".T_("IMDB_LINK").":</div></td>
<td><div style='margin-top:5px'><input type='text' name='imdb' class='btnHuge2' value='" . htmlspecialchars($row['imdb']) . "' /></div>
<div style=\"margin-top:2px; margin-bottom:5px\">&nbsp;".T_("IMDB_LINK_MESSAGE")."</div></td></tr>");

//==| YouTube
$video = ("" . htmlspecialchars($row["video"]) . "");
echo "<tr><td align='right' valign='top'><div style='margin-top:10px'>".T_("YOUTUBE_TRAILER").":</div></td>
<td><div style='margin-top:7px'><input type=\"text\" name=\"video\" value=\"" . $video . "\" class=\"btnHuge2\" /></div>
<div style=\"margin-top:2px; margin-bottom:5px\">&nbsp;".T_("PUT_YOUTUBE_LINK")."</div></td></tr>";

//==| Category
echo "<tr><td align='right'>".T_("CATEGORY").":</td><td>".$catdropdown." </td></tr>";

//==| Language
echo "<tr><td align='right'>".T_("LANGUAGE").":</td><td>".$langdropdown."</td></tr>";

//==| Banned
if ($CURUSER["edit_torrents"] == "yes") {
echo "<tr><td align='right'>".T_("BANNED").":</td>
<td><input type=\"checkbox\" name=\"banned\"" . (($row["banned"] == "yes") ? " checked=\"checked\"" : "" ) . " value=\"1\" />
".T_("BANNED_TORRENT_MESSAGE")."</td></tr>";
}
echo "<tr><td></td></tr>"; //==| Vertical space

//==| Visible
echo "<tr><td align='right' valign='top'><div style='margin-top:2px'>".T_("VISIBLE").":</div></td>
<td><input type=\"checkbox\" name=\"visible\"" . (($row["visible"] == "yes") ? " checked=\"checked\"" : "" ) . " value=\"1\" />
".T_("VISIBLEONMAIN")."</td></tr>";
echo "<tr><td></td></tr>"; //==| Vertical space

//==| Freeleech
if ($CURUSER["edit_torrents"] == "yes" || $CURUSER['id'] == $row['owner']) {
echo "<tr><td align='right'>".T_("FREE_LEECH").":</td>
<td><input type=\"checkbox\" name=\"freeleech\"" . (($row["freeleech"] == "1") ? " checked=\"checked\"" : "" ) . " value=\"1\" />
".T_("FREE_LEECH_MSG")."</td></tr>";
} //*/

//==| Sticky
//if ($row["external"] != "yes" && $CURUSER["control_panel"] == "yes") {
if ($CURUSER["delete_torrents"] == "yes") {
echo "<tr><td align=right>".T_("T_STICKY").":</td>
<td><input type='checkbox' name='sticky'" . (($row["sticky"] == "yes") ? " checked='checked'" : "" ) . " value='yes' />
".T_("STICKY_MSG")."</td></tr>";
}

//==| En Subbed
echo "<tr><td align=right>".T_("ENSUBBED").":</td>
<td><input type='checkbox' name='ensub'" . (($row["ensub"] == "yes") ? " checked='checked'" : "" ) . " value='yes' />
&nbsp;<img src='images/flag.eng.gif' border='0' title='".T_("ENSUBBED")."'>&nbsp; ".T_("ENSUBBED_MSG")."</td></tr>";

//==| Ro-En Subbed
echo "<tr><td align=right>".T_("ROENGSUBBED").":</td>
<td><input type='checkbox' name='roeng'" . (($row["roeng"] == "yes") ? " checked='checked'" : "" ) . " value='yes' />
&nbsp;<img src='images/ro-eng-flag.png' border='0' title='".T_("ROENGSUBBED")."'>&nbsp; ".T_("ROENGSUBBED_MSG")."</td></tr>";

//==| Recommended torrents
if(get_user_class($CURUSER) >= 5 && $site_config['REC_TOR']) {
echo "<tr><td align=right>".T_("REC_TORRENT").":</b></td>
<td><input type='checkbox' name='recommended3'" . (($row["recommended3"] == "yes") ? " checked='checked'" : "" ) . " value='yes' />
".T_("WILL_BE_SHOWN_AT")." ".T_("RECOMMENDED_TORRENTS")."</td></tr>";
}

//==| Anonymous
if ($site_config['ANONYMOUSUPLOAD']) {
echo "<tr><td align='right'>".T_("ANONYMOUS_UPLOAD").":</td>
<td><input type=\"checkbox\" name=\"anon\"" . (($row["anon"] == "yes") ? " checked=\"checked\"" : "" ) . " value=\"1\" />";
if($CURUSER['id'] == $row['owner']) { echo "&nbsp;".T_("ANONYMOUS_UPLOAD_MSG").""; }
else { echo "&nbsp;".T_("ANONYMOUS_UPLOAD_MSG2").""; }
echo "</td></tr>";
}
print("</table>\n");

//==| Dascription
print("<div style='margin-top:20px; font:bold 12px Verdana' align='center'>" . T_("DESCRIPTION") . "</div>");
require_once("backend/bbupload.php");
print textbbupload("bbform","descr", htmlspecialchars($row["descr"]));

//==| Submit
print("<div style='margin-top:10px; margin-bottom:10px' align='center'>
<input type=\"submit\" value='".T_("SUBMIT")."' />
<input type='reset' value='".T_("UNDO")."' />
</div>\n");

print("</form>\n");

end_frame();

//==| Delete
//if($CURUSER["delete_torrents"] == "yes" || $CURUSER['id'] == $row['owner']) {
if($CURUSER["delete_torrents"] == "yes") {
begin_frame(T_("DELETE_TORRENT"));
print("<div style='margin-top:15px; margin-bottom:15px' align='center'>");
print("<form method='post' action='torrents-edit.php?action=deleteit&id=$id'>\n");
print("<input type='hidden' name='torrentid' value='$id' />\n");
print("<input type='hidden' name='ownerid' value='$ownertor' />\n");
print("<input type='hidden' name='points' value='$actpoints' />\n");
print("<input type='hidden' name='torrentname' value='".htmlspecialchars($row["name"])."' />\n");
echo "".T_("REASON").": <input type='text' class='btnHuge3' name='delreason' />";
echo "&nbsp; <input type='submit' value='".T_("DELETE")."' /></form>";
print("</div>");
end_frame();
}

stdfoot();
?>


thanks
Blackjack [TTv3] — 2022-11-13 17:12:43 in v3 Mods Completed
Cheers
Blackjack [TTv3] — 2022-11-12 18:33:51 in v3 Mods Completed
awesome works perfectly, however does anyone have this image; INFO_UPLOAD.png ? cheers
Help — 2022-11-10 10:10:26 in General Chat
your file seems to have worked perfectly, its got a few things extra like browser, operating system and delete account but nothing that bothers me lol
Help — 2022-11-08 17:46:22 in General Chat
this doesnt help - i ain't running any modded version, everything on site was added one by one, i got a site running basic TT v3 with next to no mods and same issue....
Help — 2022-11-07 22:02:28 in General Chat
ok save settings is back, still no submit button though
Help — 2022-11-07 21:30:30 in General Chat
I used your account.php you posted to me to try, it never worked - all i was missing before was submit button - however if there is a fix for the current issue and i get submit button back then i will be happy lol
Help — 2022-11-07 18:00:56 in General Chat
STILL NO SUBMIT BUTTON ON EDIT ACCOUNT PAGE, EVEN USING YOUR ONE THERE - ANY SUGGESTIONS OR HELP WOULD BE GRATEFUL

p.s sorry just noticed my caps lock was on
Sorry forgot to edit it, the sql query had to be re-runned as it forgot to add the done column
rss feed — 2022-11-01 21:52:37 in v3 Mods Requests
never mind, this topic can be deleted. thanks
rss feed — 2022-11-01 21:43:36 in v3 Mods Requests
hey guys,

sorry to bother you but was looking for a bit of help, instead of the current rss.php is there anyway to get one like this;

Custom RSS XML Feed
What is RSS? Take a look at the Wiki to learn more!
Categories:
(Leave blank for All)

Albums - Assorted Albums
Apps - windows
Apps - misc
Audio Books - A-Books
Classic Movies - Pre90s
Comics - Comics
Discography - Collection
Dj-Only - Dj-Music
DMC - DMC
Ebooks - Ebooks-Mags
Exclusive - Exclusive Vip
Flac - Flac-24 Bit Hi-Res
Games - Pc - Iso
Games - Misc
Karaoke - All Karaoke
Kids Movie Pk - Movie Packs
Mastermix - Mastermix
Movie Pack - Pre-90s
Movie Packs - Movie Packs
Movies - 2022
Movies - Bluray-HD
Movies - Dvdr-ISO
TV - Episodes
TV - Kids - Anime
TV - Documentary
TV - Sports
TV Packs - Full Seasons
TV Packs - Kids - Anime Pk
TV Packs - Pre90s
Wallpapers - Wallpapers
Feed Type:
Download link

so I can get things grabbed via rss feeds to seed things longer.

Thanks
TorrentTrader V3.0 (MM's one from his github account)
Help — 2022-11-01 21:34:17 in General Chat
site is fixed now, was an issue with cleanup file

however would love to find the issue behind the announce.php problems and get them fixed, especially this one:

Tracker: [Could not parse bencoded data: Warning: mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, null given in /var/www/vhos]
Help — 2022-11-01 19:36:41 in General Chat
yes and we can't figure out why

but this error keeps coming back

[Tue Nov 01 19:33:17.139222 2022] [proxy_fcgi:error] [pid 7008:tid 139911806035712] [client ip:0] AH01071: Got error 'PHP message: PHP Warning:  mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, null given in /var/www/vhosts/3evils.biz/httpdocs/announce.php on line 252'


the line on that is;
$res = SQL_Query_exec("SELECT $peerfields FROM peers WHERE $selfwhere");
$row = mysqli_fetch_assoc($res);
if ($row){
       $self = $row;
}
}
nice mod but i am getting the following error

Database Error in backend/cleanup.php on line 184: Unknown column 'done' in 'where clause'. Query was: UPDATE snatched SET hnr = 'yes' WHERE completed = '1' AND hnr = 'no' AND uload < dload AND 1667323476 - 604800 > stime AND 172800 > ltime AND done='no'.

line 184 in cleanup.php  
SQL_Query_exec("UPDATE snatched SET hnr = 'yes' WHERE completed = '1' AND hnr = 'no' AND uload < dload AND $timenow - $site_config["hnr_deadline"] > stime AND $site_config["hnr_seedtime"] > ltime AND done='no'");

Thank you for this mod, however your uptransfer.php didn't work without modifications, here is my working one

<?
#             Modified By Dalibor                #
#            Last Modified 28-6-2008             #
#         Modified to 2.08 By ArcticWolf         #
#     Update by spiritblue  12-07-2019 (TTV3)    #
##################################################

/* Connect To Database, And ONLY Allow Members */
require_once("backend/functions.php");
dbconn();
loggedinonly();
$action = $_REQUEST["action"];

if ($action == "taketransfer") {
  $username = $_POST["username"];

  if (!$username)
      show_error_msg("Error", "You are not connecting, or you are trying to transfer, but here we have secured .", 1);

  $credit = $_POST["credit"];

  if ($credit < 1 || (!$CURUSER))
      show_error_msg("Error", "You are not connecting, or your transfer is too small .", 1);

  $kb = 1024;
  $mb = 1024 * 1024;
  $gb = 1024 * 1024 * 1024;
  $tb = 1024 * 1024 * 1024 * 1024;

  if ($_POST["unit"] == 'mb')
      $credit = $credit * $mb;
  elseif ($_POST["unit"] == 'gb')
      $credit = $credit * $gb;
  elseif ($_POST["unit"] == 'tb')
      $credit = $credit * $tb;

  if ($CURUSER["uploaded"] < $credit)
      show_error_msg("Errorr", "You are trying to upload upload donations while you currently have. ", 1);

  $query = SQL_Query_exec("SELECT id,uploaded,modcomment FROM users WHERE username = '$username'");
  $res = mysqli_fetch_assoc($query);
  $receiver = $res["id"];
  $sender = $CURUSER["id"];
  $modcomment2 = $CURUSER["modcomment"];

  $modcomment1 = $res["modcomment"];

  $modcomment1 = gmdate("Y-m-d") . " - Credit upload: $username obtained " . mksize($credit) . " from $site_config[SITEURL]/account-details.php?id=$sender " . $CURUSER['username'] . ".\n" . $modcomment1;
  $modcomment2 = gmdate("Y-m-d") . " - Credit upload: $site_config[SITEURL]/account-details.php?id=$sender " . $CURUSER['username'] . " to give  " . mksize($credit) . " by $username.\n" . $modcomment2;



  SQL_Query_exec("UPDATE users SET uploaded = uploaded + $credit, modcomment = " . sqlesc($modcomment1) . " WHERE id = '$receiver'");
  SQL_Query_exec("UPDATE users SET uploaded = uploaded - $credit, modcomment = " . sqlesc($modcomment2) . " WHERE id = '$sender'");
  $subject = "Ajout de credit upload!";
  if ($_POST["anonym"] != 'anonym') {
      $msg = sqlesc("Your account has been credited with  " . mksize($credit) . " compliments of  " . $CURUSER['username'] . "");
      SQL_Query_exec("INSERT INTO messages (sender, receiver, added, msg, poster, subject) VALUES($sender, $receiver, NOW(), $msg, 0," . sqlesc($subject) . ")");
  } else {
      $msg = sqlesc("Your account has been credited  " . mksize($credit) . " Compliments of an anonymous user .");
      SQL_Query_exec("INSERT INTO messages (sender, receiver, added, msg, poster, subject) VALUES(0, $receiver, NOW(), $msg, 0, " . sqlesc($subject) . ")");
  }
  write_log("<font color=lime size=2>Credit Upload:</font><a href=account-details.php?id=$sender target=_blank>" . $CURUSER['username'] . "</a> has offered  " . mksize($credit) . " a <a href=account-details.php?id=$receiver target=_blank>$username</a>");

  autolink($site_config[SITEURL] . "/index.php", "you gave  " . mksize($credit) . " in credit upload a  " . $username);
  // header("Refresh: 0; url=index.php");  // I guess this would work under 2.08... No clue LOL
  die();
}
/*  Start Page Output  */
stdhead("Donate Uploads");
begin_frame(T_('INFO_DONATE_UPLOAD_CREDITS'));
?>
<b><?php echo T_("WHY_SHOULD_DONATE"); ?></b><br />
<?php echo T_("CREDIT_UP_TEXT1"); ?>
<br /><br />
<b><?php echo T_("WHY_SHOULD_DONATE_UP"); ?></b><br />
<?php echo T_("CREDIT_UP_TEXT2"); ?>
<?php
end_frame();
begin_frame(T_('TRANSFER_UPLOAD'));
?>
<center>
<form name="transfer" method="post" action="uptransfer.php?action=taketransfer">
<table class="table_table table_col1" width="50%" cellpadding="5" border="0" align="center"><tr><td align="right"><b><?php echo T_("DONATE_TO"); ?>: </b></td><td align="left"><input type="text" name="username" size="20"> <input type="checkbox" name="anonym" value="anonym"> <?php echo T_("ANONYMOUS_TRANSFER"); ?></td></tr>&nbsp;
<tr><td align="right"><?php echo T_("AMOUNT_CREDIT"); ?>:</b></td><td align="left"><input type="text" name="credit" size="20" value="1">
<select name="unit"><br />
<option value="false">Selection</option>
<option value="mb">KB</option>
<option value="mb">MB</option>
<option value="gb">GB</option>
<option value="tb">TB</option>
</select></table><br/><center><input name="submit" type="submit" value="Transfer!"></center></td>
</tr></form></center>
<?php
end_frame();
stdfoot();
?>
Help — 2022-11-01 16:42:30 in General Chat
also when downloading a torrent i am getting

Tracker: [Could not parse bencoded data: Warning: mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, null given in /var/www/vhos]


using rutorrent 3.10
Help — 2022-11-01 16:18:23 in General Chat


seems you got a few more mods on your account.php than me lol
thanks m-jay :)
does this code go into index.php or does it need to be added to blocks/ownfile.php
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: 9
  • Members: 0
  • Guests online: 9
  • Comments: 3
  • Messages: 1,728