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

352 Commits

Author SHA1 Message Date
Cameron
5e274b85e3 Closes #4810 - Allow plugins to add navigation links in areas other than 'Main' eg. footer navigation. Example added to _blank/plugin.xml 2022-07-02 12:49:57 -07:00
Cameron
ba82fec626 Closes #4745 - check for xml/install.xml during plugin installation. 2022-04-04 18:30:33 -07: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
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
07faad666a Issue #2726, Issue #4452 - Added new e_print.php addon which uses v2.x standards. 2021-03-17 11:22:25 -07:00
rica-carv
d2f44a3099
Wrong method mySQLServerInfo (?) in line 3399 gave error on plugin install with mysql dependecies...
Wrong method mySQLServerInfo (?) in line 3399 gave error on plugin install with mysql dependecies...
2021-03-10 19:36:45 +00:00
Cameron
19ec29f4a5 Blog-calendar PHP notice. 2021-02-03 05:22:28 -08:00
Cameron
c045f2874c Clock-menu removed from code. Extra logTime entries added. Debug performance highlighting tweaks. 2021-01-25 07:57:24 -08:00
Cameron
522d71d243 Reduced some memory usage. 2021-01-24 17:00:02 -08:00
Cameron
f6290ed533 Legacy clock_menu plugin removed. 2021-01-24 07:38:19 -08:00
Cameron
08e0b26874 Removed 'log' plugin from repo. Now found at https://github.com/e107inc/log 2021-01-24 06:47:48 -08:00
Cameron
45b536b50a Removed the json_compat_handler.php and some unused methods. 2021-01-22 16:32:07 -08:00
Cameron
4b0edad459 Various PHP8 Fixes 2021-01-22 06:32:59 -08: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
8f27be1150 Added e_user.php 'settings' method to define additional (extended) user fields dynamically. See _blank/e_user.php 2021-01-18 18:42:03 -08:00
Cameron
ba313c558c Option to filter navigation links in admin area by 'owner' ie. the plugin who installed it. 2021-01-17 20:31:25 -08:00
Moc
ccd22d4ea5
Clear addons update check after plugin install, and when clearing all caches 2021-01-02 16:34:11 +01:00
Cameron
798638a590 PHP warning fixes. 2020-12-31 08:01:34 -08:00
Cameron
15488f1c7e Closes #4311 - gSitemap select-all option. 2020-12-29 10:30:05 -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
601df26d51 Code optimization for speed and reduced memory usage. 2020-12-20 11:50:10 -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
1fe797b4d5 Hero plugin added to core package. (Formerly known as "Bullets") 2020-12-16 15:46:11 -08:00
Cameron
44e260b121 Code cleanup and optimization 2020-12-14 16:21:48 -08:00
Cameron
c1f5a6f8dc Increase speed of TinyMce footer. 2020-12-12 12:40:26 -08:00
Cameron
f605ddc552 Code optimization and cleanup. 2020-12-10 15:52:48 -08:00
Cameron
afaac88003 PHP8 Compatibility and code cleanup. 2020-12-08 12:21:12 -08:00
Cameron
370fdb13f6 Test fixes. Email arraySet() test added. 2020-08-11 08:30:00 -07:00
Cameron
8ac7f1fdf1 Cache added to newforumposts_menu.php. Fancybox 2.06b added to incompatible plugin list. (it loads an old version of jQuery) . Fix for BC replacement of newforumposts_main not rendering. 2020-05-06 13:33:01 -07:00
Cameron
def50c174d Upgrade and Backward Compatibility Fixes. 2020-05-05 15:11:49 -07:00
Cameron
834ea354e4 Core Cleanup. 2020-05-02 15:35:30 -07:00
Cameron
87a717dac3 Addon validation check moved to separate method. Test added. 2020-04-24 11:58:51 -07:00
Cameron
852ab5a32f Related to Issue #3741 - Incorrect encoding of a plugin language file could cause json encoding to fail. 2020-03-24 13:57:05 -07:00
Nick Liu
82499f70a9
Debug variable scope fix in e107plugin::XmlTables() 2020-01-18 11:05:08 +01:00
Nick Liu
1561992815
Removed unused variable from e107plugin::XmlAdminLinks()
Was causing an undefined index error
2020-01-18 11:05:08 +01:00
Nick Liu
62a547aed2
Fixed E_NOTICE in plugin install/uninstall process
- FIX: e107::coreLan() now loads the lan_admin.php file if the $admin argument is true
- FIX: Variable scope of $eplug_folder in e107plugin::uninstall()
- FIX: isset() check order in pluginsTest::makePluginReport()
- FIX: class2.php: Missing ADMINPERMS constant in CLI mode
2020-01-17 17:11:26 +01:00
Nick Liu
e62422d63a
Old HTML ampersand strict compatibility
- FIX: e107::url() now puts "&" in the query string instead of "&" for compliance with the older,
       looser definition of ambiguous ampersands in the HTML specification.
       Fixes: #4054
- FIX: Typo in comment
- FIX: Clear the core/e107/addons/e_url registry (cache) because if a plugin is installed after that
       cache is initialized, the cache is not updated anymore. The plugin's e_url is therefore not
       loaded, so SEF URLs won't be generated for that plugin until the cache is regenerated.
- NEW: Test for #4054
- FIX: e_pluginTest::testGetFields() expects the initial condition of the "forum" plugin to be
       uninstalled.
2020-01-13 00:54:50 +01:00
Cameron
f75e378ec3 Fixes #3741 - Issue with plugins, menus disappearing or displaying as being uninstalled. 2019-08-06 11:38:24 -07:00
Cameron
1f476c77cd Fix for PHP7.3 "ADLAN" warnings 2019-06-16 12:33:28 -07:00
Cameron
08756f8040 Support for PHPUnit test. 2019-05-04 13:32:38 -07:00
Cameron
a32b6bffd9 e_print scan added. 2019-03-11 16:30:01 -07:00
Cameron
b5032c2477 Issue #3695 e_admin addon - list mode with custom methods fixed. 2019-03-04 12:41:10 -08:00
Cameron
e52a660f24 Cleanup 2019-02-24 11:35:51 -08:00
Cameron
fbfdedceb9 Fixes #3193, Fixes #3238 Orphaned plugin entries in db table after manual removal/rename. 2019-02-20 13:31:42 -08:00
Cameron
4becf60d28 More plugin class optimization 2019-01-13 14:08:46 -08:00
Cameron
c63574c07d Optimized plugin class initialization 2019-01-13 13:50:49 -08:00
Cameron
07ad8feba8 Expanded buildAddonPrefLists() to rebuild lan_global_list as well (Used during Plugin Scan) 2019-01-13 13:30:58 -08:00
Cameron
cb02f705b6 Issue #3592 Improved updating of plug_installed pref and reading of InstallRequired plugin.xml attribute 2019-01-11 11:40:33 -08:00