Ejemplo n.º 1
0
<?php

require "_header.tmpl.php";
?>

<?php 
for ($idx = $globalinfo['fromTor'] - 1; $idx < $globalinfo['toTor']; $idx++) {
    if (!($oneTorrent = $torrents[$idx])) {
        break;
    }
    $torrent = parseTorrent($oneTorrent);
    ?>

	<?php 
    require "_torrentStart.tmpl.php";
    ?>

	<?php 
    require "_torrentContent.tmpl.php";
    ?>

	<?php 
    require "_torrentEnd.tmpl.php";
    ?>

<?php 
}
?>

<tr>
	<td class="pagination">
<?php

require "_header.tmpl.php";
?>

<?php 
for ($idx = 0; $idx < 1; $idx++) {
    if (!($oneTorrent = $torrents[$idx])) {
        break;
    }
    $torrent = parseTorrent($oneTorrent, true);
    $torrent['progress_uploaded_width'] = ceil($torrent['ratio']);
    $torrent['progress_notuploaded_width'] = 100 - $torrent['progress_uploaded_width'];
    $torrent['progress_uploadeleft_border'] = 'progressGreen2LeftBorder.png';
    $torrent['progress_uploadedright_border'] = 'progressDarkBlueRightBorder.png';
    $torrent['progress_uploaded_image'] = 'progressGreen2.png';
    $torrent['progress_notuploaded_image'] = 'progressDarkBlue.png';
    $torrent['selected'] = true;
    ?>
	<?php 
    require "_torrentStart.tmpl.php";
    ?>

	<?php 
    require "_torrentOptions.tmpl.php";
    ?>

	<?php 
    require "_torrentEnd.tmpl.php";
    ?>