#################################################################
## Mod Title: File Attachment Mod v2
## Mod Version: 2.3.7
## Author: Acyd Burn < acyd.burn@gmx.de > - Meik Sievertsen - http://www.opentools.de/attach_mod/
## Description:
## This Mod adds the ability to attach files in phpBB2.
## This Version is Tested and works with phpBB 2.0.4.
## This Version will NOT work with phpBB2 Modules designed for *Nuke Portals.
##
## Features:
## - Full Permissions System
## You are able to set Download Permissions, Upload Permissions and Extension Groups per Forum Permissions.
## - Able to add comments to Attachments
## - Automatic Deletion of Attachments if Posts got deleted (manual Delete, pruning, within the Moderator Control Panel or the User Attachment Control Panel)
## - Editing of existing Attachments.
## Able to Delete/Add/Change Comment and Update Attachments while editing Posts.
## - even if the local path for Attachments is changed in admin, all previous posted attachments will be displayed correctly
## - category support - special behaviour instead of just presenting a link
## - Special Behaviour on Images:
## Thumbnail Support
## Image Link Presentation depending on Dimensions
## Inline Images
## - Stream Files directly within Posts. Supported Types:
## aif, aifc, aiff, asf, asx, au, avi, ivf, m3u, mid, midi, mlv, mp2, mp3, mp2v, mpa, mpe, mpeg, mpg, mpv2, rmi, snd, wav, wax, wm, wma, wmx, wmv, wvx
## - Play Flash Files within Posts. Support for compressed Flash MX Files.
## - little image definable for displaying in front of Attachments and Threads containing Attachments.
## Able to define an Image for Forum View and for every Extension Group.
## - Maximum Upload Size definable.
## Maximum Upload Size per Extension Group definable.
## - Multiple attachments in one post
## maximum number of attachments per post definable
## - multiple attachments in one PM
## maximum number of attachments per PM definable
## - Attachment Quotas:
## - Overall Attachment Quota
## - User Attachment Quotas
## - Group Attachment Quotas
## - Quotas are definable for PM Boxes and Upload
## - download counter
## - Download Method selectable for every Extension Group
## This is very useful for Datatypes needing a 'real' link, for example real media files
## - three Upload Methods:
## - Normal Upload
## - FTP Upload
## - FTP Remote Upload
## - Able to display Attachments in Preview Window
## - Able to display Attachments in Review Window
## - User Attachment Control Panel
## - Attachment Limit Box within Private Message Box
## - Attachment Upload Stats in Users Profile
##
## - Special Admin Modules:
## - Manage Forbidden Extensions
## - Manage allowed Extensions (Delete, Add, Assign new group)
## - Manage Extension Groups
## - Manage Special Categories
## - Synchronize Attachments
## - Delete Shadow Attachments (those Attachments not deleted with posts, for what reason ever)
## - a complete Attachment Control Panel (with an integrated search feature)
## - much more. To sum it up, a fully customizable Attachment Feature for your Board.
##
## - Language Packs:
## for up-to-date Language Packs and Informations please visit http://www.opentools.de/attach_mod/
## or the Language Pack Forum at http://www.opentools.de/board
## (if someone is willing to translate the Attachment Mod to other Languages, please contact me at Opentools.de)
##
## - database-support: mysql, mysql4, mssql, mssql-odbc, postgresql
##
## Credits:
## Translators:
## Up-to-date Translator List can be found here: http://www.opentools.de/attach_mod and at the Board: http://www.opentools.de/board
##
## Additional:
## [ FAQ ] - torgeir andrew waterhouse (torgeir.waterhouse (at) forbrukerradet.no)
##
## Special Thanks to:
## Neil Mickelson, SHS`, Water, Kail, DareDevil, vHiker and all People contributing their time and effort to this Mod.
##
## Revision History:
##
## 2003-03-09 - Version 2.3.7
## - hopefully fixed issues with the admin panel and hoster unable to correctly setup apache+php
## - added post id (and user id) sync to the Attachment Synchronization Panel
## - fixed user id assignment bugs within editing posts
## - adjusted thumbnail functions to be more error-proof.
## - fixed wrong display and deletion of Private Message Attachments within the User ACP.
## - changed header order in download.php and send content-length
## - add cryptic filename support (you have to manually enable this one within the posting_attachments.php file)
## - integrated the download_secure mechanism into the download.php file (commented out)
## - fixed bug with zlib.output_compression enabled (within PHP or Apache)
## - fixed general ob_gz_handler() issues with compressed files. Now re-compressing should not occur.
## - added Slideshow/Photogallery (available as Addon) - vHiker (see addons/slideshow_mod/install.txt)
##
## 2003-02-03 - Version 2.3.6
## - added session id check to user attachment control panel
## - fixed bug: language selection error within user attachment control panel
## - fixed bug: unable to download files with ftp uploading enabled
## - fixed postgresql issue in admin panel
## - viewtopic_attach_body.tpl file now XHTML compatible
## - fixed some html issues in viewtopic_attach_body.tpl, should work with all browsers now
## - fixed bug: typo for message_die in shadow attachments screen
## - fixed file listing issues with ftp setups
## - fixed bug: no quota settings in user admin panel (only occured on direct url access)
## - fixed quota boxes, limited the graphic bar to 100%
## - fixed bug: if admin view users profile, his quota limit box is displayed instead of user ones
## - fixed bug: rules window not worked if Attachments within PM's was disabled and Admin tried to send PM.
## - html fixes for some tpl's, mainly checkbox entries
## - fixed bug: PM's with more than one Attachment not correctly duplicated (sentbox)
## - fixed bug: PM attach quota box display conditions, sometimes the box was not displayed
## - adjusted delete function to be compatible with all modes of id assignments (array, comma seperated, one value)
## - if no attachments are assigned in uacp, just display no attachments instead of an error message.
## - fixed bug: no more than 2048 MB in Quota Limit Management assignable
## - updated .htaccess file for more security
## - updated the contrib/download_secure.php file (backported the fixes made within the download.php file)
## - added file icons (see contrib/readme.txt)
## - added two additional viewtopic_attach_body.tpl files (see contrib/readme.txt)
##
## 2003-01-17 - Version 2.3.5
## - on language include error fall back to board language instead of english
## - fix for non-working shadow attachments screen (only affected by boards with more than 200 Attachments)...
## - fixed some path assignments
## - Attachment Synchronization fixed, should not time out now
## - fixed download counter for streams and flash files
## - fixed check for receivers PM Quota Limit
## - fixed issues with boards setting the Filesize to Unlimited
## - fixed bug where Files got not attached if Post errors occured (If topic title is not defined for example)
## - fixed issues with Synchronize Attachments on MSSQL
## - fixed a little typo preventing display of comments within Preview Window
## - fixed non-deletion of attachment description entries on some circumstances
## - fixed determining of PM Quota (Receiver and Sender)
## - fixed issue with the updater and postgresql (unable to insert config values)
## - fixed issues with not recognising values correctly
## - suppress warning message if the function exec() is disabled
## - do not use imagemagick (instead use GD) if the path within Special Categories is empty.
## - adjusted Installation Instructions for phpBB 2.0.4
## - changed authorization to attach files: only if posting is allowed too
## - changed authorization to download files: only if viewing is allowed too
## - changed the way the Attachment Size within the PM Box is counted, the SENT Box is not counted anymore.
## - changed the display of Attachments (DareDevil)
## - changed the Installation Paths to be compliant with phpBB 2.0.4
## - Attachments are now displayed before Signatures
## - added Xitami to the servers doing a normal refresh if physical download is enabled
## - added User Attachment Control Panel (accessible from Users Profile)
## - added User Upload Quota Box to Users profile (Stats+Link too)
## these Upload Stats are only viewable by the User itself and the Administrator
## - added User Quota System (PM Quota and Upload Quota are definable for Users and Groups)
## - quota settings added to the user admin and group admin page
## - added quota limits cp to the admin panel
## - added additional check to the shadow attachments (sync attachment references with attachments)
## - added FTP Extensions check. If FTP Extensions are not compiled into the PHP Installation,
## the Administrator will receive the appropiate Message and is unable to configure FTP Settings.
## - added attach limit box to Private Message Center.
## - added pre-edited files for phpBB 2.0.4
## - added compatibility for phpBB 2.0.0 viewtopic versions (you should really really upgrade !!!)
## - added setting to enable FTP Passive Mode
## - removed additional queries at viewtopic if images or thumbnails are displayed
## - added upload image to all instances of viewtopic_attach_body.tpl
## - added Attachment Mod User Guide
## - Attachments should be cached now
## - introduced optional caching of the Attachment Mod config table
## to let this work, just create a directory called 'cache' within your phpBB2 root and chmod it to 777.
## - dropped maintainance for the lang_german_sie package
##
##
## for the complete Revision History, please check the revision.txt file.
##
##
## Installation Level: moderate
## Installation Time: 30-60 Minutes
## Files To Edit (30): common.php, faq.php, modcp.php, posting.php, privmsg.php,
## viewforum.php, viewtopic.php, admin/admin_forumauth.php, admin/admin_ug_auth.php, admin/admin_forums.php,
## admin/admin_groups.php, admin/admin_users.php, includes/auth.php, includes/functions.php, includes/functions_admin.php,
## includes/prune.php, includes/topic_review.php, includes/usercp_viewprofile.php, modcp_body.tpl, posting_body.tpl,
## posting_preview.tpl, posting_topic_review.tpl, privmsgs_body.tpl, privmsgs_preview.tpl, privmsgs_read_body.tpl,
## profile_view_body.tpl, viewforum_body.tpl, viewtopic_body.tpl, admin/group_edit_body.tpl, admin/user_edit_body.tpl
## Lines(!) To Add: 115
## Included Files: many many files
##
##############################################################
## This MOD is released under the GPL License.
##############################################################
## Please Check the following Sites for the latest version of this MOD:
##
## http://www.phpbb.com/mods/downloads/
## http://www.opentools.de/attach_mod/
## http://sourceforge.net/projects/acydmods
##
## For Security Purposes:
## If you want to add this MOD into ANY MODs Database, please ask me before you do so.
## If anyone ask me if it's safe to use, i will have a list of sites where it's available/downloadable from.
## Downloading this MOD from sites not on my list could cause malicious code to enter into your phpBB Forum.
## As an additional service, i will inform those sites when a new Version comes out.
##
##
## Full support for this MOD can be obtained at:
## http://www.opentools.de, http://www.phpbb.com, http://www.phpbbhacks.com
##
##############################################################
## Author Notes:
##
## If you want to update from previous versions please read the documentation in docs/update.
##
## Please follow the Installation Instructions as strict as you can.
##
## The Attachment Mod User Guide (docs/user_guide.html) is very helpful if you have problems.
## The User Guide describes this Mod Template Format too, if you are not familiar with Mods, you should read
## the User Guide before installing this Mod.
##
## This Mod was tested with the following databases:
## MySql, MSSQL, PostgreSQL (only Version 7.0.3 tested)
##
#################################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
#################################################################
#
# A forword:
# If you use a plain phpBB2 Board (not modded) and do not want to edit your phpBB2 files, you
# are able to use pre-edited files, located at the contrib directory.
# Even if you use the pre-edited files, you have to follow all Steps (not the file-editing of course)
# listed here.
#
# Additionally, you should read the Attachment Mod User Guide if you are unfamiliar with installing Modifications.
#
#
# Here starts the Installation, follow the steps very close.
#
#
# STEP NUMBER I: Uploading all new Files
#
# Copy/Upload all files to their respective Location (the directory structure is in the folder root)
#
# attach_mod/root/download.php -> download.php
# attach_mod/root/uacp.php -> uacp.php
# attach_mod/root/admin/admin_attach_cp.php -> admin/admin_attach_cp.php
# attach_mod/root/admin/admin_attachments.php -> admin/admin_attachments.php
# attach_mod/root/admin/admin_extensions.php -> admin/admin_extensions.php
# attach_mod/root/attach_mod/attach_rules.php -> attach_mod/attach_rules.php
# attach_mod/root/attach_mod/attachment_mod.php -> attach_mod/attachment_mod.php
# attach_mod/root/attach_mod/displaying.php -> attach_mod/displaying.php
# attach_mod/root/attach_mod/index.htm -> attach_mod/index.htm
# attach_mod/root/attach_mod/pm_attachments.php -> attach_mod/pm_attachments.php
# attach_mod/root/attach_mod/posting_attachments.php -> attach_mod/posting_attachments.php
# attach_mod/root/attach_mod/includes/constants.php -> attach_mod/includes/constants.php
# attach_mod/root/attach_mod/includes/functions_admin.php -> attach_mod/includes/functions_admin.php
# attach_mod/root/attach_mod/includes/functions_attach.php -> attach_mod/includes/functions_attach.php
# attach_mod/root/attach_mod/includes/functions_delete.php -> attach_mod/includes/functions_delete.php
# attach_mod/root/attach_mod/includes/functions_filetypes.php -> attach_mod/includes/functions_filetypes.php
# attach_mod/root/attach_mod/includes/functions_includes.php -> attach_mod/includes/functions_includes.php
# attach_mod/root/attach_mod/includes/functions_selects.php -> attach_mod/includes/functions_selects.php
# attach_mod/root/attach_mod/includes/functions_thumbs.php -> attach_mod/includes/functions_thumbs.php
# attach_mod/root/attach_mod/includes/index.htm -> attach_mod/includes/index.htm
# attach_mod/root/files/index.php -> files/index.php
# attach_mod/root/images/icon_clip.gif -> images/icon_clip.gif
# attach_mod/root/images/icon_disk.gif -> images/icon_disk.gif
# attach_mod/root/images/icon_disk_gray.gif -> images/icon_disk_gray.gif
# attach_mod/root/templates/subSilver/add_attachment_body.tpl -> templates/subSilver/add_attachment_body.tpl
# attach_mod/root/templates/subSilver/posted_attachments_body.tpl -> templates/subSilver/posted_attachments_body.tpl
# attach_mod/root/templates/subSilver/posting_attach_body.tpl -> templates/subSilver/posting_attach_body.tpl
# attach_mod/root/templates/subSilver/posting_attach_rules.tpl -> templates/subSilver/posting_attach_rules.tpl
# attach_mod/root/templates/subSilver/uacp_body.tpl -> templates/subSilver/uacp_body.tpl
# attach_mod/root/templates/subSilver/viewtopic_attach_body.tpl -> templates/subSilver/viewtopic_attach_body.tpl
# attach_mod/root/templates/subSilver/admin/attach_cat_body.tpl -> templates/subSilver/admin/attach_cat_body.tpl
# attach_mod/root/templates/subSilver/admin/attach_cp_attachments.tpl -> templates/subSilver/admin/attach_cp_attachments.tpl
# attach_mod/root/templates/subSilver/admin/attach_cp_body.tpl -> templates/subSilver/admin/attach_cp_body.tpl
# attach_mod/root/templates/subSilver/admin/attach_cp_search.tpl -> templates/subSilver/admin/attach_cp_search.tpl
# attach_mod/root/templates/subSilver/admin/attach_cp_user.tpl -> templates/subSilver/admin/attach_cp_user.tpl
# attach_mod/root/templates/subSilver/admin/attach_extension_groups.tpl -> templates/subSilver/admin/attach_extension_groups.tpl
# attach_mod/root/templates/subSilver/admin/attach_extensions.tpl -> templates/subSilver/admin/attach_extensions.tpl
# attach_mod/root/templates/subSilver/admin/attach_forbidden_extensions.tpl -> templates/subSilver/admin/attach_forbidden_extensions.tpl
# attach_mod/root/templates/subSilver/admin/attach_manage_body.tpl -> templates/subSilver/admin/attach_manage_body.tpl
# attach_mod/root/templates/subSilver/admin/attach_quota_body.tpl -> templates/subSilver/admin/attach_quota_body.tpl
# attach_mod/root/templates/subSilver/admin/attach_shadow.tpl -> templates/subSilver/admin/attach_shadow.tpl
# attach_mod/root/templates/subSilver/admin/extension_groups_permissions.tpl -> templates/subSilver/admin/extension_groups_permissions.tpl
#
#
# Upload the Language Files (English (German and Formal German are optional)) provided with the Attachment Mod, located at attach_mod/root/language)
# to your language Directory.
#
# If you want/have another language, please visit http://www.opentools.de/attach_mod/ , and download your
# Language if it is available. If you have a multi-national board you may want to upload all language files.
# Please make sure you download the Language Pack for Version 2.3.7 of the Attachment Mod.
# (Language Pack Versions 2.3.5 and 2.3.6 are compatible too)
#
#
# STEP NUMBER II: Installing the Attachment Mod (Database)
#
# Upload these Files, they are only needed for installation:
#
# attach_mod/root/install/mod_table_inst.php -> install/mod_table_inst.php
#
# Upload the Schema Files in ASCII Mode (This is the Layout and Data for your Database):
# (Maybe you have to create the install folder if it does not exist)
#
# for mysql:
# attach_mod/root/install/schemas/attach_mysql_schema.sql -> install/schemas/attach_mysql_schema.sql
# attach_mod/root/install/schemas/attach_mysql_basic.sql -> install/schemas/attach_mysql_basic.sql
#
# for mssql:
# attach_mod/root/install/schemas/attach_mssql_schema.sql -> install/schemas/attach_mssql_schema.sql
# attach_mod/root/install/schemas/attach_mssql_basic.sql -> install/schemas/attach_mssql_basic.sql
#
# for postgresql:
# attach_mod/root/install/schemas/attach_postgres_schema.sql -> install/schemas/attach_postgres_schema.sql
# attach_mod/root/install/schemas/attach_postgres_basic.sql -> install/schemas/attach_postgres_basic.sql
#
#
# Now we want to create the tables, therefore we run mod_table_inst.php (http://www.yoursite.com/phpBB2/install/mod_table_inst.php)
# Please be sure to enter the correct URL, the mod_table_inst.php file has to be placed within the install folder.
# Contact me if you have questions or problems.
#
#
# For Uninstallation (this file will delete all of your Attachments):
# Upload attach_mod/scripts/mod_table_uninst.php -> mod_table_uninst.php
# Run the script and delete it after execution
#
#
# If you don't want to edit the Files by hand, you are free to use the following methods:
#
# 1) You are able to use the pre-edited files (found in the contrib-directory).
#
# If you use the pre-edited files, you can skip this Step Number III.
# Directly continue with Step Number IV.
#
# 2) Using the Patch File (located at the scripts directory)
#
# Please refer to docs/using_patchfile.txt on how to use the patch file.
# If you use the patch file, you can skip this Step Number III.
# Directly continue with Step Number IV.
#
#
# STEP NUMBER III: Modifying existing phpBB2 Files
#
# Now you have to alter existing phpBB2 files, read the instructions carefully and make sure you find the right lines.
# The Line Numbers are only a hint, most times they are not exactly.
# The Line Numbers are taken from phpBB 2.0.3
#
#
#
#-----[ OPEN ]---------------------------------------------
#
common.php
#
#-----[ FIND ]---------------------------------------------
# around line 181
$board_config[$row['config_name']] = $row['config_value'];
}
#
#-----[ AFTER, ADD ]--------------------------------------
# After the closing brace
include($phpbb_root_path . 'attach_mod/attachment_mod.'.$phpEx);
#
#-----[ OPEN ]---------------------------------------------
#
faq.php
#
#-----[ FIND ]---------------------------------------------
# around line 59
include($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/' . $lang_file . '.' . $phpEx);
#
#-----[ AFTER, ADD ]---------------------------------------
#
attach_faq_include($lang_file);
#
#-----[ OPEN ]---------------------------------------------
#
modcp.php
#
#-----[ FIND ]---------------------------------------------
# around line 321
remove_search_post($post_id_sql);
#
#-----[ AFTER, ADD ]---------------------------------------
#
delete_attachment(explode(', ', $post_id_sql));
#
#-----[ FIND ]---------------------------------------------
# around line 1143
'TOPIC_ID' => $topic_id,
#
#-----[ AFTER, ADD ]---------------------------------------
#
'TOPIC_ATTACHMENT_IMG' => topic_attachment_image($row['topic_attachment']),
#
#-----[ OPEN ]---------------------------------------------
#
posting.php
#
#-----[ FIND ]---------------------------------------------
# around line 427
$attach_sig = ( $submit || $refresh ) ? ( ( !empty($HTTP_POST_VARS['attach_sig']) ) ? TRUE : 0 ) : ( ( $userdata['user_id'] == ANONYMOUS ) ? 0 : $userdata['user_attachsig'] );
#
#-----[ AFTER, ADD ]---------------------------------------
#
execute_posting_attachment_handling();
#
#-----[ FIND ]---------------------------------------------
# around line 584
user_notification($mode, $post_data, $post_info['topic_title'], $forum_id, $topic_id, $post_id, $notify_user);
}
#
#-----[ AFTER, ADD ]---------------------------------------
# (the Line have to be added AFTER the closing brace)
$attachment_mod['posting']->insert_attachment($post_id);
#
#-----[ FIND ]---------------------------------------------
# around line 713
'preview' => 'posting_preview.tpl')
);
#
#-----[ AFTER, ADD ]---------------------------------------
# (the Line have to be added AFTER the ');' )
$attachment_mod['posting']->preview_attachments();
#
#-----[ OPEN ]---------------------------------------------
#
privmsg.php
#
#-----[ FIND ]---------------------------------------------
# around line 139
// ----------
// Start main
#
#-----[ BEFORE, ADD ]--------------------------------------
#
execute_privmsgs_attachment_handling($mode);
#
#-----[ FIND ]---------------------------------------------
# around line 358
//
// Pick a folder, any folder, so long as it's one below ...
#
#-----[ BEFORE, ADD ]--------------------------------------
#
$attachment_mod['pm']->duplicate_attachment_pm($privmsg['privmsgs_attachment'], $privmsg['privmsgs_id'], $privmsg_sent_id);
#
#-----[ FIND ]---------------------------------------------
# around line 498
$user_id_to = $privmsg['user_id_2'];
#
#-----[ AFTER, ADD ]---------------------------------------
#
init_display_pm_attachments($privmsg['privmsgs_attachment']);
#
#-----[ FIND ]---------------------------------------------
# around line 757
unset($delete_type);
}
#
#-----[ AFTER, ADD ]---------------------------------------
# (the Line have to be added AFTER the closing brace)
$attachment_mod['pm']->delete_all_pm_attachments($mark_list);
#
#-----[ FIND ]---------------------------------------------
# around line 1310
if ( $mode != 'edit' )
{
//
// Add to the users new pm counter
//
#
#-----[ BEFORE, ADD ]---------------------------------------
# (The Line have to be added BEFORE 'if ( $mode != 'edit' )' )
$attachment_mod['pm']->insert_attachment_pm($privmsg_id);
#
#-----[ FIND ]---------------------------------------------
# around line 1611
"preview" => 'privmsgs_preview.tpl')
);
#
#-----[ AFTER, ADD ]---------------------------------------
# (The Line have to be added AFTER the ');')
$attachment_mod['pm']->preview_attachments();
#
#-----[ FIND ]---------------------------------------------
# around line 2148
'DATE' => $msg_date,
#
#-----[ AFTER, ADD ]---------------------------------------
#
'PRIVMSG_ATTACHMENTS_IMG' => privmsgs_attachment_image($privmsg_id),
#
#-----[ OPEN ]---------------------------------------------
#
viewforum.php
#
#-----[ FIND ]---------------------------------------------
# around line 370
$s_auth_can .= ( ( $is_auth['auth_vote'] ) ? $lang['Rules_vote_can'] : $lang['Rules_vote_cannot'] ) . '
';
#
#-----[ AFTER, ADD ]---------------------------------------
#
attach_build_auth_levels($is_auth, $s_auth_can);
#
#-----[ FIND ]---------------------------------------------
# around line 648
'NEWEST_POST_IMG' => $newest_post_img,
#
#-----[ AFTER, ADD ]---------------------------------------
#
'TOPIC_ATTACHMENT_IMG' => topic_attachment_image($topic_rowset[$i]['topic_attachment']),
#
#-----[ OPEN ]---------------------------------------------
#
viewtopic.php
#
#-----[ FIND ]---------------------------------------------
# around line 146
AND f.forum_id = t.forum_id
$order_sql";
#
#-----[ AFTER, ADD ]---------------------------------------
#
attach_setup_viewtopic_auth($order_sql, $sql);
#
#-----[ FIND ]---------------------------------------------
# around line 580
$s_auth_can .= ( ( $is_auth['auth_vote'] ) ? $lang['Rules_vote_can'] : $lang['Rules_vote_cannot'] ) . '
';
#
#-----[ AFTER, ADD ]---------------------------------------
#
attach_build_auth_levels($is_auth, $s_auth_can);
#
#-----[ FIND ]---------------------------------------------
# around line 810
//
// Update the topic view counter
#
#-----[ BEFORE, ADD ]---------------------------------------
#
init_display_post_attachments($forum_topic_data['topic_attachment']);
#
#-----[ FIND ]---------------------------------------------
# around line 1205
'U_POST_ID' => $postrow[$i]['post_id'])
);
#
#-----[ AFTER, ADD ]---------------------------------------
# (The Line have to be added AFTER the ');' )
display_post_attachments($postrow[$i]['post_id'], $postrow[$i]['post_attachment']);
#
#-----[ OPEN ]---------------------------------------------
#
admin/admin_forumauth.php
#
#-----[ FIND ]---------------------------------------------
# around line 72
$forum_auth_const = array(AUTH_ALL, AUTH_REG, AUTH_ACL, AUTH_MOD, AUTH_ADMIN);
#
#-----[ AFTER, ADD ]---------------------------------------
#
attach_setup_forum_auth($simple_auth_ary, $forum_auth_fields, $field_names);
#
#-----[ OPEN ]---------------------------------------------
#
admin/admin_forums.php
#
#-----[ FIND ]---------------------------------------------
# around line 52
//
// Mode setting
#
#-----[ BEFORE, ADD ]---------------------------------------
#
$forum_auth_ary['auth_attachments'] = AUTH_REG;
$forum_auth_ary['auth_download'] = AUTH_REG;
#
#-----[ OPEN ]---------------------------------------------
#
admin/admin_groups.php
#
#-----[ FIND ]---------------------------------------------
# around line 58
if ( isset($HTTP_POST_VARS['edit']) || isset($HTTP_POST_VARS['new']) )
#
#-----[ BEFORE, ADD ]---------------------------------------
#
attachment_quota_settings('group', $HTTP_POST_VARS['group_update'], $mode);
#
#-----[ OPEN ]---------------------------------------------
#
admin/admin_ug_auth.php
#
#-----[ FIND ]---------------------------------------------
# around line 86
// ---------------
// Start Functions
#
#-----[ BEFORE, ADD ]---------------------------------------
#
attach_setup_usergroup_auth($forum_auth_fields, $auth_field_match, $field_names);
#
#-----[ OPEN ]---------------------------------------------
#
admin/admin_users.php
#
#-----[ FIND ]---------------------------------------------
# around line 62
//
// Ok, the profile has been modified and submitted, let's update
#
#-----[ BEFORE, ADD ]---------------------------------------
#
attachment_quota_settings('user', $HTTP_POST_VARS['submit'], $mode);
#
#-----[ OPEN ]---------------------------------------------
#
includes/auth.php
#
#-----[ FIND ]---------------------------------------------
# around line 105
case AUTH_ATTACH:
break;
default:
break;
}
#
#-----[ AFTER, ADD ]---------------------------------------
# (the Line have to be added AFTER the closing brace)
attach_setup_basic_auth($type, $auth_fields, $a_sql);
#
#-----[ OPEN ]---------------------------------------------
#
includes/functions.php
#
#-----[ FIND ]---------------------------------------------
# around line 240
//
// Set up style
//
#
#-----[ BEFORE, ADD ]---------------------------------------
#
include_attach_lang();
#
#-----[ OPEN ]---------------------------------------------
#
includes/functions_admin.php
#
#-----[ FIND ]---------------------------------------------
# around line 146
message_die(GENERAL_ERROR, 'Could not update topic', '', __LINE__, __FILE__, $sql);
}
}
#
#-----[ AFTER, ADD ]---------------------------------------
# (After the last closing brace, before the break;)
attachment_sync_topic($id);
#
#-----[ OPEN ]---------------------------------------------
#
includes/prune.php
#
#-----[ FIND ]---------------------------------------------
# around line 118
remove_search_post($sql_post);
#
#-----[ AFTER, ADD ]---------------------------------------
#
prune_attachments($sql_post);
#
#-----[ OPEN ]---------------------------------------------
#
includes/topic_review.php
#
#-----[ FIND ]---------------------------------------------
# around line 43
WHERE t.topic_id = $topic_id
AND f.forum_id = t.forum_id";
#
#-----[ AFTER, ADD ]---------------------------------------
#
$tmp = '';
attach_setup_viewtopic_auth($tmp, $sql);
#
#-----[ FIND ]---------------------------------------------
# around line 119
//
// Okay, let's do the loop, yeah come on baby let's do the loop
// and it goes like this ...
#
#-----[ BEFORE, ADD ]---------------------------------------
#
init_display_review_attachments($is_auth);
#
#-----[ FIND ]---------------------------------------------
# around line 202
'L_MINI_POST_ALT' => $mini_post_alt)
);
#
#-----[ AFTER, ADD ]---------------------------------------
# (the Line have to be added AFTER the ');' )
display_review_attachments($row['post_id'], $row['post_attachment'], $is_auth);
#
#-----[ OPEN ]---------------------------------------------
#
includes/usercp_viewprofile.php
#
#-----[ FIND ]---------------------------------------------
# around line 169
include($phpbb_root_path . 'includes/page_header.'.$phpEx);
#
#-----[ AFTER, ADD ]---------------------------------------
#
display_upload_attach_box_limits($profiledata['user_id']);
#
#-----[ OPEN ]---------------------------------------------
#
templates/subSilver/modcp_body.tpl
#
#-----[ IN-LINE FIND ]---------------------------------------------
# around line 27 (directly in that line)
{topicrow.TOPIC_TYPE}
#
#-----[ IN-LINE BEFORE, ADD ]---------------------------------------
#
{topicrow.TOPIC_ATTACHMENT_IMG}
#
#-----[ OPEN ]---------------------------------------------
#
templates/subSilver/posting_body.tpl
#
#-----[ FIND ]---------------------------------------------
# around line 257