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

128 Commits

Author SHA1 Message Date
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
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
2dedc8719f FontAwesome 5 added to admin area and bootstrap3 theme. $tp->toIcon() supports SVG sizing 2x, 3x etc. 2021-01-30 19:21:23 -08:00
Cameron
522d71d243 Reduced some memory usage. 2021-01-24 17:00:02 -08:00
Cameron
8871cdd097 Styling fixes 2020-12-31 09:31:30 -08:00
Cameron
21e3c3f8ab PHP warning fixes. 2020-12-29 09:48:36 -08:00
Cameron
75f595adb0 PHP Warning Fixes. 2020-12-29 08:04:52 -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
f5153bf640 Updating of deprecated method usage. Removal of old files. Log tests added. 2020-12-18 09:39:02 -08:00
Cameron
44e260b121 Code cleanup and optimization 2020-12-14 16:21:48 -08:00
Nick Liu
f256b924ce
Fix all PHP 8.0 test failures 2020-11-30 12:55:00 +01:00
Cameron
450b35f017 Removed redundant closing tags. 2020-06-05 11:34:17 -07:00
Cameron
48ae6455a4 getUsersInClass() now accepts extended user field names - just prefix those fields with "ue.". 2020-01-23 14:59:01 -08:00
Cameron
692cee83ca Make sure user_id is an integer. 2020-01-22 12:04:59 -08:00
Cameron
09846ee9a7 Fixes #3814 - Userclass issue as found in forum moderator check. 2019-05-28 11:26:32 -07:00
Cameron
95b336dea3 Fix for getUsersInClass() query. Chart class experiment (commented out) 2019-05-01 17:08:33 -07:00
Cameron
e3fcbabe56 Fix for getUsersInClass order. 2019-04-20 13:45:13 -07:00
Cameron
de509f6d41 userclass class - Fixed get_users_in_class() and deprecated in favor of new method getUsersInClass() 2019-04-18 10:24:30 -07:00
Cameron
5dc45298f6 Issue #3559, Fixes #3589, Issue #2982, Issue #2927 Replace all glyphicons with FontAwesome. 2019-02-22 14:56:47 -08:00
Cameron
9e6c2a79f0 Issue #3657 Add update limits on user_class changes throughout. 2019-02-22 11:10:05 -08:00
Cameron
f128b13824 Issue #3668 PHP 7.3 compatibility fix. 2019-02-17 15:37:13 -08:00
Cameron
d4134c7f89 PHP 7.3 fixes. 2019-02-07 17:12:23 -08:00
Cameron
00e2663162 Added token to x-editable 2018-09-04 15:15:50 -07:00
Cameron
35f5748ba2 Issue #2846 LAN vars cleanup 2017-11-07 06:59:11 -08:00
Cameron
7d32e5ae4e Fix for userclass tree link 2017-02-07 07:08:58 -08:00
Cameron
43d0211590 Code cleanup: deprecated include_lan() 2017-01-23 09:41:23 -08:00
MikeyGMT
c45ff67018 LANS Clean Up #6 - User Class
LANS Clean Up #6 - User Class - more to do within conflicting defines
lan_user.php
2017-01-09 17:07:47 +00:00
Cameron
eecbfbd61d News: {NEWS_VISIBILITY} shortcode added - returns text version of userclass for use in CSS class styling if needed. 2016-08-30 14:22:47 -07:00
Cameron
b2771fa00a Added new user to the default userclass selection. Improved userclass() method docs. 2016-04-25 19:06:37 -07:00
Cameron
79c6e80c4f Fix for PM Send permissions. 2016-04-25 09:31:55 -07:00
Cameron
c8d49ee79c Private Messenger: Admin UI fixes. 2016-04-01 19:59:51 -07:00
Cameron
2dedb86ba8 Viewable By shortcode added. Forum deleted template corrected. 2016-03-26 15:17:11 -07:00
Cameron
846be2c23c User/Member List may now include extended user-field data. Use {USER_EUF: field=xxxx} (excluding the 'user_' ) in your user_template. 2016-03-22 16:52:54 -07:00
Cameron
486f3d4961 Issue #1356 - PHP7 Fixes. 2016-02-14 12:15:55 -08:00
Cameron
46e748f9d0 Should correct an issue where "Everybody" could be named "Search Bots" in the default user classes after upgrade. 2016-01-21 16:22:57 -08:00
SecretR
24ed9ac3f8 User class list now rendered as expected 2016-01-04 02:30:59 +02:00
Cameron
cffb369751 Issue #1109, Fixes #830, Fixes #731, Fixes #710, Fixes #608, Fixes #1012 : v1 -> v2 Upgrade-Routine fixes (including forum plugin) 2015-08-24 17:39:28 -07:00
hgz5w
38e82e92e5 Update userclass_class.php
plugin.xml <userClasses /> can NOT add more than one class
2015-07-20 16:55:01 -03:00
Cameron
f91a6baa2b AdminUI: userclass default value may now be set using the userclass name. 2015-06-11 13:10:04 -07:00
Cameron
f938cc320f Fix for Menu-Manager visibility setting not saving. Fixes e107::getForm()->userclass() method not functioning as intended. 2015-06-02 14:25:39 -07:00
Cameron
a708211cb3 Userclass fixes. Now clears userclass cache after changes in admin are made. 2015-05-12 13:53:47 -07:00
Cameron
9708756548 Fixes #977 - PM send to multiple users. Cleaned up some of the GUI for Bootstrap. 2015-04-23 09:53:54 -07:00
Cameron
3102a6cb07 Fix for admin-log of Admin-UI DB-inserts and fix for default userclass value in form element. 2015-04-14 11:59:46 -07:00
Cameron
b749bdb707 Upgraded userclass admin area to use renderHelp() and gave it its own shortcode {ADMINUI_HELP} 2015-04-09 11:13:26 -07:00
Cameron
2b35a583d4 Admin->Userclasses now using the Admin-UI. Admin-UI now supports non-incrementing primary fields being set manually using a hidden form field. Form handler for userclass with checkboxes now working correctly. 2015-03-01 12:43:02 -08:00
Cameron
027a74f5b0 Code cleanup 2015-02-15 02:37:36 -08:00
Cameron
0976668360 BC Fix for userclass checkboxes. 2014-01-06 01:03:58 -08:00
Moc
19d2834ee4 #275 - Added labels to prefs to improve accessibility (more to do) 2013-07-08 11:27:44 +02:00
Cameron
b8362372df Issue #257 , Issue #64, Issue #236 - usersettings and avatar upload issues. 2013-05-07 20:30:20 -07:00
Cameron
bae6d6f2ee Admin Userclass styling and notice fixes. 2013-04-30 01:28:44 -07:00