PHP Code:
<?php
/**
**************************
** FreeTSP Version: 1.0 **
**************************
** http://www.freetsp.info
** https://github.com/Krypto/FreeTSP
** Licence Info: GPL
** Copyright (C) 2010 FreeTSP v1.0
** A bittorrent tracker source based on TBDev.net/tbsource/bytemonsoon.
** Project Leaders: Krypto, Fireknight.
**/
require_once(dirname(__FILE__).DIRECTORY_SEPARATOR.'functions'.DIRECTORY_SEPARATOR.'function_main.php');
require_once(FUNC_DIR.'function_user.php');
require_once(FUNC_DIR.'function_vfunctions.php');
require_once(FUNC_DIR.'function_bbcode.php');
db_connect(true);
logged_in();
/*
@info
$ Lastest Torrents with Poster Slider
$ author: scene // bambam0077 // Tw@T
@somerightsreserved.freetsp.localhost.irc.scenereleasegroup.okay.anon.froz3n.time
*/
//Start of Lastest Torrents with Poster Slider
echo "<div style='margin-top: -20px;' class='latest_filter'><div style='float: left;margin-top: -5px;margin-left: -10px;'>Latest Movies</div></div>
<div class='latest_info'><span style='padding: 0.1em;'></span>
<div id='jssor_1' style='position: relative; margin: 0 auto; top: 0px; left: 0px; width: 1000px; height: 150px; overflow: hidden;'>
<div data-u='slides' style='cursor: default; position: relative; top: 0px; left: 0px; width: 1000px; height: 150px; overflow: hidden;'>";
////////////// FreeTSP Query ///////////////////////
$freetsp = sql_query("SELECT id, seeders, leechers, name, poster FROM torrents WHERE visible = 'yes' ORDER BY added DESC LIMIT 15") or sqlerr(__FILE__, __LINE__);
///////////////////////////////////////////////////
if (mysqli_num_rows($freetsp) > 0) {
while ($row = mysqli_fetch_assoc($freetsp)) {
$id = (int) $row['id'];
$name = htmlspecialchars($row['name']);
$poster = ($row['poster'] == '' ? '/images/no_poster.png' : htmlspecialchars( $row['poster'] ));
$seeders = number_format($row['seeders']);
$leechers = number_format($row['leechers']);
$name = str_replace('_','',$name);
$name = str_replace('.','',$name);
$name = substr($name, 0, 50);
echo "<div class='smooth'>
<a href=\"details.php?id=".$row['id']."\" title=\"".$name."\" /><img class=\"img-thumbnail\" src=\"".$poster."\" width=\"100\" height=\"100\" title=\"".$name."\" border=0 /></a>
<div class='go-left'>
<div style='float: left;'> ".$row['seeders']." Seed</div> <div style='float:right;'>".$row['leechers']." Leech</div>
</div>
</div>";
}
}
echo "</div></div><span style='padding: 0.1em;'></span></div><script type='text/javascript'>jssor_1_slider_init();</script><br />";
//End of Lastest Torrents with Poster Slider [=
exit();
?>
REQUIRES INSERTED INTO HEADER.PHP
Code:
<script src="http://47.88.157.27/js/vendor/jssor.slider-21.1.6.min.js" type="text/javascript"></script>
<script type="text/javascript" src="http://47.88.157.27/js/vendor/jssor.slider.min.js"></script>