Updated to v0.11.0, see install.php for changelog

This commit is contained in:
Daniel Saunders 2021-01-25 18:33:42 -05:00
parent 54e1c7b42d
commit 8b9ab76cb9
67 changed files with 319 additions and 178 deletions

282
composer.lock generated
View File

@ -51,6 +51,10 @@
"ipv4", "ipv4",
"ipv6" "ipv6"
], ],
"support": {
"issues": "https://github.com/AwsumChan/IP/issues",
"source": "https://github.com/AwsumChan/IP/tree/master"
},
"time": "2020-01-16T05:53:34+00:00" "time": "2020-01-16T05:53:34+00:00"
}, },
{ {
@ -97,6 +101,10 @@
"markdown", "markdown",
"parser" "parser"
], ],
"support": {
"issues": "https://github.com/erusev/parsedown/issues",
"source": "https://github.com/erusev/parsedown/tree/1.7.x"
},
"time": "2019-12-30T22:54:17+00:00" "time": "2019-12-30T22:54:17+00:00"
}, },
{ {
@ -146,20 +154,24 @@
"geolocation", "geolocation",
"maxmind" "maxmind"
], ],
"support": {
"issues": "https://github.com/maxmind/geoip-api-php/issues",
"source": "https://github.com/maxmind/geoip-api-php/tree/master"
},
"time": "2016-05-16T19:06:50+00:00" "time": "2016-05-16T19:06:50+00:00"
}, },
{ {
"name": "gettext/gettext", "name": "gettext/gettext",
"version": "v4.8.2", "version": "v4.8.3",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/php-gettext/Gettext.git", "url": "https://github.com/php-gettext/Gettext.git",
"reference": "e474f872f2c8636cf53fd283ec4ce1218f3d236a" "reference": "57ff4fb16647e78e80a5909fe3c190f1c3110321"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/php-gettext/Gettext/zipball/e474f872f2c8636cf53fd283ec4ce1218f3d236a", "url": "https://api.github.com/repos/php-gettext/Gettext/zipball/57ff4fb16647e78e80a5909fe3c190f1c3110321",
"reference": "e474f872f2c8636cf53fd283ec4ce1218f3d236a", "reference": "57ff4fb16647e78e80a5909fe3c190f1c3110321",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -208,7 +220,12 @@
"po", "po",
"translation" "translation"
], ],
"time": "2019-12-02T10:21:14+00:00" "support": {
"email": "oom@oscarotero.com",
"issues": "https://github.com/oscarotero/Gettext/issues",
"source": "https://github.com/php-gettext/Gettext/tree/v4.8.3"
},
"time": "2020-11-18T22:35:49+00:00"
}, },
{ {
"name": "gettext/languages", "name": "gettext/languages",
@ -269,42 +286,47 @@
"translations", "translations",
"unicode" "unicode"
], ],
"support": {
"issues": "https://github.com/php-gettext/Languages/issues",
"source": "https://github.com/php-gettext/Languages/tree/2.6.0"
},
"time": "2019-11-13T10:30:21+00:00" "time": "2019-11-13T10:30:21+00:00"
}, },
{ {
"name": "intervention/httpauth", "name": "intervention/httpauth",
"version": "2.1.0", "version": "3.0.1",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/Intervention/httpauth.git", "url": "https://github.com/Intervention/httpauth.git",
"reference": "3d67894b28b9ff3887fb9e4474c6b81ca5614543" "reference": "825202e88c0918f5249bd5af6ff1fb8ef6e3271e"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/Intervention/httpauth/zipball/3d67894b28b9ff3887fb9e4474c6b81ca5614543", "url": "https://api.github.com/repos/Intervention/httpauth/zipball/825202e88c0918f5249bd5af6ff1fb8ef6e3271e",
"reference": "3d67894b28b9ff3887fb9e4474c6b81ca5614543", "reference": "825202e88c0918f5249bd5af6ff1fb8ef6e3271e",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": ">=5.3.0" "php": "^7.2"
}, },
"require-dev": { "require-dev": {
"phpunit/phpunit": "~4.0" "phpstan/phpstan": "^0.12.11",
"phpunit/phpunit": "^8.0"
}, },
"type": "library", "type": "library",
"extra": { "extra": {
"laravel": { "laravel": {
"providers": [ "providers": [
"Intervention\\Httpauth\\HttpauthServiceProvider" "Intervention\\HttpAuth\\Laravel\\HttpAuthServiceProvider"
], ],
"aliases": { "aliases": {
"Httpauth": "Intervention\\Httpauth\\Facades\\Httpauth" "HttpAuth": "Intervention\\HttpAuth\\Laravel\\Facades\\HttpAuth"
} }
} }
}, },
"autoload": { "autoload": {
"psr-4": { "psr-4": {
"Intervention\\Httpauth\\": "src/Intervention/Httpauth" "Intervention\\HttpAuth\\": "src/"
} }
}, },
"notification-url": "https://packagist.org/downloads/", "notification-url": "https://packagist.org/downloads/",
@ -315,7 +337,7 @@
{ {
"name": "Oliver Vogel", "name": "Oliver Vogel",
"email": "oliver@olivervogel.com", "email": "oliver@olivervogel.com",
"homepage": "http://olivervogel.com/" "homepage": "https://olivervogel.com/"
} }
], ],
"description": "HTTP authentication (Basic & Digest) including ServiceProviders for easy Laravel integration", "description": "HTTP authentication (Basic & Digest) including ServiceProviders for easy Laravel integration",
@ -325,7 +347,11 @@
"http", "http",
"laravel" "laravel"
], ],
"time": "2019-09-09T11:59:51+00:00" "support": {
"issues": "https://github.com/Intervention/httpauth/issues",
"source": "https://github.com/Intervention/httpauth/tree/3.0.1"
},
"time": "2020-03-09T16:18:28+00:00"
}, },
{ {
"name": "marcusschwarz/lesserphp", "name": "marcusschwarz/lesserphp",
@ -377,24 +403,28 @@
], ],
"description": "lesserphp is a compiler for LESS written in PHP based on leafo's lessphp.", "description": "lesserphp is a compiler for LESS written in PHP based on leafo's lessphp.",
"homepage": "http://leafo.net/lessphp/", "homepage": "http://leafo.net/lessphp/",
"support": {
"issues": "https://github.com/MarcusSchwarz/lesserphp/issues",
"source": "https://github.com/MarcusSchwarz/lesserphp/tree/v0.5.4"
},
"time": "2020-01-19T19:18:49+00:00" "time": "2020-01-19T19:18:49+00:00"
}, },
{ {
"name": "monolog/monolog", "name": "monolog/monolog",
"version": "2.0.2", "version": "2.2.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/Seldaek/monolog.git", "url": "https://github.com/Seldaek/monolog.git",
"reference": "c861fcba2ca29404dc9e617eedd9eff4616986b8" "reference": "1cb1cde8e8dd0f70cc0fe51354a59acad9302084"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/Seldaek/monolog/zipball/c861fcba2ca29404dc9e617eedd9eff4616986b8", "url": "https://api.github.com/repos/Seldaek/monolog/zipball/1cb1cde8e8dd0f70cc0fe51354a59acad9302084",
"reference": "c861fcba2ca29404dc9e617eedd9eff4616986b8", "reference": "1cb1cde8e8dd0f70cc0fe51354a59acad9302084",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": "^7.2", "php": ">=7.2",
"psr/log": "^1.0.1" "psr/log": "^1.0.1"
}, },
"provide": { "provide": {
@ -403,16 +433,17 @@
"require-dev": { "require-dev": {
"aws/aws-sdk-php": "^2.4.9 || ^3.0", "aws/aws-sdk-php": "^2.4.9 || ^3.0",
"doctrine/couchdb": "~1.0@dev", "doctrine/couchdb": "~1.0@dev",
"elasticsearch/elasticsearch": "^6.0", "elasticsearch/elasticsearch": "^7",
"graylog2/gelf-php": "^1.4.2", "graylog2/gelf-php": "^1.4.2",
"jakub-onderka/php-parallel-lint": "^0.9", "mongodb/mongodb": "^1.8",
"php-amqplib/php-amqplib": "~2.4", "php-amqplib/php-amqplib": "~2.4",
"php-console/php-console": "^3.1.3", "php-console/php-console": "^3.1.3",
"phpspec/prophecy": "^1.6.1", "phpspec/prophecy": "^1.6.1",
"phpunit/phpunit": "^8.3", "phpstan/phpstan": "^0.12.59",
"phpunit/phpunit": "^8.5",
"predis/predis": "^1.1", "predis/predis": "^1.1",
"rollbar/rollbar": "^1.3", "rollbar/rollbar": "^1.3",
"ruflin/elastica": ">=0.90 <3.0", "ruflin/elastica": ">=0.90 <7.0.1",
"swiftmailer/swiftmailer": "^5.3|^6.0" "swiftmailer/swiftmailer": "^5.3|^6.0"
}, },
"suggest": { "suggest": {
@ -432,7 +463,7 @@
"type": "library", "type": "library",
"extra": { "extra": {
"branch-alias": { "branch-alias": {
"dev-master": "2.x-dev" "dev-main": "2.x-dev"
} }
}, },
"autoload": { "autoload": {
@ -448,17 +479,31 @@
{ {
"name": "Jordi Boggiano", "name": "Jordi Boggiano",
"email": "j.boggiano@seld.be", "email": "j.boggiano@seld.be",
"homepage": "http://seld.be" "homepage": "https://seld.be"
} }
], ],
"description": "Sends your logs to files, sockets, inboxes, databases and various web services", "description": "Sends your logs to files, sockets, inboxes, databases and various web services",
"homepage": "http://github.com/Seldaek/monolog", "homepage": "https://github.com/Seldaek/monolog",
"keywords": [ "keywords": [
"log", "log",
"logging", "logging",
"psr-3" "psr-3"
], ],
"time": "2019-12-20T14:22:59+00:00" "support": {
"issues": "https://github.com/Seldaek/monolog/issues",
"source": "https://github.com/Seldaek/monolog/tree/2.2.0"
},
"funding": [
{
"url": "https://github.com/Seldaek",
"type": "github"
},
{
"url": "https://tidelift.com/funding/github/packagist/monolog/monolog",
"type": "tidelift"
}
],
"time": "2020-12-14T13:15:25+00:00"
}, },
{ {
"name": "mrclay/jsmin-php", "name": "mrclay/jsmin-php",
@ -510,26 +555,31 @@
"jsmin", "jsmin",
"minify" "minify"
], ],
"support": {
"email": "minify@googlegroups.com",
"issues": "https://github.com/mrclay/jsmin-php/issues",
"source": "https://github.com/mrclay/jsmin-php/tree/master"
},
"time": "2018-12-06T15:03:38+00:00" "time": "2018-12-06T15:03:38+00:00"
}, },
{ {
"name": "mrclay/minify", "name": "mrclay/minify",
"version": "3.0.7", "version": "3.0.10",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/mrclay/minify.git", "url": "https://github.com/mrclay/minify.git",
"reference": "7378a0efe8e54d9950088422973423846bda5404" "reference": "8dba84a2d24ae6382057a1215ad3af25202addb9"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/mrclay/minify/zipball/7378a0efe8e54d9950088422973423846bda5404", "url": "https://api.github.com/repos/mrclay/minify/zipball/8dba84a2d24ae6382057a1215ad3af25202addb9",
"reference": "7378a0efe8e54d9950088422973423846bda5404", "reference": "8dba84a2d24ae6382057a1215ad3af25202addb9",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"ext-pcre": "*", "ext-pcre": "*",
"intervention/httpauth": "~2.0", "intervention/httpauth": "^2.0|^3.0",
"marcusschwarz/lesserphp": "~0.5.1", "marcusschwarz/lesserphp": "^0.5.1",
"monolog/monolog": "~1.1|~2.0", "monolog/monolog": "~1.1|~2.0",
"mrclay/jsmin-php": "~2", "mrclay/jsmin-php": "~2",
"mrclay/props-dic": "^2.2|^3.0", "mrclay/props-dic": "^2.2|^3.0",
@ -571,7 +621,13 @@
], ],
"description": "Minify is a PHP app that helps you follow several rules for client-side performance. It combines multiple CSS or Javascript files, removes unnecessary whitespace and comments, and serves them with gzip encoding and optimal client-side cache headers", "description": "Minify is a PHP app that helps you follow several rules for client-side performance. It combines multiple CSS or Javascript files, removes unnecessary whitespace and comments, and serves them with gzip encoding and optimal client-side cache headers",
"homepage": "https://github.com/mrclay/minify", "homepage": "https://github.com/mrclay/minify",
"time": "2019-12-10T06:31:58+00:00" "support": {
"email": "minify@googlegroups.com",
"issues": "https://github.com/mrclay/minify/issues",
"source": "https://github.com/mrclay/minify/tree/3.0.10",
"wiki": "https://github.com/mrclay/minify/blob/master/docs"
},
"time": "2020-04-02T19:47:26+00:00"
}, },
{ {
"name": "mrclay/props-dic", "name": "mrclay/props-dic",
@ -622,33 +678,37 @@
"di", "di",
"di container" "di container"
], ],
"support": {
"issues": "https://github.com/mrclay/Props/issues",
"source": "https://github.com/mrclay/Props/tree/master"
},
"time": "2019-11-26T17:56:10+00:00" "time": "2019-11-26T17:56:10+00:00"
}, },
{ {
"name": "pimple/pimple", "name": "pimple/pimple",
"version": "v3.2.3", "version": "v3.3.1",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/silexphp/Pimple.git", "url": "https://github.com/silexphp/Pimple.git",
"reference": "9e403941ef9d65d20cba7d54e29fe906db42cf32" "reference": "21e45061c3429b1e06233475cc0e1f6fc774d5b0"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/silexphp/Pimple/zipball/9e403941ef9d65d20cba7d54e29fe906db42cf32", "url": "https://api.github.com/repos/silexphp/Pimple/zipball/21e45061c3429b1e06233475cc0e1f6fc774d5b0",
"reference": "9e403941ef9d65d20cba7d54e29fe906db42cf32", "reference": "21e45061c3429b1e06233475cc0e1f6fc774d5b0",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": ">=5.3.0", "php": ">=7.2.5",
"psr/container": "^1.0" "psr/container": "^1.0"
}, },
"require-dev": { "require-dev": {
"symfony/phpunit-bridge": "^3.2" "symfony/phpunit-bridge": "^5.0"
}, },
"type": "library", "type": "library",
"extra": { "extra": {
"branch-alias": { "branch-alias": {
"dev-master": "3.2.x-dev" "dev-master": "3.3.x-dev"
} }
}, },
"autoload": { "autoload": {
@ -667,12 +727,15 @@
} }
], ],
"description": "Pimple, a simple Dependency Injection Container", "description": "Pimple, a simple Dependency Injection Container",
"homepage": "http://pimple.sensiolabs.org", "homepage": "https://pimple.symfony.com",
"keywords": [ "keywords": [
"container", "container",
"dependency injection" "dependency injection"
], ],
"time": "2018-01-21T07:42:36+00:00" "support": {
"source": "https://github.com/silexphp/Pimple/tree/v3.3.1"
},
"time": "2020-11-24T20:35:42+00:00"
}, },
{ {
"name": "psr/container", "name": "psr/container",
@ -721,20 +784,24 @@
"container-interop", "container-interop",
"psr" "psr"
], ],
"support": {
"issues": "https://github.com/php-fig/container/issues",
"source": "https://github.com/php-fig/container/tree/master"
},
"time": "2017-02-14T16:28:37+00:00" "time": "2017-02-14T16:28:37+00:00"
}, },
{ {
"name": "psr/log", "name": "psr/log",
"version": "1.1.2", "version": "1.1.3",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/php-fig/log.git", "url": "https://github.com/php-fig/log.git",
"reference": "446d54b4cb6bf489fc9d75f55843658e6f25d801" "reference": "0f73288fd15629204f9d42b7055f72dacbe811fc"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/php-fig/log/zipball/446d54b4cb6bf489fc9d75f55843658e6f25d801", "url": "https://api.github.com/repos/php-fig/log/zipball/0f73288fd15629204f9d42b7055f72dacbe811fc",
"reference": "446d54b4cb6bf489fc9d75f55843658e6f25d801", "reference": "0f73288fd15629204f9d42b7055f72dacbe811fc",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -768,24 +835,27 @@
"psr", "psr",
"psr-3" "psr-3"
], ],
"time": "2019-11-01T11:05:21+00:00" "support": {
"source": "https://github.com/php-fig/log/tree/1.1.3"
},
"time": "2020-03-23T09:12:05+00:00"
}, },
{ {
"name": "symfony/polyfill-ctype", "name": "symfony/polyfill-ctype",
"version": "v1.13.1", "version": "v1.22.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/polyfill-ctype.git", "url": "https://github.com/symfony/polyfill-ctype.git",
"reference": "f8f0b461be3385e56d6de3dbb5a0df24c0c275e3" "reference": "c6c942b1ac76c82448322025e084cadc56048b4e"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/f8f0b461be3385e56d6de3dbb5a0df24c0c275e3", "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/c6c942b1ac76c82448322025e084cadc56048b4e",
"reference": "f8f0b461be3385e56d6de3dbb5a0df24c0c275e3", "reference": "c6c942b1ac76c82448322025e084cadc56048b4e",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": ">=5.3.3" "php": ">=7.1"
}, },
"suggest": { "suggest": {
"ext-ctype": "For best performance" "ext-ctype": "For best performance"
@ -793,7 +863,11 @@
"type": "library", "type": "library",
"extra": { "extra": {
"branch-alias": { "branch-alias": {
"dev-master": "1.13-dev" "dev-main": "1.22-dev"
},
"thanks": {
"name": "symfony/polyfill",
"url": "https://github.com/symfony/polyfill"
} }
}, },
"autoload": { "autoload": {
@ -826,24 +900,41 @@
"polyfill", "polyfill",
"portable" "portable"
], ],
"time": "2019-11-27T13:56:44+00:00" "support": {
"source": "https://github.com/symfony/polyfill-ctype/tree/v1.22.0"
},
"funding": [
{
"url": "https://symfony.com/sponsor",
"type": "custom"
},
{
"url": "https://github.com/fabpot",
"type": "github"
},
{
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
"type": "tidelift"
}
],
"time": "2021-01-07T16:49:33+00:00"
}, },
{ {
"name": "symfony/polyfill-mbstring", "name": "symfony/polyfill-mbstring",
"version": "v1.13.1", "version": "v1.22.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/polyfill-mbstring.git", "url": "https://github.com/symfony/polyfill-mbstring.git",
"reference": "7b4aab9743c30be783b73de055d24a39cf4b954f" "reference": "f377a3dd1fde44d37b9831d68dc8dea3ffd28e13"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/7b4aab9743c30be783b73de055d24a39cf4b954f", "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/f377a3dd1fde44d37b9831d68dc8dea3ffd28e13",
"reference": "7b4aab9743c30be783b73de055d24a39cf4b954f", "reference": "f377a3dd1fde44d37b9831d68dc8dea3ffd28e13",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": ">=5.3.3" "php": ">=7.1"
}, },
"suggest": { "suggest": {
"ext-mbstring": "For best performance" "ext-mbstring": "For best performance"
@ -851,7 +942,11 @@
"type": "library", "type": "library",
"extra": { "extra": {
"branch-alias": { "branch-alias": {
"dev-master": "1.13-dev" "dev-main": "1.22-dev"
},
"thanks": {
"name": "symfony/polyfill",
"url": "https://github.com/symfony/polyfill"
} }
}, },
"autoload": { "autoload": {
@ -885,7 +980,24 @@
"portable", "portable",
"shim" "shim"
], ],
"time": "2019-11-27T14:18:11+00:00" "support": {
"source": "https://github.com/symfony/polyfill-mbstring/tree/v1.22.0"
},
"funding": [
{
"url": "https://symfony.com/sponsor",
"type": "custom"
},
{
"url": "https://github.com/fabpot",
"type": "github"
},
{
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
"type": "tidelift"
}
],
"time": "2021-01-07T16:49:33+00:00"
}, },
{ {
"name": "tubalmartin/cssmin", "name": "tubalmartin/cssmin",
@ -938,6 +1050,10 @@
"minify", "minify",
"yui" "yui"
], ],
"support": {
"issues": "https://github.com/tubalmartin/YUI-CSS-compressor-PHP-port/issues",
"source": "https://github.com/tubalmartin/YUI-CSS-compressor-PHP-port"
},
"time": "2018-01-15T15:26:51+00:00" "time": "2018-01-15T15:26:51+00:00"
}, },
{ {
@ -993,35 +1109,40 @@
"i18n", "i18n",
"text" "text"
], ],
"support": {
"issues": "https://github.com/twigphp/Twig-extensions/issues",
"source": "https://github.com/twigphp/Twig-extensions/tree/master"
},
"abandoned": true,
"time": "2018-12-05T18:34:18+00:00" "time": "2018-12-05T18:34:18+00:00"
}, },
{ {
"name": "twig/twig", "name": "twig/twig",
"version": "v2.12.3", "version": "v2.14.3",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/twigphp/Twig.git", "url": "https://github.com/twigphp/Twig.git",
"reference": "97b6311585cae66a26833b14b33785f5797f7d39" "reference": "8bc568d460d88b25c00c046256ec14a787ea60d9"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/twigphp/Twig/zipball/97b6311585cae66a26833b14b33785f5797f7d39", "url": "https://api.github.com/repos/twigphp/Twig/zipball/8bc568d460d88b25c00c046256ec14a787ea60d9",
"reference": "97b6311585cae66a26833b14b33785f5797f7d39", "reference": "8bc568d460d88b25c00c046256ec14a787ea60d9",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": "^7.0", "php": ">=7.2.5",
"symfony/polyfill-ctype": "^1.8", "symfony/polyfill-ctype": "^1.8",
"symfony/polyfill-mbstring": "^1.3" "symfony/polyfill-mbstring": "^1.3"
}, },
"require-dev": { "require-dev": {
"psr/container": "^1.0", "psr/container": "^1.0",
"symfony/phpunit-bridge": "^4.4|^5.0" "symfony/phpunit-bridge": "^4.4.9|^5.0.9"
}, },
"type": "library", "type": "library",
"extra": { "extra": {
"branch-alias": { "branch-alias": {
"dev-master": "2.12-dev" "dev-master": "2.14-dev"
} }
}, },
"autoload": { "autoload": {
@ -1058,7 +1179,21 @@
"keywords": [ "keywords": [
"templating" "templating"
], ],
"time": "2019-12-28T07:12:03+00:00" "support": {
"issues": "https://github.com/twigphp/Twig/issues",
"source": "https://github.com/twigphp/Twig/tree/v2.14.3"
},
"funding": [
{
"url": "https://github.com/fabpot",
"type": "github"
},
{
"url": "https://tidelift.com/funding/github/packagist/twig/twig",
"type": "tidelift"
}
],
"time": "2021-01-05T15:34:33+00:00"
} }
], ],
"packages-dev": [], "packages-dev": [],
@ -1074,5 +1209,6 @@
"platform-dev": [], "platform-dev": [],
"platform-overrides": { "platform-overrides": {
"php": "7.2.9" "php": "7.2.9"
} },
"plugin-api-version": "2.0.0"
} }

View File

@ -1,7 +1,7 @@
<?php <?php
/* /*
* Copyright (c) 2010-2018 Tinyboard Development Group * Copyright (c) 2010-2021 Tinyboard Development Group
*/ */
if (realpath($_SERVER['SCRIPT_FILENAME']) === str_replace('\\', '/', __FILE__)) { if (realpath($_SERVER['SCRIPT_FILENAME']) === str_replace('\\', '/', __FILE__)) {
@ -68,7 +68,7 @@ function error($message, $priority = true, $debug_stuff = false) {
} }
$pw = $config['db']['password']; $pw = $config['db']['password'];
$debug_callback = function(&$item) use (&$debug_callback, $pw) { $debug_callback = function($item) use (&$debug_callback, $pw) {
if (is_array($item)) { if (is_array($item)) {
$item = array_filter($item, $debug_callback); $item = array_filter($item, $debug_callback);
} }

View File

@ -1,7 +1,7 @@
<?php <?php
/* /*
* Copyright (c) 2010-2020 Tinyboard Development Group * Copyright (c) 2010-2021 Tinyboard Development Group
*/ */
if (realpath($_SERVER['SCRIPT_FILENAME']) === str_replace('\\', '/', __FILE__)) { if (realpath($_SERVER['SCRIPT_FILENAME']) === str_replace('\\', '/', __FILE__)) {
@ -717,12 +717,14 @@ function file_unlink($path) {
$debug['unlink'][] = $path; $debug['unlink'][] = $path;
} }
$ret = @unlink($path); $ret = false;
if ($config['gzip_static']) { if (file_exists($path)) {
$gzpath = "$path.gz"; $ret = unlink($path);
}
@unlink($gzpath); if ($config['gzip_static'] && file_exists($gzpath = "$path.gz")) {
unlink($gzpath);
} }
if (isset($config['purge']) && $path[0] != '/' && isset($_SERVER['HTTP_HOST'])) { if (isset($config['purge']) && $path[0] != '/' && isset($_SERVER['HTTP_HOST'])) {

View File

@ -1,18 +1,11 @@
<?php <?php
/* /*
* Copyright (c) 2010-2019 Tinyboard Development Group * Copyright (c) 2010-2021 Tinyboard Development Group
*/ */
defined('TINYBOARD') or exit; defined('TINYBOARD') or exit;
/*
* Note that WebP won't work in PHP prior to 7.1 as getimagesize()
* doesn't support the format in earlier versions
*/
if (!defined('IMAGETYPE_WEBP'))
define('IMAGETYPE_WEBP', 18);
class Image { class Image {
public $src, $format, $image, $size; public $src, $format, $image, $size;
public function __construct($src, $format = false, $size = false) { public function __construct($src, $format = false, $size = false) {

View File

@ -6,7 +6,7 @@
# Joel C <theholymart1@gmail.com>, 2014 # Joel C <theholymart1@gmail.com>, 2014
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: vichan\n" "Project-Id-Version: Tinyboard\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-10-18 13:47+0200\n" "POT-Creation-Date: 2014-10-18 13:47+0200\n"
"PO-Revision-Date: 2014-10-18 11:48+0000\n" "PO-Revision-Date: 2014-10-18 11:48+0000\n"

View File

@ -6,7 +6,7 @@
# Joel C <theholymart1@gmail.com>, 2014 # Joel C <theholymart1@gmail.com>, 2014
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: vichan\n" "Project-Id-Version: Tinyboard\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-10-18 13:47+0200\n" "POT-Creation-Date: 2014-10-18 13:47+0200\n"
"PO-Revision-Date: 2014-10-18 11:48+0000\n" "PO-Revision-Date: 2014-10-18 11:48+0000\n"

View File

@ -5,7 +5,7 @@
# Translators: # Translators:
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: vichan\n" "Project-Id-Version: Tinyboard\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-10-18 13:47+0200\n" "POT-Creation-Date: 2014-10-18 13:47+0200\n"
"PO-Revision-Date: 2014-10-18 11:48+0000\n" "PO-Revision-Date: 2014-10-18 11:48+0000\n"

View File

@ -5,7 +5,7 @@
# Translators: # Translators:
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: vichan\n" "Project-Id-Version: Tinyboard\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-10-18 13:47+0200\n" "POT-Creation-Date: 2014-10-18 13:47+0200\n"
"PO-Revision-Date: 2014-10-18 11:48+0000\n" "PO-Revision-Date: 2014-10-18 11:48+0000\n"

View File

@ -7,7 +7,7 @@
# Vladislav Višnevskij Petersen <vladikpetersen@gmail.com>, 2014 # Vladislav Višnevskij Petersen <vladikpetersen@gmail.com>, 2014
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: vichan\n" "Project-Id-Version: Tinyboard\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-10-18 13:47+0200\n" "POT-Creation-Date: 2014-10-18 13:47+0200\n"
"PO-Revision-Date: 2014-10-18 11:48+0000\n" "PO-Revision-Date: 2014-10-18 11:48+0000\n"

View File

@ -7,7 +7,7 @@
# Vladislav Višnevskij Petersen <vladikpetersen@gmail.com>, 2014 # Vladislav Višnevskij Petersen <vladikpetersen@gmail.com>, 2014
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: vichan\n" "Project-Id-Version: Tinyboard\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-10-18 13:47+0200\n" "POT-Creation-Date: 2014-10-18 13:47+0200\n"
"PO-Revision-Date: 2014-10-18 11:48+0000\n" "PO-Revision-Date: 2014-10-18 11:48+0000\n"

View File

@ -6,7 +6,7 @@
# zzrutkjf <fgnthjrj@byom.de>, 2014 # zzrutkjf <fgnthjrj@byom.de>, 2014
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: vichan\n" "Project-Id-Version: Tinyboard\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-10-18 13:47+0200\n" "POT-Creation-Date: 2014-10-18 13:47+0200\n"
"PO-Revision-Date: 2014-10-18 11:48+0000\n" "PO-Revision-Date: 2014-10-18 11:48+0000\n"

View File

@ -6,7 +6,7 @@
# zzrutkjf <fgnthjrj@byom.de>, 2014 # zzrutkjf <fgnthjrj@byom.de>, 2014
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: vichan\n" "Project-Id-Version: Tinyboard\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-10-18 13:47+0200\n" "POT-Creation-Date: 2014-10-18 13:47+0200\n"
"PO-Revision-Date: 2014-10-18 11:48+0000\n" "PO-Revision-Date: 2014-10-18 11:48+0000\n"

View File

@ -5,7 +5,7 @@
# Translators: # Translators:
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: vichan\n" "Project-Id-Version: Tinyboard\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-10-18 13:47+0200\n" "POT-Creation-Date: 2014-10-18 13:47+0200\n"
"PO-Revision-Date: 2014-10-18 11:48+0000\n" "PO-Revision-Date: 2014-10-18 11:48+0000\n"

View File

@ -5,7 +5,7 @@
# Translators: # Translators:
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: vichan\n" "Project-Id-Version: Tinyboard\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-10-18 13:47+0200\n" "POT-Creation-Date: 2014-10-18 13:47+0200\n"
"PO-Revision-Date: 2014-10-18 11:48+0000\n" "PO-Revision-Date: 2014-10-18 11:48+0000\n"

View File

@ -6,7 +6,7 @@
# Zero <mr.nobody@paradise.net.nz>, 2014 # Zero <mr.nobody@paradise.net.nz>, 2014
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: vichan\n" "Project-Id-Version: Tinyboard\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-10-18 13:47+0200\n" "POT-Creation-Date: 2014-10-18 13:47+0200\n"
"PO-Revision-Date: 2014-10-18 11:48+0000\n" "PO-Revision-Date: 2014-10-18 11:48+0000\n"

View File

@ -6,7 +6,7 @@
# Zero <mr.nobody@paradise.net.nz>, 2014 # Zero <mr.nobody@paradise.net.nz>, 2014
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: vichan\n" "Project-Id-Version: Tinyboard\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-10-18 13:47+0200\n" "POT-Creation-Date: 2014-10-18 13:47+0200\n"
"PO-Revision-Date: 2014-10-18 11:48+0000\n" "PO-Revision-Date: 2014-10-18 11:48+0000\n"

View File

@ -7,7 +7,7 @@
# Nenia Ulo <katnoj1@gmail.com>, 2014 # Nenia Ulo <katnoj1@gmail.com>, 2014
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: vichan\n" "Project-Id-Version: Tinyboard\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-10-18 13:47+0200\n" "POT-Creation-Date: 2014-10-18 13:47+0200\n"
"PO-Revision-Date: 2014-10-18 11:48+0000\n" "PO-Revision-Date: 2014-10-18 11:48+0000\n"

View File

@ -9,7 +9,7 @@
# Vespero <stickmansamurai@gmail.com>, 2014 # Vespero <stickmansamurai@gmail.com>, 2014
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: vichan\n" "Project-Id-Version: Tinyboard\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-10-18 13:47+0200\n" "POT-Creation-Date: 2014-10-18 13:47+0200\n"
"PO-Revision-Date: 2014-10-18 11:48+0000\n" "PO-Revision-Date: 2014-10-18 11:48+0000\n"

View File

@ -7,7 +7,7 @@
# Adverso <fugido@gmail.com>, 2014 # Adverso <fugido@gmail.com>, 2014
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: vichan\n" "Project-Id-Version: Tinyboard\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-10-18 13:47+0200\n" "POT-Creation-Date: 2014-10-18 13:47+0200\n"
"PO-Revision-Date: 2014-10-18 11:48+0000\n" "PO-Revision-Date: 2014-10-18 11:48+0000\n"

View File

@ -8,7 +8,7 @@
# mgaj <mgaj@cock.li>, 2014 # mgaj <mgaj@cock.li>, 2014
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: vichan\n" "Project-Id-Version: Tinyboard\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-10-18 13:47+0200\n" "POT-Creation-Date: 2014-10-18 13:47+0200\n"
"PO-Revision-Date: 2014-10-18 11:48+0000\n" "PO-Revision-Date: 2014-10-18 11:48+0000\n"

View File

@ -6,7 +6,7 @@
# Jose Maria Radillo Villegas <sonicradillovillegas@hotmail.com>, 2014 # Jose Maria Radillo Villegas <sonicradillovillegas@hotmail.com>, 2014
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: vichan\n" "Project-Id-Version: Tinyboard\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-10-18 13:47+0200\n" "POT-Creation-Date: 2014-10-18 13:47+0200\n"
"PO-Revision-Date: 2014-10-18 11:48+0000\n" "PO-Revision-Date: 2014-10-18 11:48+0000\n"

View File

@ -6,7 +6,7 @@
# Jose Maria Radillo Villegas <sonicradillovillegas@hotmail.com>, 2014 # Jose Maria Radillo Villegas <sonicradillovillegas@hotmail.com>, 2014
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: vichan\n" "Project-Id-Version: Tinyboard\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-10-18 13:47+0200\n" "POT-Creation-Date: 2014-10-18 13:47+0200\n"
"PO-Revision-Date: 2014-10-18 11:48+0000\n" "PO-Revision-Date: 2014-10-18 11:48+0000\n"

View File

@ -6,7 +6,7 @@
# Alrahambra <inactive+Alrahambra@transifex.com>, 2014 # Alrahambra <inactive+Alrahambra@transifex.com>, 2014
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: vichan\n" "Project-Id-Version: Tinyboard\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-10-18 13:47+0200\n" "POT-Creation-Date: 2014-10-18 13:47+0200\n"
"PO-Revision-Date: 2014-10-18 11:48+0000\n" "PO-Revision-Date: 2014-10-18 11:48+0000\n"

View File

@ -6,7 +6,7 @@
# Alrahambra <inactive+Alrahambra@transifex.com>, 2014 # Alrahambra <inactive+Alrahambra@transifex.com>, 2014
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: vichan\n" "Project-Id-Version: Tinyboard\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-10-18 13:47+0200\n" "POT-Creation-Date: 2014-10-18 13:47+0200\n"
"PO-Revision-Date: 2014-10-18 11:48+0000\n" "PO-Revision-Date: 2014-10-18 11:48+0000\n"

View File

@ -7,7 +7,7 @@
# ryd <ryd@cable6.net>, 2014 # ryd <ryd@cable6.net>, 2014
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: vichan\n" "Project-Id-Version: Tinyboard\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-10-18 13:47+0200\n" "POT-Creation-Date: 2014-10-18 13:47+0200\n"
"PO-Revision-Date: 2014-10-18 11:48+0000\n" "PO-Revision-Date: 2014-10-18 11:48+0000\n"

View File

@ -8,7 +8,7 @@
# ryd <ryd@cable6.net>, 2014 # ryd <ryd@cable6.net>, 2014
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: vichan\n" "Project-Id-Version: Tinyboard\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-10-18 13:47+0200\n" "POT-Creation-Date: 2014-10-18 13:47+0200\n"
"PO-Revision-Date: 2014-10-18 11:48+0000\n" "PO-Revision-Date: 2014-10-18 11:48+0000\n"

View File

@ -6,7 +6,7 @@
# IsrChan <anon@chan.org.il>, 2014 # IsrChan <anon@chan.org.il>, 2014
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: vichan\n" "Project-Id-Version: Tinyboard\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-10-18 13:47+0200\n" "POT-Creation-Date: 2014-10-18 13:47+0200\n"
"PO-Revision-Date: 2014-10-18 11:48+0000\n" "PO-Revision-Date: 2014-10-18 11:48+0000\n"

View File

@ -6,7 +6,7 @@
# IsrChan <anon@chan.org.il>, 2014 # IsrChan <anon@chan.org.il>, 2014
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: vichan\n" "Project-Id-Version: Tinyboard\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-10-18 13:47+0200\n" "POT-Creation-Date: 2014-10-18 13:47+0200\n"
"PO-Revision-Date: 2014-10-18 11:48+0000\n" "PO-Revision-Date: 2014-10-18 11:48+0000\n"

View File

@ -7,7 +7,7 @@
# cicus, 2014 # cicus, 2014
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: vichan\n" "Project-Id-Version: Tinyboard\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-10-18 13:47+0200\n" "POT-Creation-Date: 2014-10-18 13:47+0200\n"
"PO-Revision-Date: 2014-10-18 11:48+0000\n" "PO-Revision-Date: 2014-10-18 11:48+0000\n"

View File

@ -7,7 +7,7 @@
# cicus, 2014 # cicus, 2014
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: vichan\n" "Project-Id-Version: Tinyboard\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-10-18 13:47+0200\n" "POT-Creation-Date: 2014-10-18 13:47+0200\n"
"PO-Revision-Date: 2014-10-18 11:48+0000\n" "PO-Revision-Date: 2014-10-18 11:48+0000\n"

View File

@ -7,7 +7,7 @@
# Lazy <jh.hueller@gmail.com>, 2014 # Lazy <jh.hueller@gmail.com>, 2014
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: vichan\n" "Project-Id-Version: Tinyboard\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-10-18 13:47+0200\n" "POT-Creation-Date: 2014-10-18 13:47+0200\n"
"PO-Revision-Date: 2014-10-18 11:48+0000\n" "PO-Revision-Date: 2014-10-18 11:48+0000\n"

View File

@ -10,7 +10,7 @@
# Lazy <jh.hueller@gmail.com>, 2014 # Lazy <jh.hueller@gmail.com>, 2014
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: vichan\n" "Project-Id-Version: Tinyboard\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-10-18 13:47+0200\n" "POT-Creation-Date: 2014-10-18 13:47+0200\n"
"PO-Revision-Date: 2014-10-18 11:48+0000\n" "PO-Revision-Date: 2014-10-18 11:48+0000\n"

View File

@ -7,7 +7,7 @@
# よるさん <l0laph3x@gmail.com>, 2014 # よるさん <l0laph3x@gmail.com>, 2014
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: vichan\n" "Project-Id-Version: Tinyboard\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-10-18 13:47+0200\n" "POT-Creation-Date: 2014-10-18 13:47+0200\n"
"PO-Revision-Date: 2014-10-18 11:48+0000\n" "PO-Revision-Date: 2014-10-18 11:48+0000\n"

View File

@ -8,7 +8,7 @@
# scott <taterscott@outlook.com>, 2014 # scott <taterscott@outlook.com>, 2014
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: vichan\n" "Project-Id-Version: Tinyboard\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-10-18 13:47+0200\n" "POT-Creation-Date: 2014-10-18 13:47+0200\n"
"PO-Revision-Date: 2014-10-18 11:48+0000\n" "PO-Revision-Date: 2014-10-18 11:48+0000\n"

View File

@ -6,7 +6,7 @@
# Vladislav Višnevskij Petersen <vladikpetersen@gmail.com>, 2014 # Vladislav Višnevskij Petersen <vladikpetersen@gmail.com>, 2014
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: vichan\n" "Project-Id-Version: Tinyboard\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-10-18 13:47+0200\n" "POT-Creation-Date: 2014-10-18 13:47+0200\n"
"PO-Revision-Date: 2014-10-18 11:48+0000\n" "PO-Revision-Date: 2014-10-18 11:48+0000\n"

View File

@ -5,7 +5,7 @@
# Translators: # Translators:
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: vichan\n" "Project-Id-Version: Tinyboard\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-10-18 13:47+0200\n" "POT-Creation-Date: 2014-10-18 13:47+0200\n"
"PO-Revision-Date: 2014-10-18 11:48+0000\n" "PO-Revision-Date: 2014-10-18 11:48+0000\n"

View File

@ -6,7 +6,7 @@
# banginis <asesuarbanesu@gmail.com>, 2014 # banginis <asesuarbanesu@gmail.com>, 2014
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: vichan\n" "Project-Id-Version: Tinyboard\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-10-18 13:47+0200\n" "POT-Creation-Date: 2014-10-18 13:47+0200\n"
"PO-Revision-Date: 2014-10-18 11:48+0000\n" "PO-Revision-Date: 2014-10-18 11:48+0000\n"

View File

@ -6,7 +6,7 @@
# banginis <asesuarbanesu@gmail.com>, 2014 # banginis <asesuarbanesu@gmail.com>, 2014
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: vichan\n" "Project-Id-Version: Tinyboard\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-10-18 13:47+0200\n" "POT-Creation-Date: 2014-10-18 13:47+0200\n"
"PO-Revision-Date: 2014-10-18 11:48+0000\n" "PO-Revision-Date: 2014-10-18 11:48+0000\n"

View File

@ -6,7 +6,7 @@
# diggydoc <aigryz@gmail.com>, 2014 # diggydoc <aigryz@gmail.com>, 2014
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: vichan\n" "Project-Id-Version: Tinyboard\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-10-18 13:47+0200\n" "POT-Creation-Date: 2014-10-18 13:47+0200\n"
"PO-Revision-Date: 2014-10-18 11:48+0000\n" "PO-Revision-Date: 2014-10-18 11:48+0000\n"

View File

@ -7,7 +7,7 @@
# Jānis Melnkalnietis <serdarcelk2000@gmail.com>, 2014 # Jānis Melnkalnietis <serdarcelk2000@gmail.com>, 2014
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: vichan\n" "Project-Id-Version: Tinyboard\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-10-18 13:47+0200\n" "POT-Creation-Date: 2014-10-18 13:47+0200\n"
"PO-Revision-Date: 2014-10-18 11:48+0000\n" "PO-Revision-Date: 2014-10-18 11:48+0000\n"

View File

@ -6,7 +6,7 @@
# Elendic <runar-n@hotmail.com>, 2014 # Elendic <runar-n@hotmail.com>, 2014
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: vichan\n" "Project-Id-Version: Tinyboard\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-10-18 13:47+0200\n" "POT-Creation-Date: 2014-10-18 13:47+0200\n"
"PO-Revision-Date: 2014-10-18 11:48+0000\n" "PO-Revision-Date: 2014-10-18 11:48+0000\n"

View File

@ -6,7 +6,7 @@
# Elendic <runar-n@hotmail.com>, 2014 # Elendic <runar-n@hotmail.com>, 2014
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: vichan\n" "Project-Id-Version: Tinyboard\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-10-18 13:47+0200\n" "POT-Creation-Date: 2014-10-18 13:47+0200\n"
"PO-Revision-Date: 2014-10-18 11:48+0000\n" "PO-Revision-Date: 2014-10-18 11:48+0000\n"

View File

@ -6,7 +6,7 @@
# Kanker Kanker <brent-13@live.nl>, 2014 # Kanker Kanker <brent-13@live.nl>, 2014
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: vichan\n" "Project-Id-Version: Tinyboard\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-10-18 13:47+0200\n" "POT-Creation-Date: 2014-10-18 13:47+0200\n"
"PO-Revision-Date: 2014-10-18 11:48+0000\n" "PO-Revision-Date: 2014-10-18 11:48+0000\n"

View File

@ -7,7 +7,7 @@
# Kanker Kanker <brent-13@live.nl>, 2014 # Kanker Kanker <brent-13@live.nl>, 2014
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: vichan\n" "Project-Id-Version: Tinyboard\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-10-18 13:47+0200\n" "POT-Creation-Date: 2014-10-18 13:47+0200\n"
"PO-Revision-Date: 2014-10-18 11:48+0000\n" "PO-Revision-Date: 2014-10-18 11:48+0000\n"

View File

@ -6,7 +6,7 @@
# Marcin Łabanowski <marcin@6irc.net>, 2014 # Marcin Łabanowski <marcin@6irc.net>, 2014
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: vichan\n" "Project-Id-Version: Tinyboard\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-10-18 13:47+0200\n" "POT-Creation-Date: 2014-10-18 13:47+0200\n"
"PO-Revision-Date: 2014-10-18 11:52+0000\n" "PO-Revision-Date: 2014-10-18 11:52+0000\n"

View File

@ -6,7 +6,7 @@
# Marcin Łabanowski <marcin@6irc.net>, 2014 # Marcin Łabanowski <marcin@6irc.net>, 2014
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: vichan\n" "Project-Id-Version: Tinyboard\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-10-18 13:47+0200\n" "POT-Creation-Date: 2014-10-18 13:47+0200\n"
"PO-Revision-Date: 2014-10-18 11:53+0000\n" "PO-Revision-Date: 2014-10-18 11:53+0000\n"

View File

@ -9,7 +9,7 @@
# anaodev <xmas@yopmail.com>, 2014 # anaodev <xmas@yopmail.com>, 2014
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: vichan\n" "Project-Id-Version: Tinyboard\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-10-18 13:47+0200\n" "POT-Creation-Date: 2014-10-18 13:47+0200\n"
"PO-Revision-Date: 2014-10-18 11:48+0000\n" "PO-Revision-Date: 2014-10-18 11:48+0000\n"

View File

@ -9,7 +9,7 @@
# anaodev <xmas@yopmail.com>, 2014 # anaodev <xmas@yopmail.com>, 2014
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: vichan\n" "Project-Id-Version: Tinyboard\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-10-18 13:47+0200\n" "POT-Creation-Date: 2014-10-18 13:47+0200\n"
"PO-Revision-Date: 2014-10-18 11:48+0000\n" "PO-Revision-Date: 2014-10-18 11:48+0000\n"

View File

@ -6,7 +6,7 @@
# Rafael <spamy@sapo.pt>, 2014 # Rafael <spamy@sapo.pt>, 2014
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: vichan\n" "Project-Id-Version: Tinyboard\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-10-18 13:47+0200\n" "POT-Creation-Date: 2014-10-18 13:47+0200\n"
"PO-Revision-Date: 2014-10-18 11:48+0000\n" "PO-Revision-Date: 2014-10-18 11:48+0000\n"

View File

@ -6,7 +6,7 @@
# Rafael <spamy@sapo.pt>, 2014 # Rafael <spamy@sapo.pt>, 2014
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: vichan\n" "Project-Id-Version: Tinyboard\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-10-18 13:47+0200\n" "POT-Creation-Date: 2014-10-18 13:47+0200\n"
"PO-Revision-Date: 2014-10-18 11:48+0000\n" "PO-Revision-Date: 2014-10-18 11:48+0000\n"

View File

@ -8,7 +8,7 @@
# Zhargal Sambuev <hello@sambuev.com>, 2014 # Zhargal Sambuev <hello@sambuev.com>, 2014
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: vichan\n" "Project-Id-Version: Tinyboard\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-10-18 13:47+0200\n" "POT-Creation-Date: 2014-10-18 13:47+0200\n"
"PO-Revision-Date: 2014-10-18 11:48+0000\n" "PO-Revision-Date: 2014-10-18 11:48+0000\n"

View File

@ -11,7 +11,7 @@
# Zhargal Sambuev <hello@sambuev.com>, 2014 # Zhargal Sambuev <hello@sambuev.com>, 2014
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: vichan\n" "Project-Id-Version: Tinyboard\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-10-18 13:47+0200\n" "POT-Creation-Date: 2014-10-18 13:47+0200\n"
"PO-Revision-Date: 2014-10-18 11:48+0000\n" "PO-Revision-Date: 2014-10-18 11:48+0000\n"

View File

@ -6,7 +6,7 @@
# dubcheck <admin@alokal.eu>, 2014 # dubcheck <admin@alokal.eu>, 2014
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: vichan\n" "Project-Id-Version: Tinyboard\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-10-18 13:47+0200\n" "POT-Creation-Date: 2014-10-18 13:47+0200\n"
"PO-Revision-Date: 2014-10-18 11:48+0000\n" "PO-Revision-Date: 2014-10-18 11:48+0000\n"

View File

@ -6,7 +6,7 @@
# dubcheck <admin@alokal.eu>, 2014 # dubcheck <admin@alokal.eu>, 2014
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: vichan\n" "Project-Id-Version: Tinyboard\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-10-18 13:47+0200\n" "POT-Creation-Date: 2014-10-18 13:47+0200\n"
"PO-Revision-Date: 2014-10-18 11:48+0000\n" "PO-Revision-Date: 2014-10-18 11:48+0000\n"

View File

@ -6,7 +6,7 @@
# Henning Bollmark <hammerandcykel@gmail.com>, 2014 # Henning Bollmark <hammerandcykel@gmail.com>, 2014
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: vichan\n" "Project-Id-Version: Tinyboard\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-10-18 13:47+0200\n" "POT-Creation-Date: 2014-10-18 13:47+0200\n"
"PO-Revision-Date: 2014-10-18 11:48+0000\n" "PO-Revision-Date: 2014-10-18 11:48+0000\n"

View File

@ -5,7 +5,7 @@
# Translators: # Translators:
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: vichan\n" "Project-Id-Version: Tinyboard\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-10-18 13:47+0200\n" "POT-Creation-Date: 2014-10-18 13:47+0200\n"
"PO-Revision-Date: 2014-10-18 11:48+0000\n" "PO-Revision-Date: 2014-10-18 11:48+0000\n"

View File

@ -6,7 +6,7 @@
# Tunai <tunayuyar39@gmail.com>, 2014 # Tunai <tunayuyar39@gmail.com>, 2014
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: vichan\n" "Project-Id-Version: Tinyboard\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-10-18 13:47+0200\n" "POT-Creation-Date: 2014-10-18 13:47+0200\n"
"PO-Revision-Date: 2014-10-18 11:48+0000\n" "PO-Revision-Date: 2014-10-18 11:48+0000\n"

View File

@ -6,7 +6,7 @@
# Tunai <tunayuyar39@gmail.com>, 2014 # Tunai <tunayuyar39@gmail.com>, 2014
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: vichan\n" "Project-Id-Version: Tinyboard\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-10-18 13:47+0200\n" "POT-Creation-Date: 2014-10-18 13:47+0200\n"
"PO-Revision-Date: 2014-10-18 11:48+0000\n" "PO-Revision-Date: 2014-10-18 11:48+0000\n"

View File

@ -6,7 +6,7 @@
# Nicholas Chen <planetzstore@gmail.com>, 2014 # Nicholas Chen <planetzstore@gmail.com>, 2014
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: vichan\n" "Project-Id-Version: Tinyboard\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-10-18 13:47+0200\n" "POT-Creation-Date: 2014-10-18 13:47+0200\n"
"PO-Revision-Date: 2014-10-18 11:48+0000\n" "PO-Revision-Date: 2014-10-18 11:48+0000\n"

View File

@ -6,7 +6,7 @@
# Nicholas Chen <planetzstore@gmail.com>, 2014 # Nicholas Chen <planetzstore@gmail.com>, 2014
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: vichan\n" "Project-Id-Version: Tinyboard\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-10-18 13:47+0200\n" "POT-Creation-Date: 2014-10-18 13:47+0200\n"
"PO-Revision-Date: 2014-10-18 11:48+0000\n" "PO-Revision-Date: 2014-10-18 11:48+0000\n"

View File

@ -5,7 +5,7 @@
# Translators: # Translators:
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: vichan\n" "Project-Id-Version: Tinyboard\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-10-18 13:47+0200\n" "POT-Creation-Date: 2014-10-18 13:47+0200\n"
"PO-Revision-Date: 2014-10-18 11:48+0000\n" "PO-Revision-Date: 2014-10-18 11:48+0000\n"

View File

@ -6,7 +6,7 @@
# kennyl <me@kennyforge.com>, 2014 # kennyl <me@kennyforge.com>, 2014
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: vichan\n" "Project-Id-Version: Tinyboard\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-10-18 13:47+0200\n" "POT-Creation-Date: 2014-10-18 13:47+0200\n"
"PO-Revision-Date: 2014-10-18 11:48+0000\n" "PO-Revision-Date: 2014-10-18 11:48+0000\n"

View File

@ -1,7 +1,7 @@
<?php <?php
/* /*
* Copyright (c) 2010-2019 Tinyboard Development Group * Copyright (c) 2010-2021 Tinyboard Development Group
*/ */
defined('TINYBOARD') or exit; defined('TINYBOARD') or exit;
@ -2423,7 +2423,7 @@ function mod_config($board_config = false) {
foreach ($var['name'] as $n) foreach ($var['name'] as $n)
$c = &$c[$n]; $c = &$c[$n];
} else { } else {
$c = @$config[$var['name']]; $c = array_key_exists($var['name'], $config) ? $config[$var['name']] : null;
} }
$var['value'] = $c; $var['value'] = $c;

View File

@ -1,7 +1,7 @@
<?php <?php
// Installation/upgrade file // Installation/upgrade file
define('VERSION', 'v0.10.2'); define('VERSION', 'v0.11.0');
require 'inc/functions.php'; require 'inc/functions.php';
loadConfig(); loadConfig();
@ -45,7 +45,7 @@ if (file_exists($config['has_installed'])) {
// Check the version number // Check the version number
$version = trim(file_get_contents($config['has_installed'])); $version = trim(file_get_contents($config['has_installed']));
if (empty($version)) if (empty($version))
$version = '4.9.90'; $version = '5.0.0';
function __query($sql) { function __query($sql) {
sql_open(); sql_open();
@ -56,14 +56,6 @@ if (file_exists($config['has_installed'])) {
$boards = listBoards(); $boards = listBoards();
switch ($version) { switch ($version) {
case '4.9.90':
case '4.9.91':
case '4.9.92':
foreach ($boards as &$board)
query(sprintf('ALTER TABLE ``posts_%s`` ADD `slug` VARCHAR(255) DEFAULT NULL AFTER `embed`;', $board['uri'])) or error(db_error());
case '4.9.93':
query('ALTER TABLE ``mods`` CHANGE `password` `password` VARCHAR(255) NOT NULL;') or error(db_error());
query('ALTER TABLE ``mods`` CHANGE `salt` `salt` VARCHAR(64) NOT NULL;') or error(db_error());
case '5.0.0': case '5.0.0':
query('ALTER TABLE ``mods`` CHANGE `salt` `version` VARCHAR(64) NOT NULL;') or error(db_error()); query('ALTER TABLE ``mods`` CHANGE `salt` `version` VARCHAR(64) NOT NULL;') or error(db_error());
case '5.0.1': case '5.0.1':
@ -99,9 +91,19 @@ if (file_exists($config['has_installed'])) {
case 'v0.10.1': case 'v0.10.1':
// Replaced GeoIP dependency with official leaner version (this removed a lot of unnecessary dependencies) // Replaced GeoIP dependency with official leaner version (this removed a lot of unnecessary dependencies)
// Add APCu and Memcached support // Add APCu and Memcached support
// APC will be deprecated in v0.11 or another future version as it is no longer maintained // APC will be deprecated in v0.11 or another future version as it is no longer maintained (?)
// Updated composer.json and install.php to reflect current dependencies // Updated composer.json and install.php to reflect current dependencies
// Upgrade support from vichan 4.x is planned to be removed in v0.11 or another future version // Upgrade support from vichan 4.x is planned to be removed in v0.11 or another future version
case 'v0.10.2':
// PHP 8 support! Bugs may lurk under the surface, please report any that appear
// Updated several dependencies via Composer. For a smooth PHP 8 experience, use the latest release of Composer
// Run `composer install` in your shell to utilize the newer dependencies!
// Fixed a "bug" that prevented users from making reports on posts. reCAPTCHA support for the report forms will be fixed at a later time
// Updated copyright years for modified files
// Fixed a Twig template that was causing an error that spit out so much text it crashed my web browser (ouch!)
// Fixed access to debug pages so you can actually access them when $config['debug'] == true
// Upgrade support from vichan is planned to be removed in v0.12, removed upgrade support from 4.x already
// Updated locale metadata
case false: case false:
query("CREATE TABLE IF NOT EXISTS ``search_queries`` ( `ip` varchar(39) NOT NULL, `time` int(11) NOT NULL, `query` text NOT NULL) ENGINE=MyISAM DEFAULT CHARSET=utf8;") or error(db_error()); query("CREATE TABLE IF NOT EXISTS ``search_queries`` ( `ip` varchar(39) NOT NULL, `time` int(11) NOT NULL, `query` text NOT NULL) ENGINE=MyISAM DEFAULT CHARSET=utf8;") or error(db_error());

37
mod.php
View File

@ -1,7 +1,7 @@
<?php <?php
/* /*
* Copyright (c) 2010-2019 Tinyboard Development Group * Copyright (c) 2010-2021 Tinyboard Development Group
*/ */
require 'inc/functions.php'; require 'inc/functions.php';
@ -16,7 +16,7 @@ check_login(true);
$query = isset($_SERVER['QUERY_STRING']) ? rawurldecode($_SERVER['QUERY_STRING']) : ''; $query = isset($_SERVER['QUERY_STRING']) ? rawurldecode($_SERVER['QUERY_STRING']) : '';
$pages = array( $pages = [
'' => ':?/', // redirect to dashboard '' => ':?/', // redirect to dashboard
'/' => 'dashboard', // dashboard '/' => 'dashboard', // dashboard
'/confirm/(.+)' => 'confirm', // confirm action (if javascript didn't work) '/confirm/(.+)' => 'confirm', // confirm action (if javascript didn't work)
@ -92,12 +92,6 @@ $pages = array(
'/config' => 'secure_POST config', // config editor '/config' => 'secure_POST config', // config editor
'/config/(\%b)' => 'secure_POST config', // config editor '/config/(\%b)' => 'secure_POST config', // config editor
// these pages aren't listed in the dashboard without $config['debug']
//'/debug/antispam' => 'debug_antispam',
//'/debug/recent' => 'debug_recent_posts',
//'/debug/apc' => 'debug_apc',
//'/debug/sql' => 'secure_POST debug_sql',
// This should always be at the end: // This should always be at the end:
'/(\%b)/' => 'view_board', '/(\%b)/' => 'view_board',
'/(\%b)/' . preg_quote($config['file_index'], '!') => 'view_board', '/(\%b)/' . preg_quote($config['file_index'], '!') => 'view_board',
@ -111,7 +105,17 @@ $pages = array(
str_replace(array('%d','%s'), array('(\d+)', '[a-z0-9-]+'), preg_quote($config['file_page50_slug'], '!')) => 'view_thread50', str_replace(array('%d','%s'), array('(\d+)', '[a-z0-9-]+'), preg_quote($config['file_page50_slug'], '!')) => 'view_thread50',
'/(\%b)/' . preg_quote($config['dir']['res'], '!') . '/(\%b)/' . preg_quote($config['dir']['res'], '!') .
str_replace(array('%d','%s'), array('(\d+)', '[a-z0-9-]+'), preg_quote($config['file_page_slug'], '!')) => 'view_thread', str_replace(array('%d','%s'), array('(\d+)', '[a-z0-9-]+'), preg_quote($config['file_page_slug'], '!')) => 'view_thread',
); ];
// these pages aren't listed in the dashboard without $config['debug']
if ($config['debug']) {
$pages = array_merge_recursive($pages, [
'/debug/antispam' => 'debug_antispam',
'/debug/recent' => 'debug_recent_posts',
'/debug/apc' => 'debug_apc',
'/debug/sql' => 'secure_POST debug_sql',
]);
}
if (!$mod) { if (!$mod) {
@ -130,7 +134,7 @@ foreach ($pages as $key => $callback) {
if (is_string($callback) && preg_match('/^secure /', $callback)) if (is_string($callback) && preg_match('/^secure /', $callback))
$key .= '(/(?P<token>[a-f0-9]{8}))?'; $key .= '(/(?P<token>[a-f0-9]{8}))?';
$key = str_replace('\%b', '?P<board>' . sprintf(substr($config['board_path'], 0, -1), $config['board_regex']), $key); $key = str_replace('\%b', '?P<board>' . sprintf(substr($config['board_path'], 0, -1), $config['board_regex']), $key);
$new_pages[@$key[0] == '!' ? $key : '!^' . $key . '(?:&[^&=]+=[^&]*)*$!u'] = $callback; $new_pages[strpos($key, '!') === 0 ? $key : '!^' . $key . '(?:&[^&=]+=[^&]*)*$!u'] = $callback;
} }
$pages = $new_pages; $pages = $new_pages;
@ -150,12 +154,15 @@ foreach ($pages as $uri => $handler) {
if (is_string($handler) && preg_match('/^secure(_POST)? /', $handler, $m)) { if (is_string($handler) && preg_match('/^secure(_POST)? /', $handler, $m)) {
$secure_post_only = isset($m[1]); $secure_post_only = isset($m[1]);
if (!$secure_post_only || $_SERVER['REQUEST_METHOD'] == 'POST') { if (!$secure_post_only || $_SERVER['REQUEST_METHOD'] == 'POST') {
$token = isset($matches['token']) ? $matches['token'] : (isset($_POST['token']) ? $_POST['token'] : false); if (isset($matches['token'])) {
$token = $matches['token'];
if ($token === false) { unset($matches['token']);
if ($secure_post_only) } elseif (isset($_POST['token'])) {
$token = $_POST['token'];
} else {
if ($secure_post_only) {
error($config['error']['csrf']); error($config['error']['csrf']);
else { } else {
mod_confirm(substr($query, 1)); mod_confirm(substr($query, 1));
exit; exit;
} }

View File

@ -132,7 +132,8 @@ if (isset($_POST['delete'])) {
if (count($report) > $config['report_limit']) if (count($report) > $config['report_limit'])
error($config['error']['toomanyreports']); error($config['error']['toomanyreports']);
if ($config['recaptcha']) { // Disabled since there is currently no reCAPTCHA for the report form. This will be fixed in a future update.
/*if ($config['recaptcha']) {
if (!isset($_POST['g-recaptcha-response'])) if (!isset($_POST['g-recaptcha-response']))
error($config['error']['bot']); error($config['error']['bot']);
@ -144,7 +145,7 @@ if (isset($_POST['delete'])) {
if (!$resp['success']) if (!$resp['success'])
error($config['error']['captcha']); error($config['error']['captcha']);
} }*/
$reason = escape_markup_modifiers($_POST['reason']); $reason = escape_markup_modifiers($_POST['reason']);
markup($reason); markup($reason);

View File

@ -6,7 +6,7 @@
{% if board %} {% if board %}
<li><a href="?/config">Edit site-wide config</a></li> <li><a href="?/config">Edit site-wide config</a></li>
{% endif %} {% endif %}
{% for _board in boards if _board.uri != board %} {% for _board in boards|filter(_board => _board.uri != board) %}
<li> <li>
<a href="?/config/{{ _board.uri }}">Edit config for {{ config.board_abbreviation|format(_board.uri) }}</a> <a href="?/config/{{ _board.uri }}">Edit config for {{ config.board_abbreviation|format(_board.uri) }}</a>
</li> </li>
@ -22,7 +22,7 @@
<th class="minimal">{% trans 'Type' %}</th> <th class="minimal">{% trans 'Type' %}</th>
<th>{% trans 'Description' %}</th> <th>{% trans 'Description' %}</th>
</tr> </tr>
{% for var in conf if var.type != 'array' %} {% for var in conf|filter(var => var.type != 'array') %}
{% if var.name|length == 1 %} {% if var.name|length == 1 %}
{% set name = 'cf_' ~ var.name %} {% set name = 'cf_' ~ var.name %}
{% else %} {% else %}