1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 04:38:27 +01:00

165 Commits

Author SHA1 Message Date
Cameron
55980a29a8 Generated PHPDoc for all classes in e107_handlers where one was missing. toNumber() updated to always return int or float. 2022-04-04 10:54:24 -07:00
Cameron
2400c1ef09 Fixes #4698 - Load front-end inline editing javasript only when necessary. 2022-03-10 11:08:27 -08:00
Cameron
c17b985441 Experimental schema template 2022-02-04 12:04:21 -08: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
64e705ced0 {SITELINKS_ALT} fix and test. 2021-08-07 12:26:23 -07:00
Cameron
3a71366954 Added {THEME} shortcode (path) to core shortcodes. 2021-06-01 16:07:38 -07:00
Nick Liu
1874d3d936
Fix PHP warning: Undefined array key "" in shortcode_handler.php:1362
```
Undefined array key "", Line 1362 of /home/deltik/public_html/e107_handlers/shortcode_handler.php
```
2021-05-18 16:48:51 -05:00
Cameron
a448c00a1d Fixes #4382 - Init theme shortcodes later. 2021-02-14 08:14:57 -08:00
Cameron
ab75f150f8 PHP8 Fixes. Renamed 'search' class (in search.php) to 'search_front' to avoid conflicts. 2021-01-20 12:07:29 -08:00
Cameron
b19f9ffbc3 Frontend scripts tests. (may break some things) 2021-01-19 18:52:56 -08:00
Cameron
42fbd379d4 Tweaked and tested single shortcodes. Added batch shortcode files fpw_shortcodes and search_shortcodes. {SEARCH} shortcode template was updated to v2 standards. 2021-01-12 14:46:10 -08:00
Cameron
eec9a163cb PHP8 fixes. Tests added for online shortcodes, page/e_shortcode.php 2021-01-08 11:46:30 -08:00
Cameron
3f5d3786b2 PHP8 fixes and shortcode tests for forum, gallery, hero and login_menu. admin-shortcode time fix. 2021-01-07 13:24:55 -08:00
Cameron
f0ce3ac4a9 PHP8 Fixes. RSS speed improvement. 2021-01-05 16:40:01 -08:00
Cameron
11c768d3c0 Fixes shortcode wrapper conflict within the same template. 2021-01-04 07:47:40 -08:00
Cameron
b5ff8c76f7 Fix for lancheck failing due to ../ in the URL on plugin/theme folders. 2020-12-30 10:11:04 -08:00
Cameron
630f3f415f Improved detection of deprecated functions/methods and display in DEBUG mode: deprecated. 2020-12-21 10:00:28 -08:00
Cameron
601df26d51 Code optimization for speed and reduced memory usage. 2020-12-20 11:50:10 -08:00
Cameron
5b82c292b1 Code cleanup 2020-12-18 19:55:12 -08:00
Cameron
1c8e755edf Fixes #3726 - legacy shortcode wrapper conflict with email template. 2020-06-01 17:37:49 -07:00
Cameron
834ea354e4 Core Cleanup. 2020-05-02 15:35:30 -07:00
Cameron
326305f5f2 Removed old deprecated global $e107_debug. Cleaned up debug_handler.php (e107_debug class) 2020-04-26 13:32:18 -07:00
Cameron
1d45f1e4c4 Fixes #3932 Added support for dynamic header/footer templates controlled by theme_shortcodes class. 2019-08-22 14:28:59 -07:00
Cameron
2fd5238172 Page breadcrumbs added to Magic Shortcode {---BREADCRUMB---} 2019-06-15 10:12:00 -07:00
Cameron
ec3a2e28b5 Issue #3103 -Wrappers containing parms were not overriding wrappers of the same name without parms. 2018-08-16 11:34:29 -07:00
Achim Ennenbach
d8c4ed3444 Fixes #3162 Fixes htmlized shortcode parameters
When entering shortcodes via TinyMCE, the & sign will be converted
automatically to & without any chance to prevent this behaviour.
The fix just corrects this error right before running the shortcode.
2018-06-24 21:38:06 +02:00
Cameron
75d25cc2a1 Clear Plugin cache when developer mode active. Shortcode class path enhancement. 2017-12-21 13:40:10 -08:00
Cameron
ca5f33655b BC Fixes for some old plugins. 2017-12-11 17:11:22 -08:00
Cameron
0e3c68f0b8 Improved the front-end inline editing feature. Now has Save and Cancel buttons. 2017-11-10 09:03:04 -08:00
Cameron
ad485cd198 Debug Message when shortcode class not loading. 2017-11-03 13:16:43 -07:00
Lóna Lore
e7f2844481 Issue #2745 - Move JS files to footer. (Tested with and without JS/CSS caching) 2017-07-25 19:20:11 +02:00
Cameron
ec75b247fb Issue #2344 Shortcodes loading in admin. 2017-01-29 09:29:47 -08:00
Cameron
bec65b375b Optimization: reduce shortcode loading in admin area. 2017-01-23 10:33:00 -08:00
Cameron
d7fad829fe Debug timings. 2017-01-21 10:49:04 -08:00
Cameron
e05425fbb2 PHP 7.1 Fixes. 2016-12-16 10:54:25 -08:00
Cameron
268004bd71 BC Fixes 2016-12-10 16:39:03 -08:00
rica-carv
af4c16e593 Update shortcode_handler.php 2016-12-06 19:01:08 +00:00
rica-carv
c60ba129f4 Update shortcode_handler.php 2016-12-05 19:16:33 +00:00
Cameron
87487bfaf7 Issue #2029 - Shortcodes inside wrappers. 2016-11-16 13:12:27 -08:00
Cameron
3089cecf26 Issue #2029 Allow wrappers to contain core shortcodes. 2016-11-15 11:11:19 -08:00
Cameron
2aebba0574 More styling control over Menu image. 2016-06-10 08:19:39 -07:00
Cameron
a4203b72c7 Frontend inline-editing preference added. 2016-06-09 16:44:40 -07:00
Cameron
60f1d78dce MySQL error message fix. Custom Page userclass fix. Media-manager import fix for files contained '%'. XML DB export fix. Other News custom caption fix. FB Like menu without app_id fix. 2016-05-30 15:19:19 -07:00
Cameron
210abeaba0 Removed old bootstrap-editable folder. Added experimental front-end inline editing for shortcodes. 2016-05-28 19:03:08 -07:00
Cameron
056e66530c Forum: Fix for shortcode wrapping with 'viewforum' template. 2016-05-04 15:59:13 -07:00
Cameron
8d228a08dd Issue #1597 - Legacy Batch Shortcode fix. 2016-05-03 15:52:02 -07:00
Cameron
bec7071cdf Fixes #1597 - Legacy shortcode issue. 2016-05-01 09:30:33 -07:00
Cameron
d098589456 Fix for plugin repair (in debug mode) Fix for Login page signup link when registration is disabled. 2016-04-30 12:02:42 -07:00
Cameron
c40c909293 Fix for news params in news shortcodes. 2016-04-28 18:13:41 -07:00
Cameron
3a74aea669 Online Menu upgrades. 2016-04-28 13:17:36 -07:00