in ajax.php find
PHP Code:
if ($torrent["exeem"] != "" AND $can_access) echo pic("exeem.gif",$torrent["exeem"],_btalt_exeem);
and add before
PHP Code:
$maglinks_b = array();
if ($user->passkey != "" )$passkey = $query_char."passkey=".urlencode($user->passkey);
else
$passkey = "";
if ($torrent["tracker"] == "") {
$maglinks_b[] = $siteurl . '/announce.php?' . $passkey;
} else {
$maglinks_b[] = $torrent["tracker"];
}
if ($torrent["tracker_list"] != "") {
$trackers = explode("\n\n",$torrent["tracker_list"]);
for ($i = 0; $i < count($trackers); $i++) {
$trackers[$i] = explode("\n",$trackers[$i]);
for ($j = 0; $j < count($trackers[$i]); $j++) {
$pos = strpos($trackers[$i][$j], $announce_url);
if ($pos !== false) $maglinks_b[] = $trackers[$i][$j] . '/announce.php?' . $passkey;
else
$maglinks_b[] = $trackers[$i][$j];
}
}
}
$mag_link = 'magnet:?xt=urn:btih:' . hex_to_base32($infohash_hex) . '&xl=6745696&dn=text.txt&dn=' . $torrent["filename"] . '&tr=' . implode('&tr=',$maglinks_b);
echo pic("magnet.gif",$mag_link,_btalt_magnet);
__________________
Do not ask me to help you work on your site that is not phpMyBitTorrent
Do not ask me to make a mod for any other source
Do not Ask me to setup your site.
I will no longer help you setup your site, there is a setup script if you have trouble with it post in the forum here or in
BT.Manager™ forum
My Current Demo is here
http://demo.btmanager.org/