Bravo List
Register
Go Back   > Bravo List > Source Code > Active Trackers > Torrent Trader
Reply
  #1  
Old 5th June 2021, 09:38
Extremlym's Avatar
Extremlym Extremlym is offline
Senior Member
 
Join Date: Oct 2012
P2P
Posts: 102
Default Files in description!
$descr = str_replace(".torrent","",$name); // just the filename and i wont to add the file path into descr !





PHP Code:
            copy("$dir/$files[$i]""uploads/$id.torrent");if (count($filelist)) {        foreach ($filelist as $file) {            $dir '';            $size $file["length"];            $count count($file["path"]);            for ($i 0$i $count$i++) {                if (($i 1) == $count)                    $fname $dir $file["path"][$i];                else                    $dir .= $file["path"][$i] . "/";            }            mysql_query("INSERT INTO `files` (`torrent`, `path`, `filesize`) VALUES($id, " sqlesc($fname) . ", $size)");        }    } else {        mysql_query("INSERT INTO `files` (`torrent`, `path`, `filesize`) VALUES($id, " sqlesc($TorrentInfo[3]) . ", $torrentsize)");    } 
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 18:29. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.