྅༻ Ǭɀħ ༄༆ཉ
6da30dfab0
Add missing inline documentation ( #3325 )
2022-05-05 21:36:13 +02:00
྅༻ Ǭɀħ ༄༆ཉ
9def41dba8
Remove warnings on PHP 8.1 ( #3317 )
...
Also, minor code styles doc & typo
* Refactor yourls_filter_unique_id() to remove useless vars
* Comply with phpstan level 4
* add some tests to cover newly discovered potential issues
2022-05-02 08:09:18 +02:00
྅༻ Ǭɀħ ༄༆ཉ
0cfd39f0a1
More checks with new version notices ( #3290 )
...
* add unit tests to make sure running 1.8.3-dev will trigger a new version notice when 1.8.3 is out (I think it already works this way)
* more validation of the api core/update response
2022-04-19 16:15:44 +02:00
྅༻ Ǭɀħ ༄༆ཉ
163172787a
Update version checking and use /version/1.1/ ( #3268 )
2022-04-03 22:01:21 +02:00
Léo Colombaro
007882fac0
Bump to php 8.1 and drop 7.2, 7.3 ( #3230 )
...
* Bump tests to php 8.1 and drop 7.2, 7.3
* Bump vendor version to align with new requirements
* Drop conflicted and deprecated YDB functions
* Use proper Request namespace
* Fix a deprecation warning
Co-authored-by: ྅༻ Ǭɀħ ༄༆ཉ <ozh@ozh.org>
2022-02-21 19:53:27 +01:00
྅༻ Ǭɀħ ༄༆ཉ
99ca70a9ef
Filterable user defined constants, and more tests ( #3048 )
2021-09-05 19:53:09 +02:00
྅༻ Ǭɀħ ༄༆ཉ
c16034e8b3
Filter all HTTP request params ( #2951 )
2021-05-30 19:01:48 +02:00
྅༻ Ǭɀħ ༄༆ཉ
347971f25d
Remove global $ydb
calls and prefer helper function ( #2762 )
...
Fixes #2698
Changes :
- Replace all global $ydb; and $ydb->... with yourls_get_db()-> in code and tests
- Add tests
- Introduce yourls_set_db()
2020-10-11 19:02:15 +02:00
྅༻ Ǭɀħ ༄༆ཉ
2bc2bb12d3
Validate api.yourls.org result when checking for new version ( #2657 )
2020-04-21 16:01:29 +02:00
྅༻ Ǭɀħ ༄༆ཉ
602e7dfe6f
Always return trimmed (and filtered) YOURLS_SITE ( #2653 )
...
Closes #2651
2020-04-19 12:38:27 +02:00
ozh
e4468d1748
1st pass at removing ezSQL. And an Options object.
...
Work in progress. This won't work for now.
2017-08-18 19:56:01 +02:00
ozh
a755711a7e
Move 3rd party stuff in vendor
2017-05-18 19:46:09 +02:00
ozh
51a3d3beab
Replace phpversion() with PHP_VERSION
...
According to my tests, we'll speed things by almost 2.8 seconds every 1 million calls, dude.
2017-04-20 09:33:42 +02:00
ozh
9e2efb6029
Use __DIR__ instead of dirname(__FILE__)
2017-04-17 23:03:37 +02:00
ozh
ef33fefebb
Filter to allow shunting external requests
2015-12-05 11:33:55 +01:00
ozh
1921d0ff3e
Today I Learnt: you can't check consts for empty
...
Doesn't work at all, interestingly for different reasons across PHP versions - http://3v4l.org/06f2E
2015-05-25 21:39:40 +02:00
ozh
63582151ca
Oopsie.
2015-05-25 21:25:34 +02:00
ozh
18cc1a4d3e
Refactor proxy functions
...
Easier testing.
2015-05-25 13:07:38 +02:00
ozh
faf481fe92
Avoid notices during unit tests
...
[skip ci]
2015-05-23 23:46:45 +02:00
ozh
89042ea3c7
Send requests to AYO using https
whenever possible
2014-02-02 17:18:45 +01:00
ozh
652ad4712d
Fix phpdoc comments
2014-01-17 20:53:58 +01:00
ozh
193b0e02fb
Link to phone home explanations
2014-01-08 17:12:05 +01:00
ozh
769c4b5776
stats include 'num_pages'
2014-01-06 16:02:37 +01:00
ozh
e74c9c517a
Misc rewording
2014-01-01 21:12:49 +01:00
ozh
2e0bca006a
Extra precautions
2014-01-01 19:17:33 +01:00
ozh
8c8eabf791
Deprecated stuff to their file
2013-12-30 18:22:00 +01:00
ozh
bedc00b557
Check core version - complete. ish.
...
Test further. Test also when upgrading.
2013-12-27 16:44:51 +01:00
ozh
b3413f2c0a
Fine tune logic. Code later.
2013-12-26 23:01:42 +01:00
ozh
2ec763cfb2
Filterable proxy definition check
2013-12-26 21:57:08 +01:00
ozh
0e79f7eae7
Proxy support. Little commit, huge feature.
2013-12-26 18:04:17 +01:00
ozh
15de239172
Add HTTP errors to debug log
2013-12-26 16:12:23 +01:00
ozh
ff88d4756e
Move api.y.org stuff to functions-http.php
...
I didn't like having functions-update.php and functions-upgrade.php, made no sense.
Plus, it's all about HTTP requests.
2013-12-26 15:09:20 +01:00
ozh
5673467b2d
More consistent HTTP functions.
...
All the try/catch logic around Requests should be in this file
2013-12-13 18:21:44 +01:00
ozh
dae1040daf
More easily filterable timeout
...
(because I think it'll be the only stuff people will need to filter)
2013-12-13 18:21:43 +01:00
ozh
932392cc19
Implement use of Requests - first pass.
2013-12-13 18:21:41 +01:00
ozh
b88bfb5e0a
Remove var_dump()
2013-06-11 17:38:11 +02:00
LeoColomb
097170801d
Tabify
2013-04-11 20:54:47 +02:00
LeoColomb
3daf6593d8
Fix end of line
2013-04-07 12:52:52 +02:00
Ozh
7fdd260912
PHPdoc-ish-ification of older functions. Fixes issue 1244.
...
git-svn-id: http://yourls.googlecode.com/svn/trunk@879 12232710-3e20-11de-b438-597f59cd7555
2013-02-13 09:45:33 +00:00
ozhozh
9fbb4595af
Whitespaces, bitches!! Because, you know, CodingStandards.
...
git-svn-id: http://yourls.googlecode.com/svn/trunk@743 12232710-3e20-11de-b438-597f59cd7555
2012-08-20 19:24:31 +00:00
ozhozh
976267d5f3
Don't set page title as "Error: ....". Fixes issue 422.
...
git-svn-id: http://yourls.googlecode.com/svn/trunk@507 12232710-3e20-11de-b438-597f59cd7555
2010-09-23 13:57:40 +00:00
ozhozh
d15b11f8ca
Better HTTP error handling and better remote page title in case of error
...
git-svn-id: http://yourls.googlecode.com/svn/trunk@385 12232710-3e20-11de-b438-597f59cd7555
2010-06-11 08:21:31 +00:00
ozhozh
4e99c2b8d5
Improved http functions:
...
- added curl support
- determine best transport between curl, fopen & fsockopen
- basic error reporting
git-svn-id: http://yourls.googlecode.com/svn/trunk@384 12232710-3e20-11de-b438-597f59cd7555
2010-06-10 15:27:06 +00:00
ozhozh
f7767938c1
New function: yourls_get_remote_title() and associated function file
...
git-svn-id: http://yourls.googlecode.com/svn/trunk@318 12232710-3e20-11de-b438-597f59cd7555
2010-04-16 09:55:13 +00:00