1
0
mirror of https://github.com/e107inc/e107.git synced 2025-03-30 01:02:34 +01:00

4343 Commits

Author SHA1 Message Date
Cameron
2486833451 Issue #3552 2018-11-29 12:01:16 -08:00
Cameron
4bd585a263
Merge pull request #3552 from nesjett/master
Added rate/link event triggers
2018-11-29 11:55:35 -08:00
Cameron
07ccaf35e8 Issue #3564 PHP Notice Removal 2018-11-29 11:35:35 -08:00
Cameron
0adf60f9e7 Issue #3507 blob plupload issue. 2018-11-23 13:20:57 -08:00
Cameron
5d27229183 Database verification now runs again directly after applying fixes. Compatibility fix for core_functions.php 2018-11-22 13:43:02 -08:00
Néstor Sabater
16ea5cc097
Minor fix for rate/like event triggers 2018-11-16 01:53:33 +01:00
Néstor Sabater
7ac8094533
Added triggers for rating/liking 2018-11-16 01:36:41 +01:00
Cameron
e0d988aaeb Issue #3524 XML import/export array issue. 2018-11-15 14:20:08 -08:00
Cameron
5073dcd3bb Fixes #3520 thump.php failing when custom site_path in use. 2018-11-07 16:31:08 -08:00
Cameron
12dece2cc6 Admin-UI: Allow searching of type=method fields with integer data. 2018-11-03 15:15:31 -07:00
Cameron
d3cdcfe3f9 Moved upload code to media class. 2018-11-03 12:56:42 -07:00
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
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
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
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
69eb95c63c Admin-ui: modalCaption option added for Edit button when target = 'modal' 2018-10-18 12:46:29 -07:00
Cameron
6c2c2c7f13 Issue #3501 - Media-Manager icon import issue. 2018-10-16 11:50:16 -07:00
Cameron
5db55ff20a Admin-UI: Fix for type userclasses 2018-10-02 17:00:38 -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
Cameron
3959c998c4 Issue #3463 - Alt-auth missing port field. 2018-10-02 12:15:58 -07:00
Cameron
f99e2fbca0
Merge pull request #3471 from Deltik/fix-3437
Matching scope for e_form::$_inline_token
2018-09-27 14:32:44 -07:00
Cameron
1f4bfa256c Fix for custom class on select 2018-09-27 12:02:35 -07:00
Nick Liu
8c7b61fb29
Matching scope for e_form::_inline_token
Should be private to match private function inlineToken()
2018-09-27 11:34:10 -05:00
Nick Liu
a374886425
Fixes #3437 – e_form::inlineToken() performance
This "inline token" is generated 30 times in my test, but it's the same
session_id() being hashed. This is wasteful and can be mitigated in two
ways:

* Reducing the time cost like so: return password_hash(session_id(),
PASSWORD_DEFAULT, ['cost' => 04]);
* Storing the hash as an instance variable the first time it's
generated

This commit applies both mitigations.
2018-09-23 15:32:57 -05:00
Cameron
8c73bf1434 Issue #2146 Partial compatibility fix. Testing required. 2018-09-18 17:58:32 -07:00
Cameron
a4ca72cd8f New user page shortcode {USER_SETTINGS_URL} 2018-09-18 16:45:26 -07:00
Cameron
150eeaec97 Issue #3439 Sitelinks with function problem 2018-09-18 09:38:34 -07:00
Cameron
4dbaa76284 Fixes #3406 - db verify was not adding Primary Indices correctly when running fixes. 2018-09-16 16:27:14 -07:00
Cameron
5235b4fcaf Fix for database verify charset function. 2018-09-12 11:46:23 -07:00
Cameron
688db76a96 Admin-ui: New method: beforePrefsSave($new_data, $old_data); 2018-09-10 10:42:54 -07:00
Cameron
310b7e84e1 Precaution added for old left-over plugin prefs using hooks 2018-09-09 19:47:50 -07:00
Cameron
69aa6711e9 toGlyph tag cleanup 2018-09-09 10:16:55 -07:00
Cameron
7340ea8377 Media-Manager icon picker preview size fix. 2018-09-08 11:53:40 -07:00
Cameron
a1c38cb364 PHP Notice removal 2018-09-08 10:45:18 -07:00
Cameron
5ee15f10ef Allow title to be set in toGlyph() 2018-09-08 10:27:06 -07:00
Cameron
b5157e70cb Fixes #3422 Installation issue with database names containing a hyphen. 2018-09-06 11:20:43 -07:00
Cameron
cdcd10e7f5 Fix for blog-calendar links not in the current year. 2018-09-04 17:10:03 -07:00
Cameron
00e2663162 Added token to x-editable 2018-09-04 15:15:50 -07:00
Cameron
c360ba2476 PHPDoc fix 2018-09-03 15:22:04 -07:00
Cameron
7daded6ac5 Media-Picker spacer fix. 2018-09-03 14:35:03 -07:00
Cameron
b443409c3a PHPDoc fixes on e107_class.php 2018-09-03 12:08:44 -07:00
Cameron
8e663dbf74 admin-ui improved inline-editing debugging log information. 2018-09-03 11:43:44 -07:00