1
0
mirror of https://github.com/e107inc/e107.git synced 2025-06-10 21:21:03 +02:00

114 Commits

Author SHA1 Message Date
31e7d1d3b0 Issue #5465 Core language files converted. (excluding plugins) 2025-04-04 18:29:07 -07:00
d4fcbfe1ea Issue #5120 Fix customization of folder paths for handlers and plugins. Updated dependencies.
'defaultdb' is now deprecated in new e107_config.php. Use 'db' instead.
2025-03-31 16:02:46 -07:00
cfebf11d02 Issue #5458 Also adds support for site_hosts configuration option.
Minimum PHP version set to 8 during installation.
2025-03-31 07:11:03 -07:00
8711f503a1 Issue #5120 Return to multi-dimensional format for multisite plugin compatibility. 2024-04-08 16:02:44 -07:00
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
39b3ed9141 Minimum PHP version set to 7.4.
Unit test added for PHP 8.3
2023-11-28 12:31:50 -08:00
81698566c0 Fix for html5shiv URL. 2023-10-29 08:15:45 -07:00
c6401ff247 install.php: PHP 8.2 exception handler signature compatibility
The exception handler parameter has to be of type `Throwable`, but we
are remaining compatible with PHP 5.6, which didn't have `Throwable`,
so let's fix this by moving the type to the phpDoc block.

Fixes: https://github.com/e107inc/e107/issues/5072
2023-09-11 23:11:52 +02:00
3feccca0ec Fixes #4799. Powerpoint file-types added. Issue #4986 Added critical error constant as example to e107_config.php during installation. 2023-03-24 13:06:30 -07:00
d06a4c27b9 Modified Update routine to say v2.3.3. 2022-04-18 15:23:05 -07:00
93b2926227 Removed SEF Url config from Bootstrap5. Added missing prefs to default install. Moved popup tips during installation to their own icon. Adjusted acceptance test. 2022-04-07 07:15:30 -07:00
dd7af9b222 Update acceptance test for BS5. 2022-04-06 19:33:03 -07:00
efb6dd0b96 SEF URLs can now by available directly after installation. Removed debug info from News pagination. Disabled news_months_menu in default install config. 2022-04-06 18:22:35 -07:00
025ff07aab Fixes #4737 Removal of type="text/javascript" and type="text/css" 2022-03-31 08:24:34 -07:00
6f309bb326 e107 installation updated for PHP8.1. Bootstrap5 is now the default theme. Acceptance test updated. 2021-11-29 13:45:02 -08:00
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
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
e5ff5f53c8 Issue #550 - Expanded filetypes.xml display in admin preferences area to include Admin and Main admin perms. Additional defaults for admin and mainadmin added to filetypes.xml during installation. 2021-04-21 16:48:04 -07:00
098660d38a Issue #550 - filetypes.xml now used by media-manager. 2021-04-21 11:51:53 -07:00
0527993d98 Added check for FileInfo extension 2021-02-12 14:32:20 -08:00
49932534da Installation tweaks/fixes. 2021-02-05 19:57:53 -08:00
41304abc5a Fix for default admin style during install. 2021-02-05 19:04:35 -08:00
e4f8082d37 Theme Manager for Admin area, now displays previews of each admin skin. 2021-02-04 16:22:25 -08:00
cdcd2d33d2 Issue #4341 - Database name during installation. 2021-01-27 17:33:57 -08:00
55eccce7d3 Issue #4341 Database name pattern during installation. 2021-01-25 10:35:24 -08:00
748e5ee11d Issue #3902 PHP Notice and Error fixes. 2021-01-25 09:14:45 -08:00
7989ebfc72 Installation fix. 2020-12-26 08:02:34 -08:00
3c57f3fa96 Mod-security doesn't like '+' in queries. Debug query now uses '!' 2020-12-22 15:17:29 -08:00
812b7cbcb3 Code cleanup. Moved checkvalidtheme() out of class2.php and into e_theme as initTheme() 2020-12-21 17:46:32 -08:00
f5153bf640 Updating of deprecated method usage. Removal of old files. Log tests added. 2020-12-18 09:39:02 -08:00
cf14705535 Code speed optimization 2020-12-12 11:32:23 -08:00
f605ddc552 Code optimization and cleanup. 2020-12-10 15:52:48 -08:00
005bff7e59 Code cleanup. Removal of deprecated utf8 classes. 2020-12-08 07:29:17 -08:00
30db97cbac A PHP module check (similar to the one during installation) has been added to the PHPInfo page to quickly detect any missing modules after one migrates e107 to another PHP configuration. 2020-06-24 14:35:49 -07:00
5b39b1106c Fixes #4004 - Prevent admin password filtering during install
Not the cleanest method, but effective.
2019-11-04 22:37:43 +01:00
02497778b7 Fixes #4005 - Add check for DOM extension before installation is initiated 2019-11-04 13:18:26 +01:00
5d2076a344 Fixes #3845 - uppercase database name fix. 2019-06-13 17:13:20 -07:00
ce7f3feb38 PDO class now used by default. mysql_class.php currently deprecated until it is modified to use mysqli. Install routine upgraded. Install logging vastly improved. 2019-06-03 15:27:36 -07:00
4b44128cdb Issue #3800 Require database-name to start with a letter. 2019-05-24 11:16:06 -07:00
1f824faa69 Renormalized all text file line endings 2019-03-29 19:13:32 -05:00
8000567983 Remove outdated optional flag 2019-02-11 11:04:34 +01:00
5805ced17b #3101 - More optional flags added to e107_config.php 2019-02-09 17:28:18 +01:00
b433d945f4 #3101 - Add optional flags to e107_config.php 2019-02-09 17:26:00 +01:00
96a1db0e5c Revert "#3101 - Add optional flags to e107_config.php"
This reverts commit 16b298ea51.
2019-02-09 17:24:49 +01:00
16b298ea51 #3101 - Add optional flags to e107_config.php 2019-02-09 17:24:14 +01:00
548961c5ab Issue #3655 Revert order change. Generate filetypes.xml during install. 2019-02-03 09:51:16 -08:00
4c6828be93 Moved autoload responsibility to e107_class.php
Instead of every independently operating client code figuring out its
own autoload policies, the e107 class file e107_class.php now takes care
of autoloading.

Any client that uses the e107 class will automatically benefit from
autoloading for e107.

This cuts down on potential code duplication, and e107::getSingleton()
is no longer tied to trying to figure out the class path.

This commit REMOVES support for the unused constant flag
E107_DISABLE_AUTOLOAD introduced in
bdef2707b4 and the unused autoload code
introduced in f4cee92890.
2018-10-31 08:22:14 -05:00
97772a48d9 PHP Minimum set to 5.6. TinyMce installed by default. 2018-08-25 15:31:39 -07:00
a499d41481 Fixes #3078 Additional checks for XML package during installation. 2018-07-10 14:07:03 -07:00
07d30296dc Issue #2630 Check for PDO MySQL module during install. 2018-05-11 17:55:10 -07:00