aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/download.php
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2003-05-03 23:58:45 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2003-05-03 23:58:45 +0000
commitdac0adead30ed70400a2a22f9439a8184ad479d8 (patch)
tree6a04b15e16669a1b6900c550ae06c856c06d09d8 /phpBB/download.php
parent5b927b016203cf0eb73bc33a787b778b9f614578 (diff)
downloadforums-dac0adead30ed70400a2a22f9439a8184ad479d8.tar
forums-dac0adead30ed70400a2a22f9439a8184ad479d8.tar.gz
forums-dac0adead30ed70400a2a22f9439a8184ad479d8.tar.bz2
forums-dac0adead30ed70400a2a22f9439a8184ad479d8.tar.xz
forums-dac0adead30ed70400a2a22f9439a8184ad479d8.zip
page header/footer become functions, forum passwords (I know, I know but it appears a popular feature for some reason ... inclusion not yet set in concrete nor complete), various bug fixes (and no doubt new bugs).
git-svn-id: file:///svn/phpbb/trunk@3969 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/download.php')
-rw-r--r--phpBB/download.php12
1 files changed, 10 insertions, 2 deletions
diff --git a/phpBB/download.php b/phpBB/download.php
index 42753a5d11..be3a2f3c4c 100644
--- a/phpBB/download.php
+++ b/phpBB/download.php
@@ -275,11 +275,19 @@ $sql = 'SELECT *
WHERE attach_id = ' . intval($download_id);
$result = $db->sql_query($sql);
-if (!$attachment = $db->sql_fetchrow($result))
+if (!($attachment = $db->sql_fetchrow($result)))
{
trigger_error('ERROR_NO_ATTACHMENT');
}
+/*
+if ($row['forum_password'])
+{
+ // Do something else ... ?
+ login_forum_box($row);
+}
+*/
+
// get forum_id for attachment authorization or private message authorization
$authorised = FALSE;
@@ -290,7 +298,7 @@ $sql = "SELECT a.*, p.forum_id
AND (a.post_id = p.post_id OR a.post_id = 0)";
$result = $db->sql_query($sql);
-$auth_pages = $db->sql_fetchrowset($result);
+$auth_pages = $db->sql_fetchrowset($result); // loop through rather than rowset if poss
for ($i = 0; $i < count($auth_pages) && $authorised == FALSE; $i++)
{