1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 04:38:27 +01:00

106 Commits

Author SHA1 Message Date
Nick Liu
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
Cameron
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
Cameron
d06a4c27b9 Modified Update routine to say v2.3.3. 2022-04-18 15:23:05 -07:00
Cameron
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
Cameron
dd7af9b222 Update acceptance test for BS5. 2022-04-06 19:33:03 -07:00
Cameron
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
Cameron
025ff07aab Fixes #4737 Removal of type="text/javascript" and type="text/css" 2022-03-31 08:24:34 -07:00
Cameron
6f309bb326 e107 installation updated for PHP8.1. Bootstrap5 is now the default theme. Acceptance test updated. 2021-11-29 13:45:02 -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
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
Cameron
098660d38a Issue #550 - filetypes.xml now used by media-manager. 2021-04-21 11:51:53 -07:00
Cameron
0527993d98 Added check for FileInfo extension 2021-02-12 14:32:20 -08:00
Cameron
49932534da Installation tweaks/fixes. 2021-02-05 19:57:53 -08:00
Cameron
41304abc5a Fix for default admin style during install. 2021-02-05 19:04:35 -08:00
Cameron
e4f8082d37 Theme Manager for Admin area, now displays previews of each admin skin. 2021-02-04 16:22:25 -08:00
Cameron
cdcd2d33d2 Issue #4341 - Database name during installation. 2021-01-27 17:33:57 -08:00
Cameron
55eccce7d3 Issue #4341 Database name pattern during installation. 2021-01-25 10:35:24 -08:00
Cameron
748e5ee11d Issue #3902 PHP Notice and Error fixes. 2021-01-25 09:14:45 -08:00
Cameron
7989ebfc72 Installation fix. 2020-12-26 08:02:34 -08:00
Cameron
3c57f3fa96 Mod-security doesn't like '+' in queries. Debug query now uses '!' 2020-12-22 15:17:29 -08:00
Cameron
812b7cbcb3 Code cleanup. Moved checkvalidtheme() out of class2.php and into e_theme as initTheme() 2020-12-21 17:46:32 -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
cf14705535 Code speed optimization 2020-12-12 11:32:23 -08:00
Cameron
f605ddc552 Code optimization and cleanup. 2020-12-10 15:52:48 -08:00
Cameron
005bff7e59 Code cleanup. Removal of deprecated utf8 classes. 2020-12-08 07:29:17 -08:00
Cameron
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
Tijn Kuyper
5b39b1106c
Fixes #4004 - Prevent admin password filtering during install
Not the cleanest method, but effective.
2019-11-04 22:37:43 +01:00
Tijn Kuyper
02497778b7
Fixes #4005 - Add check for DOM extension before installation is initiated 2019-11-04 13:18:26 +01:00
Cameron
5d2076a344 Fixes #3845 - uppercase database name fix. 2019-06-13 17:13:20 -07:00
Cameron
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
Cameron
4b44128cdb Issue #3800 Require database-name to start with a letter. 2019-05-24 11:16:06 -07:00
Deltik
1f824faa69
Renormalized all text file line endings 2019-03-29 19:13:32 -05:00
Tijn Kuyper
8000567983 Remove outdated optional flag 2019-02-11 11:04:34 +01:00
Tijn Kuyper
5805ced17b #3101 - More optional flags added to e107_config.php 2019-02-09 17:28:18 +01:00
Tijn Kuyper
b433d945f4 #3101 - Add optional flags to e107_config.php 2019-02-09 17:26:00 +01:00
Tijn Kuyper
96a1db0e5c Revert "#3101 - Add optional flags to e107_config.php"
This reverts commit 16b298ea51d63de101e0da676ca2f09488251a9f.
2019-02-09 17:24:49 +01:00
Tijn Kuyper
16b298ea51 #3101 - Add optional flags to e107_config.php 2019-02-09 17:24:14 +01:00
Cameron
548961c5ab Issue #3655 Revert order change. Generate filetypes.xml during install. 2019-02-03 09:51:16 -08:00
Nick Liu
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
bdef2707b4cafe34e5485d8733138a0e87f43a39 and the unused autoload code
introduced in f4cee9289087c0119bc6797f7dfb7792a62b0be3.
2018-10-31 08:22:14 -05:00
Cameron
97772a48d9 PHP Minimum set to 5.6. TinyMce installed by default. 2018-08-25 15:31:39 -07:00
Cameron
a499d41481 Fixes #3078 Additional checks for XML package during installation. 2018-07-10 14:07:03 -07:00
Cameron
07d30296dc Issue #2630 Check for PDO MySQL module during install. 2018-05-11 17:55:10 -07:00
Cameron
7ffb60c60b Make sure <option> has a value. 2018-02-16 13:34:54 -08:00
Cameron
744a713dd8 Issue #3019, Issue #3018 Disable Theme caching when running installation in debug mode. 2018-02-02 13:35:11 -08:00
Cameron
b40b1916a3 Issue #2970 btn-default > btn-default btn-secondary 2018-01-10 15:06:40 -08:00
Cameron
de3318eb65 Installation default content fix. Added getperms() function in case something calls it. 2017-12-15 15:52:58 -08:00
Cameron
ff2b79145e Admin skin option added to installation wizard. 2017-12-15 14:50:54 -08:00
Cameron
48d359ed02 https fix 2017-10-30 15:21:55 -07:00
Cameron
8566cd73e7 Add Optional constants to e107_config.php during installation. 2017-10-23 13:00:45 -07:00
Cameron
cc56b7296b Make 'voux' the default theme during installation. 2017-10-10 13:08:28 -07:00