mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-28 17:01:16 +00:00
25 lines
450 B
PHP
25 lines
450 B
PHP
<?php
|
|
require_once dirname(__FILE__) . '/../../www/config.php';
|
|
|
|
use newznab\db\Settings;
|
|
|
|
|
|
$db = new Settings();
|
|
$n = new NZB();
|
|
$s = New Sites;
|
|
$site = $s->get();
|
|
|
|
$items = $db->query("SELECT guid FROM releases");
|
|
|
|
while ($item = array_pop($items))
|
|
{
|
|
$guid = $item['guid'];
|
|
$nzbpath = $n->getNZBPath($guid, $site->nzbpath);
|
|
$zd = _gzopen($nzbpath, "r");
|
|
$s = gzread($zd, 10 );
|
|
|
|
if ($s != "<?xml vers")
|
|
{
|
|
echo "fucked - ". $guid . "\n";
|
|
}
|
|
} |