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

13996 Commits

Author SHA1 Message Date
camer0n
e0554f6f17 Issue #5096 - possible fix for older versions of PHP. 2023-11-03 16:36:14 -07:00
camer0n
45661f44c3 Issue #5096 - possible fix for older versions of PHP. 2023-11-03 16:07:00 -07:00
camer0n
bfb515f2b5 Fixes #5096 - Cron timezone issue. eShims::strftime issue. CronParser test added. 2023-11-03 15:07:41 -07:00
camer0n
9c47060bb5 PHPMailer update v6.8.0 => v6.8.1 2023-11-03 07:23:25 -07:00
camer0n
bdc042dc64 Issue #5079 - Notices and cleanup. 2023-11-03 06:37:31 -07:00
camer0n
09eddd8911 Closes #5094 - 'fields' option added to e107Export method. Accepts comma separated list. 2023-11-01 14:27:25 -07:00
camer0n
100e28ed2b Issue #5093 - Precaution in case an array is parsed. 2023-11-01 13:20:51 -07:00
camer0n
1c452038fb Issue #5079 Warnings when running cron.php 2023-11-01 13:12:32 -07:00
camer0n
f037d6e688 Issue #5079 - Avoid division by zero. 2023-11-01 10:43:54 -07:00
camer0n
faa2f8ad34 Fixes #5093 - True/False labels on <select> options. 2023-11-01 08:07:30 -07:00
camer0n
fb98771b82 Fixes #5092 - Removed example code with error and added new example. Minor cleanup of class. 2023-10-31 12:34:28 -07:00
camer0n
187d45dcd8 Issue #5079 - PHP Warning 2023-10-30 08:05:00 -07:00
camer0n
6d632320a6 Issue #5079 PHP Warning. 2023-10-30 07:28:14 -07:00
camer0n
81698566c0 Fix for html5shiv URL. 2023-10-29 08:15:45 -07:00
Nick Liu
2a0ee3f65b
CI: Remove uninteresting service versions
Now, we just test the PHP and MySQL/MariaDB versions that have big
changes starting from the lowest versions we support up to the highest
versions we support.
2023-10-28 12:52:47 -05:00
Nick Liu
a3857a0477
CI: Fix bitnami/mysql:8.0 tests for php:5.6 broken by charset change 2023-10-28 12:30:56 -05:00
camer0n
c419d402d7 Issue #4919 - Add support for quick custom email template without separate file. 2023-10-27 11:03:46 -07:00
camer0n
552af19c54 Issue #5079 - PHP 8.2 Deprecated error removal 2023-10-26 16:20:22 -07:00
camer0n
4467ad32b8 Fixes #5091 Fixes PHP Notices/Warnings and sends some cron execution errors to error_log. 2023-10-25 18:01:17 -07:00
camer0n
64cf23a06e Closes #5062 - common favicon method for frontend and backend. 2023-10-17 10:22:11 -07:00
camer0n
322eaa972f Fixes #5090 - default value can now be set if the value is 0 or empty. 2023-10-16 16:23:52 -07:00
camer0n
1a8fb98161 Rollback due to errors. 2023-10-16 16:18:20 -07:00
camer0n
97e4db15a3 Added PHP 8.2 to unit tests. 2023-10-16 11:50:21 -07:00
camer0n
1a019e671d Fixes #5089 - Admin-UI: custom true/false values when inline editing is disabled. 2023-10-13 10:51:44 -07:00
camer0n
dd9c011fdd Closes #4804 - Conversion of diacritics in name2id() 2023-09-28 09:36:31 -07:00
camer0n
720ea0c03d Fixes #5080 - Undefined constant. 2023-09-26 14:12:55 -07:00
camer0n
00a66eaadd Fixes #5087 - Outdated javascript enable instructions link. 2023-09-26 14:04:06 -07:00
camer0n
26f393b7ab Issue #5083 - Inline editor order fix for userclasses etc. 2023-09-25 10:07:48 -07:00
camer0n
cb1bbc7f3c #5079 PHP 8.2 notice removal 2023-09-18 13:43:43 -07:00
camer0n
e904dd99d5 Extra cron script checks. 2023-09-18 12:43:44 -07:00
Cameron
7394a6c539
Merge pull request #5073 from Deltik/fix/5072
install.php: PHP 8.2 exception handler signature compatibility
2023-09-12 08:23:41 -07:00
Cameron
86ff4d6c69
Merge pull request #5070 from Deltik/fix/5064
Fixes: #5064 Unify logic of `e_user_model::checkAdminPerms()` and `getperms()`
2023-09-12 08:22:14 -07:00
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
Nick Liu
dd36fbd51d
Unify logic of e_user_model::checkAdminPerms() and getperms()
Along with extensive documentation, `getperms()` is now deprecated and
its replacements now have first-class support:
* `e_user_model::checkAdminPerms()` and `getperms()` both use
  `e_userperms::simulateHasAdminPerms()`.
* `e_user_model::checkPluginAdminPerms()` and `getperms('P', …, …)`
  both use `e_userperms::simulateHasPluginAdminPerms()`.

----

Partially reverts: https://github.com/e107inc/e107/commit/44526b43

Reverts: https://github.com/e107inc/e107/commit/001799cb

Fixes: https://github.com/e107inc/e107/issues/5064
2023-09-09 12:03:14 +02:00
camer0n
001799cb5f Issue #5064 - Added user object vars. 2023-09-08 14:25:29 -07:00
camer0n
44526b435c Issue #5064 - Draft fix for user impersonation (getperms()) 2023-09-08 14:18:06 -07:00
camer0n
1ef0cc3352 PHPDoc fix. 2023-09-01 07:31:52 -07:00
camer0n
3af99c70cd HybridAuth patch for PHP5.6 2023-08-24 17:18:22 -07:00
camer0n
9aa8de4f7d Issue GHSA-92fr-7h4f-22pp 2023-08-22 13:28:10 -07:00
camer0n
abf94d0310 Fixes #5045 - Removed inline editing for when only "Quick Add User" has been granted, and removed adding of admin perms to avoid access escalation. 2023-08-22 12:51:23 -07:00
camer0n
9949a297f6 HybridAuth upgrade v3.9.0 => v3.10.0 2023-08-22 12:10:30 -07:00
Cameron
068bf05e92
Merge pull request #5055 from Deltik/fix/5054
Fixes #5054 db_verify::getIndex(): Support index_col_name optional parts
2023-08-17 11:52:47 -07:00
Cameron
1f06bb34c0
Merge pull request #5058 from Jimmi08/fix4683
Fixes #4683 Missing preferences in bootstrap5
2023-08-17 11:16:50 -07:00
Nick Liu
b623868756
db_verify::getIndex(): Support index_col_name optional parts
In the MariaDB `CREATE TABLE` [`index_definition`](https://mariadb.com/kb/en/create-table/#index-definitions),
 the `index_col_name` could have an optional length and a sort order:

```
index_definition:
    {INDEX|KEY} [index_name] [index_type] (index_col_name,...) [index_option] ...
  {{{|}}} {FULLTEXT|SPATIAL} [INDEX|KEY] [index_name] (index_col_name,...) [index_option] ...
  {{{|}}} [CONSTRAINT [symbol]] PRIMARY KEY [index_type] (index_col_name,...) [index_option] ...
  {{{|}}} [CONSTRAINT [symbol]] UNIQUE [INDEX|KEY] [index_name] [index_type] (index_col_name,...) [index_option] ...
  {{{|}}} [CONSTRAINT [symbol]] FOREIGN KEY [index_name] (index_col_name,...) reference_definition

index_col_name:
    col_name [(length)] [ASC | DESC]

index_type:
    USING {BTREE | HASH | RTREE}

index_option:
    [ KEY_BLOCK_SIZE [=] value
  {{{|}}} index_type
  {{{|}}} WITH PARSER parser_name
  {{{|}}} COMMENT 'string'
  {{{|}}} CLUSTERING={YES| NO} ]
  [ IGNORED | NOT IGNORED ]

reference_definition:
    REFERENCES tbl_name (index_col_name,...)
      [MATCH FULL | MATCH PARTIAL | MATCH SIMPLE]
      [ON DELETE reference_option]
      [ON UPDATE reference_option]

reference_option:
    RESTRICT | CASCADE | SET NULL | NO ACTION
```

`db_verify::getIndex()` didn't handle this possibility, leading to a
database validity check failure despite the index actually existing.

Fixes: https://github.com/e107inc/e107/issues/5054
2023-08-17 17:27:26 +02:00
camer0n
5ff319cd5c Fixes #5052, Issue #5041 - Usersettings update redirect. 2023-08-16 07:52:07 -07:00
Cameron
0b6b28b455
Merge pull request #5048 from Jimmi08/patch-12
Fixes #4474 Admin-UI checkboxes with filter and batch.
2023-08-16 06:18:33 -07:00
Cameron
4eafc42f88
Merge pull request #5015 from Jimmi08/patch-7
Fixes #4866 RSS logo image
2023-08-14 10:00:16 -07:00
Nick Liu
3c571a884e
#5060: [PHP 8.3] Fix get_class() deprecations
Fixes: https://github.com/e107inc/e107/pull/5060
2023-08-14 18:05:02 +02:00
Nick Liu
96666f176f
e_user_provider: Replace "${var}"-style string interpolation
Deprecated in PHP 8.2:
https://www.php.net/manual/en/migration82.deprecated.php#migration82.deprecated.core.dollar-brace-interpolation

Discussed in Gitter:
https://matrix.to/#/!srhnCKlMgxFeuSPXPb:gitter.im/$4QOsTBHp8DKFsmHotpHAzuAAX1Ky3m0n2R-jIsVlxUg
2023-08-08 13:53:34 +02:00
Jimako
b495efef5f
Update theme.html
applying shortcodes
2023-08-06 17:56:47 +02:00