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

37 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
acc1a9af0d Plugin script tests and PHP8 fixes. 2021-01-22 13:44:10 -08:00
Cameron
c8ba5fe30a Shortcode tests for list_new, pm, rss_menu, signin and simpleParse() 2021-01-08 17:00:23 -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
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
Jimako
01b56fa4a6
correct latest fix - forgotten change of one line #2854 2017-11-17 21:25:42 +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
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
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
4581b9986c Consolidate parsing classes into single file. 2013-05-20 17:10:38 -07:00
Moc
209e884ab7 Fixes #151 - two more typo's causing errors (forum and list_new) 2013-03-29 00:03:36 +01:00
Moc
f65708cd5a Code clean-up (global pointers, $e107->, headers). Got rid of all $e107->this->sql and tp 2013-03-26 12:17:12 +01:00
e107steved
e8de8930be Bugtracker #5230 - add profanity filter to list_new 2011-05-28 11:17:03 +00:00
e107steved
5b9016c69f Notice removal 2010-11-01 22:10:42 +00:00
secretr
4fecfffddd svn keywords added (v0.8) 2010-02-10 18:18:01 +00:00
e107steved
caa16feb40 Documentation headers updated 2010-01-10 12:19:53 +00:00
CaMer0n
1377b23532 Fix copyright info. 2009-11-18 01:06:08 +00:00
marj
9863e49cdb a bit of legacy BULLET code review 2009-08-23 10:57:51 +00:00
marj
3420b193ab Language selection simplification
switch to include_lan for the time being

work in progress
2009-08-15 11:55:30 +00:00
bugrain
78c7030698 Move list_new functionality for downloads in to download plugin 2009-05-04 19:57:48 +00:00
lisa
868d72031b removed inline html/style 2009-01-27 23:46:12 +00:00
lisa
dab9ef360c recode list_new plugin + e_list.php files 2009-01-27 21:34:02 +00:00
e107steved
45a76fbc89 Bugtracker #4548 - redundant query - thanks Fanat1k 2008-10-21 19:10:43 +00:00
e107steved
990afbe76d Bugtracker #4075 - missing global 2007-09-16 17:27:11 +00:00
e107steved
8c320ad1de Notice removal, eliminate DB queries 2007-08-08 19:34:52 +00:00
e107steved
eff762cd6f Bugtracker #3919 - set absolute path for icon 2007-05-31 21:02:53 +00:00
CaMer0n
82a700cdef cleanup redeclaration of db objects - similar issue to bugs #3632 and #3412 2006-12-31 14:46:30 +00:00
mcfly
e149b35fcc new module creation 2006-12-02 04:36:16 +00:00