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

215 Commits

Author SHA1 Message Date
Cameron
d960829532 Issue #4918 - Undefined constants cleanup. 2022-12-10 07:06:47 -08:00
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
762befb092 Fixes #4500 - Avoid e_sitelink.php being loaded when plugin not installed. 2021-12-02 11:35:12 -08:00
Cameron
de25bdc898 Closes #4619 - strftime() shim with intl locale support by @Deltik 2021-11-25 07:36:07 -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
389a76efe2 Fix for active nav detection while SEF URL in use. 2021-07-15 17:51:08 -07:00
Cameron
099dffdfdd Allow theme to manually control navigation 'active' status with new method: e107::nav('active', [url match]); 2021-07-14 12:18:42 -07:00
Cameron
c2c0979b3a Added help toggle button to sidebar and started on main navigation rework for mobile devices. 2021-02-05 10:17:51 -08:00
Cameron
0bffceca8e Fixed line-height on buttons. PHP warning removal. 2021-02-03 11:57:48 -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
Cameron
9890615761 Admin menu icons for collapsed menu. 2021-02-01 18:18:30 -08:00
Cameron
eee039b616 PHP8/Bootstrap5 Fixes 2021-01-29 20:11:49 -08:00
Cameron
0610dad19a Fix for missing menus on some admin pages. 2021-01-29 11:03:04 -08:00
Cameron
a6e341274e Admin template clean up. 2 new admin styles added. (to be improved). Left admin panel collapse improved. (still needs a cookie to 'stick' . 2021-01-29 09:27:38 -08:00
Cameron
7be16b9e32 Place oversized admin navigation menus into 3 columns. 2021-01-28 11:43:32 -08:00
Cameron
d7aadf5012 Removed admin_template from bootstrap3. Using core template instead. Switched admin navigation parser to simpleParse() 2021-01-27 12:53:45 -08:00
Cameron
e45a3a7b55 Admin template upgraded to v2 standards. Admin boot, header, footer cleanup. 2021-01-27 12:20:58 -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
8e54de7c0c Styling tweak to admin 'tabbed' layout. 2021-01-25 10:13:32 -08:00
Cameron
748e5ee11d Issue #3902 PHP Notice and Error fixes. 2021-01-25 09:14:45 -08:00
Cameron
522d71d243 Reduced some memory usage. 2021-01-24 17:00:02 -08:00
Cameron
a99300aed5 admin_icons_template.php reformatted to v2 standards. 2021-01-24 10:44:30 -08:00
Cameron
45b536b50a Removed the json_compat_handler.php and some unused methods. 2021-01-22 16:32:07 -08:00
Cameron
4b0edad459 Various PHP8 Fixes 2021-01-22 06:32:59 -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
bf17a010f5 Fixes a bug in drop-down navigation containing HTML. 2021-01-17 20:30:05 -08:00
Cameron
04bbad449a Test admin scripts are parsing correctly. 2021-01-16 13:32:35 -08:00
Cameron
eb2cb9a7cb PHP8 Fatal error fix. 2021-01-07 14:11:54 -08:00
Cameron
ac9c19bae9 PHP8 class cleanup 2021-01-06 11:52:29 -08:00
Cameron
75f595adb0 PHP Warning Fixes. 2020-12-29 08:04:52 -08:00
Cameron
0215ef4404 Fix for {NAV_CLASS} 2020-12-27 14:30:51 -08:00
Cameron
e66d3f32de Renamed "Site Links" admin area to "Navigation". Navigation shortcode names changed (see debug: 'deprecated' mode to check usage) 2020-12-27 14:28:19 -08:00
Cameron
71c5be17ea Support for class attribute. {NAVIGATION: class=xxxx}
Class value in navigation template: {NAV_CLASS}
Navigation shortcodes now in their own file.
2020-12-27 12:46:37 -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
5b82c292b1 Code cleanup 2020-12-18 19:55:12 -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
f375024147 Fix for admin navigation active sublink. 2020-06-02 12:02:43 -07:00
Cameron
a950bf981e New admin perm added: to grant access to only theme preferences (but not others) 2019-07-29 12:37:08 -07:00
Cameron
a134a2815d Fix for large admin menu. 2019-07-02 09:38:51 -07:00
Cameron
5944983b6c Admin-UI: $adminMenu now has a 'badge' attribute. Send it an array and it will render a badge in the navigation. eg. array('value' => $count, 'type'=>'warning'). General code cleanup in 'admin' nav method. 2019-06-26 13:48:53 -07:00
Cameron
7dea524e8a BC Fix for icons in sitelinks. 2019-04-30 14:01:05 -07:00
Cameron
1dbc90143f Case cleanup toHtml() should be toHTML() 2019-02-26 12:22:36 -08:00
Cameron
bce677757c Fix for Admin Panel buttons. 2019-01-17 11:50:47 -08:00
Cameron
8c9e6f1370 Optimized Admin Control Panel code. 2019-01-15 08:55:34 -08:00
Cameron
3d031895ca Dropzone LAN added. Catch theme shortcode when set in sitelinks but missing and add a debug message. 2018-08-24 16:04:12 -07:00
Cameron
b40b1916a3 Issue #2970 btn-default > btn-default btn-secondary 2018-01-10 15:06:40 -08:00
Lóna Lore
bb28fca4ce Fix for PHP Notice Undefined index: sub, Line 1456 of /e107_handlers/sitelinks_class.php 2017-12-10 11:40:41 +01:00