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

109 Commits

Author SHA1 Message Date
Cameron
9d6a9611e2 PHP 8.1 fixes. 2021-11-25 10:18:53 -08:00
Cameron
4aa66c1732 strftime() added to php_compatibility_handler.php and all references updated. README updated. dateAlternativeTest updated to pass on Windows. (TBD) 2021-11-25 08:51:32 -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
2904f1e792 All Unit tests passing locally. 2021-03-31 12:11:23 -07:00
Cameron
9890615761 Admin menu icons for collapsed menu. 2021-02-01 18:18:30 -08:00
Cameron
acc1a9af0d Plugin script tests and PHP8 fixes. 2021-01-22 13:44:10 -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
c8ba5fe30a Shortcode tests for list_new, pm, rss_menu, signin and simpleParse() 2021-01-08 17:00:23 -08:00
Cameron
14862f0463 PHP8 Warning removal. 2021-01-01 10:45:26 -08:00
Cameron
7dfac0dcfa Issue #4299 - PHP8 compatibility fixes. 2020-12-25 10:23:56 -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
44e260b121 Code cleanup and optimization 2020-12-14 16:21:48 -08:00
Cameron
f605ddc552 Code optimization and cleanup. 2020-12-10 15:52:48 -08:00
Cameron
afaac88003 PHP8 Compatibility and code cleanup. 2020-12-08 12:21:12 -08:00
Cameron
e1593de8ee Removed redundant PHP closing tags. 2020-08-10 15:49:44 -07:00
Deltik
1f824faa69
Renormalized all text file line endings 2019-03-29 19:13:32 -05:00
Cameron
1dbc90143f Case cleanup toHtml() should be toHTML() 2019-02-26 12:22:36 -08:00
Cameron
221f12088b Issue #3216 PHP7 Fixes. 2019-01-17 13:20:56 -08:00
Cameron
9e352222dc Fixes #3328 - Fix for non-standard LAN file format. 2018-07-28 09:27:34 -07:00
Cameron
be8ebe6850 Issue #2980 'list-new-page' added. 2018-01-16 14:08:21 -08:00
Cameron
1f34b4190e Fixes #2971 List new plugin with PHP 7 2018-01-09 10:00:01 -08:00
Cameron
973e0dc009 Issue #6 Fixed global LAN loading issue on list_new, pm and others not using an "English" folder. Corrected global LAN definition on list_new. 2017-12-16 12:25:18 -08:00
Jimako
af75c69e2f
list_new fix for blank page after installation #2854 2017-11-20 20:25:29 +01:00
Cameron
614071592b
Merge pull request #2872 from Jimmi08/patch-1
Partial fix #2854 -  load default prefs
2017-11-20 10:30:16 -08:00
Jimako
01b56fa4a6
correct latest fix - forgotten change of one line #2854 2017-11-17 21:25:42 +01:00
Jimako
e8d056eca2
part fix for #2854 - not needed anymore 2017-11-17 15:38:17 +01:00
Jimako
65e940fad3
part fix #2854 - load default prefs
- after installation plugin prefs doesn't exist
2017-11-17 15:37:01 +01:00
Cameron
43d0211590 Code cleanup: deprecated include_lan() 2017-01-23 09:41:23 -08:00
Cameron
a233443f15 PHP7 Fix 2017-01-11 13:30:26 -08:00
Cameron
f113a0d265 PHP Warning removals. 2016-12-17 10:15:36 -08:00
Cameron
6eefc91a9b List-new fixes for chatbox. 2016-12-03 13:07:14 -08:00
Cameron
ce7d4ae66c List New Interface cleanup. 2016-02-08 12:08:13 -08:00
Cameron
706e79af1f Cron Test email function updated to use new mailing method. 2016-02-07 23:35:38 -08:00
Jimmi08
5750b91b91 Issue #1309. e_BASE."user.php" replaced with SEF URL. 2016-01-27 11:56:59 +01:00
Cameron
796f5fa95c Header location cleanup. From now, please use e107::redirect(); to redirect to the home page, or e107::redirect('admin'); to redirect to the admin start page or e107::redirect($url); 2016-01-13 19:18:12 -08:00
Tijn Kuyper
efa345e8f2 Fixes #1130 - Hardcoded 'none' to LAN_NONE (#6) 2015-10-24 14:04:29 +02:00
Cameron
6b5d95388f Issue #6 Language-file standards. Wrap definitions in double-quotes. 2015-07-07 17:43:49 -07:00
Cameron
e576370e57 Remove some references to deprecated functions/methods. 2015-02-14 23:34:15 -08:00
Cameron
fbb0b63ae9 replaced calls to deprecated plugInstalled() with e107::isInstalled() 2015-02-07 13:38:29 -08:00
SecretR
379349ba3c List new preferences not saved issue fixed 2014-11-06 00:40:30 +02:00
Cameron
266fc14e06 Issue #606 - List new prefs. Quick fix. Conversion from old to new still needed. 2014-05-28 22:37:33 -07:00
Cameron
f3ae51e037 Added 'btn-default' to button for Bootstrap3 compatibility. 2014-02-07 07:33:33 -08:00
Cameron
4581b9986c Consolidate parsing classes into single file. 2013-05-20 17:10:38 -07:00
SteveD
fd92ea84ea Issue #209 - get rid of warning. May need different label to that chosen. 2013-05-04 09:07:04 +01:00
Cameron
e4d77a031a Issue #199 - untested, but should fix it. 2013-05-02 13:33:16 -07:00
STR82U
c512f2eab7 Update list_admin_class.php
changed "e1007" to "e107" - reported in forum
2013-05-02 06:29:13 -06:00
Cameron
66eb7c1be7 Button styling updated to Bootstrap 'btn' 2013-04-26 13:48:23 -07:00
Moc
209e884ab7 Fixes #151 - two more typo's causing errors (forum and list_new) 2013-03-29 00:03:36 +01:00