1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-04 13:47:31 +02:00

368 Commits

Author SHA1 Message Date
camer0n
8977fc38e1 Issue #5484 Fatal error avoidance. Cause of failure unknown. 2025-04-29 14:50:31 -07:00
camer0n
45d9f48580 Fixes #5483 Extended User field not being restored when 'repair plugin' is activated. 2025-04-29 07:59:46 -07:00
camer0n
a9d20d8e93 Issue #5443 Replaced with non-deprecated counterparts and made sure deprecated items are displayed after running unit tests. 2025-04-22 17:44:17 -07:00
camer0n
a459332e10 Issue #5295 TODO 2025-04-01 12:00:58 -07:00
Cameron
951b09d112 Merge pull request #4508 from Deltik/fix/4501
Issue #4501 Migrate database charset to utf8mb4 and storage engine to InnoDB
2023-11-28 15:24:42 -08:00
camer0n
ab64f0f7bf Issue #5119 setFavicon() method added. 2023-11-28 12:18:08 -08:00
camer0n
6b7aa7c6d9 Fixes #4056 - plugin menu detection path limits. 2023-11-18 08:19:48 -08:00
camer0n
d9fc6d4956 Issue #5079 - PHP warnings/notices. 2023-11-17 16:57:38 -08:00
Cameron
2e81e37ca1 Merge pull request #5033 from Jimmi08/patch-10
Fixes #4517 UEF settings in plugin.xml - fix for parms
2023-07-10 12:24:24 -07:00
Cameron
1ee2e9f492 Merge pull request #5032 from Jimmi08/patch-9
Fixes #5031 for false error when deleting plugin DB field
2023-07-10 12:23:32 -07:00
Jimako
43f0e1bcf1 Fix #4517 UEF settings in plugin.xml - fix for parms 2023-07-02 17:59:57 +02:00
Jimako
46a063a8f5 fix for false error when deleting plugin DB field #5031
https://github.com/e107inc/e107/issues/5031
2023-07-02 10:57:53 +02:00
Jimako
dd6bff4e76 partial fix for 4517 - fix for settings of plugin.xml
#4517
2023-07-02 09:09:25 +02:00
Cameron
d960829532 Issue #4918 - Undefined constants cleanup. 2022-12-10 07:06:47 -08:00
Cameron
9f7560ba37 Issue #4917 Possible fix for e_url_list distortion. Removed use of deprecated save_addon_prefs() method in favor of buildAddonPrefLists(). 2022-12-09 08:27:58 -08:00
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
Nick Liu
d790faa049 Convert and run e107 using the MySQL/MariaDB utf8mb4 character set and
InnoDB storage engine

Components affected:
* `db_verify` now checks and corrects the table storage engine
* `db_verify` now checks and corrects the table default character set
  * Note: Field character sets can still be overridden
  * Note: When correcting, the entire table is converted to the target
    charset.
* The alt_auth plugin now connects via PDO using the e107 default
  charset, utf8mb4
* `e_db_pdo` now sets the charset to utf8mb4. This is currently not
  customizable because it was previously not customizable.
* `install.php` now generates an `e107_config.php` file with
  `$mySQLcharset = 'utf8mb4';`, though this option is not actually used.
* `install.php` now removes plugin tables before installing plugins.
* `e_db_mysql` now only accepts the `utf8mb4` charset. Previously, it
  only accepted the `utf8` charset.
* `e_db_mysql` now configures `mysqli_real_escape_string` to match the
  new default charset, `utf8mb4`.
* Plugin installations now use the preferred MySQL table storage engines
  and charsets.

The preferred MySQL table storage engines are now mapped like so:
* If `ENGINE=MyISAM` is specified, the actual storage engine set will be
  the first available of: InnoDB, Aria, Maria, MyISAM
* If `ENGINE=Aria` is specified, the actual storage engine set will be
  the first available of: Aria, Maria, MyISAM
* If `ENGINE=InnoDB` is specified, the actual storage engine set will be
  the first available of: InnoDB, XtraDB
* If `ENGINE=XtraDB` is specified, the actual storage engine set will be
  the first available of: XtraDB, InnoDB

The preferred MySQL character set is now aliased like so:
* `utf8`    => `utf8mb4`
* `utf8mb3` => `utf8mb3`
* `utf8mb4` => `utf8mb4`

Fixes: #4501
2021-05-22 00:46:35 -05: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