This announce Bump in shoutbox , and MP system

is possible to select by comment ligne DB::insert


in /app/controllers/user/Torrent.php

Search

if ($_GET["bump"]) {
           DB::update('torrents', ['added' =>TimeDate::get_date_time()], ['id' => $id]);
           Redirect::autolink(URLROOT . "/torrent?id=$id", Lang::T("Bumped Torrent"));
       }


Replace by

if ($_GET["bump"]) 
{
#Message MP & Shoutbox
$msg_Bump  = "This Torrent: [url=".URLROOT."/torrent?id=".$id."]".htmlspecialchars($row["name"])."[/url] has been bumped";
#DB Add # to comment your DB insert for choice MP or Shout / MP and Shout / Non message to bump ( Comment ligne DBinsert)
DB::insert('messages', ['sender'=>0,'receiver'=>$id,'added'=>TimeDate::get_date_time(), 'subject'=>'Torrent Bumped', 'msg'=>$msg_Bump, 'unread'=>'yes', 'location'=>'in']);
DB::insert('shoutbox', ['userid'=>0, 'date'=>TimeDate::get_date_time(), 'user'=>'System', 'message'=>$msg_Bump]);
DB::update('torrents', ['added' =>TimeDate::get_date_time()], ['id' => $id]);
Redirect::autolink(URLROOT . "/torrent?id=$id", Lang::T("Bumped Torrent"));
}


Ubuntu Linux 20.04.3 | MySQL 8 | Apache 2.4.41 | PHP 8.1.1