mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-30 01:38:54 +00:00
17 lines
409 B
PHP
17 lines
409 B
PHP
<?php
|
|
require_once(dirname(__FILE__) . "/../bin/config.php");
|
|
require_once(WWW_DIR . "/lib/nntp.php");
|
|
require_once("prehash.php");
|
|
require_once("ColorCLI.php");
|
|
|
|
$nntp = new Nntp();
|
|
if ($nntp->doConnect() === false) {
|
|
$c = new ColorCLI();
|
|
echo $c->error("Unable to connect to usenet.\n");
|
|
|
|
return;
|
|
}
|
|
$c = new ColorCLI();
|
|
$predb = new PreHash ($echooutput = true);
|
|
$predb->checkPre($nntp);
|
|
$nntp->doQuit(); |