More fixes

This commit is contained in:
DariusIII
2013-12-08 18:10:34 +01:00
parent cfd089ff85
commit 3e64e16bc6
3 changed files with 3 additions and 4 deletions
+1 -1
View File
@@ -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
View File
@@ -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
View File
@@ -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++;
}
}