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

452 Commits

Author SHA1 Message Date
Cameron
fbcef7a3c6 Issue #4918 - Undefined constant fix. 2023-01-14 19:01:52 -08:00
Cameron
c50d1cf34c Issue #4900 - Tweak code. 2022-10-29 08:56:19 -07:00
Cameron
051161a61f Closes #4900 - Allow plugins to override the check_email() function. 2022-10-29 08:40:21 -07:00
Cameron
31389dc7ca Issue #4777 - Added option to set URL for after logout has occurred. 2022-05-22 11:18:17 -07:00
Cameron
c2fc8fce0a Issue #4757 Prevent infinite loop and possible PHP 8.1 errors. 2022-04-21 10:54:43 -07:00
Cameron
025ff07aab Fixes #4737 Removal of type="text/javascript" and type="text/css" 2022-03-31 08:24:34 -07:00
Cameron
0d8f3e9086 PHPDoc fixes and code optimization. 2021-12-03 14:58:33 -08:00
Cameron
b180ff8757
Merge pull request #4559 from Deltik/fix/4527
Disable `USERTHEME` when `e_MENUMANAGER_ACTIVE`
2021-09-10 14:40:15 -07:00
Nick Liu
ca326d5273
Disable USERTHEME when e_MENUMANAGER_ACTIVE
Fixes: https://github.com/e107inc/e107/issues/4527
2021-09-10 09:56:27 +02: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
Nick Liu
ccf0f037aa
#4299: Wrap more potentially undefined constants
In:
* Forums
* /e107_admin/menus.php
2021-07-13 13:10:59 +02:00
Cameron
c4f76c3687 Issue #4270 - perform all webp conversion checks within e_thumbnail class. WebP conversion now works with SEF media URLS. 2021-06-18 09:31:45 -07:00
Cameron
7302803a75 Issue #4270 Added .webp browser-support detection. Media-Manager "Convert to webp during render" can now be safely enabled and will temporarily fallback to the regular image if the browser does not support webp images. 2021-06-18 08:43:53 -07:00
Cameron
e425349661 Issue #3912 - Reverse lookup e_ROUTE from e_url.php 'legacy' entry. 2021-02-21 14:10:47 -08:00
Cameron
b0300f93bf Changed load order of Menus and Theme Layout detection. 2021-02-13 18:55:44 -08:00
Cameron
2337b075a8 Fixes #4346 - TinyMce parser issue. Hide side-panel help icon on legacy admin theme. 2021-02-05 18:31:54 -08:00
Cameron
e45a3a7b55 Admin template upgraded to v2 standards. Admin boot, header, footer cleanup. 2021-01-27 12:20:58 -08:00
Cameron
c045f2874c Clock-menu removed from code. Extra logTime entries added. Debug performance highlighting tweaks. 2021-01-25 07:57:24 -08:00
Cameron
11de1fc0f4 Memory optimization and more speed logging. 2021-01-24 17:16:49 -08:00
Cameron
93918849f4 Expanded on getperms() test. 2021-01-22 17:09:55 -08:00
Cameron
2e301d2c73 Admin login page now using the same auth routine as the main site.
e_MULTISITE_MATCH check added to main cookie() function.
2021-01-21 08:06:20 -08:00
Cameron
e57b1a9b61 Issue #4352 Added canonical for home page and frontpage setting. 2021-01-19 13:31:20 -08:00
Cameron
911d41a402 e107table class moved out of class2.php to e_render_class.php and renamed to e_render. BC fix added. 2021-01-18 08:52:10 -08:00
Cameron
419a0e727a Fix for HTML used on text_truncate(). Ignore setcookie() in CLI mode. 2021-01-18 07:40:17 -08:00
Cameron
f97dd307af Issue #4350 theme.php class must now use init() and tablestyle() (not __construct() ) 2021-01-17 07:27:28 -08:00
Cameron
04bbad449a Test admin scripts are parsing correctly. 2021-01-16 13:32:35 -08:00
Cameron
692b8c8538 Prevent headers in CLI mode. 2021-01-16 10:02:52 -08:00
Cameron
13517e83a8 Multibyte utf8 method tests and fixes. 2021-01-15 09:03:07 -08:00
Cameron
56f8389417 CoreTemplate tests. FPW BC constant fix. 2021-01-11 18:05:29 -08:00
Cameron
96827c6180 PHP8 fixes 2021-01-06 11:54:51 -08:00
Cameron
f0ce3ac4a9 PHP8 Fixes. RSS speed improvement. 2021-01-05 16:40:01 -08:00
Cameron
7dec5cf40e More $_E107 options 2021-01-05 08:54:09 -08:00
Cameron
78b0079a03 Theme Preview working again. Use ?themepreview=themeDir 2021-01-01 14:05:51 -08:00
Cameron
b22697d1c0 Added TRACKBACKSTRING to legacy constants. 2020-12-29 10:52:38 -08:00
Cameron
518eb6016c Disable redirection to cron, wysiwyg etc. 2020-12-28 12:50:44 -08:00
Cameron
10482b8a89 Solves the duplicate breadcrumb issue. 2020-12-28 09:48:44 -08:00
Cameron
84a3e45e48 Moved old functions out of class2.php. 2020-12-25 14:57:53 -08:00
Cameron
812b7cbcb3 Code cleanup. Moved checkvalidtheme() out of class2.php and into e_theme as initTheme() 2020-12-21 17:46:32 -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
6fb33e7cad Improve speed in admin area. Clear caching only on admin home page and e107 update page. 2020-12-19 11:12:53 -08:00
Cameron
4713f572d0 Remove old css classes from debug info. 2020-12-19 10:50:08 -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
eaa44b075f Fix for displaying of debug mode: 'Time Analysis'. Additional markers added to class2.php. 2020-12-12 11:38:31 -08:00
Cameron
4a30f88f2c check_class() code optimization 2020-12-10 18:02:28 -08:00
Cameron
f605ddc552 Code optimization and cleanup. 2020-12-10 15:52:48 -08:00
Cameron
ddb9c801af Issue #4270 Disable automatic WebP conversion in admin area. 2020-12-09 11:22:03 -08:00
Cameron
fb575c257c Issue #4270 On-the-fly conversion to WebP format with fallback for older browsers when using toImage(). 2020-12-09 10:54:15 -08:00
Cameron
afaac88003 PHP8 Compatibility and code cleanup. 2020-12-08 12:21:12 -08:00
Cameron
005bff7e59 Code cleanup. Removal of deprecated utf8 classes. 2020-12-08 07:29:17 -08:00