require('header.php'); ?> #Dit script rekent uit hoeveel tijd de server nodig heeft om jou php pagina uit te voeren ?> # Helemaal bovenaan je pagina en zelfs boven session_start(); $begin = microtime(); $split = explode(" ", $begin); $begin_precies = $split[0]; $begin_seconden = date("U"); $begin_tijd = $begin_precies + $begin_seconden; # Configuratie $pars_decimalen = "4"; $pars_voorvoegsel = "Parsetime:"; $pars_achtervoegsel = "sec"; ?>
Yoursite - BitTorrent | foreach ($c as $c_id => $c_name) { echo '' . $c_name . ' · '; } ?> Upload |
if(isset($_GET['hash']))
{
$infohash = $_GET['hash'];
$torrents = file('data/meta.txt');
$found = false;
foreach($torrents as $torrent)
{
if(substr($torrent, 0, 40) == $infohash)
{
$found = true;
break;
}
}
if($found)
{
$torrent = explode('`', $torrent);
$torrent_binary = file_get_contents('data/' . $infohash . '.torrent');
echo ' ' . $torrent[3] . ' ';
echo '';
echo 'Name: ';
//print_r($t);
}
}
else
{
if(isset($_GET['category']) && intval($_GET['category']))
{
$cat = intval($_GET['category']);
}
else
{
$cat = false;
}
$no_torrents = 0;
if($cat)
echo '' . $torrent[3] . ''; echo 'Size: ' . number_format($torrent[2]/1024/1024) . 'Mb'; echo 'Hash: ' . $torrent[0] . ''; echo 'Added: ' . ago(filemtime('data/' . $infohash . '.torrent')) . ''; //if(isset($t["creation date"])) not working ?? // { //echo 'Created: ' . ago($t["creation date"]) . ' '; // } echo 'Category: ' . $c[intval($torrent[1])] . ''; $bencode = new BEncodeLib(); $t = $bencode->bdecode($torrent_binary); echo ''; if(file_exists('data/scrape_' . $infohash)) { echo 'Tracker - Seeders : Leechers Updated
' . htmlspecialchars($t['comment']) . ''; } echo 'Files:
' . $c[$cat] . ' Torrents ';
else
echo 'New additions ';
echo '
|
Powered by Defiant Torrent Directory |