5 Commits

Author SHA1 Message Date
jarebear6expepjozn6rakjq5iczi3irqwphcvbswgkahd6b6twnxxid
8e57e1a30a
Use sandbox for all included files (#3478)
- updated calls to functions
- deprecate function yourls_activate_plugin_sandbox()
- add unit tests
- log loaded files
- tweak yourls_debug_log to allow early uses

Co-authored-by: e-ht <1045813+e-ht@users.noreply.github>
Co-authored-by: eht <1045813+e-ht@users.noreply.github.com>
Co-authored-by: ྅༻ Ǭɀħ ༄༆ཉ <ozh@ozh.org>

Closes #3321
2023-02-12 13:31:46 +01:00
྅༻ Ǭɀħ ༄༆ཉ
6da30dfab0
Add missing inline documentation (#3325) 2022-05-05 21:36:13 +02:00
྅༻ Ǭɀħ ༄༆ཉ
7af080e6db
Update libs and fix PHP 8 (#2824)
Fixes #2807 

* Update libs
* Refactor the logging system to match Aura SQL 3
* Bump PHPUnit version
* Downgrade spatie/array-to-xml to 2.15
* Upgrade expectations to PHPUnit 8+
* Drop PHPUnit 6 support

Co-authored-by: Léo Colombaro <git@colombaro.fr>
2021-01-31 23:32:57 +01:00
Paul Goodchild
19da8de9ec
Begin functions cleaning, starting with GEO. (#2670)
* cleanup geo functions
* add support for CloudFlare's Country GEO header without the need for IP resolution and database
* ensure flag URL always returns a string, instead of false on failure as the result is always used as a string (without validation)
* add helper yours_get_db() so we don't need to use "global $ydb" throughout and it ensures that ydb is always initialised correctly and hasn't ever been changed to something incompatible.
* simplify debug get log
* tidy up code and phpdocs for functions-plugins
* cleanup & phpdocs for parts of functions.php
Co-authored-by: ྅༻ Ǭɀħ ༄༆ཉ <ozh@ozh.org>
2020-05-06 16:24:52 +02:00
྅༻ Ǭɀħ ༄༆ཉ
fd4b927808
Split functions.php in smaller files
New function files for:
* debug
* options
* links
* geo
* shorturls
Fixes #2654

* Regroup and always load auth functions
Fixes #2662
Fixes #2661 

Co-authored-by: paulgoodchild <paulgoodchild@users.noreply.github.com>
2020-05-01 12:05:15 +02:00