Version Description
- plugin code improved to support files containing single quote characters (') in their filename
- corrected bug where plugin was deactivated after update
Download this release
Release Info
Developer | nickboss |
Plugin | WordPress File Upload |
Version | 4.10.0 |
Comparing to | |
See all releases |
Code changes from version 4.9.1 to 4.10.0
- languages/wp-file-upload-de_DE.mo +0 -0
- languages/wp-file-upload-de_DE.po +12 -2
- languages/wp-file-upload-el_GR.mo +0 -0
- languages/wp-file-upload-el_GR.po +14 -2
- languages/wp-file-upload-en_US.mo +0 -0
- languages/wp-file-upload-en_US.po +12 -2
- languages/wp-file-upload-es_ES.mo +0 -0
- languages/wp-file-upload-es_ES.po +12 -2
- languages/wp-file-upload-fa_IR.mo +0 -0
- languages/wp-file-upload-fa_IR.po +12 -2
- languages/wp-file-upload-fr_FR.mo +0 -0
- languages/wp-file-upload-fr_FR.po +12 -2
- languages/wp-file-upload-it_IT.mo +0 -0
- languages/wp-file-upload-it_IT.po +12 -2
- languages/wp-file-upload-nl_NL.mo +0 -0
- languages/wp-file-upload-nl_NL.po +12 -2
- languages/wp-file-upload-pl_PL.mo +0 -0
- languages/wp-file-upload-pl_PL.po +12 -2
- languages/wp-file-upload-pt_BR.mo +0 -0
- languages/wp-file-upload-pt_BR.po +12 -2
- languages/wp-file-upload-sr_RS.mo +0 -0
- languages/wp-file-upload-sr_RS.po +12 -2
- languages/wp-file-upload-sv_SE.mo +0 -0
- languages/wp-file-upload-sv_SE.po +12 -2
- languages/wp-file-upload-zh_CN.mo +0 -0
- languages/wp-file-upload-zh_CN.po +12 -2
- languages/wp-file-upload.pot +12 -2
- lib/wfu_admin_browser.php +0 -2
- lib/wfu_admin_composer.php +0 -1
- lib/wfu_ajaxactions.php +5 -4
- lib/wfu_functions.php +48 -23
- lib/wfu_template.php +8 -9
- readme.txt +7 -0
- release_notes.txt +1 -9
- wfu_loader.php +11 -36
- wordpress_file_upload.php +30 -2
languages/wp-file-upload-de_DE.mo
CHANGED
Binary file
|
languages/wp-file-upload-de_DE.po
CHANGED
@@ -2,8 +2,8 @@ msgid ""
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Wordpress File Upload\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: 2018-08
|
6 |
-
"PO-Revision-Date: 2018-08
|
7 |
"Last-Translator: nickboss <info@iptanus.com>\n"
|
8 |
"Language-Team: Iptanus Team <info@iptanus.com>\n"
|
9 |
"Language: de_DE\n"
|
@@ -19,6 +19,16 @@ msgstr ""
|
|
19 |
"X-Poedit-SearchPathExcluded-1: minified\n"
|
20 |
"X-Poedit-SearchPathExcluded-2: unminified\n"
|
21 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
#: lib/wfu_constants.php:10
|
23 |
msgid "Upload files"
|
24 |
msgstr "Dateien hochladen"
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Wordpress File Upload\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2018-11-08 17:36+0200\n"
|
6 |
+
"PO-Revision-Date: 2018-11-08 17:36+0200\n"
|
7 |
"Last-Translator: nickboss <info@iptanus.com>\n"
|
8 |
"Language-Team: Iptanus Team <info@iptanus.com>\n"
|
9 |
"Language: de_DE\n"
|
19 |
"X-Poedit-SearchPathExcluded-1: minified\n"
|
20 |
"X-Poedit-SearchPathExcluded-2: unminified\n"
|
21 |
|
22 |
+
#: extensions/wfu_facebook/wfu_facebook_constants.php:25
|
23 |
+
msgid ""
|
24 |
+
"Insert variable %uploaddetails% inside text. It will be replaced by a link "
|
25 |
+
"showing details about the upload when clicked."
|
26 |
+
msgstr ""
|
27 |
+
|
28 |
+
#: extensions/wfu_facebook/wfu_facebook_constants.php:26
|
29 |
+
msgid "You need to login as administrator to see this page!"
|
30 |
+
msgstr ""
|
31 |
+
|
32 |
#: lib/wfu_constants.php:10
|
33 |
msgid "Upload files"
|
34 |
msgstr "Dateien hochladen"
|
languages/wp-file-upload-el_GR.mo
CHANGED
Binary file
|
languages/wp-file-upload-el_GR.po
CHANGED
@@ -2,8 +2,8 @@ msgid ""
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Wordpress File Upload\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: 2018-08
|
6 |
-
"PO-Revision-Date: 2018-08
|
7 |
"Last-Translator: nickboss <info@iptanus.com>\n"
|
8 |
"Language-Team: Iptanus Team <info@iptanus.com>\n"
|
9 |
"Language: el\n"
|
@@ -19,6 +19,18 @@ msgstr ""
|
|
19 |
"X-Poedit-SearchPathExcluded-1: minified\n"
|
20 |
"X-Poedit-SearchPathExcluded-2: unminified\n"
|
21 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
#: lib/wfu_constants.php:10
|
23 |
msgid "Upload files"
|
24 |
msgstr "Αποστολή αρχείων"
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Wordpress File Upload\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2018-11-08 17:36+0200\n"
|
6 |
+
"PO-Revision-Date: 2018-11-08 17:38+0200\n"
|
7 |
"Last-Translator: nickboss <info@iptanus.com>\n"
|
8 |
"Language-Team: Iptanus Team <info@iptanus.com>\n"
|
9 |
"Language: el\n"
|
19 |
"X-Poedit-SearchPathExcluded-1: minified\n"
|
20 |
"X-Poedit-SearchPathExcluded-2: unminified\n"
|
21 |
|
22 |
+
#: extensions/wfu_facebook/wfu_facebook_constants.php:25
|
23 |
+
msgid ""
|
24 |
+
"Insert variable %uploaddetails% inside text. It will be replaced by a link "
|
25 |
+
"showing details about the upload when clicked."
|
26 |
+
msgstr ""
|
27 |
+
"Εισάγετε τη μεταβλητή %uploaddetails% μέσα στο κείμενο. Θα αντικατασταθεί "
|
28 |
+
"από έναν σύνδεσμο, που παρέχει λεπτομέρειες της αποστολής, όταν πατηθεί."
|
29 |
+
|
30 |
+
#: extensions/wfu_facebook/wfu_facebook_constants.php:26
|
31 |
+
msgid "You need to login as administrator to see this page!"
|
32 |
+
msgstr "Πρέπει να συνδεθείτε ως διαχειριστής για να δείτε αυτή τη σελίδα!"
|
33 |
+
|
34 |
#: lib/wfu_constants.php:10
|
35 |
msgid "Upload files"
|
36 |
msgstr "Αποστολή αρχείων"
|
languages/wp-file-upload-en_US.mo
CHANGED
Binary file
|
languages/wp-file-upload-en_US.po
CHANGED
@@ -2,8 +2,8 @@ msgid ""
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Wordpress File Upload\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: 2018-08
|
6 |
-
"PO-Revision-Date: 2018-08
|
7 |
"Last-Translator: nickboss <info@iptanus.com>\n"
|
8 |
"Language-Team: Iptanus Team <info@iptanus.com>\n"
|
9 |
"Language: en\n"
|
@@ -19,6 +19,16 @@ msgstr ""
|
|
19 |
"X-Poedit-SearchPathExcluded-1: minified\n"
|
20 |
"X-Poedit-SearchPathExcluded-2: unminified\n"
|
21 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
#: lib/wfu_constants.php:10
|
23 |
msgid "Upload files"
|
24 |
msgstr ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Wordpress File Upload\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2018-11-08 17:38+0200\n"
|
6 |
+
"PO-Revision-Date: 2018-11-08 17:38+0200\n"
|
7 |
"Last-Translator: nickboss <info@iptanus.com>\n"
|
8 |
"Language-Team: Iptanus Team <info@iptanus.com>\n"
|
9 |
"Language: en\n"
|
19 |
"X-Poedit-SearchPathExcluded-1: minified\n"
|
20 |
"X-Poedit-SearchPathExcluded-2: unminified\n"
|
21 |
|
22 |
+
#: extensions/wfu_facebook/wfu_facebook_constants.php:25
|
23 |
+
msgid ""
|
24 |
+
"Insert variable %uploaddetails% inside text. It will be replaced by a link "
|
25 |
+
"showing details about the upload when clicked."
|
26 |
+
msgstr ""
|
27 |
+
|
28 |
+
#: extensions/wfu_facebook/wfu_facebook_constants.php:26
|
29 |
+
msgid "You need to login as administrator to see this page!"
|
30 |
+
msgstr ""
|
31 |
+
|
32 |
#: lib/wfu_constants.php:10
|
33 |
msgid "Upload files"
|
34 |
msgstr ""
|
languages/wp-file-upload-es_ES.mo
CHANGED
Binary file
|
languages/wp-file-upload-es_ES.po
CHANGED
@@ -2,8 +2,8 @@ msgid ""
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Wordpress File Upload\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: 2018-08
|
6 |
-
"PO-Revision-Date: 2018-08
|
7 |
"Last-Translator: nickboss <info@iptanus.com>\n"
|
8 |
"Language-Team: Iptanus Team <info@iptanus.com>\n"
|
9 |
"Language: es\n"
|
@@ -19,6 +19,16 @@ msgstr ""
|
|
19 |
"X-Poedit-SearchPathExcluded-1: minified\n"
|
20 |
"X-Poedit-SearchPathExcluded-2: unminified\n"
|
21 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
#: lib/wfu_constants.php:10
|
23 |
msgid "Upload files"
|
24 |
msgstr "Cargar archivos"
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Wordpress File Upload\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2018-11-08 17:38+0200\n"
|
6 |
+
"PO-Revision-Date: 2018-11-08 17:38+0200\n"
|
7 |
"Last-Translator: nickboss <info@iptanus.com>\n"
|
8 |
"Language-Team: Iptanus Team <info@iptanus.com>\n"
|
9 |
"Language: es\n"
|
19 |
"X-Poedit-SearchPathExcluded-1: minified\n"
|
20 |
"X-Poedit-SearchPathExcluded-2: unminified\n"
|
21 |
|
22 |
+
#: extensions/wfu_facebook/wfu_facebook_constants.php:25
|
23 |
+
msgid ""
|
24 |
+
"Insert variable %uploaddetails% inside text. It will be replaced by a link "
|
25 |
+
"showing details about the upload when clicked."
|
26 |
+
msgstr ""
|
27 |
+
|
28 |
+
#: extensions/wfu_facebook/wfu_facebook_constants.php:26
|
29 |
+
msgid "You need to login as administrator to see this page!"
|
30 |
+
msgstr ""
|
31 |
+
|
32 |
#: lib/wfu_constants.php:10
|
33 |
msgid "Upload files"
|
34 |
msgstr "Cargar archivos"
|
languages/wp-file-upload-fa_IR.mo
CHANGED
Binary file
|
languages/wp-file-upload-fa_IR.po
CHANGED
@@ -2,8 +2,8 @@ msgid ""
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Wordpress File Upload\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: 2018-08
|
6 |
-
"PO-Revision-Date: 2018-08
|
7 |
"Last-Translator: \n"
|
8 |
"Language-Team: Iptanus Team <info@iptanus.com>\n"
|
9 |
"Language: fa_IR\n"
|
@@ -19,6 +19,16 @@ msgstr ""
|
|
19 |
"X-Poedit-SearchPathExcluded-1: minified\n"
|
20 |
"X-Poedit-SearchPathExcluded-2: unminified\n"
|
21 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
#: lib/wfu_constants.php:10
|
23 |
msgid "Upload files"
|
24 |
msgstr "بارگزاری فایل ها"
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Wordpress File Upload\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2018-11-08 17:38+0200\n"
|
6 |
+
"PO-Revision-Date: 2018-11-08 17:38+0200\n"
|
7 |
"Last-Translator: \n"
|
8 |
"Language-Team: Iptanus Team <info@iptanus.com>\n"
|
9 |
"Language: fa_IR\n"
|
19 |
"X-Poedit-SearchPathExcluded-1: minified\n"
|
20 |
"X-Poedit-SearchPathExcluded-2: unminified\n"
|
21 |
|
22 |
+
#: extensions/wfu_facebook/wfu_facebook_constants.php:25
|
23 |
+
msgid ""
|
24 |
+
"Insert variable %uploaddetails% inside text. It will be replaced by a link "
|
25 |
+
"showing details about the upload when clicked."
|
26 |
+
msgstr ""
|
27 |
+
|
28 |
+
#: extensions/wfu_facebook/wfu_facebook_constants.php:26
|
29 |
+
msgid "You need to login as administrator to see this page!"
|
30 |
+
msgstr ""
|
31 |
+
|
32 |
#: lib/wfu_constants.php:10
|
33 |
msgid "Upload files"
|
34 |
msgstr "بارگزاری فایل ها"
|
languages/wp-file-upload-fr_FR.mo
CHANGED
Binary file
|
languages/wp-file-upload-fr_FR.po
CHANGED
@@ -2,8 +2,8 @@ msgid ""
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Wordpress File Upload\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: 2018-08
|
6 |
-
"PO-Revision-Date: 2018-08
|
7 |
"Last-Translator: Eric D. Valachs <ericduval@laposte.net>\n"
|
8 |
"Language-Team: \n"
|
9 |
"Language: fr_FR\n"
|
@@ -18,6 +18,16 @@ msgstr ""
|
|
18 |
"X-Poedit-SearchPathExcluded-1: minified\n"
|
19 |
"X-Poedit-SearchPathExcluded-2: unminified\n"
|
20 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
#: lib/wfu_constants.php:10
|
22 |
msgid "Upload files"
|
23 |
msgstr "Envoyer des fichiers"
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Wordpress File Upload\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2018-11-08 17:38+0200\n"
|
6 |
+
"PO-Revision-Date: 2018-11-08 17:39+0200\n"
|
7 |
"Last-Translator: Eric D. Valachs <ericduval@laposte.net>\n"
|
8 |
"Language-Team: \n"
|
9 |
"Language: fr_FR\n"
|
18 |
"X-Poedit-SearchPathExcluded-1: minified\n"
|
19 |
"X-Poedit-SearchPathExcluded-2: unminified\n"
|
20 |
|
21 |
+
#: extensions/wfu_facebook/wfu_facebook_constants.php:25
|
22 |
+
msgid ""
|
23 |
+
"Insert variable %uploaddetails% inside text. It will be replaced by a link "
|
24 |
+
"showing details about the upload when clicked."
|
25 |
+
msgstr ""
|
26 |
+
|
27 |
+
#: extensions/wfu_facebook/wfu_facebook_constants.php:26
|
28 |
+
msgid "You need to login as administrator to see this page!"
|
29 |
+
msgstr ""
|
30 |
+
|
31 |
#: lib/wfu_constants.php:10
|
32 |
msgid "Upload files"
|
33 |
msgstr "Envoyer des fichiers"
|
languages/wp-file-upload-it_IT.mo
CHANGED
Binary file
|
languages/wp-file-upload-it_IT.po
CHANGED
@@ -2,8 +2,8 @@ msgid ""
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Wordpress File Upload\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: 2018-08
|
6 |
-
"PO-Revision-Date: 2018-08
|
7 |
"Last-Translator: nickboss <info@iptanus.com>\n"
|
8 |
"Language-Team: Iptanus Team <info@iptanus.com>\n"
|
9 |
"Language: it\n"
|
@@ -19,6 +19,16 @@ msgstr ""
|
|
19 |
"X-Poedit-SearchPathExcluded-1: minified\n"
|
20 |
"X-Poedit-SearchPathExcluded-2: unminified\n"
|
21 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
#: lib/wfu_constants.php:10
|
23 |
msgid "Upload files"
|
24 |
msgstr "Carica files"
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Wordpress File Upload\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2018-11-08 17:39+0200\n"
|
6 |
+
"PO-Revision-Date: 2018-11-08 17:39+0200\n"
|
7 |
"Last-Translator: nickboss <info@iptanus.com>\n"
|
8 |
"Language-Team: Iptanus Team <info@iptanus.com>\n"
|
9 |
"Language: it\n"
|
19 |
"X-Poedit-SearchPathExcluded-1: minified\n"
|
20 |
"X-Poedit-SearchPathExcluded-2: unminified\n"
|
21 |
|
22 |
+
#: extensions/wfu_facebook/wfu_facebook_constants.php:25
|
23 |
+
msgid ""
|
24 |
+
"Insert variable %uploaddetails% inside text. It will be replaced by a link "
|
25 |
+
"showing details about the upload when clicked."
|
26 |
+
msgstr ""
|
27 |
+
|
28 |
+
#: extensions/wfu_facebook/wfu_facebook_constants.php:26
|
29 |
+
msgid "You need to login as administrator to see this page!"
|
30 |
+
msgstr ""
|
31 |
+
|
32 |
#: lib/wfu_constants.php:10
|
33 |
msgid "Upload files"
|
34 |
msgstr "Carica files"
|
languages/wp-file-upload-nl_NL.mo
CHANGED
Binary file
|
languages/wp-file-upload-nl_NL.po
CHANGED
@@ -2,8 +2,8 @@ msgid ""
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Wordpress File Upload\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: 2018-08
|
6 |
-
"PO-Revision-Date: 2018-08
|
7 |
"Last-Translator: nickboss <info@iptanus.com>\n"
|
8 |
"Language-Team: Iptanus Team <info@iptanus.com>\n"
|
9 |
"Language: nl_NL\n"
|
@@ -19,6 +19,16 @@ msgstr ""
|
|
19 |
"X-Poedit-SearchPathExcluded-1: minified\n"
|
20 |
"X-Poedit-SearchPathExcluded-2: unminified\n"
|
21 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
#: lib/wfu_constants.php:10
|
23 |
msgid "Upload files"
|
24 |
msgstr "Bestanden Uploaden"
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Wordpress File Upload\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2018-11-08 17:39+0200\n"
|
6 |
+
"PO-Revision-Date: 2018-11-08 17:39+0200\n"
|
7 |
"Last-Translator: nickboss <info@iptanus.com>\n"
|
8 |
"Language-Team: Iptanus Team <info@iptanus.com>\n"
|
9 |
"Language: nl_NL\n"
|
19 |
"X-Poedit-SearchPathExcluded-1: minified\n"
|
20 |
"X-Poedit-SearchPathExcluded-2: unminified\n"
|
21 |
|
22 |
+
#: extensions/wfu_facebook/wfu_facebook_constants.php:25
|
23 |
+
msgid ""
|
24 |
+
"Insert variable %uploaddetails% inside text. It will be replaced by a link "
|
25 |
+
"showing details about the upload when clicked."
|
26 |
+
msgstr ""
|
27 |
+
|
28 |
+
#: extensions/wfu_facebook/wfu_facebook_constants.php:26
|
29 |
+
msgid "You need to login as administrator to see this page!"
|
30 |
+
msgstr ""
|
31 |
+
|
32 |
#: lib/wfu_constants.php:10
|
33 |
msgid "Upload files"
|
34 |
msgstr "Bestanden Uploaden"
|
languages/wp-file-upload-pl_PL.mo
CHANGED
Binary file
|
languages/wp-file-upload-pl_PL.po
CHANGED
@@ -2,8 +2,8 @@ msgid ""
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Wordpress File Upload\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: 2018-08
|
6 |
-
"PO-Revision-Date: 2018-08
|
7 |
"Last-Translator: \n"
|
8 |
"Language-Team: Iptanus Team <info@iptanus.com>\n"
|
9 |
"Language: pl_PL\n"
|
@@ -20,6 +20,16 @@ msgstr ""
|
|
20 |
"X-Poedit-SearchPathExcluded-1: minified\n"
|
21 |
"X-Poedit-SearchPathExcluded-2: unminified\n"
|
22 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
#: lib/wfu_constants.php:10
|
24 |
msgid "Upload files"
|
25 |
msgstr "Prześlij pliki"
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Wordpress File Upload\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2018-11-08 17:39+0200\n"
|
6 |
+
"PO-Revision-Date: 2018-11-08 17:39+0200\n"
|
7 |
"Last-Translator: \n"
|
8 |
"Language-Team: Iptanus Team <info@iptanus.com>\n"
|
9 |
"Language: pl_PL\n"
|
20 |
"X-Poedit-SearchPathExcluded-1: minified\n"
|
21 |
"X-Poedit-SearchPathExcluded-2: unminified\n"
|
22 |
|
23 |
+
#: extensions/wfu_facebook/wfu_facebook_constants.php:25
|
24 |
+
msgid ""
|
25 |
+
"Insert variable %uploaddetails% inside text. It will be replaced by a link "
|
26 |
+
"showing details about the upload when clicked."
|
27 |
+
msgstr ""
|
28 |
+
|
29 |
+
#: extensions/wfu_facebook/wfu_facebook_constants.php:26
|
30 |
+
msgid "You need to login as administrator to see this page!"
|
31 |
+
msgstr ""
|
32 |
+
|
33 |
#: lib/wfu_constants.php:10
|
34 |
msgid "Upload files"
|
35 |
msgstr "Prześlij pliki"
|
languages/wp-file-upload-pt_BR.mo
CHANGED
Binary file
|
languages/wp-file-upload-pt_BR.po
CHANGED
@@ -2,8 +2,8 @@ msgid ""
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Wordpress File Upload\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: 2018-08
|
6 |
-
"PO-Revision-Date: 2018-08
|
7 |
"Last-Translator: Jon Hanson <jon@quickbrasil.org>\n"
|
8 |
"Language-Team: Iptanus Team <info@iptanus.com>\n"
|
9 |
"Language: pt_BR\n"
|
@@ -19,6 +19,16 @@ msgstr ""
|
|
19 |
"X-Poedit-SearchPathExcluded-1: minified\n"
|
20 |
"X-Poedit-SearchPathExcluded-2: unminified\n"
|
21 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
#: lib/wfu_constants.php:10
|
23 |
msgid "Upload files"
|
24 |
msgstr "Enviar arquivos"
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Wordpress File Upload\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2018-11-08 17:39+0200\n"
|
6 |
+
"PO-Revision-Date: 2018-11-08 17:39+0200\n"
|
7 |
"Last-Translator: Jon Hanson <jon@quickbrasil.org>\n"
|
8 |
"Language-Team: Iptanus Team <info@iptanus.com>\n"
|
9 |
"Language: pt_BR\n"
|
19 |
"X-Poedit-SearchPathExcluded-1: minified\n"
|
20 |
"X-Poedit-SearchPathExcluded-2: unminified\n"
|
21 |
|
22 |
+
#: extensions/wfu_facebook/wfu_facebook_constants.php:25
|
23 |
+
msgid ""
|
24 |
+
"Insert variable %uploaddetails% inside text. It will be replaced by a link "
|
25 |
+
"showing details about the upload when clicked."
|
26 |
+
msgstr ""
|
27 |
+
|
28 |
+
#: extensions/wfu_facebook/wfu_facebook_constants.php:26
|
29 |
+
msgid "You need to login as administrator to see this page!"
|
30 |
+
msgstr ""
|
31 |
+
|
32 |
#: lib/wfu_constants.php:10
|
33 |
msgid "Upload files"
|
34 |
msgstr "Enviar arquivos"
|
languages/wp-file-upload-sr_RS.mo
CHANGED
Binary file
|
languages/wp-file-upload-sr_RS.po
CHANGED
@@ -2,8 +2,8 @@ msgid ""
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Wordpress File Upload\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: 2018-08
|
6 |
-
"PO-Revision-Date: 2018-08
|
7 |
"Last-Translator: Borisa Djuraskovic <borisad@webhostinghub.com>\n"
|
8 |
"Language-Team: Iptanus Team <info@iptanus.com>\n"
|
9 |
"Language: sr\n"
|
@@ -20,6 +20,16 @@ msgstr ""
|
|
20 |
"X-Poedit-SearchPathExcluded-1: minified\n"
|
21 |
"X-Poedit-SearchPathExcluded-2: unminified\n"
|
22 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
#: lib/wfu_constants.php:10
|
24 |
msgid "Upload files"
|
25 |
msgstr "Otpremi datoteke"
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Wordpress File Upload\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2018-11-08 17:39+0200\n"
|
6 |
+
"PO-Revision-Date: 2018-11-08 17:39+0200\n"
|
7 |
"Last-Translator: Borisa Djuraskovic <borisad@webhostinghub.com>\n"
|
8 |
"Language-Team: Iptanus Team <info@iptanus.com>\n"
|
9 |
"Language: sr\n"
|
20 |
"X-Poedit-SearchPathExcluded-1: minified\n"
|
21 |
"X-Poedit-SearchPathExcluded-2: unminified\n"
|
22 |
|
23 |
+
#: extensions/wfu_facebook/wfu_facebook_constants.php:25
|
24 |
+
msgid ""
|
25 |
+
"Insert variable %uploaddetails% inside text. It will be replaced by a link "
|
26 |
+
"showing details about the upload when clicked."
|
27 |
+
msgstr ""
|
28 |
+
|
29 |
+
#: extensions/wfu_facebook/wfu_facebook_constants.php:26
|
30 |
+
msgid "You need to login as administrator to see this page!"
|
31 |
+
msgstr ""
|
32 |
+
|
33 |
#: lib/wfu_constants.php:10
|
34 |
msgid "Upload files"
|
35 |
msgstr "Otpremi datoteke"
|
languages/wp-file-upload-sv_SE.mo
CHANGED
Binary file
|
languages/wp-file-upload-sv_SE.po
CHANGED
@@ -2,8 +2,8 @@ msgid ""
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Wordpress File Upload\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: 2018-08
|
6 |
-
"PO-Revision-Date: 2018-08
|
7 |
"Last-Translator: nickboss <info@iptanus.com>\n"
|
8 |
"Language-Team: Iptanus Team <info@iptanus.com>\n"
|
9 |
"Language: sv\n"
|
@@ -19,6 +19,16 @@ msgstr ""
|
|
19 |
"X-Poedit-SearchPathExcluded-1: minified\n"
|
20 |
"X-Poedit-SearchPathExcluded-2: unminified\n"
|
21 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
#: lib/wfu_constants.php:10
|
23 |
msgid "Upload files"
|
24 |
msgstr "Ladda upp dokument"
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Wordpress File Upload\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2018-11-08 17:40+0200\n"
|
6 |
+
"PO-Revision-Date: 2018-11-08 17:40+0200\n"
|
7 |
"Last-Translator: nickboss <info@iptanus.com>\n"
|
8 |
"Language-Team: Iptanus Team <info@iptanus.com>\n"
|
9 |
"Language: sv\n"
|
19 |
"X-Poedit-SearchPathExcluded-1: minified\n"
|
20 |
"X-Poedit-SearchPathExcluded-2: unminified\n"
|
21 |
|
22 |
+
#: extensions/wfu_facebook/wfu_facebook_constants.php:25
|
23 |
+
msgid ""
|
24 |
+
"Insert variable %uploaddetails% inside text. It will be replaced by a link "
|
25 |
+
"showing details about the upload when clicked."
|
26 |
+
msgstr ""
|
27 |
+
|
28 |
+
#: extensions/wfu_facebook/wfu_facebook_constants.php:26
|
29 |
+
msgid "You need to login as administrator to see this page!"
|
30 |
+
msgstr ""
|
31 |
+
|
32 |
#: lib/wfu_constants.php:10
|
33 |
msgid "Upload files"
|
34 |
msgstr "Ladda upp dokument"
|
languages/wp-file-upload-zh_CN.mo
CHANGED
Binary file
|
languages/wp-file-upload-zh_CN.po
CHANGED
@@ -2,8 +2,8 @@ msgid ""
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Wordpress File Upload\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: 2018-08
|
6 |
-
"PO-Revision-Date: 2018-08
|
7 |
"Last-Translator: \n"
|
8 |
"Language-Team: Iptanus Team <info@iptanus.com>\n"
|
9 |
"Language: zh_CN\n"
|
@@ -19,6 +19,16 @@ msgstr ""
|
|
19 |
"X-Poedit-SearchPathExcluded-1: minified\n"
|
20 |
"X-Poedit-SearchPathExcluded-2: unminified\n"
|
21 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
#: lib/wfu_constants.php:10
|
23 |
msgid "Upload files"
|
24 |
msgstr "上传文件"
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Wordpress File Upload\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2018-11-08 17:40+0200\n"
|
6 |
+
"PO-Revision-Date: 2018-11-08 17:40+0200\n"
|
7 |
"Last-Translator: \n"
|
8 |
"Language-Team: Iptanus Team <info@iptanus.com>\n"
|
9 |
"Language: zh_CN\n"
|
19 |
"X-Poedit-SearchPathExcluded-1: minified\n"
|
20 |
"X-Poedit-SearchPathExcluded-2: unminified\n"
|
21 |
|
22 |
+
#: extensions/wfu_facebook/wfu_facebook_constants.php:25
|
23 |
+
msgid ""
|
24 |
+
"Insert variable %uploaddetails% inside text. It will be replaced by a link "
|
25 |
+
"showing details about the upload when clicked."
|
26 |
+
msgstr ""
|
27 |
+
|
28 |
+
#: extensions/wfu_facebook/wfu_facebook_constants.php:26
|
29 |
+
msgid "You need to login as administrator to see this page!"
|
30 |
+
msgstr ""
|
31 |
+
|
32 |
#: lib/wfu_constants.php:10
|
33 |
msgid "Upload files"
|
34 |
msgstr "上传文件"
|
languages/wp-file-upload.pot
CHANGED
@@ -2,8 +2,8 @@ msgid ""
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Wordpress File Upload\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: 2018-08
|
6 |
-
"PO-Revision-Date: 2018-08
|
7 |
"Last-Translator: nickboss <info@iptanus.com>\n"
|
8 |
"Language-Team: Iptanus Team <info@iptanus.com>\n"
|
9 |
"Language: en\n"
|
@@ -19,6 +19,16 @@ msgstr ""
|
|
19 |
"X-Poedit-SearchPathExcluded-1: minified\n"
|
20 |
"X-Poedit-SearchPathExcluded-2: unminified\n"
|
21 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
#: lib/wfu_constants.php:10
|
23 |
msgid "Upload files"
|
24 |
msgstr ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Wordpress File Upload\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2018-11-08 17:35+0200\n"
|
6 |
+
"PO-Revision-Date: 2018-11-08 17:35+0200\n"
|
7 |
"Last-Translator: nickboss <info@iptanus.com>\n"
|
8 |
"Language-Team: Iptanus Team <info@iptanus.com>\n"
|
9 |
"Language: en\n"
|
19 |
"X-Poedit-SearchPathExcluded-1: minified\n"
|
20 |
"X-Poedit-SearchPathExcluded-2: unminified\n"
|
21 |
|
22 |
+
#: extensions/wfu_facebook/wfu_facebook_constants.php:25
|
23 |
+
msgid ""
|
24 |
+
"Insert variable %uploaddetails% inside text. It will be replaced by a link "
|
25 |
+
"showing details about the upload when clicked."
|
26 |
+
msgstr ""
|
27 |
+
|
28 |
+
#: extensions/wfu_facebook/wfu_facebook_constants.php:26
|
29 |
+
msgid "You need to login as administrator to see this page!"
|
30 |
+
msgstr ""
|
31 |
+
|
32 |
#: lib/wfu_constants.php:10
|
33 |
msgid "Upload files"
|
34 |
msgstr ""
|
lib/wfu_admin_browser.php
CHANGED
@@ -898,8 +898,6 @@ function wfu_include_file($file_code) {
|
|
898 |
}
|
899 |
|
900 |
function wfu_file_details($file_code, $errorstatus, $invoker = '') {
|
901 |
-
global $wpdb;
|
902 |
-
$table_name1 = $wpdb->prefix . "wfu_log";
|
903 |
$siteurl = site_url();
|
904 |
$allow_obsolete = false;
|
905 |
$file_exists = true;
|
898 |
}
|
899 |
|
900 |
function wfu_file_details($file_code, $errorstatus, $invoker = '') {
|
|
|
|
|
901 |
$siteurl = site_url();
|
902 |
$allow_obsolete = false;
|
903 |
$file_exists = true;
|
lib/wfu_admin_composer.php
CHANGED
@@ -1,7 +1,6 @@
|
|
1 |
<?php
|
2 |
|
3 |
function wfu_shortcode_composer($data = '', $shortcode_tag = 'wordpress_file_upload') {
|
4 |
-
global $wpdb;
|
5 |
global $wp_roles;
|
6 |
$siteurl = site_url();
|
7 |
|
1 |
<?php
|
2 |
|
3 |
function wfu_shortcode_composer($data = '', $shortcode_tag = 'wordpress_file_upload') {
|
|
|
4 |
global $wp_roles;
|
5 |
$siteurl = site_url();
|
6 |
|
lib/wfu_ajaxactions.php
CHANGED
@@ -253,18 +253,19 @@ function wfu_ajax_action_callback() {
|
|
253 |
//terminate it
|
254 |
if ( WFU_USVAR_exists("wfu_uploadstatus_".$unique_id) && WFU_USVAR("wfu_uploadstatus_".$unique_id) == 0 ) die('force_errorabort_code');
|
255 |
|
|
|
|
|
|
|
|
|
256 |
//if upload has finished then perform post upload actions
|
257 |
if ( isset($_POST["upload_finished"]) && $_POST["upload_finished"] === "1" ) {
|
258 |
$echo_str = "";
|
259 |
//execute after upload filters
|
260 |
-
$ret = wfu_execute_after_upload_filters($sid, $unique_id);
|
261 |
if ( $ret["js_script"] != "" ) $echo_str = "CBUVJS[".wfu_plugin_encode_string($ret["js_script"])."]";
|
262 |
die($echo_str);
|
263 |
}
|
264 |
|
265 |
-
$params_str = get_option('wfu_params_'.$arr['unique_id']);
|
266 |
-
$params = wfu_decode_array_from_string($params_str);
|
267 |
-
|
268 |
//apply filters to determine if the upload will continue or stop
|
269 |
$ret = array( "status" => "", "echo" => "" );
|
270 |
$attr = array( "sid" => $sid, "unique_id" => $unique_id, "params" => $params );
|
253 |
//terminate it
|
254 |
if ( WFU_USVAR_exists("wfu_uploadstatus_".$unique_id) && WFU_USVAR("wfu_uploadstatus_".$unique_id) == 0 ) die('force_errorabort_code');
|
255 |
|
256 |
+
//get stored shortcode parameters
|
257 |
+
$params_str = get_option('wfu_params_'.$arr['unique_id']);
|
258 |
+
$params = wfu_decode_array_from_string($params_str);
|
259 |
+
|
260 |
//if upload has finished then perform post upload actions
|
261 |
if ( isset($_POST["upload_finished"]) && $_POST["upload_finished"] === "1" ) {
|
262 |
$echo_str = "";
|
263 |
//execute after upload filters
|
264 |
+
$ret = wfu_execute_after_upload_filters($sid, $unique_id, $params);
|
265 |
if ( $ret["js_script"] != "" ) $echo_str = "CBUVJS[".wfu_plugin_encode_string($ret["js_script"])."]";
|
266 |
die($echo_str);
|
267 |
}
|
268 |
|
|
|
|
|
|
|
269 |
//apply filters to determine if the upload will continue or stop
|
270 |
$ret = array( "status" => "", "echo" => "" );
|
271 |
$attr = array( "sid" => $sid, "unique_id" => $unique_id, "params" => $params );
|
lib/wfu_functions.php
CHANGED
@@ -1144,6 +1144,10 @@ function wfu_debug_log($message) {
|
|
1144 |
file_put_contents($logpath, $message, FILE_APPEND);
|
1145 |
}
|
1146 |
|
|
|
|
|
|
|
|
|
1147 |
function wfu_safe_store_filepath($path) {
|
1148 |
$code = wfu_create_random_string(16);
|
1149 |
$safe_storage = ( WFU_USVAR_exists('wfu_filepath_safe_storage') ? WFU_USVAR('wfu_filepath_safe_storage') : array() );
|
@@ -1281,7 +1285,7 @@ function wfu_log_action($action, $filepath, $userid, $uploadid, $pageid, $blogid
|
|
1281 |
// calculate file size
|
1282 |
$filesize = filesize($filepath);
|
1283 |
// first make obsolete records having the same file path because the old file has been replaced
|
1284 |
-
$oldrecs = $wpdb->get_results('SELECT * FROM '.$table_name1.' WHERE filepath = \''
|
1285 |
if ( $oldrecs ) {
|
1286 |
foreach ( $oldrecs as $oldrec ) wfu_make_rec_obsolete($oldrec);
|
1287 |
}
|
@@ -1310,7 +1314,7 @@ function wfu_log_action($action, $filepath, $userid, $uploadid, $pageid, $blogid
|
|
1310 |
// if new log record has been created, also create user data records
|
1311 |
if ( $userdata != null && $uploadid != '' ) {
|
1312 |
foreach ( $userdata as $userdata_key => $userdata_field ) {
|
1313 |
-
$existing = $wpdb->get_row('SELECT * FROM '.$table_name2.' WHERE uploadid = \''.$uploadid.'\' AND property = \''
|
1314 |
if ($existing == null)
|
1315 |
$wpdb->insert($table_name2,
|
1316 |
array(
|
@@ -1643,11 +1647,11 @@ function wfu_get_file_rec($filepath, $include_userdata) {
|
|
1643 |
//if file hash is enabled, then search file based on its path and hash, otherwise find file based on its path and size
|
1644 |
if ( isset($plugin_options['hashfiles']) && $plugin_options['hashfiles'] == '1' ) {
|
1645 |
$filehash = md5_file($filepath);
|
1646 |
-
$filerec = $wpdb->get_row('SELECT * FROM '.$table_name1.' WHERE filepath = \''
|
1647 |
}
|
1648 |
else {
|
1649 |
$stat = stat($filepath);
|
1650 |
-
$filerec = $wpdb->get_row('SELECT * FROM '.$table_name1.' WHERE filepath = \''
|
1651 |
}
|
1652 |
//get user data
|
1653 |
if ( $filerec != null && $include_userdata ) {
|
@@ -1660,9 +1664,6 @@ function wfu_get_file_rec($filepath, $include_userdata) {
|
|
1660 |
}
|
1661 |
|
1662 |
function wfu_get_valid_affected_files($recs) {
|
1663 |
-
global $wpdb;
|
1664 |
-
$table_name1 = $wpdb->prefix . "wfu_log";
|
1665 |
-
|
1666 |
$valid_affected_files = array();
|
1667 |
$files_checked = array();
|
1668 |
foreach ($recs as $rec)
|
@@ -1695,9 +1696,6 @@ function wfu_get_file_rec_from_id($idlog, $include_userdata = false) {
|
|
1695 |
}
|
1696 |
|
1697 |
function wfu_get_userdata_from_id($idlog) {
|
1698 |
-
global $wpdb;
|
1699 |
-
$table_name2 = $wpdb->prefix . "wfu_userdata";
|
1700 |
-
|
1701 |
$userdata = array();
|
1702 |
$filerec = wfu_get_file_rec_from_id($idlog, true);
|
1703 |
if ( $filerec != null && $filerec->userdata != null )
|
@@ -1732,6 +1730,15 @@ function wfu_get_userdata_from_rec($filerec) {
|
|
1732 |
return $userdata;
|
1733 |
}
|
1734 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1735 |
function wfu_get_latest_rec_from_id($idlog) {
|
1736 |
global $wpdb;
|
1737 |
$table_name1 = $wpdb->prefix . "wfu_log";
|
@@ -1828,11 +1835,14 @@ function wfu_get_filedata_from_rec($filerec, $is_new = false, $update_transfer =
|
|
1828 |
return $filedata;
|
1829 |
}
|
1830 |
|
1831 |
-
function wfu_save_filedata_from_id($idlog, $filedata) {
|
1832 |
global $wpdb;
|
1833 |
$table_name1 = $wpdb->prefix . "wfu_log";
|
1834 |
-
|
1835 |
-
|
|
|
|
|
|
|
1836 |
}
|
1837 |
|
1838 |
//get userdata from uploadid
|
@@ -2013,16 +2023,16 @@ function wfu_get_filtered_recs($filter) {
|
|
2013 |
}
|
2014 |
// construct userdata filter
|
2015 |
if ( isset($filter['userdata']) ) {
|
2016 |
-
if ( $filter['userdata']['criterion'] == "equal to" ) $valuecriterion = 'propvalue = \''
|
2017 |
-
elseif ( $filter['userdata']['criterion'] == "starts with" ) $valuecriterion = 'propvalue LIKE \''
|
2018 |
-
elseif ( $filter['userdata']['criterion'] == "ends with" ) $valuecriterion = 'propvalue LIKE \'%'
|
2019 |
-
elseif ( $filter['userdata']['criterion'] == "contains" ) $valuecriterion = 'propvalue LIKE \'%'
|
2020 |
-
elseif ( $filter['userdata']['criterion'] == "not equal to" ) $valuecriterion = 'propvalue <> \''
|
2021 |
-
elseif ( $filter['userdata']['criterion'] == "does not start with" ) $valuecriterion = 'propvalue NOT LIKE \''
|
2022 |
-
elseif ( $filter['userdata']['criterion'] == "does not end with" ) $valuecriterion = 'propvalue NOT LIKE \'%'
|
2023 |
-
elseif ( $filter['userdata']['criterion'] == "does not contain" ) $valuecriterion = 'propvalue NOT LIKE \'%'
|
2024 |
-
else $valuecriterion = 'propvalue = \''
|
2025 |
-
$query = 'uploadid in (SELECT DISTINCT uploadid FROM '.$table_name2.' WHERE date_to = 0 AND property = \''
|
2026 |
array_push($queries, $query);
|
2027 |
}
|
2028 |
|
@@ -3127,6 +3137,21 @@ function wfu_get_browser_params_from_safe($code) {
|
|
3127 |
|
3128 |
//********************* POST/GET Requests Functions ****************************************************************************************************
|
3129 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3130 |
function wfu_decode_socket_response($response) {
|
3131 |
$a = func_get_args(); $a = WFU_FUNCTION_HOOK(__FUNCTION__, $a, $out); if (isset($out['vars'])) foreach($out['vars'] as $p => $v) $$p = $v; switch($a) { case 'R': return $out['output']; break; case 'D': die($out['output']); }
|
3132 |
$ret = "";
|
1144 |
file_put_contents($logpath, $message, FILE_APPEND);
|
1145 |
}
|
1146 |
|
1147 |
+
function wfu_debug_log_obj($obj) {
|
1148 |
+
wfu_debug_log(print_r($obj, true));
|
1149 |
+
}
|
1150 |
+
|
1151 |
function wfu_safe_store_filepath($path) {
|
1152 |
$code = wfu_create_random_string(16);
|
1153 |
$safe_storage = ( WFU_USVAR_exists('wfu_filepath_safe_storage') ? WFU_USVAR('wfu_filepath_safe_storage') : array() );
|
1285 |
// calculate file size
|
1286 |
$filesize = filesize($filepath);
|
1287 |
// first make obsolete records having the same file path because the old file has been replaced
|
1288 |
+
$oldrecs = $wpdb->get_results('SELECT * FROM '.$table_name1.' WHERE filepath = \''.esc_sql($relativepath).'\' AND date_to = 0');
|
1289 |
if ( $oldrecs ) {
|
1290 |
foreach ( $oldrecs as $oldrec ) wfu_make_rec_obsolete($oldrec);
|
1291 |
}
|
1314 |
// if new log record has been created, also create user data records
|
1315 |
if ( $userdata != null && $uploadid != '' ) {
|
1316 |
foreach ( $userdata as $userdata_key => $userdata_field ) {
|
1317 |
+
$existing = $wpdb->get_row('SELECT * FROM '.$table_name2.' WHERE uploadid = \''.$uploadid.'\' AND property = \''.esc_sql($userdata_field['label']).'\' AND date_to = 0');
|
1318 |
if ($existing == null)
|
1319 |
$wpdb->insert($table_name2,
|
1320 |
array(
|
1647 |
//if file hash is enabled, then search file based on its path and hash, otherwise find file based on its path and size
|
1648 |
if ( isset($plugin_options['hashfiles']) && $plugin_options['hashfiles'] == '1' ) {
|
1649 |
$filehash = md5_file($filepath);
|
1650 |
+
$filerec = $wpdb->get_row('SELECT * FROM '.$table_name1.' WHERE filepath = \''.esc_sql($relativepath).'\' AND filehash = \''.$filehash.'\' AND date_to = 0 ORDER BY date_from DESC');
|
1651 |
}
|
1652 |
else {
|
1653 |
$stat = stat($filepath);
|
1654 |
+
$filerec = $wpdb->get_row('SELECT * FROM '.$table_name1.' WHERE filepath = \''.esc_sql($relativepath).'\' AND filesize = '.$stat['size'].' AND date_to = 0 ORDER BY date_from DESC');
|
1655 |
}
|
1656 |
//get user data
|
1657 |
if ( $filerec != null && $include_userdata ) {
|
1664 |
}
|
1665 |
|
1666 |
function wfu_get_valid_affected_files($recs) {
|
|
|
|
|
|
|
1667 |
$valid_affected_files = array();
|
1668 |
$files_checked = array();
|
1669 |
foreach ($recs as $rec)
|
1696 |
}
|
1697 |
|
1698 |
function wfu_get_userdata_from_id($idlog) {
|
|
|
|
|
|
|
1699 |
$userdata = array();
|
1700 |
$filerec = wfu_get_file_rec_from_id($idlog, true);
|
1701 |
if ( $filerec != null && $filerec->userdata != null )
|
1730 |
return $userdata;
|
1731 |
}
|
1732 |
|
1733 |
+
function wfu_get_oldestrec_from_uniqueid($uniqueid) {
|
1734 |
+
global $wpdb;
|
1735 |
+
$table_name1 = $wpdb->prefix . "wfu_log";
|
1736 |
+
$filerecs = $wpdb->get_results('SELECT * FROM '.$table_name1.' WHERE idlog IN (SELECT MIN(idlog) FROM '.$table_name1.' WHERE uploadid = \''.$uniqueid.'\')');
|
1737 |
+
if ( $filerecs == null ) return null;
|
1738 |
+
if ( count($filerecs) > 0 ) return $filerecs[0];
|
1739 |
+
else return null;
|
1740 |
+
}
|
1741 |
+
|
1742 |
function wfu_get_latest_rec_from_id($idlog) {
|
1743 |
global $wpdb;
|
1744 |
$table_name1 = $wpdb->prefix . "wfu_log";
|
1835 |
return $filedata;
|
1836 |
}
|
1837 |
|
1838 |
+
function wfu_save_filedata_from_id($idlog, $filedata, $store_in_latest_rec = true) {
|
1839 |
global $wpdb;
|
1840 |
$table_name1 = $wpdb->prefix . "wfu_log";
|
1841 |
+
if ( $store_in_latest_rec ) {
|
1842 |
+
$latestrec = wfu_get_latest_rec_from_id($idlog);
|
1843 |
+
$idlog = $latestrec->idlog;
|
1844 |
+
}
|
1845 |
+
return $wpdb->update($table_name1, array( 'filedata' => wfu_encode_array_to_string($filedata) ), array( 'idlog' => $idlog ), array( '%s' ), array( '%d' ));
|
1846 |
}
|
1847 |
|
1848 |
//get userdata from uploadid
|
2023 |
}
|
2024 |
// construct userdata filter
|
2025 |
if ( isset($filter['userdata']) ) {
|
2026 |
+
if ( $filter['userdata']['criterion'] == "equal to" ) $valuecriterion = 'propvalue = \''.esc_sql($filter['userdata']['value']).'\'';
|
2027 |
+
elseif ( $filter['userdata']['criterion'] == "starts with" ) $valuecriterion = 'propvalue LIKE \''.esc_sql($filter['userdata']['value']).'%\'';
|
2028 |
+
elseif ( $filter['userdata']['criterion'] == "ends with" ) $valuecriterion = 'propvalue LIKE \'%'.esc_sql($filter['userdata']['value']).'\'';
|
2029 |
+
elseif ( $filter['userdata']['criterion'] == "contains" ) $valuecriterion = 'propvalue LIKE \'%'.esc_sql($filter['userdata']['value']).'%\'';
|
2030 |
+
elseif ( $filter['userdata']['criterion'] == "not equal to" ) $valuecriterion = 'propvalue <> \''.esc_sql($filter['userdata']['value']).'\'';
|
2031 |
+
elseif ( $filter['userdata']['criterion'] == "does not start with" ) $valuecriterion = 'propvalue NOT LIKE \''.esc_sql($filter['userdata']['value']).'%\'';
|
2032 |
+
elseif ( $filter['userdata']['criterion'] == "does not end with" ) $valuecriterion = 'propvalue NOT LIKE \'%'.esc_sql($filter['userdata']['value']).'\'';
|
2033 |
+
elseif ( $filter['userdata']['criterion'] == "does not contain" ) $valuecriterion = 'propvalue NOT LIKE \'%'.esc_sql($filter['userdata']['value']).'%\'';
|
2034 |
+
else $valuecriterion = 'propvalue = \''.esc_sql($filter['userdata']['value']).'\'';
|
2035 |
+
$query = 'uploadid in (SELECT DISTINCT uploadid FROM '.$table_name2.' WHERE date_to = 0 AND property = \''.esc_sql($filter['userdata']['field']).'\' AND '.$valuecriterion.')';
|
2036 |
array_push($queries, $query);
|
2037 |
}
|
2038 |
|
3137 |
|
3138 |
//********************* POST/GET Requests Functions ****************************************************************************************************
|
3139 |
|
3140 |
+
function wfu_add_proxy_param(&$config) {
|
3141 |
+
//include proxy support
|
3142 |
+
$proxy = new \WP_HTTP_Proxy();
|
3143 |
+
$proxy_enabled = $proxy->is_enabled();
|
3144 |
+
if ( $proxy_enabled ) {
|
3145 |
+
$config['proxy']['http'] = 'http://'.( $proxy->use_authentication() ? $proxy->authentication().'@' : '' ).$proxy->host().":".$proxy->port();
|
3146 |
+
$config['proxy']['https'] = 'http://'.( $proxy->use_authentication() ? $proxy->authentication().'@' : '' ).$proxy->host().":".$proxy->port();
|
3147 |
+
//make sure that wildcard asterisks (*) are removed from bypass hosts
|
3148 |
+
//to make it compatible with Guzzle format
|
3149 |
+
if ( defined('WP_PROXY_BYPASS_HOSTS') ) $config['proxy']['no'] = preg_split('|,\s*|', str_replace('*', '', WP_PROXY_BYPASS_HOSTS));
|
3150 |
+
}
|
3151 |
+
|
3152 |
+
return $proxy_enabled;
|
3153 |
+
}
|
3154 |
+
|
3155 |
function wfu_decode_socket_response($response) {
|
3156 |
$a = func_get_args(); $a = WFU_FUNCTION_HOOK(__FUNCTION__, $a, $out); if (isset($out['vars'])) foreach($out['vars'] as $p => $v) $$p = $v; switch($a) { case 'R': return $out['output']; break; case 'D': die($out['output']); }
|
3157 |
$ret = "";
|
lib/wfu_template.php
CHANGED
@@ -2,20 +2,19 @@
|
|
2 |
|
3 |
class WFU_Original_Template {
|
4 |
|
5 |
-
private static $instance =
|
6 |
-
public static $name = "WFU_Original_Template";
|
7 |
|
8 |
public static function get_instance() {
|
9 |
-
|
10 |
-
|
11 |
-
self::$
|
12 |
}
|
13 |
|
14 |
-
return self::$instance;
|
15 |
}
|
16 |
|
17 |
public static function get_name() {
|
18 |
-
return
|
19 |
}
|
20 |
|
21 |
function wfu_base_template($data) {?>
|
@@ -4088,7 +4087,7 @@ this._focused = function(obj) {
|
|
4088 |
<?php if ( $p["labelposition"] == "top" || $p["labelposition"] == "left" ): ?>
|
4089 |
<label id="userdata_$ID_label_<?php echo $p["key"]; ?>" for="userdata_$ID_field_<?php echo $p["key"]; ?>" class="file_userdata_label" style="<?php echo $styles2; ?>"><?php echo $p["label"]; ?></label>
|
4090 |
<?php endif ?>
|
4091 |
-
|
4092 |
<div id="userdata_$ID_fieldwrapper_<?php echo $p["key"]; ?>" class="file_userdata_fieldwrapper<?php echo ( $p["required"] ? '_required' : '' ); ?>" style="<?php echo $styles3; ?>">
|
4093 |
<div class="wfu_fieldwrapper_overlay" onclick="document.getElementById('userdata_$ID_field_<?php echo $p["key"]; ?>').focus();"></div>
|
4094 |
<!-- **** the following lines contain the HTML code of each field type ***** -->
|
@@ -4168,7 +4167,7 @@ this._focused = function(obj) {
|
|
4168 |
<?php endif ?>
|
4169 |
<!-- ***************** end of HTML code of each field type ***************** -->
|
4170 |
</div>
|
4171 |
-
|
4172 |
<?php if ( $p["labelposition"] == "bottom" || $p["labelposition"] == "right" ): ?>
|
4173 |
<label id="userdata_$ID_label_<?php echo $p["key"]; ?>" for="userdata_$ID_field_<?php echo $p["key"]; ?>" class="file_userdata_label" style="<?php echo $styles2; ?>"><?php echo $p["label"]; ?></label>
|
4174 |
<?php endif ?>
|
2 |
|
3 |
class WFU_Original_Template {
|
4 |
|
5 |
+
private static $instance = array();
|
|
|
6 |
|
7 |
public static function get_instance() {
|
8 |
+
$that = get_called_class();
|
9 |
+
if ( !isset(self::$instance[$that]) ) {
|
10 |
+
self::$instance[$that] = new $that();
|
11 |
}
|
12 |
|
13 |
+
return self::$instance[$that];
|
14 |
}
|
15 |
|
16 |
public static function get_name() {
|
17 |
+
return get_called_class();
|
18 |
}
|
19 |
|
20 |
function wfu_base_template($data) {?>
|
4087 |
<?php if ( $p["labelposition"] == "top" || $p["labelposition"] == "left" ): ?>
|
4088 |
<label id="userdata_$ID_label_<?php echo $p["key"]; ?>" for="userdata_$ID_field_<?php echo $p["key"]; ?>" class="file_userdata_label" style="<?php echo $styles2; ?>"><?php echo $p["label"]; ?></label>
|
4089 |
<?php endif ?>
|
4090 |
+
<?php if ( $p["labelposition"] == "top" ): ?><br /><?php endif ?>
|
4091 |
<div id="userdata_$ID_fieldwrapper_<?php echo $p["key"]; ?>" class="file_userdata_fieldwrapper<?php echo ( $p["required"] ? '_required' : '' ); ?>" style="<?php echo $styles3; ?>">
|
4092 |
<div class="wfu_fieldwrapper_overlay" onclick="document.getElementById('userdata_$ID_field_<?php echo $p["key"]; ?>').focus();"></div>
|
4093 |
<!-- **** the following lines contain the HTML code of each field type ***** -->
|
4167 |
<?php endif ?>
|
4168 |
<!-- ***************** end of HTML code of each field type ***************** -->
|
4169 |
</div>
|
4170 |
+
<?php if ( $p["labelposition"] == "bottom" ): ?><br /><?php endif ?>
|
4171 |
<?php if ( $p["labelposition"] == "bottom" || $p["labelposition"] == "right" ): ?>
|
4172 |
<label id="userdata_$ID_label_<?php echo $p["key"]; ?>" for="userdata_$ID_field_<?php echo $p["key"]; ?>" class="file_userdata_label" style="<?php echo $styles2; ?>"><?php echo $p["label"]; ?></label>
|
4173 |
<?php endif ?>
|
readme.txt
CHANGED
@@ -149,6 +149,10 @@ There is an option in plugin's settings in Dashboard to relax the CSS rules, so
|
|
149 |
|
150 |
== Changelog ==
|
151 |
|
|
|
|
|
|
|
|
|
152 |
= 4.9.1 =
|
153 |
* added Maintenance action 'Purge All Data' that entirely erases the plugin from the website and deactivates it
|
154 |
* added advanced option 'Hide Invalid Uploaded Files' so that Uploaded Files page in Dashboard can show only valid uploads
|
@@ -802,6 +806,9 @@ Initial version.
|
|
802 |
|
803 |
== Upgrade Notice ==
|
804 |
|
|
|
|
|
|
|
805 |
= 4.9.1 =
|
806 |
Regular update to introduce some new features and improvements and fix some bugs.
|
807 |
|
149 |
|
150 |
== Changelog ==
|
151 |
|
152 |
+
= 4.10.0 =
|
153 |
+
* plugin code improved to support files containing single quote characters (') in their filename
|
154 |
+
* corrected bug where plugin was deactivated after update
|
155 |
+
|
156 |
= 4.9.1 =
|
157 |
* added Maintenance action 'Purge All Data' that entirely erases the plugin from the website and deactivates it
|
158 |
* added advanced option 'Hide Invalid Uploaded Files' so that Uploaded Files page in Dashboard can show only valid uploads
|
806 |
|
807 |
== Upgrade Notice ==
|
808 |
|
809 |
+
= 4.10.0 =
|
810 |
+
Regular update to introduce some new features and improvements.
|
811 |
+
|
812 |
= 4.9.1 =
|
813 |
Regular update to introduce some new features and improvements and fix some bugs.
|
814 |
|
release_notes.txt
CHANGED
@@ -1,10 +1,2 @@
|
|
1 |
-
<!-- --><span><strong>Version 4.
|
2 |
-
<ul style="list-style: disc; padding-left: 30px;">
|
3 |
-
<li>Added Maintenance action <strong>Purge All Data</strong> that entirely erases the plugin from the website and deactivates it.</li>
|
4 |
-
<li>Added advanced option <strong>Hide Invalid Uploaded Files</strong> so that <strong>Uploaded Files</strong> page in Dashboard can show only valid uploads.</li>
|
5 |
-
<li>Added advanced option <strong>Restrict Front-End Loading</strong> to load the plugin <strong>only on specific pages or posts</strong> in order to reduce unnecessary workload on pages not containing the plugin.</li>
|
6 |
-
<li>Code improved for better operation of the plugin when the website works behind a <strong>proxy</strong>.</li>
|
7 |
-
<li>Added option in <strong>Clean Log</strong> to <strong>erase</strong> the files together with plugin data.</li>
|
8 |
-
</ul>
|
9 |
-
For more details about this version's changes please visit the Release Notes of the plugin's </span><a href="http://www.iptanus.com/wordpress-plugins/wordpress-file-upload/">support page</a><span>.</span><!-- -->
|
10 |
<!-- -->
|
1 |
+
<!-- --><span><strong>Version 4.10.0</strong> is a <strong>significant</strong> update due to introduction of <strong>Facebook Messenger Notifications</strong> in the <strong>Professional</strong> version. The free version introduces better support for files containing single quote characters (') in their filename.<br/><br/>For more details about this version's changes please visit the Release Notes of the plugin's </span><a href="http://www.iptanus.com/wordpress-plugins/wordpress-file-upload/">support page</a><span>.</span><!-- -->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
<!-- -->
|
wfu_loader.php
CHANGED
@@ -1,32 +1,8 @@
|
|
1 |
<?php
|
|
|
|
|
|
|
2 |
if( !session_id() ) { session_start(); }
|
3 |
-
/*Plugin Name: Wordpress File Upload
|
4 |
-
/*
|
5 |
-
Plugin URI: http://www.iptanus.com/support/wordpress-file-upload
|
6 |
-
Description: Simple interface to upload files from a page.
|
7 |
-
Version: 4.9.1
|
8 |
-
Author: Nickolas Bossinas
|
9 |
-
Author URI: http://www.iptanus.com
|
10 |
-
*/
|
11 |
-
|
12 |
-
/*
|
13 |
-
Wordpress File Upload (Wordpress Plugin)
|
14 |
-
Copyright (C) 2010-2018 Nickolas Bossinas
|
15 |
-
Contact me at http://www.iptanus.com
|
16 |
-
|
17 |
-
This program is free software: you can redistribute it and/or modify
|
18 |
-
it under the terms of the GNU General Public License as published by
|
19 |
-
the Free Software Foundation, either version 3 of the License, or
|
20 |
-
(at your option) any later version.
|
21 |
-
|
22 |
-
This program is distributed in the hope that it will be useful,
|
23 |
-
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
-
GNU General Public License for more details.
|
26 |
-
|
27 |
-
You should have received a copy of the GNU General Public License
|
28 |
-
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
29 |
-
*/
|
30 |
|
31 |
//set global db variables
|
32 |
//wfu_tb_log_version v2.0 changes:
|
@@ -40,13 +16,12 @@ $wfu_tb_log_version = "4.0";
|
|
40 |
$wfu_tb_userdata_version = "1.0";
|
41 |
$wfu_tb_dbxqueue_version = "1.0";
|
42 |
|
43 |
-
DEFINE("WPFILEUPLOAD_PLUGINFILE", __FILE__);
|
44 |
DEFINE("WPFILEUPLOAD_DIR", plugin_dir_url( WPFILEUPLOAD_PLUGINFILE ));
|
45 |
DEFINE("ABSWPFILEUPLOAD_DIR", plugin_dir_path( WPFILEUPLOAD_PLUGINFILE ));
|
46 |
add_shortcode("wordpress_file_upload", "wordpress_file_upload_handler");
|
47 |
//activation-deactivation hooks
|
48 |
-
register_activation_hook(
|
49 |
-
register_deactivation_hook(
|
50 |
add_action('plugins_loaded', 'wordpress_file_upload_initialize');
|
51 |
add_action('plugins_loaded', 'wordpress_file_upload_update_db_check');
|
52 |
//widget
|
@@ -99,7 +74,7 @@ wfu_include_lib();
|
|
99 |
|
100 |
function wordpress_file_upload_initialize() {
|
101 |
$a = func_get_args(); $a = WFU_FUNCTION_HOOK(__FUNCTION__, $a, $out); if (isset($out['vars'])) foreach($out['vars'] as $p => $v) $$p = $v; switch($a) { case 'R': return $out['output']; break; case 'D': die($out['output']); }
|
102 |
-
load_plugin_textdomain('wp-file-upload', false, dirname(plugin_basename (
|
103 |
wfu_initialize_i18n_strings();
|
104 |
//store the User State handler in a global variable for easy access by the
|
105 |
//plugin's routines
|
@@ -151,7 +126,7 @@ function wfu_enqueue_frontpage_scripts() {
|
|
151 |
}
|
152 |
|
153 |
function wfu_include_lib() {
|
154 |
-
$dir = plugin_dir_path(
|
155 |
if ( $handle = opendir($dir) ) {
|
156 |
$blacklist = array('.', '..');
|
157 |
while ( false !== ($file = readdir($handle)) )
|
@@ -159,7 +134,7 @@ function wfu_include_lib() {
|
|
159 |
include_once $dir.$file;
|
160 |
closedir($handle);
|
161 |
}
|
162 |
-
if ( $handle = opendir(plugin_dir_path(
|
163 |
closedir($handle);
|
164 |
}
|
165 |
}
|
@@ -516,7 +491,7 @@ function wordpress_file_upload_function($incomingfromhandler) {
|
|
516 |
unset($wfu_process_file_array["general"]['js_script']);
|
517 |
$js_script_enc = "";
|
518 |
//execute after upload filters
|
519 |
-
$ret = wfu_execute_after_upload_filters($sid, $unique_id);
|
520 |
if ( $ret["js_script"] != "" ) $js_script_enc = wfu_plugin_encode_string($ret["js_script"]);
|
521 |
$wfu_process_file_array_str = wfu_encode_array_to_string($wfu_process_file_array);
|
522 |
}
|
@@ -593,14 +568,14 @@ function wfu_classic_before_upload_handler($ret, $attr) {
|
|
593 |
return $ret;
|
594 |
}
|
595 |
|
596 |
-
function wfu_execute_after_upload_filters($sid, $unique_id) {
|
597 |
//apply internal filters from extensions
|
598 |
$ret = array( "echo" => "" );
|
599 |
$files = array();
|
600 |
$filedata_id = "filedata_".$unique_id;
|
601 |
if ( WFU_USVAR_exists($filedata_id) ) $files = WFU_USVAR($filedata_id);
|
602 |
$attr = array( "sid" => $sid, "unique_id" => $unique_id, "files" => $files );
|
603 |
-
$ret = apply_filters("_wfu_after_upload", $ret, $attr);
|
604 |
//then apply any custom filters created by admin
|
605 |
$echo_str = "";
|
606 |
$ret = array( "js_script" => "" );
|
1 |
<?php
|
2 |
+
|
3 |
+
if ( !defined("WPFILEUPLOAD_PLUGINFILE") ) return;
|
4 |
+
|
5 |
if( !session_id() ) { session_start(); }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
|
7 |
//set global db variables
|
8 |
//wfu_tb_log_version v2.0 changes:
|
16 |
$wfu_tb_userdata_version = "1.0";
|
17 |
$wfu_tb_dbxqueue_version = "1.0";
|
18 |
|
|
|
19 |
DEFINE("WPFILEUPLOAD_DIR", plugin_dir_url( WPFILEUPLOAD_PLUGINFILE ));
|
20 |
DEFINE("ABSWPFILEUPLOAD_DIR", plugin_dir_path( WPFILEUPLOAD_PLUGINFILE ));
|
21 |
add_shortcode("wordpress_file_upload", "wordpress_file_upload_handler");
|
22 |
//activation-deactivation hooks
|
23 |
+
register_activation_hook(WPFILEUPLOAD_PLUGINFILE,'wordpress_file_upload_install');
|
24 |
+
register_deactivation_hook(WPFILEUPLOAD_PLUGINFILE,'wordpress_file_upload_uninstall');
|
25 |
add_action('plugins_loaded', 'wordpress_file_upload_initialize');
|
26 |
add_action('plugins_loaded', 'wordpress_file_upload_update_db_check');
|
27 |
//widget
|
74 |
|
75 |
function wordpress_file_upload_initialize() {
|
76 |
$a = func_get_args(); $a = WFU_FUNCTION_HOOK(__FUNCTION__, $a, $out); if (isset($out['vars'])) foreach($out['vars'] as $p => $v) $$p = $v; switch($a) { case 'R': return $out['output']; break; case 'D': die($out['output']); }
|
77 |
+
load_plugin_textdomain('wp-file-upload', false, dirname(plugin_basename (WPFILEUPLOAD_PLUGINFILE)).'/languages');
|
78 |
wfu_initialize_i18n_strings();
|
79 |
//store the User State handler in a global variable for easy access by the
|
80 |
//plugin's routines
|
126 |
}
|
127 |
|
128 |
function wfu_include_lib() {
|
129 |
+
$dir = plugin_dir_path( WPFILEUPLOAD_PLUGINFILE )."lib/";
|
130 |
if ( $handle = opendir($dir) ) {
|
131 |
$blacklist = array('.', '..');
|
132 |
while ( false !== ($file = readdir($handle)) )
|
134 |
include_once $dir.$file;
|
135 |
closedir($handle);
|
136 |
}
|
137 |
+
if ( $handle = opendir(plugin_dir_path( WPFILEUPLOAD_PLUGINFILE )) ) {
|
138 |
closedir($handle);
|
139 |
}
|
140 |
}
|
491 |
unset($wfu_process_file_array["general"]['js_script']);
|
492 |
$js_script_enc = "";
|
493 |
//execute after upload filters
|
494 |
+
$ret = wfu_execute_after_upload_filters($sid, $unique_id, $params);
|
495 |
if ( $ret["js_script"] != "" ) $js_script_enc = wfu_plugin_encode_string($ret["js_script"]);
|
496 |
$wfu_process_file_array_str = wfu_encode_array_to_string($wfu_process_file_array);
|
497 |
}
|
568 |
return $ret;
|
569 |
}
|
570 |
|
571 |
+
function wfu_execute_after_upload_filters($sid, $unique_id, $params) {
|
572 |
//apply internal filters from extensions
|
573 |
$ret = array( "echo" => "" );
|
574 |
$files = array();
|
575 |
$filedata_id = "filedata_".$unique_id;
|
576 |
if ( WFU_USVAR_exists($filedata_id) ) $files = WFU_USVAR($filedata_id);
|
577 |
$attr = array( "sid" => $sid, "unique_id" => $unique_id, "files" => $files );
|
578 |
+
$ret = apply_filters("_wfu_after_upload", $ret, $attr, $params);
|
579 |
//then apply any custom filters created by admin
|
580 |
$echo_str = "";
|
581 |
$ret = array( "js_script" => "" );
|
wordpress_file_upload.php
CHANGED
@@ -1,6 +1,33 @@
|
|
1 |
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
$uri = $_SERVER['REQUEST_URI'];
|
5 |
if ( strpos($uri, 'wp-login.php') !== false ) return;
|
6 |
|
@@ -25,6 +52,7 @@ if ( !is_admin() ) {
|
|
25 |
}
|
26 |
}
|
27 |
//proceed loading the plugin
|
28 |
-
|
|
|
29 |
|
30 |
?>
|
1 |
<?php
|
2 |
+
/*Plugin Name: Wordpress File Upload
|
3 |
+
/*
|
4 |
+
Plugin URI: http://www.iptanus.com/support/wordpress-file-upload
|
5 |
+
Description: Simple interface to upload files from a page.
|
6 |
+
Version: 4.10.0
|
7 |
+
Author: Nickolas Bossinas
|
8 |
+
Author URI: http://www.iptanus.com
|
9 |
+
Text Domain: wp-file-upload
|
10 |
+
Domain Path: /languages
|
11 |
|
12 |
+
Wordpress File Upload (Wordpress Plugin)
|
13 |
+
Copyright (C) 2010-2018 Nickolas Bossinas
|
14 |
+
Contact me at http://www.iptanus.com
|
15 |
+
|
16 |
+
This program is free software: you can redistribute it and/or modify
|
17 |
+
it under the terms of the GNU General Public License as published by
|
18 |
+
the Free Software Foundation, either version 3 of the License, or
|
19 |
+
(at your option) any later version.
|
20 |
+
|
21 |
+
This program is distributed in the hope that it will be useful,
|
22 |
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
23 |
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
24 |
+
GNU General Public License for more details.
|
25 |
+
|
26 |
+
You should have received a copy of the GNU General Public License
|
27 |
+
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
28 |
+
*/
|
29 |
+
|
30 |
+
//do not load plugin if this is the login page
|
31 |
$uri = $_SERVER['REQUEST_URI'];
|
32 |
if ( strpos($uri, 'wp-login.php') !== false ) return;
|
33 |
|
52 |
}
|
53 |
}
|
54 |
//proceed loading the plugin
|
55 |
+
DEFINE("WPFILEUPLOAD_PLUGINFILE", __FILE__);
|
56 |
+
require_once( plugin_dir_path( WPFILEUPLOAD_PLUGINFILE ) . 'wfu_loader.php' );
|
57 |
|
58 |
?>
|