1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 12:48:24 +01:00

109 Commits

Author SHA1 Message Date
Cameron
d960829532 Issue #4918 - Undefined constants cleanup. 2022-12-10 07:06:47 -08: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
9e8e7966a5 Fixes #4740 - news category link on print pages. 2022-04-01 12:00:37 -07:00
Cameron
0d8f3e9086 PHPDoc fixes and code optimization. 2021-12-03 14:58:33 -08: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
cc5fbe87ef Skip admin path check for now. Correct LAN conflict. 2021-01-16 14:32:55 -08:00
Cameron
e51dfa1fc8 Test all e_shortcode.php files in core. PHP8 Fix for featurebox. 2021-01-14 10:30:22 -08:00
Cameron
d22a25c877 PHP8 Remove constant conflict. 2021-01-13 17:38:34 -08:00
Cameron
452f594ad2 Issue #4336 and tests for e107::plugLan() (e107::lan()) . Error message will be displayed in debug mode when a LAN file failed to load. 2021-01-08 09:56:33 -08:00
Cameron
94f772577a trackback plugin removed. 2020-12-29 10:04:33 -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
f5153bf640 Updating of deprecated method usage. Removal of old files. Log tests added. 2020-12-18 09:39:02 -08:00
Cameron
44e260b121 Code cleanup and optimization 2020-12-14 16:21:48 -08:00
Cameron
09fb747374 Code cleanup 2020-12-05 14:13:18 -08:00
Cameron
23f6a52f08 Issue #4206 - news category menu {active} shortcode typo fix. 2020-07-03 13:49:12 -07:00
Cameron
20b43d47e9 Closes #4092 - check for 'order' param in news grid. 2020-02-10 12:01:38 -08:00
Cameron
6eb730ff69 Bootstrap 4 toBadge() fix. 2019-06-20 11:33:05 -07:00
Cameron
a9292caef0 Moved list detection to class2. 2019-06-16 13:45:05 -07:00
Cameron
478fc8d060 Tablerender: setContent('list') added to login menu and news menus. 2019-06-16 13:30:16 -07:00
Cameron
37e7a4c996 Magic Shortcodes added. Fix for news 'view' rendering. 2019-06-12 20:20:09 -07:00
Cameron
f0f6eb5d73 Admin-UI: Display a debug message when no 'type' has been set. 2019-06-03 16:46:40 -07:00
Cameron
62863b4934 Issue #2146 PHP 7.3 class compatibility fix. More testing required. 2019-06-03 16:29:38 -07:00
Cameron
033c22484c Fix for news-grid menu tablerender mode. 2019-05-12 15:29:20 -07:00
Cameron
1dbc90143f Case cleanup toHtml() should be toHTML() 2019-02-26 12:22:36 -08:00
Cameron
b19463b259 PHPDoc updates 2019-01-26 10:28:08 -08:00
Gábor
1109854538
Update news_class.php 2018-05-08 08:26:17 +02:00
Cameron
c2048c1c2f Use news_class on print page. 2018-01-16 14:41:51 -08:00
Cameron
cf7c20e168 Prevent system cache overload. 2017-12-19 11:24:36 -08:00
Cameron
93ab7996c7 Minor fixes and debug. 2017-11-09 10:15:36 -08:00
Cameron
a0e8b86876 Display an error when news template is empty or not found. 2017-09-25 15:43:47 -07:00
Cameron
13d58de464 Issue #2795 Support multiple news 'view' layouts (requires database update) 2017-09-23 14:08:47 -07:00
Cameron
dce42f3e31 Fixes #2667 - Set default comment icon when none defined. 2017-06-05 14:35:25 -07:00
Cameron
c0ff3dd232 Fixes #2534 - News Category Caption. 2017-03-29 13:56:53 -07:00
Cameron
eb60e60b9e Move news-grid code into news class. 2017-03-15 14:07:43 -07:00
Cameron
a08a589fd7 Fixes #2476 - News Author Avatar 2017-03-03 13:04:49 -08:00
Cameron
f6612410e0 News Grid template simplified. Template/Layout combination consolidated into 'layout' only. 2017-02-13 18:14:53 -08:00
Cameron
f24886faae Fix for {NEWS_CATEGORY_NAME} etc. used in news ['start'] template. 2017-02-12 09:09:11 -08:00
Cameron
c05d9d9826 Remove debug info 2017-02-06 19:54:17 -08:00
Cameron
cf43841e27 News Grid Upgrades (TBD) 2017-02-06 19:27:23 -08:00
Cameron
b422906eca News menus and others corrected for consistent list alignment and styling. 2016-12-07 09:38:55 -08:00
Cameron
16a03d955f Possible fix for inline-editing on news. 2016-11-15 12:33:16 -08:00
Cameron
cd8ea61bd9 Theme options and fixes. Load Theme JS in the footer by default. New blockquote alt. style added to TinyMce. Updated news shortcodes. Option to hide search form from results page. 2016-06-01 18:36:16 -07:00
Cameron
26636f318c More inline news editing tweaks. 2016-05-31 17:44:07 -07:00
Cameron
eb40a9ac15 Added Experimental Inline editing for news items. 2016-05-31 13:04:05 -07:00
Cameron
444348dc4d Issue #1512 News Grid Menu 2016-04-09 16:12:54 -07:00
Cameron
1b2db4683e FontAwesome version update. News shortcode wrapper issue corrected. 2016-03-10 15:13:32 -08:00
Cameron
4e8412b16c Issue #1287 - PHP7 and SSL fixes. 2016-02-14 19:00:12 -08:00
Cameron
0e2c7ad2e7 Fixed: Latest News Menu was not using {SETIMAGE} value. 2016-02-06 18:33:35 -08:00