mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 00:01:21 +00:00
Move all the config files to newznab/config folder.
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user