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
Nick Liu
9b82308021
Fix PHP 8 fatal error: Undefined constant ADMINNAME
...
PHP Fatal error: Uncaught Error: Undefined constant "ADMINNAME" in /home/deltik/public_html/e107_themes/bootstrap3/admin_template.php:83
Stack trace:
#0 /home/deltik/public_html/e107_admin/header.php(37): require_once()
#1 /home/deltik/public_html/e107_admin/auth.php(223): require_once('...')
#2 /home/deltik/public_html/e107_admin/admin.php(79): require_once('...')
#3 {main}
thrown in /home/deltik/public_html/e107_themes/bootstrap3/admin_template.php on line 83
2020-12-05 00:56:33 +01:00
Nick Liu
f256b924ce
Fix all PHP 8.0 test failures
2020-11-30 12:55:00 +01:00
Cameron
0f02e9a9a2
Removed some PHP notices occurring in CLI mode.
2020-08-10 18:13:59 -07:00
Cameron
4e8c3e375c
Closes #4012 Precaution for when tablerender() is not found.
2020-06-01 13:04:39 -07:00
Moc
c92b6c5e6b
Fixes #3681 - Properly detect antiflood and online tracking prefs
...
- e_TRACKING_DISABLED is now properly defined when user tracking is turned off ('track_online').
- Use correct antiflood pref ('antiflood1')
- Remove old 'flood_protect' pref (which was not used anymore)
2020-05-23 15:49:40 +02:00
Moc
cf919afa62
#4167 - Add Twitch and VK to Social Pages (wip)
...
- TODO: add CSS icons to css/fontello.css
2020-05-18 15:17:40 +02:00
Cameron
ad7caf78e8
Fix for theme render test. Disabled debug routines when inactive. Bootstrap3 moved modal to footer. Code cleanup.
2020-05-04 12:10:22 -07:00