1
0
mirror of https://github.com/e107inc/e107.git synced 2025-10-18 00:06:26 +02:00
Commit Graph

23 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
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
692b8c8538 Prevent headers in CLI mode. 2021-01-16 10:02:52 -08:00
Cameron
221f12088b Issue #3216 PHP7 Fixes. 2019-01-17 13:20:56 -08:00
lonalore
c226e9a10b Code cleanup. Fixed undefined variables. 2016-12-20 10:58:43 +01:00
MikeyGMT
022ceb9997 Banner Lans to Generic Terms #6
Replace duplicates with common terms in Banner Plugin.
Created this TODO term also LAN_DEFAULT_TABLE_DATA - for use in other
plugins too.
2016-12-02 10:33:29 +00:00
Cameron
3f6fe6cd85 PHP Notice removal. 2016-03-13 00:16:08 -08: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
Cameron
5d78d673ad Fixes #871 - Banner plugin admin-area and menu rewritten. 2015-02-07 22:20:31 -08:00
Moc
b8d334f550 Banner plugin frontend code clean up. Far more work to do at later stage (login handling and templates). 2014-08-13 14:02:21 +02:00
Cameron
0ba11945ab Path changes on code templates. 2013-03-20 22:59:37 -07:00
Moc
823e813a5e More require_once clean-up (#125) 2013-03-10 15:36:45 +01:00
Tijn Kuyper
95e3b3ab0c Banner plugin - Rewrite in progress, especially LAN. (WIP) 2013-02-28 17:48:49 +01:00
CaMer0n
2f788a86f5 General cleanup 2012-08-10 11:37:20 +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
4fecfffddd svn keywords added (v0.8) 2010-02-10 18:18:01 +00:00
e107steved
3dc8ec26eb All $menu_prefs now use non-serialised access, latest pref handler 2009-12-28 21:36:13 +00:00
CaMer0n
c40c26478d 0.7 -> 0.8 upgrade fixes 2009-11-19 13:46:29 +00:00
CaMer0n
f6af8b30ef e_sc renamed to e_shortcode and activated in shortcode handler. /banner.php now uses the banner plugin. Banner language file cleanup. 2009-09-18 22:20:40 +00:00
CaMer0n
664e62dbff First step in making 'banners' a plugin. 2009-07-23 16:43:03 +00:00