From 4feb08390cbd72224b5d8147ba274f0558b6cbb5 Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Fri, 11 Apr 2003 06:07:58 +0000 Subject: [PATCH] re-use include... git-svn-id: file:///svn/phpbb/trunk@3813 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/download.php | 4 ++-- phpBB/language/en/lang_main.php | 3 +++ phpBB/templates/subSilver/viewtopic_attach_body.html | 12 +++++------- phpBB/templates/subSilver/viewtopic_body.html | 2 +- phpBB/viewtopic.php | 4 +--- 5 files changed, 12 insertions(+), 13 deletions(-) diff --git a/phpBB/download.php b/phpBB/download.php index f20612d58b..a41b040c4e 100644 --- a/phpBB/download.php +++ b/phpBB/download.php @@ -50,8 +50,8 @@ $allow_deny_order = ALLOWED_DENIED; // // Allowed Syntax: -// Full Domain Name -> www.opentools.de -// Partial Domain Names -> opentools.de +// Full Domain Name -> www.phpbb.com +// Partial Domain Names -> phpbb.com // $sites = array( $config['server_name'], // This is your domain diff --git a/phpBB/language/en/lang_main.php b/phpBB/language/en/lang_main.php index 1438e565ff..517daed8a8 100644 --- a/phpBB/language/en/lang_main.php +++ b/phpBB/language/en/lang_main.php @@ -481,6 +481,9 @@ $lang = array( 'DOWNLOAD' => 'Download', 'FILESIZE' => 'Filesize', 'FILE_NOT_FOUND_404' => '404 File Not Found: The File %s does not exist.', + 'DOWNLOADED' => 'Downloaded', + 'VIEWED' => 'Viewed', + 'DOWNLOAD_NUMBER' => '%d Time(s)', // replace %d with count 'User_control_panel' => 'User Control Panel', 'UCP_Main' => 'Control Panel', diff --git a/phpBB/templates/subSilver/viewtopic_attach_body.html b/phpBB/templates/subSilver/viewtopic_attach_body.html index eb91497d1b..c94d378f5c 100644 --- a/phpBB/templates/subSilver/viewtopic_attach_body.html +++ b/phpBB/templates/subSilver/viewtopic_attach_body.html @@ -1,6 +1,6 @@

-

+
[{postrow.attachment.L_DENIED}]

@@ -18,21 +18,19 @@ -
{postrow.attachment.DOWNLOAD_NAME} - {postrow.attachment.L_DOWNLOAD_COUNT}

+
{postrow.attachment.DOWNLOAD_NAME} - {postrow.attachment.L_DOWNLOADED_VIEWED} {postrow.attachment.L_DOWNLOAD_COUNT}

{postrow.attachment.COMMENT}
{postrow.attachment.DOWNLOAD_NAME}
-
{postrow.attachment.DOWNLOAD_NAME} - {postrow.attachment.L_DOWNLOAD_COUNT}

+
{postrow.attachment.DOWNLOAD_NAME} - {postrow.attachment.L_DOWNLOADED_VIEWED} {postrow.attachment.L_DOWNLOAD_COUNT}

{postrow.attachment.COMMENT}
{postrow.attachment.DOWNLOAD_NAME}
-
{postrow.attachment.DOWNLOAD_NAME} - {postrow.attachment.L_DOWNLOAD_COUNT}

+
{postrow.attachment.DOWNLOAD_NAME} - {postrow.attachment.L_DOWNLOADED_VIEWED} {postrow.attachment.L_DOWNLOAD_COUNT}

{postrow.attachment.COMMENT}
{postrow.attachment.UPLOAD_IMG} {postrow.attachment.DOWNLOAD_NAME} - {postrow.attachment.FILESIZE} {postrow.attachment.SIZE_VAR}
- {postrow.attachment.L_DOWNLOAD_COUNT}

+ {postrow.attachment.L_DOWNLOADED_VIEWED} {postrow.attachment.L_DOWNLOAD_COUNT}

- - {postrow.attachment.HELLO} diff --git a/phpBB/templates/subSilver/viewtopic_body.html b/phpBB/templates/subSilver/viewtopic_body.html index 6318bf794b..848a45f6de 100644 --- a/phpBB/templates/subSilver/viewtopic_body.html +++ b/phpBB/templates/subSilver/viewtopic_body.html @@ -128,7 +128,7 @@ - {postrow.MESSAGE}{postrow.SIGNATURE}{postrow.EDITED_MESSAGE} + {postrow.MESSAGE}{postrow.SIGNATURE}{postrow.EDITED_MESSAGE} diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php index 0ee15c0307..30325e5bd6 100644 --- a/phpBB/viewtopic.php +++ b/phpBB/viewtopic.php @@ -1156,13 +1156,11 @@ else // so go ahead and reset post_attach flags if ( (sizeof($attach_list)) && (count($attachments) == 0) ) { - echo "DELETE THOSE STUFF"; -/* $sql = "UPDATE " . POSTS_TABLE . " SET post_attachment = 0 WHERE post_id IN (" . implode(', ', $attach_list) . ")"; $db->sql_query($sql); -*/ + // We need to update the topic indicator too if the // complete topic is now without an attachment }