Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > xBTiT
Reply
  #1  
Old 16th June 2011, 19:08
crowni's Avatar
crowni crowni is offline
Senior Member
 
Join Date: Apr 2009
Bulgaria
Posts: 129
Default [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>
put below it

Code:
<td align="center" width="20" class="header"><tag:torrent_header_viewonline /></td>
search

Code:
<td align="center" width="20" class="lista" style="text-align: center;"><tag:torrents[].download /></td>
below it paste

Code:
<td align="center" width="20" class="lista" style="text-align: center;"><tag:torrents[].viewonline /></td>
open torrents.php and search

Code:
$torrenttpl->set("torrent_header_download",$language["DOWN"]);
below it paste

Code:
$torrenttpl->set("torrent_header_viewonline", 'View online');
search

Code:
$torrents[$i]["download"]="<a href=\"download.php?id=".$data["hash"]."&amp;f=" . urlencode($data["filename"]) . ".torrent\">".image_or_link("http://www.bvlist.com/images/download.gif","","torrent")."</a>\n";
below it paste

Code:
if(in_array($data['catid'], $GLOBALS['viewonline_categories'])) {
       $torrents[$i]["viewonline"]="<a href=\"download.php?id=".$data["hash"]."&amp;viewonline=1\">View online</a>\n";
   }
   else {
       $torrents[$i]["viewonline"] = "-";
   }
open download.php and search

Code:
print($alltorrent);
    }
?>
and replace with

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();
    }
}
?>
go to this address and register after the registration http://torrentstream.net go to the menu of Мой профиль and copy the code right of the Код партнера:

locate in download.php

Code:
define('API_KEY', '21bc1d9127642b6b4b9748403c641d3g'); // ваш код партнера, находится в разделе "Мой профиль"
and replace this code 21bc1d9127642b6b4b9748403c641d3g your copy from which Мой профиль

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);
and replace 20 with the figure under which copies ID

locate in download.php

Code:
$infohash=mysql_real_escape_string($_GET["id"]);
below it paste

Code:
$viewonline = isset($_GET['viewonline']) ? true : false;
search

Code:
$row = $result[0];
below it paste

Code:
$filename = $row['filename'];
search

Code:
fclose($fd);
below it a space of one row insert

Code:
if(defined('VIEWONLINE_EMBED')) {
        $content_uid = viewonline($alltorrent, $filename, true);
    }
    elseif($viewonline) {
        viewonline($alltorrent, $filename, false);
    }
    else {
search

Code:
$alltorrent=BEncode($array);

    header("Content-Type: application/x-bittorrent");
    header('Content-Disposition: attachment; filename="'.$f.'"');
    print($alltorrent);
    }
and replace with

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);
    }
    }
now open details.php and looking for end of file

Code:
$torrenttpl->set("torrent",$row);
$torrenttpl->set("comments",$comments);
$torrenttpl->set("files",$dfiles);

?>
and replace with

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);
    }
}
?>
Search

Code:
$res = get_result("SELECT
after past

Code:
 f.category AS catid,
if your torrent tracker is only for movies clips concerts past this code

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);
}
?>
open torrent.details.tpl and search

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>
and below these lines putting a

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>
as before and after leaving them in a free line

open config.php and look for the end of file

Code:
?>
and put before him

Code:
$GLOBALS['viewonline_categories'] = array(1);
and write here array(1) ID categories that will see films clips concerts example array(1,14,15)

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.
Attached Thumbnails
m.jpg   viewonline.jpg  
Attached Files
File Type: rar [HACK]TorrentStream by crowni rev.221 r669 version.rar (4.8 KB, 55 views)
Reply With Quote
Reply

Tags
crowni , hacktorren , stream

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 21:15. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.