1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-18 05:09:05 +01:00

11128 Commits

Author SHA1 Message Date
Nick Liu
9cf215a0be
Better names for eShims classes
* \e107\Shims\All → \e107\Shims\AllShims
* \e107\Shims\Internal → \e107\Shims\InternalShims
* \e107\Shims\InternalShims → \e107\Shims\InternalShimsTrait

Fixes: #3538
2018-11-03 09:24:05 -05:00
Cameron
5997a7905b
Merge pull request #3537 from Deltik/fix-3536
Ensure plugin files are registered in database before installing any plugin
2018-11-02 11:30:14 -07:00
Nick Liu
7b259aec6f
Ensure plugin files are registered in DB before install
e107::getPlug()->clearCache() rescans the plugin folder for plugins and
adds them to the database.

Fixes: #3536
2018-11-02 10:07:59 -05:00
Cameron
4d0c0601d0
Merge pull request #3534 from Deltik/fix-3533
Sorting for "templates" type e_form::renderElement()
2018-11-01 09:49:07 -07:00
Cameron
1f5774b8e5
Merge pull request #3532 from Deltik/fix-3531
Fixed e_plugin::buildAddonPrefLists() statefulness bug
2018-11-01 09:48:24 -07:00
Nick Liu
003cf4ff09
Sorting for "templates" type e_form::renderElement()
The output from e107::getFile()->get_files() is now sorted in
e_form::renderElement() for consistent output.

Fixes: #3533
2018-11-01 11:11:25 -05:00
Nick Liu
ff7f182c8c
Fixed e_plugin::buildAddonPrefLists() stateful bug
Prevents e_plugin::buildAddonPrefLists() from wiping out the variable
that is tracking the currently loaded plugin by moving the currently
loaded plugin to the end of the iterated array

Fixes: #3531
Fixes: e107inc/e107-test#9
2018-11-01 09:59:17 -05:00
Cameron
46efef4d4d
Merge pull request #3529 from Deltik/fix-3528
Namespaced class support!  Also: readlink() has been "polyfilled"
2018-10-31 16:17:04 -07:00
Nick Liu
ded595d704
Renamed e_shims to eShims
To follow @myovchev's convention like eHelper

Per @CaMer0n
2018-10-31 12:32:58 -05:00
Nick Liu
b2de51dd1b
Split e_shims into correct files for autoloading 2018-10-31 09:37:07 -05:00
Nick Liu
4c6828be93
Moved autoload responsibility to e107_class.php
Instead of every independently operating client code figuring out its
own autoload policies, the e107 class file e107_class.php now takes care
of autoloading.

Any client that uses the e107 class will automatically benefit from
autoloading for e107.

This cuts down on potential code duplication, and e107::getSingleton()
is no longer tied to trying to figure out the class path.

This commit REMOVES support for the unused constant flag
E107_DISABLE_AUTOLOAD introduced in
bdef2707b4cafe34e5485d8733138a0e87f43a39 and the unused autoload code
introduced in f4cee9289087c0119bc6797f7dfb7792a62b0be3.
2018-10-31 08:22:14 -05:00
Nick Liu
ee1a5b1278
Replaced all direct readfile()s with shim
Fixes: #3528
2018-10-31 08:04:59 -05:00
Nick Liu
60056deb93
Support for namespaced classes; added e_shims
e_shims is an e107 v2-compatible class for the first namespaced core
class, e107\Shims\All.

e107\Shims\All is built from the e107\Shims\InternalShims trait.

e107\Shims\InternalShims currently implements a resilient replacement
for the PHP internal readfile(), which is needed by issue #3528.

As for how the new namespaced classes are handled, the e107 class
(e107_handlers/e107_class.php) has an updated e107::autoload() which
detects namespaced classes and goes to e107::autoload_namespaced().

Namespaced classes handled by e107 are in the \e107 top-level namespace,
and all sub-levels match directory paths under e_HANDLER.
2018-10-31 07:27:38 -05:00
Cameron
55b4cf4d03 Issue #3519 Extra check for class name. 2018-10-29 12:57:35 -07:00
Cameron
ffaab917c2 Issue #3512 Prevent duplicate SEF on forum. 2018-10-26 12:16:26 -07:00
Cameron
9af88374c2 Media-Manager Fix for YouTube preview after selection. 2018-10-23 12:54:19 -07:00
Cameron
1017f32d68 Issue #3509 Quick fix. Needs further refinement to avoid false positives. 2018-10-19 13:50:27 -07:00
Cameron
a9ae32b9f4 Issue #3511 - removed closing PHP tag. 2018-10-19 12:50:37 -07:00
Tijn Kuyper
c3e4cb07c3
Fixes #3511 - second attempt, removal of empty line after closing tags 2018-10-19 15:00:37 +02:00
Tijn Kuyper
94a6d24491
Fixes 3511 - Removed empty line after php closing tag 2018-10-19 14:41:52 +02:00
Cameron
69eb95c63c Admin-ui: modalCaption option added for Edit button when target = 'modal' 2018-10-18 12:46:29 -07:00
Tijn Kuyper
0f272841bf
Merge pull request #3510 from Jimmi08/patch-8
display correct version in message - Optimise PHP version check for G…
2018-10-18 19:53:23 +02:00
Jimako
1f040b3fbc
display correct version in message - Optimise PHP version check for Github sync
related:  94adbd06cc
2018-10-18 19:47:56 +02:00
Cameron
6c2c2c7f13 Issue #3501 - Media-Manager icon import issue. 2018-10-16 11:50:16 -07:00
Cameron
463b81bd2f
Merge pull request #3498 from yesszus/patch-3
Update lan_ren_help.php
2018-10-15 12:54:48 -07:00
Cameron
815c27c67b
Merge pull request #3495 from yesszus/patch-2
Update English.php
2018-10-15 12:52:26 -07:00
Cameron
d2171ba7d3
Merge pull request #3490 from phibel/fix_forum
Fix forum
2018-10-15 12:49:25 -07:00
phibel
e2789872a5 FIX the database was not updated when a post was deleted
Looks like someone was interrupted during work and than it was merged into the repo?
Anyway, the needed information are stored in $postInfo[] and not in $row[].
2018-10-13 15:55:31 +02:00
phibel
3848560752 ENH allow user to delete his own post, if it is the last post in the thread 2018-10-13 15:55:31 +02:00
phibel
f480064ba4 FIX allow moderators to edit posts from other users 2018-10-13 15:55:31 +02:00
phibel
c644a8b9d2 FIX check moderator permissions for thread-operations
Without admin permissions (member of user class 254) it was not possible to modify threads in
the forum. This fix get the forum-moderator permissions by the threadId to modify this thread.
2018-10-13 15:55:31 +02:00
phibel
37d086c418 MNT remove debug print 2018-10-13 15:55:31 +02:00
phibel
9ca28b8fa4 FIX user can transfer his moderator permissions from one forum to an other forum
I am working further on the moderator permissions and discovered that my previous commit
692509f is a bad solution. Because the moderator submits the threadId and postID for the post
who he wants to delete. This threadId was used to check the moderator permissions of the postId.

So if a moderator has only permissions for one forum, he could change the transmitted threadId
in an other forum to get there also moderator permisssions...

Sorry that I did not noticed this glitch before I made the previous commit. :-/
2018-10-13 15:55:31 +02:00
Gábor
714fd6bb08
Add files via upload 2018-10-13 07:11:18 +02:00
Gábor
2cc644c5f7
Update lan_ren_help.php 2018-10-13 07:05:09 +02:00
Gábor
034bc41793
Update English_global.php 2018-10-10 22:35:04 +02:00
Gábor
36b6afcd31
Update e_search.php 2018-10-10 22:30:03 +02:00
Gábor
b1c3a20f3d
Update English.php 2018-10-10 22:28:19 +02:00
Tijn Kuyper
690db62a88
Fixes #3494 - additional fix in poll html markup 2018-10-09 12:20:07 +02:00
Tijn Kuyper
72f6534eae
Fixes #3494 - wrong HTML markup with poll_answer id 2018-10-08 17:04:19 +02:00
Gábor
c31623e2fd
Update e_search.php 2018-10-07 09:14:01 +02:00
Gábor
5c40dba1af
Update English.php 2018-10-07 09:11:54 +02:00
Cameron
0d82695503 Fixes #3489 Download Name length increased to 255 chars. 2018-10-04 16:36:09 -07:00
Tijn Kuyper
94adbd06cc
Optimise PHP version check for Github sync 2018-10-04 15:54:02 +02:00
Tijn Kuyper
5acf54d93a
Added check for minimal PHP version when syncing with Github 2018-10-03 18:53:16 +02:00
Cameron
5db55ff20a Admin-UI: Fix for type userclasses 2018-10-02 17:00:38 -07:00
Cameron
0d9e2a77ca Addition default fields added. 2018-10-02 15:26:42 -07:00
Cameron
0e8576c254 Issue #3202 - Reproduce configuration in _blank plugin. 2018-10-02 13:43:28 -07:00
Cameron
5cc1b18f80 Fixes #3486 - Fixes issue with files containing spaces. 2018-10-02 13:07:26 -07:00
Cameron
bf49853f67 Fixes #3460 - Zip upload issue. 2018-10-02 12:29:16 -07:00