]> CyberLeo.Net >> Repos - Github/YOURLS.git/log
Github/YOURLS.git
6 years agorewords and typos for probot
Léo Colombaro [Tue, 28 Nov 2017 12:17:27 +0000 (13:17 +0100)]
rewords and typos for probot

[ci skip]

6 years agofirst probot usage try config
Léo Colombaro [Mon, 27 Nov 2017 22:53:17 +0000 (23:53 +0100)]
first probot usage try config

using https://github.com/bkeepers/workflow

6 years agolicense meta tweaks
Léo Colombaro [Tue, 28 Nov 2017 12:09:05 +0000 (13:09 +0100)]
license meta tweaks

simplify and fix MIT license content to match legal requirements, which
are sometimes very strict

see https://choosealicense.com/licenses/mit/
see https://opensource.org/licenses/MIT

[ci skip]

6 years agofix issue template typos and duplications
Léo Colombaro [Mon, 27 Nov 2017 22:33:54 +0000 (23:33 +0100)]
fix issue template typos and duplications

6 years agomove contribution docs inside .github
Léo Colombaro [Mon, 27 Nov 2017 22:26:00 +0000 (23:26 +0100)]
move contribution docs inside .github

6 years agoMerge pull request #2323 from flokX/master
྅༻ Ǭɀħ ༄༆ཉ [Mon, 27 Nov 2017 20:42:34 +0000 (21:42 +0100)]
Merge pull request #2323 from flokX/master

Update placeholder to https://

6 years agoUpdate placeholder to https://
Florian [Sun, 26 Nov 2017 12:09:41 +0000 (13:09 +0100)]
Update placeholder to https://

and motivate users to use the secure version of the url.

6 years agoMerge pull request #2314 from YOURLS/findconfig
྅༻ Ǭɀħ ༄༆ཉ [Mon, 6 Nov 2017 20:36:09 +0000 (21:36 +0100)]
Merge pull request #2314 from YOURLS/findconfig

Fix "find config"

6 years agoContributors gallery
྅༻ Ǭɀħ ༄༆ཉ [Sun, 5 Nov 2017 22:33:08 +0000 (23:33 +0100)]
Contributors gallery

6 years agoFix "find config".
ozh [Fri, 3 Nov 2017 09:30:20 +0000 (10:30 +0100)]
Fix "find config".
realpath() seems to have many caveats depending on the platform

6 years agomissing slash for path handling in Config
Léo Colombaro [Thu, 2 Nov 2017 10:09:08 +0000 (11:09 +0100)]
missing slash for path handling in Config

fixes #2312
fixes #2311

6 years agoAdded bit about stats
྅༻ Ǭɀħ ༄༆ཉ [Thu, 2 Nov 2017 12:04:33 +0000 (13:04 +0100)]
Added bit about stats

[skip ci]

6 years agoMerge pull request #2294 from YOURLS/bootstrap
྅༻ Ǭɀħ ༄༆ཉ [Sun, 29 Oct 2017 17:25:04 +0000 (18:25 +0100)]
Merge pull request #2294 from YOURLS/bootstrap

Make bootstrap more modular

6 years agoMerge pull request #2301 from YOURLS/checkbranch
྅༻ Ǭɀħ ༄༆ཉ [Sat, 7 Oct 2017 08:29:34 +0000 (10:29 +0200)]
Merge pull request #2301 from YOURLS/checkbranch

Match YOURLS branch with Unit test branch

6 years agoRemove [Remove xdebug]
ozh [Sat, 7 Oct 2017 08:27:39 +0000 (10:27 +0200)]
Remove [Remove xdebug]

We don't care about speeding tests up. [skip ci]

6 years agoimprove issue template
Léo Colombaro [Thu, 5 Oct 2017 15:25:54 +0000 (17:25 +0200)]
improve issue template

6 years agoRemove Xdebug for performance, apparently
ozh [Mon, 2 Oct 2017 06:28:54 +0000 (08:28 +0200)]
Remove Xdebug for performance, apparently

6 years ago`git branch --list` doesn't work
ozh [Sun, 1 Oct 2017 19:41:16 +0000 (21:41 +0200)]
`git branch --list` doesn't work

6 years agoceedee dot dot, bleh
ozh [Sat, 30 Sep 2017 18:23:19 +0000 (20:23 +0200)]
ceedee dot dot, bleh

6 years agoCheckout on UT if possible
ozh [Sat, 30 Sep 2017 18:16:57 +0000 (20:16 +0200)]
Checkout on UT if possible

6 years agoMatch YOURLS branch with Unit test branch
ozh [Sat, 30 Sep 2017 17:47:50 +0000 (19:47 +0200)]
Match YOURLS branch with Unit test branch

6 years agoRename Exception class for clarity
ozh [Mon, 18 Sep 2017 20:54:26 +0000 (22:54 +0200)]
Rename Exception class for clarity

6 years agoFix docblock
ozh [Sun, 17 Sep 2017 13:43:32 +0000 (15:43 +0200)]
Fix docblock

[skip ci]

6 years agoRearrange a bit logic in the constructor
ozh [Sun, 17 Sep 2017 11:50:15 +0000 (13:50 +0200)]
Rearrange a bit logic in the constructor

6 years agoWorking JS API example
྅༻ Ǭɀħ ༄༆ཉ [Thu, 14 Sep 2017 19:39:45 +0000 (21:39 +0200)]
Working JS API example

Fixes #2257

[skip ci]

6 years agoLet's throw Exceptions on error
ozh [Thu, 14 Sep 2017 17:55:24 +0000 (19:55 +0200)]
Let's throw Exceptions on error

It will scare Average Joe even more, and is a bit more testable, although tests here are trivial

6 years agoMore modularity
ozh [Thu, 14 Sep 2017 13:54:39 +0000 (15:54 +0200)]
More modularity

6 years agoAttempt at making bootstrap more modular
ozh [Wed, 13 Sep 2017 20:48:24 +0000 (22:48 +0200)]
Attempt at making bootstrap more modular

The idea is to try and make the unit test bootstrapping less stupid with less duplicated code.

6 years agoToggle error reporting as well as SQL log
ozh [Wed, 13 Sep 2017 20:45:48 +0000 (22:45 +0200)]
Toggle error reporting as well as SQL log

6 years agoMore checks before loading plugins.
ozh [Wed, 13 Sep 2017 20:33:50 +0000 (22:33 +0200)]
More checks before loading plugins.

(Will help boot process of unit tests)

6 years agoWTF indenting
ozh [Tue, 12 Sep 2017 19:57:15 +0000 (21:57 +0200)]
WTF indenting

[skip ci]

6 years agoMove mbstring compat stuff out into vendor
ozh [Thu, 7 Sep 2017 22:42:51 +0000 (00:42 +0200)]
Move mbstring compat stuff out into vendor

Let's trust more symfony than our half baked 15 lines function.

6 years agoUpdate composer for http_build_url
ozh [Thu, 7 Sep 2017 21:49:17 +0000 (23:49 +0200)]
Update composer for http_build_url

[skip ci]

6 years agoMove http_build_url out to /vendor
ozh [Thu, 7 Sep 2017 16:16:55 +0000 (18:16 +0200)]
Move http_build_url out to /vendor

Will make things cleaner.

Also, refactored a bit yourls_lowercase_scheme_domain() for clarity.

6 years agoAllow readme.md as well as README.md
ozh [Thu, 7 Sep 2017 16:01:10 +0000 (18:01 +0200)]
Allow readme.md as well as README.md

6 years agoMerge pull request #2289 from YOURLS/issue2288
྅༻ Ǭɀħ ༄༆ཉ [Wed, 6 Sep 2017 20:04:59 +0000 (22:04 +0200)]
Merge pull request #2289 from YOURLS/issue2288

More checks at init for need to install. Should fix #2288

6 years agoMore checks at init for need to install
ozh [Wed, 6 Sep 2017 19:58:28 +0000 (21:58 +0200)]
More checks at init for need to install

6 years agoMerge pull request #2279 from YOURLS/trusty
྅༻ Ǭɀħ ༄༆ཉ [Tue, 5 Sep 2017 19:48:06 +0000 (21:48 +0200)]
Merge pull request #2279 from YOURLS/trusty

Fix tests on PHP 5.3

6 years agoMerge pull request #2282 from YOURLS/aurasql
྅༻ Ǭɀħ ༄༆ཉ [Tue, 5 Sep 2017 19:46:05 +0000 (21:46 +0200)]
Merge pull request #2282 from YOURLS/aurasql

Remove ezSQL, use PDO + Aura.Sql

6 years agoRemove leftover @todo note
ozh [Sun, 3 Sep 2017 20:23:30 +0000 (22:23 +0200)]
Remove leftover @todo note

[skip ci]

6 years agoMore PDO::getAttribute wrapping
ozh [Sun, 3 Sep 2017 20:11:48 +0000 (22:11 +0200)]
More PDO::getAttribute wrapping

Damn you PHP 5.4

6 years agoConnect to DB before getting attribute
ozh [Sun, 3 Sep 2017 19:53:03 +0000 (21:53 +0200)]
Connect to DB before getting attribute

Attempt to fix the "PHP Fatal error:  Uncaught exception 'PDOException' with message 'SQLSTATE[IM001]: Driver does not support this function: driver does not support that attribute'" thrown on PHP 5.4. It could be that issuing PDO::getAttribute() before being connected to the DB prevents exception from being caught

6 years agoPDOException instead of just Exception
ozh [Sun, 3 Sep 2017 17:50:20 +0000 (19:50 +0200)]
PDOException instead of just Exception

6 years agoTest for PDO::getAttribute
ozh [Sun, 3 Sep 2017 17:39:40 +0000 (19:39 +0200)]
Test for PDO::getAttribute

6 years agoCase sensitive pathname. Duuuh.
ozh [Sun, 3 Sep 2017 16:43:27 +0000 (18:43 +0200)]
Case sensitive pathname. Duuuh.

6 years agoReset tests
ozh [Sun, 3 Sep 2017 12:57:58 +0000 (14:57 +0200)]
Reset tests

6 years agoUpdate ydb->query() functions
ozh [Sat, 2 Sep 2017 17:09:56 +0000 (19:09 +0200)]
Update ydb->query() functions

[skip ci]

6 years agoDeprecated escape func; tweak string validation
ozh [Sat, 2 Sep 2017 17:08:39 +0000 (19:08 +0200)]
Deprecated escape func; tweak string validation

[skip ci]

6 years agoUpdate ydb->get_results()
ozh [Fri, 1 Sep 2017 17:50:50 +0000 (19:50 +0200)]
Update ydb->get_results()

[skip ci]

6 years agoUpdate ydb->get_var()
ozh [Fri, 1 Sep 2017 16:34:35 +0000 (18:34 +0200)]
Update ydb->get_var()

[skip ci]

6 years agoReplace ydb->get_col()
ozh [Fri, 1 Sep 2017 15:30:33 +0000 (17:30 +0200)]
Replace ydb->get_col()

[skip ci]

6 years agoUpdate ->get_row functions
ozh [Thu, 31 Aug 2017 19:03:59 +0000 (21:03 +0200)]
Update ->get_row functions

[skip ci]

6 years agoDocblock for my future self
ozh [Thu, 31 Aug 2017 18:12:10 +0000 (20:12 +0200)]
Docblock for my future self

[skip ci]

6 years agoUpdate db stats and queries
ozh [Thu, 31 Aug 2017 18:07:25 +0000 (20:07 +0200)]
Update db stats and queries

[skip ci]

6 years agoNo more need for is dead or alive functions
ozh [Thu, 31 Aug 2017 18:06:15 +0000 (20:06 +0200)]
No more need for is dead or alive functions

[skip ci]

6 years agoRename function, more explicit name
ozh [Mon, 28 Aug 2017 19:16:27 +0000 (21:16 +0200)]
Rename function, more explicit name

[skip ci]

6 years agoBackward compatibility finished.
ozh [Mon, 28 Aug 2017 19:08:21 +0000 (21:08 +0200)]
Backward compatibility finished.

As of now, all unit tests (some slightly rewritten) pass.
Now, onto rewriting queries

[skip ci]

6 years agoOptions sanity checks
ozh [Wed, 23 Aug 2017 11:03:29 +0000 (13:03 +0200)]
Options sanity checks

As is, all current test units for options pass

[skip ci]

6 years agoMisc stuff
ozh [Tue, 22 Aug 2017 07:06:23 +0000 (09:06 +0200)]
Misc stuff

6 years agoFix logic: options were not working
ozh [Tue, 22 Aug 2017 05:48:41 +0000 (07:48 +0200)]
Fix logic: options were not working

6 years agoMissing docblocks, no big deal
ozh [Mon, 21 Aug 2017 20:33:33 +0000 (22:33 +0200)]
Missing docblocks, no big deal

[skip ci]

6 years agoMore typos.
ozh [Mon, 21 Aug 2017 20:22:22 +0000 (22:22 +0200)]
More typos.

Thanks, scrutinizer-ci :kissing:

[skip ci]

6 years agoSmarter test for DB dead or alive
ozh [Mon, 21 Aug 2017 20:13:11 +0000 (22:13 +0200)]
Smarter test for DB dead or alive

[skip ci]

6 years agoezSQL compat functions, and $infos stuff
ozh [Mon, 21 Aug 2017 19:32:25 +0000 (21:32 +0200)]
ezSQL compat functions, and $infos stuff

[skip ci]

6 years agoTypo
ozh [Mon, 21 Aug 2017 19:31:22 +0000 (21:31 +0200)]
Typo

6 years agoLogger object & ezSQL get_row() compat
ozh [Mon, 21 Aug 2017 13:19:55 +0000 (15:19 +0200)]
Logger object & ezSQL get_row() compat

[skip ci]

6 years agoPlugins
ozh [Sun, 20 Aug 2017 15:57:19 +0000 (17:57 +0200)]
Plugins

I think in the end we could have a couple nice objects (Plugins/API.php, Plugins/Files.php and Plugins/Pages.php) to take all the complex logic out of functions-plugins.php

[skip ci]

6 years agoNum queries functions
ozh [Sun, 20 Aug 2017 12:01:13 +0000 (14:01 +0200)]
Num queries functions

6 years agoVar $option (and low level functions) in YDB
ozh [Sat, 19 Aug 2017 20:15:20 +0000 (22:15 +0200)]
Var $option (and low level functions) in YDB

Keep $option low level functions and var in YDB, so new \Option don't start from zero each time and actually read value from $ydb instead of getting from DB each time.

Also, enforce utf8 at connection, is this a good idea? Test units will tell, later.

Also, more stuff here and there.

6 years agoChange autoloader for YOURLS stuff
ozh [Sat, 19 Aug 2017 07:21:29 +0000 (09:21 +0200)]
Change autoloader for YOURLS stuff

It was OK in YOURLS itself, but not the unit tests since they are bypassing load-yourls.php

6 years ago1st pass at removing ezSQL. And an Options object.
ozh [Fri, 18 Aug 2017 17:56:01 +0000 (19:56 +0200)]
1st pass at removing ezSQL. And an Options object.

Work in progress. This won't work for now.

6 years agoRemove old link
྅༻ Ǭɀħ ༄༆ཉ [Tue, 15 Aug 2017 13:12:51 +0000 (15:12 +0200)]
Remove old link

Was: http://code.google.com/p/yourls/issues/detail?id=137

6 years agoAnother sunday morning random test
྅༻ Ǭɀħ ༄༆ཉ [Tue, 15 Aug 2017 09:25:31 +0000 (11:25 +0200)]
Another sunday morning random test

6 years agoRemove Google Plus button
ozh [Sun, 13 Aug 2017 16:49:59 +0000 (18:49 +0200)]
Remove Google Plus button

Also, no more tweet count :(
Also, let's see if LinkedIn interests people

6 years agoTry to run tests on HHVM
྅༻ Ǭɀħ ༄༆ཉ [Wed, 9 Aug 2017 17:02:13 +0000 (19:02 +0200)]
Try to run tests on HHVM

6 years agoMerge pull request #2278 from YOURLS/geoip2
྅༻ Ǭɀħ ༄༆ཉ [Wed, 9 Aug 2017 16:38:50 +0000 (18:38 +0200)]
Merge pull request #2278 from YOURLS/geoip2

Update GeoIP to GeoIP2

6 years agoUpdate GeoIP to GeoIP2
ozh [Wed, 9 Aug 2017 15:56:11 +0000 (17:56 +0200)]
Update GeoIP to GeoIP2

6 years agoWhitespace: 4 by default, except 2 for JS
ozh [Wed, 9 Aug 2017 09:54:53 +0000 (11:54 +0200)]
Whitespace: 4 by default, except 2 for JS

6 years agoUpdate readme
ozh [Tue, 8 Aug 2017 20:41:23 +0000 (22:41 +0200)]
Update readme

- remove "upgrade from 1.3" (it's been 10 years or so)
- add "install guides"

6 years agoMerge pull request #2276 from eli0tc/patch-1
྅༻ Ǭɀħ ༄༆ཉ [Fri, 4 Aug 2017 16:12:32 +0000 (18:12 +0200)]
Merge pull request #2276 from eli0tc/patch-1

Fix logout in stats page for nginx

6 years agoFix logout in stats page
eli0tc [Fri, 4 Aug 2017 12:52:18 +0000 (14:52 +0200)]
Fix logout in stats page

Changed the relative path to a full path using yourls_admin_url()

6 years agoImprove issue template for newbies
Léo Colombaro [Sat, 22 Jul 2017 11:52:46 +0000 (13:52 +0200)]
Improve issue template for newbies

6 years ago// @codeCoverageMeh
ozh [Thu, 22 Jun 2017 22:00:16 +0000 (00:00 +0200)]
// @codeCoverageMeh

6 years agoRefactor yourls_get_request() to allow for tests
ozh [Tue, 20 Jun 2017 21:12:04 +0000 (23:12 +0200)]
Refactor yourls_get_request() to allow for tests

6 years agoMerge pull request #2261 from mle86/optional-www
྅༻ Ǭɀħ ༄༆ཉ [Tue, 20 Jun 2017 16:29:32 +0000 (18:29 +0200)]
Merge pull request #2261 from mle86/optional-www

Support optional www. prefix

7 years agoSupport optional www. prefix
mle86 [Fri, 9 Jun 2017 11:18:48 +0000 (13:18 +0200)]
Support optional www. prefix

This way, both http[s]://sho.rt/xyz _and_ http[s]://www.sho.rt/xyz will work,
no matter if YOURLS_SITE has a www. prefix or not.

(The earlier str_replace call would never remove a "www." prefix from YOURLS_SITE even though the comment said so.
 This worked okay so far because the remaining domain name (with or without www.)
 would then be removed from HTTP_HOST, forcing users to use the correct domain name.)

7 years agoAdd .editorconfig
ozh [Thu, 1 Jun 2017 19:59:04 +0000 (21:59 +0200)]
Add .editorconfig

7 years agoMerge pull request #2258 from dgw/meta-hook
྅༻ Ǭɀħ ༄༆ཉ [Tue, 30 May 2017 06:13:09 +0000 (08:13 +0200)]
Merge pull request #2258 from dgw/meta-hook

Add hook for plugins to add meta tags

Fixes #2256

7 years agoAdd hook for plugins to add meta tags
dgw [Mon, 29 May 2017 23:47:13 +0000 (18:47 -0500)]
Add hook for plugins to add meta tags

Resolves #2256

7 years agoMerge pull request #2252 from YOURLS/issue2238
྅༻ Ǭɀħ ༄༆ཉ [Mon, 22 May 2017 14:33:34 +0000 (16:33 +0200)]
Merge pull request #2252 from YOURLS/issue2238

Move 3rd party stuff in /vendor

7 years agoForgot a couple files...
ozh [Mon, 22 May 2017 13:45:57 +0000 (15:45 +0200)]
Forgot a couple files...

7 years agoUpdate pomo to 1.3
ozh [Mon, 22 May 2017 13:27:23 +0000 (15:27 +0200)]
Update pomo to 1.3

7 years ago(Unrelated: fix docblocks)
ozh [Sat, 20 May 2017 11:43:38 +0000 (13:43 +0200)]
(Unrelated: fix docblocks)

[skip ci]

7 years agoTweak wording
ozh [Sat, 20 May 2017 11:30:27 +0000 (13:30 +0200)]
Tweak wording

7 years agoUpdate build script && less files
ozh [Fri, 19 May 2017 21:16:50 +0000 (23:16 +0200)]
Update build script && less files

Build script:
- Smarter
- Needs an argument to specify directory to clean
- Test run option and help
- Pizzas and lasers

Less files:
- no need to keep composer.json files

7 years agoMove 3rd party stuff in vendor
ozh [Thu, 18 May 2017 17:46:09 +0000 (19:46 +0200)]
Move 3rd party stuff in vendor

7 years agoRefine logic when checking for new version
ozh [Fri, 12 May 2017 21:40:32 +0000 (23:40 +0200)]
Refine logic when checking for new version

- always display an update notice if new version
- when applicable and checking for a new version, do it only twice

7 years agoRefine logic in checking new version
ozh [Fri, 12 May 2017 21:31:28 +0000 (23:31 +0200)]
Refine logic in checking new version

- perform checks once per session when applicable
- always display update notice if applicable

7 years agoAdd empty `active_plugins` entry on install
ozh [Fri, 12 May 2017 06:18:07 +0000 (08:18 +0200)]
Add empty `active_plugins` entry on install

Otherwise, `yourls_load_plugins()` triggers an extra SQL query on each page load till one plugin has been activated or deactivated to create the entry in the option table.

7 years agoMore explicitnessly explicitness
ozh [Tue, 2 May 2017 19:26:23 +0000 (21:26 +0200)]
More explicitnessly explicitness

See #2244