blob: c9e01e266d969fa790f15fdc41803528b1bebc14 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
|
##
##
## Mod title: Upload Mod
##
## Mod version: 3.0.3
## Works on FluxBB: 1.5.11
## Release date: 2020-07-28
## Review date: YYYY-MM-DD (Leave unedited)
## Author: Visman (mio.visman@yandex.ru)
## On a basis "Uploadile" by bagu (https://fluxbb.org/resources/mods/uploadile/)
##
## Description: Users can upload files and pictures on a forum at directly in post.
## Юзеры могут загружать файлы и картинки на форум непосредственно при постинге сообщений.
##
## v 1.2.0
## French is added. Thanks to Bloody.
## Has added management of the uploaded files in a profile.
## В профиль добавил возможность загрузки/удаления файлов.
##
## v 1.3.0
## German is added. Thanks to cyberman.
## For FluxBB v.1.5.0
## Settings for each group of users.
## Administration of files is changed.
##
## v 1.3.1
## Fix bug in create thumbnails for .jpg and .jpe files. Thanks to Ian Stanistreet.
##
## v 1.3.2
## For FluxBB v.1.5.1
## Fix AP_Upload.php
##
## v 2.0 beta
## For FluxBB v.1.5.4
## Новый вид списка загруженных файлов.
## New type of the list of the uploaded files.
##
## v 2.0.1
## Fix AP_Upload.php. Thanks to Quy.
##
## v 2.2.0 beta
## New uploader for browsers with FormData support (https://caniuse.com/#search=FormData).
## Extended blacklist of file types for upload.
## New .htaccess for img/members/ folder.
## Automatically add bb-code to the message when uploading a file.
##
## v 2.2.1 beta
## Fix AP_Upload.php for SQLite.
##
## v 2.2.2 beta
## Updated .htaccess for img/members/ folder.
## A group of administrators can set limits for themselves.
##
## v 2.3.0 beta
## Maximum "Space allocated to members" increased from 2 GiB to 20 TiB. For 32 and 64-bit systems.
## Maximum "Max size members can upload" remained unchanged and depends on the server/PHP settings and OS bit depth.
##
## v 3.0.0 beta
## Added support for ImageMagick graphics library.
## The file mentioned in the forum posts cannot be deleted.
## The search for the mention of the file goes through the search index and further LIKE in the message.
## Admin can delete files without checks in the admin plugin.
##
## v 3.0.1
## Minor fix: Remove double serialization during automatic reconfiguration of the modification.
## https://github.com/MioVisman/FluxBB_by_Visman/commit/61fcae2702b5981ecfe277f01792e38d6034214d
##
## v 3.0.3
## Fix for Opera 12.18
## Fix english language
##
##
##
## Repository URL: https://fluxbb.org/resources/mods/?s=author&t=Visman&v=all&o=name
## https://fluxbb.qb7.ru/forum/viewtopic.php?id=3380
##
## Affected files: footer.php
## include/functions.php
##
## Affects DB: No (Yes in plugin)
##
## Notes: Russian/English/French/German
## Functions move_uploaded_file(), mkdir(), opendir() and others
## must be enabled in your Website and this one must accept
## resizing pictures with GD.
##
## DISCLAIMER: Please note that "mods" are not officially supported by
## FluxBB. Installation of this modification is done at
## your own risk. Backup your forum database and any and
## all applicable files before proceeding.
##
##
#
#---------[ 1. UPLOAD ]-------------------------------------------------------
#
upfiles.php to /
img/ to /img/
include/ to /include/
js/ to /js/
lang/ to /lang/
plugins/ to /plugins/
style/ to /style/
#
#---------[ 2. OPEN ]---------------------------------------------------------
#
footer.php
#
#---------[ 3. FIND ]---------------------------------------------------------
#
ob_start();
#
#---------[ 4. AFTER, ADD ]---------------------------------------------------
#
require PUN_ROOT.'include/uploadf.php';
#
#---------[ 5. SAVE ]---------------------------------------------------------
#
footer.php
#
#---------[ 6. OPEN ]---------------------------------------------------------
#
include/functions.php
#
#---------[ 7. FIND ]---------------------------------------------------------
#
<li<?php if ($page == 'privacy') echo ' class="isactive"'; ?>><a href="profile.php?section=privacy&id=<?php echo $id ?>"><?php echo $lang_profile['Section privacy'] ?></a></li>
#
#---------[ 8. AFTER, ADD ]---------------------------------------------------
#
<?php require PUN_ROOT.'include/uploadp.php'; ?>
#
#---------[ 9. SAVE ]---------------------------------------------------------
#
include/functions.php
#
# Adjust this plugin in Administration - Plugins menu - Upload
#
|