<?php require "../../www/config.php"; require_once WWW_DIR . "/lib/backfill.php"; $nntp = new nntp(); $nntp->doConnect(); $backfill = new Backfill(); $data = $nntp->selectGroup("alt.binaries.nintendo.ds"); $output = $backfill->postdate($nntp, "7434768"); echo date('r', $output) . "\n"; print_r($data); $nntp->doQuit();
// If this module is loaded without any parameters we display all groups // we have access to. So we set the default task to show_groups if it has // not been set before. $task = isset($_REQUEST['task']) ? $_REQUEST['task'] : 'show_groups'; // This file implements the navigation of this module. So if you need more // functions in this module you probably have to add them there. require "tasks.inc"; // All output should be aligned in a table to have correct distances // between the window-borders and our output. echo "<table border='0' cellpadding='10'><tr><td>"; // Initialize the NNTP class. As parameters give the server we want to connect // to, the current user and the password he used to login. // TODO in the future this will be probably be configurable and stored in // the database... This will probably break authentication on some public // NNTP servers! $nntp = new nntp("dot.tgm.ac.at", $_SESSION['GO_SESSION']["username"], $_SESSION['GO_SESSION']["user_auth_id"]); // Open the connection to the newsserver. We also could open a connection // each time we query the server for data, but that would be a performance // impact, so we decided to open the connection once and keep it open. $nntp->open(); // Decide what output we should generate... switch ($task) { // Display all groups the user is allowed to see or the specific group // the user likes to see if he is allowed to. case 'show_groups': // If the user requested a newsgroup we will only display this one. // Since the implementation in showMessages needs an array as parameter // we convert the newsgroup to an array. if (isset($_REQUEST['newsgroup'])) { // Generate a new array. $list = array();
<?php require "../../www/config.php"; require_once WWW_DIR . "/lib/backfill.php"; $nntp = new nntp(); $nntp->doConnect(); $backfill = new Backfill(); print_r($backfill->daytopost($nntp, "alt.binaries.teevee", 100)); $nntp->doQuit();
<?php //To troubleshoot what's actually on usenet. require "../../www/config.php"; require_once WWW_DIR . "/lib/nzb.php"; $nntp = new nntp(); $nntp->doConnect(); $groupArr = $nntp->selectGroup('alt.binaries.warez'); //since local we need the groupname here $msg = $nntp->getXOverview('132894081-132894081', true, false); //insert actual local part numbers here print_r($msg); //print out the array