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

50 Commits

Author SHA1 Message Date
Cameron
ce3f0be05a Fixes #4790 - e_DEBUG not defined. 2022-06-12 11:05:05 -07: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
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
522d71d243 Reduced some memory usage. 2021-01-24 17:00:02 -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
Cameron
f5153bf640 Updating of deprecated method usage. Removal of old files. Log tests added. 2020-12-18 09:39:02 -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
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
450b35f017 Removed redundant closing tags. 2020-06-05 11:34:17 -07:00
Cameron
22323b3c77 Added IPHandler test class. 2020-02-24 16:42:56 -08:00
Nick Liu
bcba1e065f
Null coalescing for $_SERVER keys in iphandler_class.php
Resolves CLI-invoked E_NOTICE in:
* eIPHandler::__construct()
* eIPHandler::getCurrentIP()

Also resolves possible blank eIPHandler::$serverIP
2020-01-17 15:11:45 +01:00
Cameron
bdb45485ee Code Cleanup 2019-05-20 14:53:43 -07:00
Deltik
1f824faa69
Renormalized all text file line endings 2019-03-29 19:13:32 -05:00
Cameron
64bab92d68 Issue #3707 update() query issue in checkBan() method. 2019-03-02 08:17:01 -08:00
Cameron
e52a660f24 Cleanup 2019-02-24 11:35:51 -08:00
Achim Ennenbach
724651376e Fixed an issue in iphandler::checkBan() which caused the script to stop
without any message instead of returning a value (true or false) in case
the submitted email adress is blocked
2018-06-27 21:34:19 +02:00
Cameron
60b6434c26 Issue #2204 - Prevent ban check on server IP. 2016-12-29 17:14:34 -08:00
Cameron
5ea369a634 Issue #1975 Banlist failing when action file not found. 2016-11-02 11:39:41 -07:00
Miroslav Yovchev
b50b09d62d Do not panic on empty ban list file 2016-06-20 16:51:04 +03:00
Cameron
ec36f1dc87 IP handler checks and fixes. 2016-05-25 15:10:00 -07:00
Cameron
2c50a06517 Deprecated Function cleanup and PHP Notice removal. 2016-02-15 00:56:08 -08:00
Cameron
4e8412b16c Issue #1287 - PHP7 and SSL fixes. 2016-02-14 19:00:12 -08:00
Cameron
486f3d4961 Issue #1356 - PHP7 Fixes. 2016-02-14 12:15:55 -08:00
MikeyGMT
4789e79719 Banlist - many entries in the banlog.log #1325
Only whrite Blacklist IP's to banlog.log
Closes #1325
2016-02-07 12:37:19 +00:00
Cameron
a27dc90ca7 Fixes #1117 - Duplicate failed login messages. Also corrected accidental localhost/developer IP banning issue. 2015-07-07 12:07:17 -07:00
Cameron
b8bbbd3390 Issue #600, Issue #823 - Now able to search an existing ban by full IP address in IP4 format. Ban files now regenerated after each change in admin area. 2015-03-09 20:19:06 -07:00
Cameron
e576370e57 Remove some references to deprecated functions/methods. 2015-02-14 23:34:15 -08:00
Cameron
3dabe6fee0 Fixes #598, Fixes #274 - ban user admin-ui fix. 2014-05-28 23:17:13 -07:00
Cameron
edd41de86b Ip check fix. 2013-05-30 18:27:28 -07:00
Cameron
8a2e556bd2 Should fix PHP warning 2013-05-30 17:35:32 -07:00
SteveD
77b9ec50e9 Issue #308 - changes to mitigate sending of multiple notifies on flood ban 2013-05-15 22:27:23 +01:00
Cameron
e7b30285eb Initial work on Banlist admin-area upgrade. Some Admin-ui issues remain. 2013-02-21 17:37:06 -08:00
SteveD
2679a199c6 Update documentation path 2013-02-17 12:35:20 +00:00
SteveD
b9a452e793 Minor tidying - lose a few globals, a few 'todos' 2013-02-13 22:34:06 +00:00
SteveD
71d8853f04 Issue #93 - make source of error clearer 2013-01-24 20:25:18 +00:00
SteveD
04bfaa106b Should fix residual notice with issue #16 2012-12-13 20:19:03 +00:00
Cameron
8665c34232 Admin -> Banlist : Issue #16 Fix.- More comments added. 2012-12-06 15:03:07 -08:00
Cameron
1797a81592 Admin -> Banlist : Issue #16 Fix. 2012-12-06 14:59:24 -08:00
CaMer0n
0471eeb444 PHP notice fix. 2012-11-01 02:27:21 +00:00
e107steved
8962c13f50 Update function calls where moved from e107_class.php to iphandler_class.php 2012-01-02 22:06:22 +00:00
secretr
036013e79f new file svn keywords, e107 class path bugfix 2012-01-02 12:45:21 +00:00
e107steved
6f61a7f889 Add banlist retrigger handling 2011-12-30 16:09:10 +00:00
e107steved
86030cd8f9 More work on ban handling 2011-12-30 10:38:05 +00:00
e107steved
389705683e Ban handling improvements - most checking done before DB opened (much faster if user is banned).
Fix some bugs in ban admin pages.
Separate handler for IP- and ban-related functions (moves them out of e107_class)
2011-12-28 10:01:25 +00:00