add licence info

This commit is contained in:
synox 2019-03-11 00:37:31 +07:00
parent 82882a2e25
commit f37ea5229e
2 changed files with 14 additions and 2 deletions

View File

@ -8,6 +8,10 @@ All notable changes to this project will be documented in this file. The format
- find config.php automatically in current and parent directories. Show error message if not found. - find config.php automatically in current and parent directories. Show error message if not found.
- use local CSS/JS instead of CDN - use local CSS/JS instead of CDN
- detect missing imap extension and config error - detect missing imap extension and config error
- refactoring to simplify routing
### Removed
- JSON API (json-api.php), this feature would better fit in a separate project.
## [0.2.1] - 2018-07-01 ## [0.2.1] - 2018-07-01

View File

@ -1,7 +1,15 @@
<?php <?php
class AutoLinkExtension { /**
static public function auto_link_text(string $string) { * Adapted from https://plugins.trac.wordpress.org/browser/sem-external-links/trunk/sem-autolink-uri.php
* which is MIT/GPL licenced.
* Author: Denis de Bernardy & Mike Koepke
* Author URI: https://www.semiologic.com
*/
class AutoLinkExtension
{
static public function auto_link_text(string $string)
{
$string = preg_replace_callback("/ $string = preg_replace_callback("/
((?<![\"']) # don't look inside quotes ((?<![\"']) # don't look inside quotes