1
0
mirror of https://github.com/e107inc/e107.git synced 2025-10-08 19:46:51 +02:00
Commit Graph

32 Commits

Author SHA1 Message Date
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
62d6341303 Bbcode test and parser cleanup. 2021-01-14 14:46:49 -08:00
Cameron
7e90b791ba PHP8 fixes. 2021-01-14 11:32:02 -08:00
Cameron
bdb45485ee Code Cleanup 2019-05-20 14:53:43 -07:00
Cameron
1dbc90143f Case cleanup toHtml() should be toHTML() 2019-02-26 12:22:36 -08:00
Cameron
d5af3b9246 BS4 img-fluid 2017-01-20 10:40:05 -08:00
Cameron
098f386c19 Fix for banner image size in admin. 2016-12-19 14:22:45 -08:00
Cameron
c0df670c7b Banner now support external image urls. 2016-12-19 13:49:18 -08: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
b4e1cccfa0 PHP Notice removal 2016-09-17 11:10:46 -07:00
MikeyGMT
0b8d4632c1 #6 Hard Coding in e_shortcode
Replace "no image assigned to this banner" BANNERLAN_39
2016-08-22 23:32:40 +01:00
Cameron
d861727470 "No News" message formatting and css class. Page list sitelink function fixed. 2016-07-08 17:37:41 -07:00
Cameron
9cf18a2708 Fixes #1567 - Addon validation. 2016-04-22 09:03:21 -07:00
rica-carv
863bf99657 Update e_shortcode.php 2016-04-19 13:20:47 +01:00
rica-carv
0c4802d246 Reworked parm check & revised code clean up 2016-04-19 09:13:35 +01:00
rica-carv
b7ca083800 Allow use of parms inside banner render 2016-04-17 16:19:46 +01:00
rica-carv
a1b0367224 Add img-rounded class to images
Add img-rounded class to images, for site wide image format consistency (like used for example by news...)
2016-04-16 23:15:42 +01:00
Cameron
2fdde516f2 BC fix for banner shortcode size. 2016-03-17 11:05:06 -07:00
Cameron
3f6fe6cd85 PHP Notice removal. 2016-03-13 00:16:08 -08:00
Cameron
09923ad54b Banner width may now be set on a per-menu basis. 2016-03-12 00:15:29 -08:00
Cameron
85f67aa084 Banner plugin may use keywords to display relevant banners on current news/pages. (exact match only, so use with caution) 2016-03-11 23:12:19 -08:00
Cameron
524bed7a17 Banner plugin enhancements. Text may be added below banner/images. 2016-03-11 10:27:40 -08:00
Cameron
5a6153db27 Fixed: When using TinyMce og:image tags were missing for images inserted into the news body. Banner plugin now has a tooltip/description field. Also supports longer URLs avoiding SQL errors. TinyMce upgraded to latest version. (v4.3.2) 2016-01-12 03:22:06 -08:00
Cameron
5d78d673ad Fixes #871 - Banner plugin admin-area and menu rewritten. 2015-02-07 22:20:31 -08:00
Cameron
084b0b625a Make banners responsive 2014-02-11 07:48:50 -08:00
Cameron
b028fbb002 Fixes #464 - banner path issue corrected. 2013-12-30 04:16:01 -08:00
Moc
afe4b27cf2 Code clean-up (globals, $e107->, headers, $sql) 2013-03-24 18:59:18 +01:00
Tijn Kuyper
95e3b3ab0c Banner plugin - Rewrite in progress, especially LAN. (WIP) 2013-02-28 17:48:49 +01: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
e107steved
61e9b3dcf3 Save 'most online' counts in separate pref, use array-based $menu_pref and new prefs handler, global elimination, odd fixes 2009-12-28 17:53:11 +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