Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require("../config.php");
- require_once(WWW_DIR."/lib/nntp.php");
- require_once(WWW_DIR."/lib/releasefiles.php");
- require_once(WWW_DIR."/lib/rarinfo.php");
- $nntp = new Nntp;
- $nntp->doConnect();
- $fetchedBinary = $nntp->getMessage("alt.binaries.hdtv.x264", "1245347741.88590.1@news.astraweb.com");
- if ($fetchedBinary === false)
- {
- echo "Failed fetching binary\n";
- }
- else
- {
- $rar = new RarInfo;
- if ($rar->setData($fetchedBinary))
- {
- $files = $rar->getFileList();
- foreach ($files as $file)
- {
- echo "{$file['name']} ({$file['size']})\n";
- }
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement