1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 20:58:30 +01:00

325 Commits

Author SHA1 Message Date
Cameron
567b5022f2 Fix for customfields Youtube video preview not displaying after selection. 2021-09-29 10:44:21 -07:00
Nick Liu
20882920a0
Fix all PHP 8.1 test failures
* `strftime()` has been replaced with a polyfill based on `DateTime`.
* Explicit type casts/assertions added where required by PHP 8.1
* `filter_var(…, FILTER_SANITIZE_STRING)` replaced with `strip_tags()`
  or HTML entity encoding of quotation marks, depending on a guess of
  what the intended "sanitization" was
* `http_build_query()` usage type mismatches fixed
* Removed usages of the `FILE_TEXT` constant
* To avoid breaking PHP 5.6 compatibility (function return types),
  `e_session_db` no longer implements `SessionHandlerInterface`.
  Instead, the alternative non-OOP invocation of
  `session_set_save_handler()` is used instead to apply the session
  handler.
* The shim for `strptime()` still calls the native function if available
  but now suppresses the deprecation warning.

* `e_db_pdo` explicitly asks for `PDO::ATTR_STRINGIFY_FETCHES` to
  maintain consistent behavior with past versions of PHP.
* `e_db_mysql` explicitly sets `mysqli_report(MYSQLI_REPORT_OFF)` to
  maintain consistent behavior with past versions of PHP.

* Removed pointless random number generator seed from `banner` plugin
* Workaround for `COUNT(*)` SQL query in
  `validatorClass::dbValidateArray()` without a proper API for avoiding
  SQL injection
2021-09-04 15:06:19 +02:00
Cameron
2862e18db9 Issue #4471 2021-04-06 18:41:15 -07:00
Cameron
7133d4bb6f Closes #4228 TinyMce can now load the frontend theme in the editor when 'wysiwyg' is found in the scope of a declared css file within theme.xml
Fixes #4371 - FontAwesome5 is now loaded in the TinyMce editor when detected in the frontend theme.
2021-02-11 16:39:50 -08:00
Cameron
62815a965a Fixed visibility of drag-n-drop message. Media-manager "Files" tab fixed. 2021-02-07 13:26:36 -08:00
Cameron
e4f6d502b9 Admin style tweaks 2021-02-03 08:10:23 -08:00
Cameron
0b1a84068f toGlyph() additional tests, Media-Manager includes bootstrap5 when detected and backward compatibility. 2021-01-31 13:09:53 -08:00
Cameron
2dedc8719f FontAwesome 5 added to admin area and bootstrap3 theme. $tp->toIcon() supports SVG sizing 2x, 3x etc. 2021-01-30 19:21:23 -08:00
Cameron
835e477147 Bootstrap 5 styling. (data-bs-toggle)
Signup shortcodes now automatically load the required template.
2021-01-26 15:08:58 -08:00
Cameron
04bbad449a Test admin scripts are parsing correctly. 2021-01-16 13:32:35 -08:00
Cameron
a7d637b02f Media-Manager ajax filter fix. 2020-12-31 16:14:43 -08:00
Cameron
5d7f921023 PHP8 Warning fixes. 2020-12-31 09:06:20 -08:00
Cameron
e595c0841a Fixes Media-Manager remote image import. 2020-12-29 11:13:18 -08:00
Cameron
7dfac0dcfa Issue #4299 - PHP8 compatibility fixes. 2020-12-25 10:23:56 -08:00
Cameron
9880a68d4b Code cleanup 2020-12-20 19:42:09 -08:00
Cameron
5b82c292b1 Code cleanup 2020-12-18 19:55:12 -08:00
Cameron
f5153bf640 Updating of deprecated method usage. Removal of old files. Log tests added. 2020-12-18 09:39:02 -08:00
Cameron
42f0e902d4 Issue #4283 - Update deprecated sql method usage. Removed old code. 2020-12-17 05:52:54 -08:00
Cameron
44e260b121 Code cleanup and optimization 2020-12-14 16:21:48 -08:00
Cameron
7229aa6c50 Preparations for WebP conversions. e107::title() added to eventually replace defining e_PAGETITLE. 2020-12-08 18:15:08 -08:00
Cameron
afaac88003 PHP8 Compatibility and code cleanup. 2020-12-08 12:21:12 -08:00
Cameron
b4596dda47 Old PHPThumb class removed. (Replaced by Intervention) 2020-12-06 11:33:09 -08:00
Nick Liu
ef819f6c30
Prevent multiple includes of ThumbLib
Fixes this error:

```
Constant THUMBLIB_BASE_PATH already defined
 /e107/e107_handlers/phpthumb/ThumbLib.inc.php:31
 /e107/e107_handlers/media_class.php:1943
 /e107/e107_handlers/mail.php:1269
 /e107/e107_handlers/mail.php:654
 /e107/e107_handlers/mail.php:976
 /e107/e107_tests/tests/unit/e107EmailTest.php:61
```
2020-08-11 19:08:31 -05:00
Cameron
2009549a4e Issue #4049 - media_sef (URL) returned for media type 'file' was incorrect. 2020-05-25 12:34:18 -07:00
Cameron
79c5b3e694 Issue #4049 - Media-Manager Url fix. Fixed Media Preview.
Admin-ui: type='media' example added to blank plugin.
2020-02-21 14:20:33 -08:00
Cameron
62863b4934 Issue #2146 PHP 7.3 class compatibility fix. More testing required. 2019-06-03 16:29:38 -07:00
Cameron
c9e359e3a6 PHP Notice removal 2018-11-26 11:15:53 -08:00
Cameron
96647b445e plupload upgraded to v2.3.6 2018-11-23 13:24:14 -08:00
Cameron
bc996f7721 Fixes #3543 - YouTube video insertion into text area. 2018-11-09 14:20:58 -08:00
Cameron
9af88374c2 Media-Manager Fix for YouTube preview after selection. 2018-10-23 12:54:19 -07:00
Cameron
7340ea8377 Media-Manager icon picker preview size fix. 2018-09-08 11:53:40 -07:00
Cameron
f19817f8b3 Media-Manager Fix for icon/glyph filtering. 2018-09-08 11:37:39 -07:00
Cameron
9fc35e190c Fixes #3386 TinyMce wasn't inserting image correctly when pref "resize dimension" width was empty. Fixed TinyMce cancel button. 2018-08-26 12:29:42 -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
Cameron
ea4affeab1 Media-Manager news now includes common images/video etc. 2018-08-22 18:09:46 -07:00
Cameron
4c41fb6ea2 Issue #3392 MediaPicker in use by default and "Clear" button added. 2018-08-22 17:20:49 -07:00
Cameron
1754887672 MediaManager Fixes. 2018-08-16 19:02:02 -07:00
Cameron
66210474bd MediaPicker Select JS rewrite.
toIcon() fallback set to 'abs' URLs instead of 'full' URLs.
Fix for double-entry of mediapicker into TinyMce.
2018-08-13 17:42:06 -07:00
Cameron
6118bef56d MediaPicker thumbnail size fixes. 2018-08-13 13:17:54 -07:00
Cameron
acfaf2df8e MediaPicker fixes. 2018-08-11 14:06:21 -07:00
Cameron
891b5f044e MediaPicker fixes. 2018-08-11 12:04:46 -07:00
Cameron
f5cf253091 MediaPicker bbcode (Tinymce) compatibility fixes. 2018-08-11 10:44:05 -07:00
Cameron
00576ee417 TinyMce / MediaManager MediaPicker work and cleanup. 2018-08-10 15:30:44 -07:00
Cameron
5dc790cd22 Provide useful debug information to developers wishing to create custom Filter and Batch handling methods.
Media-Manager updated to use the custom batch Handler method.
2018-08-07 17:05:43 -07:00
Cameron
2a842bd3f4 Media-picker BC fixes. 2018-08-06 14:11:56 -07:00
Cameron
786c638c73 only run tab methods when active. 2018-07-28 09:40:45 -07:00
Cameron
8124b683c5 MediaPicker icons tab. 2018-07-27 17:39:44 -07:00
Cameron
ae08e50413 Mime fixes. 2018-07-27 12:07:43 -07:00
Cameron
f1329535a5 MediaPicker drag-n-drop upload. 2018-07-26 19:13:27 -07:00
Cameron
557dea1f0e Media-picker work. Add the following to e107_config.php to enable and test. define('e_DEBUG_MEDIAPICKER', true); 2018-07-25 20:28:30 -07:00