Extremlym |
5th June 2021 09:38 |
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)"); }
|
All times are GMT +2. The time now is 16:53. |
|
Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.