summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephan Poehlsen <stephan@poehlsen.net>2005-11-30 22:16:38 +0000
committerStephan Poehlsen <stephan@poehlsen.net>2005-11-30 22:16:38 +0000
commit73dac4bd7f3837690befe68635a2616847b31603 (patch)
tree21efd3b8a4a3614a0892dd3972d38585312a7a8e
parentb7c8a88445936ab74ff675e2f2e17a039434d448 (diff)
crawler_id added in file.php
git-svn-id: file:///home/lennart/svn/public/sse/trunk@78 5fbabb74-0606-0410-a5e4-b5cc6a42724e
-rw-r--r--www/file.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/www/file.php b/www/file.php
index 8949c05..54c303a 100644
--- a/www/file.php
+++ b/www/file.php
@@ -14,7 +14,8 @@ if (preg_match('/\/(show|txt)\/([^\:]+\:[^\/]+)\/([^\?]+)/', $_SERVER['REQUEST_U
db_connect();
$query = "SELECT p.path AS ppath, f.path AS fpath ".
" FROM provider_record AS pr, package AS p, file AS f ".
-" WHERE pr.id='".db_escape($prid)."' AND pr.package_id=p.id AND f.package_id=p.id AND f.path='".db_escape($f_path)."'";
+" WHERE pr.id='".db_escape($prid)."' AND pr.package_id=p.id AND pr.crawler_id=p.crawler_id AND ".
+" f.crawler_id=p.crawler_id AND f.package_id=p.id AND f.path='".db_escape($f_path)."'";
$res = mysql_query($query);
if ($res === false) {
@@ -31,7 +32,6 @@ if (!($r = mysql_fetch_array($res))) {
$file = sprintf($r['ppath'], $r['fpath']);
-
//////////////////////////////////////////////////////////////////////////
// txt