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
+3 -2
View File
@@ -1,13 +1,14 @@
<?php
//This script will update all records in the gamesinfo table
require_once dirname(__FILE__) . '/../../../www/config.php';
require_once realpath(dirname(dirname(dirname(__DIR__))) . DIRECTORY_SEPARATOR . 'indexer.php');
use newznab\db\Settings;
use newznab\controllers\Games;
$pdo = new Settings();
$game = new \Games(['Echo' => true, 'Settings' => $pdo]);
$game = new Games(['Echo' => true, 'Settings' => $pdo]);
$res = $pdo->query(
sprintf("SELECT id, title FROM gamesinfo WHERE cover = 0 ORDER BY id DESC LIMIT 100")