daily pastebin goal
9%
SHARE
TWEET

Untitled

a guest Aug 13th, 2017 168 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. require("../config.php");
  3.  
  4. require_once(WWW_DIR."/lib/nntp.php");
  5. require_once(WWW_DIR."/lib/releasefiles.php");
  6. require_once(WWW_DIR."/lib/rarinfo.php");
  7.  
  8. $nntp = new Nntp;
  9. $nntp->doConnect();
  10.  
  11. $fetchedBinary = $nntp->getMessage("alt.binaries.hdtv.x264", "1245347741.88590.1@news.astraweb.com");
  12.  
  13. if ($fetchedBinary === false)
  14. {
  15.   echo "Failed fetching binary\n";
  16. }
  17. else
  18. {
  19.   $rar = new RarInfo;
  20.   if ($rar->setData($fetchedBinary))
  21.   {
  22.    $files = $rar->getFileList();
  23.    foreach ($files as $file)
  24.    {
  25.      echo "{$file['name']} ({$file['size']})\n";
  26.    }
  27.   }
  28. }
  29. ?>
RAW Paste Data
Top