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
Cameron
adce28a1f5
MediaPicker preview fix.
2018-08-26 15:36:05 -07:00
Cameron
e392fd5740
Fix for drag-n-drop upload.
2018-08-26 15:27:59 -07:00
Cameron
db976c931b
Merge pull request #3396 from SimSync/fix_3359
...
fixes #3359 changed default redirect code from 302 to 301 for better seo compatibility
2018-08-26 10:36:55 -07:00
Cameron
2153b43ebd
Merge pull request #3402 from SimSync/fix_3390
...
fixes #3390 Added check for "//" at the beginning for protocol-less path
2018-08-26 10:36:40 -07:00
Cameron
4fa0b4f13f
Merge pull request #3401 from SimSync/fix_3394
...
fixes #3394 Moved loading of e_bb after the loading of the templates
2018-08-26 10:36:25 -07:00
Cameron
2bd651c630
Fixes #2593 , Fixes #1586 User-extended 'database' field options were not being saved.
2018-08-26 10:23:55 -07:00
Achim Ennenbach
f08a323f05
fixes #3390 Added check for // at the beginning for protocol-less path
2018-08-26 13:51:16 +02:00
Achim Ennenbach
3840d7d642
fixes #3394 Moved loading of e_bb after the loading of the templates
2018-08-26 13:38:14 +02:00
Cameron
3d031895ca
Dropzone LAN added. Catch theme shortcode when set in sitelinks but missing and add a debug message.
2018-08-24 16:04:12 -07:00
Cameron
ad29901d9b
Issue #3397 Prefs issue possible fix for some machines and PHP 5.4 fix in image.php.
2018-08-23 08:46:35 -07:00
Achim Ennenbach
60060cff55
fixes #3359 changed default redirect code from 302 to 301 for better seo compatibility
2018-08-23 09:21:38 +02:00