1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-13 18:14:26 +02:00

1014 Commits

Author SHA1 Message Date
Cameron
95ea56bb89 Forum navigation layout fix. 2021-10-18 09:09:01 -07:00
Cameron
da219c31ae Fix forum replies/topic count styling on sub forums. 2021-10-10 09:15:16 -07:00
Cameron
5e83895c8f Fixes #4544 - SubForum missing global value. LAN shortcode now parsed correctly. 2021-10-10 08:55:16 -07:00
Cameron
34ad8bc1d8 More jQuery.once() to jQuery.one() replacements. 2021-10-03 11:03:23 -07:00
Cameron
5fd8fdc92b Fixed e107 v1 to v2 forum migration adding check for deprecated files. Fixed breadcrumb subforum visibility and URL when SEFURL is disabled. 2021-09-26 10:43:33 -07:00
Nick Liu
f6d6d1b185 Deprecate e_parse::toJS()
`e_parse::toJS()`, documented with the description

> Convert text blocks which are to be embedded within JS

, does not protect strings from injections, which appears to be its
primary use.  Additionally, it performs multiple unrelated string
modifications:

* Replace Windows line breaks with a literal `\\n` (which would later be
  parsed as `\n` in JavaScript/JSON)
* Does not modify Unix line breaks (`\n`), which is inconsistent with
  the Windows line break behavior
* Removes HTML tags
* Replaces HTML entities as `htmlentities()` does

This method cannot be fixed because its usages are inconsistent.  Most
notably, some usages surround the method's output in single quotes while
others surround it with double quotes.  Strings cannot be JSON-encoded
without confounding quotation mark styles.

All core usages of `e_parse::toJS()` have been replaced with
alternatives, which are also documented in the method's DocBlock.

Fixes: #4546
2021-08-31 00:11:14 +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
Cameron
95fab15c02 Gsitemap: Display link visibility status while importing. 2021-07-22 13:51:35 -07:00
Nick Liu
7a04260b5f #4299: Wrap even more potentially undefined constants
In:
* Admin-UI
* Forums
2021-07-21 20:23:06 +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
d2411404c4 Issue #4299 PHP8 Fix 2021-06-14 17:05:57 -07:00
Moc
cdc61c90ee Forum update fixes (duplicate SEF & logging) 2021-03-22 20:31:07 +01:00
Moc
b2cf6c07b3 #4452 - Add e_print addon code and check 2021-03-17 19:42:21 +01:00
Cameron
07faad666a Issue #2726, Issue #4452 - Added new e_print.php addon which uses v2.x standards. 2021-03-17 11:22:25 -07:00
Cameron
f30caaf18b Removed some LAN constant usage from core templates. 2021-02-23 12:58:51 -08:00
Cameron
76af210666 Issue #4332 - Bootstrap 5 styling fixes. 2021-02-23 11:11:35 -08:00
Cameron
e425349661 Issue #3912 - Reverse lookup e_ROUTE from e_url.php 'legacy' entry. 2021-02-21 14:10:47 -08:00
Cameron
84b105e8c7 Renamed forum 'parent' to 'parent_start' (with BC fix) and added 'parent_end' to default template. 2021-02-21 10:50:45 -08:00
Cameron
e03f7a34e2 Issue #4359 - Forum dropdown-menu fixes for Bootstrap 4/5. 2021-02-19 16:09:47 -08:00
Cameron
6ac83d6ea4 Fixes #4399 - thread_active value missing. 2021-02-18 06:31:48 -08:00
Cameron
523fae8582 Fixes #4384 - Footer missing when required within a function. 2021-02-15 07:22:47 -08:00
Cameron
2bf5ee3909 Admin area tool tips simplified to a single location. Pref simplified to Enable/Disable. Fixed flip-switch 'e-expandit' failures in Admin > Prefs. 2021-02-12 12:19:58 -08:00
Cameron
5870fbdb84 "<div class='field-help'>" etc has been replaced by the $frm->help() method and is also used by the admin-ui. 2021-02-04 08:45:10 -08:00
Cameron
49b8a9690d Issue #4020 2 new prefs added. Allow default collapsing of side-bar and enable/disable labels on nav-bar.
Icon cleanup and will now try to guess the right icon based on mode/action. Styling fixes. Removed unused admin stylesheets from bootstrap3.
2021-02-03 11:46:32 -08:00
Moc
89d5f11c74 Fix forum rules and forum track page 2021-02-02 20:52:19 +01:00
Cameron
eee039b616 PHP8/Bootstrap5 Fixes 2021-01-29 20:11:49 -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
4a9cf379a6 PHP8 Forum code cleanup 2021-01-22 06:31:23 -08:00
Cameron
594cddae6e Some forum code cleanup 2021-01-21 13:04:54 -08:00
Cameron
f055b49d91 PHP8 Plugin code cleanup 2021-01-21 09:38:38 -08:00
Cameron
b19f9ffbc3 Frontend scripts tests. (may break some things) 2021-01-19 18:52:56 -08:00
Cameron
f091709847 Issue #4352 - Canonical added for page, forum and download. Replaced some e_PAGETITLE with e107::title() 2021-01-19 09:50:02 -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
3d217bc49b Forum and User-extended shortcode improvements and test tweaks. 2021-01-11 08:45:08 -08:00
Cameron
e948c6fc11 PHP8 - BC Fix for newforumposts_menu.php 2021-01-09 10:08:57 -08:00
Cameron
fa4900e2c4 PHP8 Fixes. Only attempt to load plugin language files when the languages folder exists. BC avatar function fix. 2021-01-09 09:09:12 -08:00
Cameron
d86d8d999f Replaced global $menu_pref usage. Updated tests. 2021-01-08 13:50:32 -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
a908ce82b6 Clear libxml errors in toRSS test. Forum shortcode fix. 2021-01-07 09:47:30 -08:00
Cameron
3d19db894b PHP8 Fixes and shortcode tests for chatbox_menu, download, faqs, forum and forum-post 2021-01-07 09:42:19 -08:00
Cameron
dd184a024c Issue #4332 Bootstrap 5 Fixes 2021-01-02 12:06:46 -08:00
Cameron
204603f38a Issue #4332 - BS4/5 New Forum Posts menu template fixes. 2021-01-02 08:11:20 -08:00
Cameron
798638a590 PHP warning fixes. 2020-12-31 08:01:34 -08:00
Cameron
1b98867f24 Increased logging during forum upgrade. 2020-12-31 06:55:31 -08:00
Cameron
21e3c3f8ab PHP warning fixes. 2020-12-29 09:48:36 -08:00
Cameron
7dfac0dcfa Issue #4299 - PHP8 compatibility fixes. 2020-12-25 10:23:56 -08:00
Cameron
402d1f4126 Closes #1801 Code cleanup. Deprecated method errors added. 2020-12-22 14:48:28 -08:00
Cameron
3f8e043998 Replaced e107::getAdminLog() with e107::getLog(). e107::getAdminLog() will continue as a deprecated alias. 2020-12-22 09:36:02 -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