Move all the config files to newznab/config folder.

This commit is contained in:
DariusIII
2015-10-15 10:55:05 +02:00
parent 67fac3d0c9
commit e00244af1c
521 changed files with 1921 additions and 1128 deletions
@@ -1,16 +1,18 @@
<?php
require_once(dirname(__FILE__) . '/config.php');
require_once dirname(__FILE__) . '/../../../config.php';
use newznab\db\Settings;
use newznab\controllers\ConsoleTools;
use newznab\controllers\NNTP;
$start = TIME();
$pdo = new Settings();
$consoleTools = new \ConsoleTools(['ColorCLI' => $pdo->log]);
$consoleTools = new ConsoleTools(['ColorCLI' => $pdo->log]);
// Create the connection here and pass
$nntp = new \NNTP(['Settings' => $pdo]);
$nntp = new NNTP(['Settings' => $pdo]);
if ($nntp->doConnect() !== true) {
exit($pdo->log->error("Unable to connect to usenet."));
}