Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Torrent Trader (http://www.bvlist.com/forumdisplay.php?f=29)
-   -   Maget URI function addon (http://www.bvlist.com/showthread.php?t=12351)

JohnHasher 18th April 2021 12:48

Maget URI function addon
 
PHP Code:

//magnet links
function magneturi($hash ,$filename $tracker)
{
if(isset(
$hash) && isset($filename) && isset($tracker)){
 
$base "magnet:?xt=urn:btih:".$hash;
 
$base .= "&dn=".urlencode($filename).'"';
 foreach(
$tracker as $trs){
    
$base.="&tr=".urlencode($trs);
  }
 }else{
    
$base "error in magnet construct";
}
      return 
$base;
 } 


add this to functions.php and use it ..


USAGE : magneturi(torrent infohash , filename , trackers in array);

Bump: isset() or use empty()

Bump: Tag:
print("Magnet URI")

Bump: if you want to count the hits from magnet links use ajax to add the hit or stay soon i will post here soon.

Bump: trackers in array means:


array(trackerurl1,trackerurl2,trackerurl3);

hon 20th August 2021 21:31

Thank you very much:)

JohnHasher 26th September 2021 18:20

��


All times are GMT +2. The time now is 07:44.

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