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

31 Commits

Author SHA1 Message Date
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
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
c43da4d7aa Replaced deprecated db_Fetch() 2020-12-23 13:23:48 -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
0e90d4aa66 Code optimization and cleaning 2020-12-17 13:13:29 -08:00
Cameron
072c1b3a90 Fixes #4268 - missing field in table definition. Tests added. 2020-11-29 14:05:14 -08:00
Cameron
450b35f017 Removed redundant closing tags. 2020-06-05 11:34:17 -07:00
Cameron
2c50a06517 Deprecated Function cleanup and PHP Notice removal. 2016-02-15 00:56:08 -08:00
Cameron
486f3d4961 Issue #1356 - PHP7 Fixes. 2016-02-14 12:15:55 -08:00
Cameron
483d43a829 MySQL: Refactored 'db_Table_exists' to 'isTable' method. (BC compatible) and removed use of pref global. 2015-07-07 13:02:34 -07:00
Cameron
e576370e57 Remove some references to deprecated functions/methods. 2015-02-14 23:34:15 -08:00
Moc
c5be597a34 Fixes fatal error in db_table_admin_class.php 2013-03-27 13:31:17 +01:00
Moc
8d6d54a38f Code clean-up (globals, $e107->, $mes, headers) 2013-03-24 13:07:15 +01:00
CaMer0n
2475e1f5aa Upgrade from 0.7.x to 0.8 now leaves a clean error-free table-structure. 2011-06-15 05:41:06 +00:00
secretr
4fecfffddd svn keywords added (v0.8) 2010-02-10 18:18:01 +00:00
mcfly
a90d5a0373 Various install fixes, now produces a site at least. 2010-01-23 02:07:50 +00:00
e107steved
c88a7fd6ed Another batch of fixes and tweaks; mostly mailout-related 2009-12-01 20:05:54 +00:00
e107steved
3d28c5a88b Support backticks in db checking, comments in db definition files, other minor tweaks 2009-11-20 22:23:02 +00:00
CaMer0n
1377b23532 Fix copyright info. 2009-11-18 01:06:08 +00:00
CaMer0n
b297a1ab56 Hide debug info from view when not in debug mode. 2009-10-22 14:31:28 +00:00
secretr
a34c668941 update routine: fixed missing FULLTEXT index case 2009-09-13 20:22:39 +00:00
CaMer0n
96cc442d50 Debug display tweaks 2009-08-17 15:45:20 +00:00
e107steved
595291f1d0 Allow lots more userclasses. Fix table update part of update routine 2009-06-29 21:26:58 +00:00
mcfly
47bc0ec970 More work on forum upgrade 2008-12-20 00:55:29 +00:00
e107steved
26a8e215fc Add index on user_loginname 2008-11-02 14:54:44 +00:00
e107steved
913db4e760 Update DB table structures as required during plugin upgrade 2008-08-12 20:26:53 +00:00
e107steved
ca8683cdac Fix a couple of problems, debug option, XHTML compliance 2008-06-16 20:48:47 +00:00
e107steved
8d5429b8f1 Didn't generate right query under some circumstances 2008-06-15 09:52:09 +00:00
e107steved
0be9e2bb37 Parsing improvement 2008-03-23 11:17:09 +00:00
e107steved
4be55c71ce Table update handler; start enhancements 2007-12-08 15:11:50 +00:00