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,13 +1,16 @@
<?php
require_once dirname(__FILE__) . '/../../../../www/config.php';
require_once realpath(dirname(dirname(dirname(dirname(__DIR__)))) . DIRECTORY_SEPARATOR . 'indexer.php');
use newznab\db\Settings;
use newznab\utility\Utility;
use newznab\controllers\TmuxOutput;
use newznab\controllers\TmuxRun;
use newznab\controllers\Category;
$pdo = new Settings();
$tRun = new \TmuxRun($pdo);
$tOut = new \TmuxOutput($pdo);
$tRun = new TmuxRun($pdo);
$tOut = new TmuxOutput($pdo);
$runVar['paths']['misc'] = NN_MISC;
$runVar['paths']['lib'] = NN_LIB;
@@ -77,7 +80,7 @@ while ($runVar['counts']['iterations'] > 0) {
$runVar['timers']['query']['tmux_time'] = (time() - $timer01);
$runVar['settings']['book_reqids'] = (!empty($runVar['settings']['book_reqids'])
? $runVar['settings']['book_reqids'] : \Category::CAT_PARENT_BOOK);
? $runVar['settings']['book_reqids'] : Category::CAT_PARENT_BOOK);
//get usenet connection info
$runVar['connections'] = $tOut->getConnectionsInfo($runVar['constants']);