\n"; file_put_contents('./'.$file['info']['name'].'.sources', file_get_contents('http://www.filemirrors.com/find.src?file='.urlencode($file['info']['name']).'&size='.$file['info']['length'].'&getright=1')); } $input = explode("\n",file_get_contents("./".$file['info']['name'].".sources") ); foreach( $input as $newsource ) { if($newsource != "") { $splitsource = explode( "\"", $newsource ); if ( $splitsource[1] != "" ) { if( !is_array($sources[$file['info']['name']]['sources']) || !in_array( $splitsource[1], $sources[$file['info']['name']]['sources'] ) ) $sources[$file['info']['name']]['sources'][] = $splitsource[1]; if( $torrentphp == false ) echo "\n"; } } } } } // Prelim Functions, move later function buildmagnet ( $inputarray , $sourcesarray ) { $magnetprefix = "magnet:?"; if( isset( $inputarray['tiger'] ) && isset( $inputarray['sha1'] ) ) $magxt[] = "xt=urn:bitprint:".BASE32::base32encode($inputarray['sha1']).".".BASE32::base32encode($inputarray['tiger']); if( !isset( $inputarray['tiger'] ) && isset( $inputarray['sha1'] ) ) $magxt[] = "xt=urn:sha1:".BASE32::base32encode($inputarray['sha1']); if( isset( $inputarray['tiger'] ) && !isset( $inputarray['sha1'] ) ) $magxt[] = "xt=urn:tiger:".BASE32::base32encode($inputarray['tiger']); if( isset( $inputarray['ed2k'] ) ) $magxt[] = "xt=urn:ed2k:".bin2hex($inputarray['ed2k']); $output = $magnetprefix; foreach( $magxt as $value ) $output .= $value."&"; $output .="xl=".$inputarray['length']."&dn=".$inputarray['name']; if( count($sourcesarray) > 0 ) foreach( $sourcesarray as $source ) $output .= "&xs=".$source; return $output; } ?> Depthstrike.com Mirrors for OpenOffice.org */ ?> $per_page) break; if ($current == 'even') { echo ""; $current = 'odd'; } else { echo ""; $current = 'even'; } echo "\n"; echo ""; echo "\n"; echo "\n"; echo "\n"; $count++; } if ( $count > 5 ) echo ""; //$trackerstats = BDecode(file_get_contents('http://core-tracker.depthstrike.com:9800/info.bencode')); echo ""; if ( $count > 4 ) echo "\n"; $page_no = $page_no+1; if ( $count > 3 ) echo ""; ?>
Current hosted files (newest first, not sorted by project):
Project
Discussion Forum
Build Version Filesize Checksums:
CRC32 (Hex) - ED2K (Hex)
MD5 (Hex) - SHA1 (Hex)
Tiger Tree (Base32)
Download Links
and Statistics:
"; if ( isset($downloads[$i]['address']) ) echo ""; if ( isset($downloads[$i]['logo']) ) echo ""; echo $downloads[$i]['name']; if ( isset($downloads[$i]['address']) ) echo ""; if( isset($downloads[$i]['forum']) ) echo "
Discussion Forum"; if( isset($downloads[$i]['thread']) ) echo "
Discussion Thread"; echo "
".$downloads[$i]['version']."".number_format($basetorrent[$i]['info']['length'])." bytes"; if ( isset($basetorrent[$i]['info']['crc32']) ) echo "CRC32: ".$basetorrent[$i]['info']['crc32']."
"; if ( isset( $basetorrent[$i]['info']['ed2k'] ) ) echo "ED2K: ".bin2hex($basetorrent[$i]['info']['ed2k'])."
"; if ( isset( $basetorrent[$i]['info']['md5sum'] ) ) echo "MD5: ". $basetorrent[$i]['info']['md5sum'] . "
"; if ( isset( $basetorrent[$i]['info']['sha1'] ) ) echo "SHA1: ". bin2hex($basetorrent[$i]['info']['sha1'])."
"; if ( isset( $basetorrent[$i]['info']['tiger'] ) ) echo "Tiger Tree: ". BASE32::base32encode($basetorrent[$i]['info']['tiger']) . ""; echo "
"; if ( $downloads[$i]['showtorrent'] == 1 ) { echo "Torrent
"; else echo $downloads[$i]['torrent']."\">Torrent
"; if( !isset($clientstracker['files'][addslashes($downloads[$i]['hash'])]) ) { echo "SD: ".$clientstracker['files'][$downloads[$i]['hash']]['complete']; echo " DL: ".$clientstracker['files'][$downloads[$i]['hash']]['incomplete']; if( !isset($clientstracker['files'][$downloads[$i]['hash']]['downloaded']) ) echo "
Completed: ".$clientstracker['files'][$downloads[$i]['hash']]['downloaded']." Times"; echo "
\n"; } else { echo "SD: ".$clientstracker['files'][addslashes($downloads[$i]['hash'])]['complete']; echo " DL: ".$clientstracker['files'][addslashes($downloads[$i]['hash'])]['incomplete']; if( isset($clientstracker['files'][addslashes($downloads[$i]['hash'])]['downloaded']) ) echo "
Completed: ".$clientstracker['files'][addslashes($downloads[$i]['hash'])]['downloaded']." Times"; echo "
\n"; } if( (isset($downloads[$i]['webseed']) && $downloads[$i]['webseed'] == 1) || isset($basetorrent[$i]['httpseeds']) || (isset($downloads[$i]['usetphp']) && $downloads[$i]['usetphp'] == 1 && count($httpseeds) != 0 ) ) { echo "Webseed Enabled - "; if(isset($downloads[$i]['usetphp']) && $downloads[$i]['usetphp'] == 1 ) { if ( count($httpseeds) != 0 ) { if( !isset($basetorrent[$i]['httpseeds'] ) ) $basetorrent[$i]['httpseeds'] = $httpseeds; else foreach( $httpseeds as $seed ) if( !in_array($seed, $basetorrent[$i]['httpseeds'] )) $basetorrent[$i]['httpseeds'][] = $seed; } } if (isset($basetorrent[$i]['httpseeds']) ) echo count($basetorrent[$i]['httpseeds'])." webseeds
\n"; } if( ( isset($downloads[$i]['sourcefilename']) && isset($sources[$downloads[$i]['sourcefilename']]['sources']) )|| (isset($basetorrent[$i]['sources']) ) ) echo "External Source Enabled - ".count($sources[$downloads[$i]['sourcefilename']]['sources'])." sources
\n"; } if ( isset( $basetorrent[$i]['info']['ed2k'] ) || isset( $basetorrent[$i]['info']['sha1'] ) || isset( $basetorrent[$i]['info']['tiger'] ) ) echo " Magnet
\n"; if( isset( $downloads[$i]['mirrors'] ) ) foreach( $downloads[$i]['mirrors'] as $mirrorname => $mirroraddress ) echo "".$mirrorname."
\n"; echo "
Torrent seed/peer data last updated: "; else echo "
Torrent seed/peer data last updated: "; echo date ("F d Y H:i:s", filemtime('/var/www/htdocs/ead/webseed/clients.bencode')); echo " GMT".date(" O", filemtime('/var/www/htdocs/ead/webseed/clients.bencode') ).".
\n"; echo "Current time: "; echo date ("F d Y H:i:s", time() ); echo " GMT".date(" O", time() ).".
"; else echo ""; echo "Tracker Files: ".$clientstracker['filecount']."
"; echo "Tracker Peers: ".$clientstracker['peers']." - Unique: ".$clientstracker['unique']."
"; echo "Tracker Software Version: ".$clientstracker['version']; echo "
Page "; else echo "
Page "; if( $pages == 1 && $page_no == 1 ) { echo "1 "; } if( $pages > 1 ) { for( $j = 0; $j < $pages; $j++ ) { $k = $j + 1; if( $k != $page_no ) { if( isset($_GET['category']) ) echo "".$k." "; else echo "".$k." "; } else echo $k." "; } } echo "
Notes:
1> Magnet links are compatible with GNUTella clients, DirectConnect clients that support Thex or SHA1 hashing, and ED2K clients configured to support magnets.
Help Keep This
Site Running
2> All the peer to peer networks work better if you share. With torrents, seed to at LEAST 100% on files. With the other networks, keep the file in a shared folder.
3> This site employs a special parser of several FTP/HTTP mirror index sites which updates regularly. A given Torrent's HTTP/FTP mirror pool may change as frequently as every 30 minutes.