mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-09-01 18:58:56 +00:00
More fixes
This commit is contained in:
+1
-1
@@ -4,7 +4,7 @@ require(dirname(__FILE__)."/config.php");
|
||||
require(WWW_DIR.'/lib/postprocess.php');
|
||||
require_once (WWW_DIR.'/lib/site.php');
|
||||
|
||||
$version="0.3r305";
|
||||
$version="0.3r306";
|
||||
|
||||
$db = new DB();
|
||||
$s = new Sites();
|
||||
|
||||
+1
-1
@@ -129,7 +129,7 @@ class Namefixer
|
||||
$rowcount = $relres->rowCount();
|
||||
if ($rowcount > 0)
|
||||
{
|
||||
while ($relrow = $functions->fetchArray($relres))
|
||||
foreach ($relres as $relrow)
|
||||
{
|
||||
$this->done = $this->matched = false;
|
||||
$this->checkName($relrow, $echo, $type, $namestatus);
|
||||
|
||||
+1
-2
@@ -118,8 +118,7 @@ Class Predb
|
||||
else
|
||||
$nfo = $db->escapeString("http://nzb.isasecret.com/".$matches2["nfo"]);
|
||||
|
||||
$qry = $db->prepare(sprintf("INSERT INTO prehash (title, nfo, size, category, predate, adddate, source, hash) VALUES (%s, %s, %s, %s, FROM_UNIXTIME(".strtotime($matches2["date"])."), now(), %s, %s)", $db->escapeString($matches2["title"]), $nfo, $size, $db->escapeString($matches2["category"]), $db->escapeString("womble"), $db->escapeString(md5($matches2["title"]))));
|
||||
$qry->execute();
|
||||
$db->exec(sprintf("INSERT INTO prehash (title, nfo, size, category, predate, adddate, source, hash) VALUES (%s, %s, %s, %s, FROM_UNIXTIME(".strtotime($matches2["date"])."), now(), %s, %s)", $db->escapeString($matches2["title"]), $nfo, $size, $db->escapeString($matches2["category"]), $db->escapeString("womble"), $db->escapeString(md5($matches2["title"]))));
|
||||
$newnames++;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user