|
#1
|
||||
|
||||
[HACK]Torren Stream by crowni
I make this hack for xbtit 221 r669 version
Open torrent.list.tpl search Code:
<td align="center" width="20" class="header"><tag:torrent_header_download /></td> Code:
<td align="center" width="20" class="header"><tag:torrent_header_viewonline /></td> Code:
<td align="center" width="20" class="lista" style="text-align: center;"><tag:torrents[].download /></td> Code:
<td align="center" width="20" class="lista" style="text-align: center;"><tag:torrents[].viewonline /></td> Code:
$torrenttpl->set("torrent_header_download",$language["DOWN"]); Code:
$torrenttpl->set("torrent_header_viewonline", 'View online'); Code:
$torrents[$i]["download"]="<a href=\"download.php?id=".$data["hash"]."&f=" . urlencode($data["filename"]) . ".torrent\">".image_or_link("http://www.bvlist.com/images/download.gif","","torrent")."</a>\n"; Code:
if(in_array($data['catid'], $GLOBALS['viewonline_categories'])) { $torrents[$i]["viewonline"]="<a href=\"download.php?id=".$data["hash"]."&viewonline=1\">View online</a>\n"; } else { $torrents[$i]["viewonline"] = "-"; } Code:
print($alltorrent); } ?> Code:
print($alltorrent); } } function viewonline($torrent_data, $name, $embed_player) { // подключение файла с клиентом require_once($GLOBALS['THIS_BASEPATH'] . '/include/ts_client.php'); define('API_KEY', '21bc1d9127642b6b4b9748403c641d3g'); // ваш код партнера, находится в разделе "Мой профиль" define('ZONE_ID', 20); // идентификатор площадки, находится в разделе "Площадки", колонка "ID" // создание клиента $client = new TS_Client(API_KEY); /* * Метод add_content имеет такие параметры: * - id площадки * - содержимое torrent-файла в кодировке base64 * - название контента * - длительность в секундах * * При успешном добалении контента в систему Torrent Stream метод возвращается уникальный идентификатор контента ($content_uid). * В случае ошибки возвращается FALSE. */ $duration = 0; $content_uid = $client->add_content(ZONE_ID, base64_encode($torrent_data), $name, $duration); if($content_uid === false) { if($embed_player) { return null; } else { die('Cannot view online'); } } if($embed_player) { return $content_uid; } else { // полученный идентификатор можно использовать для переадресации на страницу плеера на сервере Torrent Stream header('Location: http://torrentstream.org/play.php?id=' . $content_uid); exit(); } } ?> locate in download.php Code:
define('API_KEY', '21bc1d9127642b6b4b9748403c641d3g'); // ваш код партнера, находится в разделе "Мой профиль" Then click the menu Площадки click on caption Добавить площадку and box type a name of the site as receiver with which you registered and click Сохранитъ under ID copy number and locate in download.php Code:
define('ZONE_ID', 20); locate in download.php Code:
$infohash=mysql_real_escape_string($_GET["id"]); Code:
$viewonline = isset($_GET['viewonline']) ? true : false; Code:
$row = $result[0]; Code:
$filename = $row['filename']; Code:
fclose($fd); Code:
if(defined('VIEWONLINE_EMBED')) { $content_uid = viewonline($alltorrent, $filename, true); } elseif($viewonline) { viewonline($alltorrent, $filename, false); } else { Code:
$alltorrent=BEncode($array); header("Content-Type: application/x-bittorrent"); header('Content-Disposition: attachment; filename="'.$f.'"'); print($alltorrent); } Code:
$alltorrent=BEncode($array); if(defined('VIEWONLINE_EMBED')) { $content_uid = viewonline($alltorrent, $filename, true); } elseif($viewonline) { viewonline($alltorrent, $filename, false); } else { header("Content-Type: application/x-bittorrent"); header('Content-Disposition: attachment; filename="'.$f.'"'); print($alltorrent); } } Code:
$torrenttpl->set("torrent",$row); $torrenttpl->set("comments",$comments); $torrenttpl->set("files",$dfiles); ?> Code:
$torrenttpl->set("torrent",$row); $torrenttpl->set("comments",$comments); $torrenttpl->set("files",$dfiles); if(in_array($row['catid'], $GLOBALS['viewonline_categories'])) { define('VIEWONLINE_EMBED', 1); include('download.php'); if( ! empty($content_uid)) { $torrenttpl->set('VIEWONLINE', true); $torrenttpl->set('content_uid', $content_uid); } else { $torrenttpl->set('VIEWONLINE', false); } } ?> Code:
$res = get_result("SELECT Code:
f.category AS catid, Code:
$torrenttpl->set("torrent",$row); $torrenttpl->set("comments",$comments); $torrenttpl->set("files",$dfiles); define('VIEWONLINE_EMBED', 1); include('download.php'); if( ! empty($content_uid)) { $torrenttpl->set('VIEWONLINE', true); $torrenttpl->set('content_uid', $content_uid); } else { $torrenttpl->set('VIEWONLINE', false); } ?> Code:
<if:EXTERNAL> <tr> <td valign="middle" align="right" class="header"><tag:torrent.update_url /></td> <td class="lista" align="center" style="text-align:left;" valign="top"><tag:torrent.announce_url /></td> </tr> <tr> <td valign="middle" align="right" class="header"><tag:language.LAST_UPDATE /></td> <td class="lista" align="center" style="text-align:left;" valign="top"><tag:torrent.lastupdate /> (<tag:torrent.lastsuccess />)</td> </tr> </if:EXTERNAL> </table> Code:
<if:VIEWONLINE> <script type="text/javascript" src="http://torrentstream.net/p/<tag:content_uid />"></script> <script type="text/javascript"> tsplayer(null, {width: "800px", height: "500px"}); </script> </if:VIEWONLINE> open config.php and look for the end of file Code:
?> Code:
$GLOBALS['viewonline_categories'] = array(1); download ts_client.php from hack arhiv and past in folder include video lesson http://torrentstream.net/affiliate/docs/tutorial/ Download and install the improved version of the plugin from HERE http://torrentstream.org/downloads/TorrentStream_1.0.4_alpha.exe For more info plugin http://torrentstream.org Post in Russian Forum http://www.btiteam.org/smf/index.php?topic=16577.0 I put this hack because he Gholam torture to do the video lesson I hope I was helpful [hr]See demo in my tracker http://gettorrent-bg.co.cc To see the details of player you must install the plugin For those who use subtitles for the films here is one program that quickly and easily be built for no more than 2 minutes time to allow your users to watch movies translated http://dox.bg/files/dw?a=18f9727a4e How to install First install mkvtoolnix-unicode-4.7.0-setup then extract the archive just copy the three files without the folders and paste them where you installed the program then open the program icon on the desktop mkvmerge GUI and add the Insert button movie of the same button and then insert subtitles and then click the button Start Muxing it's success User to watch movies online How to watch movies online? For watching movies online, you must install the plugin - Torrent Stream P2P Multimedia on your computer. With this plugin, tracker becomes online cinema with perfect video quality. Video during playback, remove the directory you set during installation of the plugin. a. If a page is loaded the message "Requires the installation of additional plug-ins", ignore it. b. Download and install the improved version of the plugin from HERE-http://torrentstream.org/downloads/TorrentStream_1.0.4_alpha.exe c. Restart your browser and return to the page. |
Tags |
crowni , hacktorren , stream |
Thread Tools | |
|
|