diff --git a/.forgejo/workflows/lint.yaml b/.forgejo/workflows/phplint.yaml
similarity index 100%
rename from .forgejo/workflows/lint.yaml
rename to .forgejo/workflows/phplint.yaml
diff --git a/.gitignore b/.gitignore
index 0f521b3..57872d0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1 @@
/vendor/
-
-sftp.json
\ No newline at end of file
diff --git a/.htaccess b/.htaccess
new file mode 100644
index 0000000..094dd6c
--- /dev/null
+++ b/.htaccess
@@ -0,0 +1,6 @@
+
+RewriteEngine On
+RewriteBase /
+
+RewriteCond %{REQUEST_URI} !^/?static/.*
+RewriteRule (.*) router.php
diff --git a/composer.json b/composer.json
new file mode 100644
index 0000000..6130261
--- /dev/null
+++ b/composer.json
@@ -0,0 +1,7 @@
+{
+ "require": {
+ "twig/twig": "^3.0",
+ "twig/markdown-extra": "^3.6",
+ "league/commonmark": "^2.4"
+ }
+}
diff --git a/www/composer.lock b/composer.lock
similarity index 51%
rename from www/composer.lock
rename to composer.lock
index c157e3a..b8538ec 100644
--- a/www/composer.lock
+++ b/composer.lock
@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
- "content-hash": "34ef4bdab7508bbe6f60a1a56e33d08c",
+ "content-hash": "785c1dec442cd0287ada9cb48a31d45c",
"packages": [
{
"name": "dflydev/dot-access-data",
@@ -81,454 +81,18 @@
},
"time": "2022-10-27T11:44:00+00:00"
},
- {
- "name": "erusev/parsedown",
- "version": "1.7.4",
- "source": {
- "type": "git",
- "url": "https://github.com/erusev/parsedown.git",
- "reference": "cb17b6477dfff935958ba01325f2e8a2bfa6dab3"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/erusev/parsedown/zipball/cb17b6477dfff935958ba01325f2e8a2bfa6dab3",
- "reference": "cb17b6477dfff935958ba01325f2e8a2bfa6dab3",
- "shasum": ""
- },
- "require": {
- "ext-mbstring": "*",
- "php": ">=5.3.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.8.35"
- },
- "type": "library",
- "autoload": {
- "psr-0": {
- "Parsedown": ""
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Emanuil Rusev",
- "email": "hello@erusev.com",
- "homepage": "http://erusev.com"
- }
- ],
- "description": "Parser for Markdown.",
- "homepage": "http://parsedown.org",
- "keywords": [
- "markdown",
- "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"
- },
- {
- "name": "erusev/parsedown-extra",
- "version": "0.8.1",
- "source": {
- "type": "git",
- "url": "https://github.com/erusev/parsedown-extra.git",
- "reference": "91ac3ff98f0cea243bdccc688df43810f044dcef"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/erusev/parsedown-extra/zipball/91ac3ff98f0cea243bdccc688df43810f044dcef",
- "reference": "91ac3ff98f0cea243bdccc688df43810f044dcef",
- "shasum": ""
- },
- "require": {
- "erusev/parsedown": "^1.7.4"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.8.35"
- },
- "type": "library",
- "autoload": {
- "psr-0": {
- "ParsedownExtra": ""
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Emanuil Rusev",
- "email": "hello@erusev.com",
- "homepage": "http://erusev.com"
- }
- ],
- "description": "An extension of Parsedown that adds support for Markdown Extra.",
- "homepage": "https://github.com/erusev/parsedown-extra",
- "keywords": [
- "markdown",
- "markdown extra",
- "parsedown",
- "parser"
- ],
- "support": {
- "issues": "https://github.com/erusev/parsedown-extra/issues",
- "source": "https://github.com/erusev/parsedown-extra/tree/0.8.x"
- },
- "time": "2019-12-30T23:20:37+00:00"
- },
- {
- "name": "laminas/laminas-escaper",
- "version": "2.13.0",
- "source": {
- "type": "git",
- "url": "https://github.com/laminas/laminas-escaper.git",
- "reference": "af459883f4018d0f8a0c69c7a209daef3bf973ba"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/laminas/laminas-escaper/zipball/af459883f4018d0f8a0c69c7a209daef3bf973ba",
- "reference": "af459883f4018d0f8a0c69c7a209daef3bf973ba",
- "shasum": ""
- },
- "require": {
- "ext-ctype": "*",
- "ext-mbstring": "*",
- "php": "~8.1.0 || ~8.2.0 || ~8.3.0"
- },
- "conflict": {
- "zendframework/zend-escaper": "*"
- },
- "require-dev": {
- "infection/infection": "^0.27.0",
- "laminas/laminas-coding-standard": "~2.5.0",
- "maglnet/composer-require-checker": "^3.8.0",
- "phpunit/phpunit": "^9.6.7",
- "psalm/plugin-phpunit": "^0.18.4",
- "vimeo/psalm": "^5.9"
- },
- "type": "library",
- "autoload": {
- "psr-4": {
- "Laminas\\Escaper\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "description": "Securely and safely escape HTML, HTML attributes, JavaScript, CSS, and URLs",
- "homepage": "https://laminas.dev",
- "keywords": [
- "escaper",
- "laminas"
- ],
- "support": {
- "chat": "https://laminas.dev/chat",
- "docs": "https://docs.laminas.dev/laminas-escaper/",
- "forum": "https://discourse.laminas.dev",
- "issues": "https://github.com/laminas/laminas-escaper/issues",
- "rss": "https://github.com/laminas/laminas-escaper/releases.atom",
- "source": "https://github.com/laminas/laminas-escaper"
- },
- "funding": [
- {
- "url": "https://funding.communitybridge.org/projects/laminas-project",
- "type": "community_bridge"
- }
- ],
- "time": "2023-10-10T08:35:13+00:00"
- },
- {
- "name": "laminas/laminas-feed",
- "version": "2.6.0",
- "source": {
- "type": "git",
- "url": "https://github.com/laminas/laminas-feed.git",
- "reference": "c1594cb32b117d3b409d4beee12c724cb26daa71"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/laminas/laminas-feed/zipball/c1594cb32b117d3b409d4beee12c724cb26daa71",
- "reference": "c1594cb32b117d3b409d4beee12c724cb26daa71",
- "shasum": ""
- },
- "require": {
- "laminas/laminas-escaper": "~2.5",
- "laminas/laminas-stdlib": "~2.5",
- "laminas/laminas-zendframework-bridge": "^1.0",
- "php": ">=5.5"
- },
- "replace": {
- "zendframework/zend-feed": "self.version"
- },
- "require-dev": {
- "fabpot/php-cs-fixer": "1.7.*",
- "laminas/laminas-cache": "~2.5",
- "laminas/laminas-db": "~2.5",
- "laminas/laminas-http": "~2.5",
- "laminas/laminas-validator": "~2.5",
- "phpunit/phpunit": "~4.0",
- "psr/http-message": "^1.0"
- },
- "suggest": {
- "laminas/laminas-cache": "Laminas\\Cache component, for optionally caching feeds between requests",
- "laminas/laminas-db": "Laminas\\Db component, for use with PubSubHubbub",
- "laminas/laminas-http": "Laminas\\Http for PubSubHubbub, and optionally for use with Laminas\\Feed\\Reader",
- "laminas/laminas-servicemanager": "Laminas\\ServiceManager component, for easily extending ExtensionManager implementations",
- "laminas/laminas-validator": "Laminas\\Validator component, for validating feeds and Atom entries in the Writer subcomponent",
- "psr/http-message": "PSR-7 ^1.0, if you wish to use Laminas\\Feed\\Reader\\Http\\Psr7ResponseDecorator"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.6-dev",
- "dev-develop": "2.7-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Laminas\\Feed\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "description": "provides functionality for consuming RSS and Atom feeds",
- "homepage": "https://laminas.dev",
- "keywords": [
- "feed",
- "laminas"
- ],
- "support": {
- "chat": "https://laminas.dev/chat",
- "docs": "https://docs.laminas.dev/laminas-feed/",
- "forum": "https://discourse.laminas.dev",
- "issues": "https://github.com/laminas/laminas-feed/issues",
- "rss": "https://github.com/laminas/laminas-feed/releases.atom",
- "source": "https://github.com/laminas/laminas-feed"
- },
- "time": "2019-12-31T16:50:31+00:00"
- },
- {
- "name": "laminas/laminas-hydrator",
- "version": "1.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/laminas/laminas-hydrator.git",
- "reference": "acab29a3327a70be0a653d88906655b15de15517"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/laminas/laminas-hydrator/zipball/acab29a3327a70be0a653d88906655b15de15517",
- "reference": "acab29a3327a70be0a653d88906655b15de15517",
- "shasum": ""
- },
- "require": {
- "laminas/laminas-stdlib": "^2.5.1",
- "laminas/laminas-zendframework-bridge": "^1.0",
- "php": ">=5.5"
- },
- "replace": {
- "zendframework/zend-hydrator": "self.version"
- },
- "require-dev": {
- "laminas/laminas-eventmanager": "^2.5.1",
- "laminas/laminas-filter": "^2.5.1",
- "laminas/laminas-inputfilter": "^2.5.1",
- "laminas/laminas-serializer": "^2.5.1",
- "laminas/laminas-servicemanager": "^2.5.1",
- "phpunit/phpunit": "~4.0",
- "squizlabs/php_codesniffer": "^2.0@dev"
- },
- "suggest": {
- "laminas/laminas-eventmanager": "^2.5.1, to support aggregate hydrator usage",
- "laminas/laminas-filter": "^2.5.1, to support naming strategy hydrator usage",
- "laminas/laminas-serializer": "^2.5.1, to use the SerializableStrategy",
- "laminas/laminas-servicemanager": "^2.5.1, to support hydrator plugin manager usage"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0-dev",
- "dev-develop": "1.1-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Laminas\\Hydrator\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "homepage": "https://laminas.dev",
- "keywords": [
- "hydrator",
- "laminas"
- ],
- "support": {
- "chat": "https://laminas.dev/chat",
- "docs": "https://docs.laminas.dev/laminas-hydrator/",
- "forum": "https://discourse.laminas.dev",
- "issues": "https://github.com/laminas/laminas-hydrator/issues",
- "rss": "https://github.com/laminas/laminas-hydrator/releases.atom",
- "source": "https://github.com/laminas/laminas-hydrator"
- },
- "time": "2019-12-31T17:06:20+00:00"
- },
- {
- "name": "laminas/laminas-stdlib",
- "version": "2.7.4",
- "source": {
- "type": "git",
- "url": "https://github.com/laminas/laminas-stdlib.git",
- "reference": "b69e2741673daabdf720bc76668448ceb1e4c537"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/laminas/laminas-stdlib/zipball/b69e2741673daabdf720bc76668448ceb1e4c537",
- "reference": "b69e2741673daabdf720bc76668448ceb1e4c537",
- "shasum": ""
- },
- "require": {
- "laminas/laminas-hydrator": "~1.0",
- "laminas/laminas-zendframework-bridge": "^1.0",
- "php": ">=5.5"
- },
- "replace": {
- "zendframework/zend-stdlib": "self.version"
- },
- "require-dev": {
- "athletic/athletic": "~0.1",
- "fabpot/php-cs-fixer": "1.7.*",
- "laminas/laminas-config": "~2.5",
- "laminas/laminas-eventmanager": "~2.5",
- "laminas/laminas-filter": "~2.5",
- "laminas/laminas-inputfilter": "~2.5",
- "laminas/laminas-serializer": "~2.5",
- "laminas/laminas-servicemanager": "~2.5",
- "phpunit/phpunit": "~4.0"
- },
- "suggest": {
- "laminas/laminas-eventmanager": "To support aggregate hydrator usage",
- "laminas/laminas-filter": "To support naming strategy hydrator usage",
- "laminas/laminas-serializer": "Laminas\\Serializer component",
- "laminas/laminas-servicemanager": "To support hydrator plugin manager usage"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.7-dev",
- "dev-develop": "2.8-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Laminas\\Stdlib\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "homepage": "https://laminas.dev",
- "keywords": [
- "laminas",
- "stdlib"
- ],
- "support": {
- "chat": "https://laminas.dev/chat",
- "docs": "https://docs.laminas.dev/laminas-stdlib/",
- "forum": "https://discourse.laminas.dev",
- "issues": "https://github.com/laminas/laminas-stdlib/issues",
- "rss": "https://github.com/laminas/laminas-stdlib/releases.atom",
- "source": "https://github.com/laminas/laminas-stdlib"
- },
- "time": "2019-12-31T17:51:00+00:00"
- },
- {
- "name": "laminas/laminas-zendframework-bridge",
- "version": "1.8.0",
- "source": {
- "type": "git",
- "url": "https://github.com/laminas/laminas-zendframework-bridge.git",
- "reference": "eb0d96c708b92177a92bc2239543d3ed523452c6"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/laminas/laminas-zendframework-bridge/zipball/eb0d96c708b92177a92bc2239543d3ed523452c6",
- "reference": "eb0d96c708b92177a92bc2239543d3ed523452c6",
- "shasum": ""
- },
- "require": {
- "php": "~8.1.0 || ~8.2.0 || ~8.3.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^10.4",
- "psalm/plugin-phpunit": "^0.18.0",
- "squizlabs/php_codesniffer": "^3.7.1",
- "vimeo/psalm": "^5.16.0"
- },
- "type": "library",
- "extra": {
- "laminas": {
- "module": "Laminas\\ZendFrameworkBridge"
- }
- },
- "autoload": {
- "files": [
- "src/autoload.php"
- ],
- "psr-4": {
- "Laminas\\ZendFrameworkBridge\\": "src//"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "description": "Alias legacy ZF class names to Laminas Project equivalents.",
- "keywords": [
- "ZendFramework",
- "autoloading",
- "laminas",
- "zf"
- ],
- "support": {
- "forum": "https://discourse.laminas.dev/",
- "issues": "https://github.com/laminas/laminas-zendframework-bridge/issues",
- "rss": "https://github.com/laminas/laminas-zendframework-bridge/releases.atom",
- "source": "https://github.com/laminas/laminas-zendframework-bridge"
- },
- "funding": [
- {
- "url": "https://funding.communitybridge.org/projects/laminas-project",
- "type": "community_bridge"
- }
- ],
- "abandoned": true,
- "time": "2023-11-24T13:56:19+00:00"
- },
{
"name": "league/commonmark",
- "version": "2.4.1",
+ "version": "2.4.0",
"source": {
"type": "git",
"url": "https://github.com/thephpleague/commonmark.git",
- "reference": "3669d6d5f7a47a93c08ddff335e6d945481a1dd5"
+ "reference": "d44a24690f16b8c1808bf13b1bd54ae4c63ea048"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/thephpleague/commonmark/zipball/3669d6d5f7a47a93c08ddff335e6d945481a1dd5",
- "reference": "3669d6d5f7a47a93c08ddff335e6d945481a1dd5",
+ "url": "https://api.github.com/repos/thephpleague/commonmark/zipball/d44a24690f16b8c1808bf13b1bd54ae4c63ea048",
+ "reference": "d44a24690f16b8c1808bf13b1bd54ae4c63ea048",
"shasum": ""
},
"require": {
@@ -621,7 +185,7 @@
"type": "tidelift"
}
],
- "time": "2023-08-30T16:55:00+00:00"
+ "time": "2023-03-24T15:16:10+00:00"
},
{
"name": "league/config",
@@ -707,21 +271,21 @@
},
{
"name": "nette/schema",
- "version": "v1.2.5",
+ "version": "v1.2.3",
"source": {
"type": "git",
"url": "https://github.com/nette/schema.git",
- "reference": "0462f0166e823aad657c9224d0f849ecac1ba10a"
+ "reference": "abbdbb70e0245d5f3bf77874cea1dfb0c930d06f"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/nette/schema/zipball/0462f0166e823aad657c9224d0f849ecac1ba10a",
- "reference": "0462f0166e823aad657c9224d0f849ecac1ba10a",
+ "url": "https://api.github.com/repos/nette/schema/zipball/abbdbb70e0245d5f3bf77874cea1dfb0c930d06f",
+ "reference": "abbdbb70e0245d5f3bf77874cea1dfb0c930d06f",
"shasum": ""
},
"require": {
"nette/utils": "^2.5.7 || ^3.1.5 || ^4.0",
- "php": "7.1 - 8.3"
+ "php": ">=7.1 <8.3"
},
"require-dev": {
"nette/tester": "^2.3 || ^2.4",
@@ -763,36 +327,35 @@
],
"support": {
"issues": "https://github.com/nette/schema/issues",
- "source": "https://github.com/nette/schema/tree/v1.2.5"
+ "source": "https://github.com/nette/schema/tree/v1.2.3"
},
- "time": "2023-10-05T20:37:59+00:00"
+ "time": "2022-10-13T01:24:26+00:00"
},
{
"name": "nette/utils",
- "version": "v4.0.3",
+ "version": "v3.2.9",
"source": {
"type": "git",
"url": "https://github.com/nette/utils.git",
- "reference": "a9d127dd6a203ce6d255b2e2db49759f7506e015"
+ "reference": "c91bac3470c34b2ecd5400f6e6fdf0b64a836a5c"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/nette/utils/zipball/a9d127dd6a203ce6d255b2e2db49759f7506e015",
- "reference": "a9d127dd6a203ce6d255b2e2db49759f7506e015",
+ "url": "https://api.github.com/repos/nette/utils/zipball/c91bac3470c34b2ecd5400f6e6fdf0b64a836a5c",
+ "reference": "c91bac3470c34b2ecd5400f6e6fdf0b64a836a5c",
"shasum": ""
},
"require": {
- "php": ">=8.0 <8.4"
+ "php": ">=7.2 <8.3"
},
"conflict": {
- "nette/finder": "<3",
- "nette/schema": "<1.2.2"
+ "nette/di": "<3.0.6"
},
"require-dev": {
"jetbrains/phpstorm-attributes": "dev-master",
- "nette/tester": "^2.5",
+ "nette/tester": "~2.0",
"phpstan/phpstan": "^1.0",
- "tracy/tracy": "^2.9"
+ "tracy/tracy": "^2.3"
},
"suggest": {
"ext-gd": "to use Image",
@@ -800,12 +363,13 @@
"ext-intl": "to use Strings::webalize(), toAscii(), normalize() and compare()",
"ext-json": "to use Nette\\Utils\\Json",
"ext-mbstring": "to use Strings::lower() etc...",
- "ext-tokenizer": "to use Nette\\Utils\\Reflection::getUseStatements()"
+ "ext-tokenizer": "to use Nette\\Utils\\Reflection::getUseStatements()",
+ "ext-xml": "to use Strings::length() etc. when mbstring is not available"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "4.0-dev"
+ "dev-master": "3.2-dev"
}
},
"autoload": {
@@ -849,9 +413,9 @@
],
"support": {
"issues": "https://github.com/nette/utils/issues",
- "source": "https://github.com/nette/utils/tree/v4.0.3"
+ "source": "https://github.com/nette/utils/tree/v3.2.9"
},
- "time": "2023-10-29T21:02:13+00:00"
+ "time": "2023-01-18T03:26:20+00:00"
},
{
"name": "psr/event-dispatcher",
@@ -903,167 +467,27 @@
},
"time": "2019-01-08T18:20:26+00:00"
},
- {
- "name": "scrivo/highlight.php",
- "version": "v9.18.1.10",
- "source": {
- "type": "git",
- "url": "https://github.com/scrivo/highlight.php.git",
- "reference": "850f4b44697a2552e892ffe71490ba2733c2fc6e"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/scrivo/highlight.php/zipball/850f4b44697a2552e892ffe71490ba2733c2fc6e",
- "reference": "850f4b44697a2552e892ffe71490ba2733c2fc6e",
- "shasum": ""
- },
- "require": {
- "ext-json": "*",
- "php": ">=5.4"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.8|^5.7",
- "sabberworm/php-css-parser": "^8.3",
- "symfony/finder": "^2.8|^3.4|^5.4",
- "symfony/var-dumper": "^2.8|^3.4|^5.4"
- },
- "suggest": {
- "ext-mbstring": "Allows highlighting code with unicode characters and supports language with unicode keywords"
- },
- "type": "library",
- "autoload": {
- "files": [
- "HighlightUtilities/functions.php"
- ],
- "psr-0": {
- "Highlight\\": "",
- "HighlightUtilities\\": ""
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Geert Bergman",
- "homepage": "http://www.scrivo.org/",
- "role": "Project Author"
- },
- {
- "name": "Vladimir Jimenez",
- "homepage": "https://allejo.io",
- "role": "Maintainer"
- },
- {
- "name": "Martin Folkers",
- "homepage": "https://twobrain.io",
- "role": "Contributor"
- }
- ],
- "description": "Server side syntax highlighter that supports 185 languages. It's a PHP port of highlight.js",
- "keywords": [
- "code",
- "highlight",
- "highlight.js",
- "highlight.php",
- "syntax"
- ],
- "support": {
- "issues": "https://github.com/scrivo/highlight.php/issues",
- "source": "https://github.com/scrivo/highlight.php"
- },
- "funding": [
- {
- "url": "https://github.com/allejo",
- "type": "github"
- }
- ],
- "time": "2022-12-17T21:53:22+00:00"
- },
- {
- "name": "spatie/yaml-front-matter",
- "version": "2.0.8",
- "source": {
- "type": "git",
- "url": "https://github.com/spatie/yaml-front-matter.git",
- "reference": "f2f1f749a405fafc9d6337067c92c062d51a581c"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/spatie/yaml-front-matter/zipball/f2f1f749a405fafc9d6337067c92c062d51a581c",
- "reference": "f2f1f749a405fafc9d6337067c92c062d51a581c",
- "shasum": ""
- },
- "require": {
- "php": "^7.0|^8.0",
- "symfony/yaml": "^3.0|^4.0|^5.0|^6.0|^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^9.0"
- },
- "type": "library",
- "autoload": {
- "psr-4": {
- "Spatie\\YamlFrontMatter\\": "src"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Sebastian De Deyne",
- "email": "sebastian@spatie.be",
- "homepage": "https://spatie.be",
- "role": "Developer"
- }
- ],
- "description": "A to the point yaml front matter parser",
- "homepage": "https://github.com/sebastiandedeyne/yaml-front-matter",
- "keywords": [
- "front matter",
- "jekyll",
- "spatie",
- "yaml"
- ],
- "support": {
- "source": "https://github.com/spatie/yaml-front-matter/tree/2.0.8"
- },
- "funding": [
- {
- "url": "https://spatie.be/open-source/support-us",
- "type": "custom"
- },
- {
- "url": "https://github.com/spatie",
- "type": "github"
- }
- ],
- "time": "2023-12-04T10:02:52+00:00"
- },
{
"name": "symfony/deprecation-contracts",
- "version": "v3.4.0",
+ "version": "v2.5.2",
"source": {
"type": "git",
"url": "https://github.com/symfony/deprecation-contracts.git",
- "reference": "7c3aff79d10325257a001fcf92d991f24fc967cf"
+ "reference": "e8b495ea28c1d97b5e0c121748d6f9b53d075c66"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/7c3aff79d10325257a001fcf92d991f24fc967cf",
- "reference": "7c3aff79d10325257a001fcf92d991f24fc967cf",
+ "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/e8b495ea28c1d97b5e0c121748d6f9b53d075c66",
+ "reference": "e8b495ea28c1d97b5e0c121748d6f9b53d075c66",
"shasum": ""
},
"require": {
- "php": ">=8.1"
+ "php": ">=7.1"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-main": "3.4-dev"
+ "dev-main": "2.5-dev"
},
"thanks": {
"name": "symfony/contracts",
@@ -1092,7 +516,7 @@
"description": "A generic function and convention to trigger deprecation notices",
"homepage": "https://symfony.com",
"support": {
- "source": "https://github.com/symfony/deprecation-contracts/tree/v3.4.0"
+ "source": "https://github.com/symfony/deprecation-contracts/tree/v2.5.2"
},
"funding": [
{
@@ -1108,20 +532,20 @@
"type": "tidelift"
}
],
- "time": "2023-05-23T14:45:45+00:00"
+ "time": "2022-01-02T09:53:40+00:00"
},
{
"name": "symfony/polyfill-ctype",
- "version": "v1.28.0",
+ "version": "v1.27.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/polyfill-ctype.git",
- "reference": "ea208ce43cbb04af6867b4fdddb1bdbf84cc28cb"
+ "reference": "5bbc823adecdae860bb64756d639ecfec17b050a"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/ea208ce43cbb04af6867b4fdddb1bdbf84cc28cb",
- "reference": "ea208ce43cbb04af6867b4fdddb1bdbf84cc28cb",
+ "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/5bbc823adecdae860bb64756d639ecfec17b050a",
+ "reference": "5bbc823adecdae860bb64756d639ecfec17b050a",
"shasum": ""
},
"require": {
@@ -1136,7 +560,7 @@
"type": "library",
"extra": {
"branch-alias": {
- "dev-main": "1.28-dev"
+ "dev-main": "1.27-dev"
},
"thanks": {
"name": "symfony/polyfill",
@@ -1174,7 +598,7 @@
"portable"
],
"support": {
- "source": "https://github.com/symfony/polyfill-ctype/tree/v1.28.0"
+ "source": "https://github.com/symfony/polyfill-ctype/tree/v1.27.0"
},
"funding": [
{
@@ -1190,20 +614,20 @@
"type": "tidelift"
}
],
- "time": "2023-01-26T09:26:14+00:00"
+ "time": "2022-11-03T14:55:06+00:00"
},
{
"name": "symfony/polyfill-mbstring",
- "version": "v1.28.0",
+ "version": "v1.27.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/polyfill-mbstring.git",
- "reference": "42292d99c55abe617799667f454222c54c60e229"
+ "reference": "8ad114f6b39e2c98a8b0e3bd907732c207c2b534"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/42292d99c55abe617799667f454222c54c60e229",
- "reference": "42292d99c55abe617799667f454222c54c60e229",
+ "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/8ad114f6b39e2c98a8b0e3bd907732c207c2b534",
+ "reference": "8ad114f6b39e2c98a8b0e3bd907732c207c2b534",
"shasum": ""
},
"require": {
@@ -1218,7 +642,7 @@
"type": "library",
"extra": {
"branch-alias": {
- "dev-main": "1.28-dev"
+ "dev-main": "1.27-dev"
},
"thanks": {
"name": "symfony/polyfill",
@@ -1257,7 +681,7 @@
"shim"
],
"support": {
- "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.28.0"
+ "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.27.0"
},
"funding": [
{
@@ -1273,20 +697,20 @@
"type": "tidelift"
}
],
- "time": "2023-07-28T09:04:16+00:00"
+ "time": "2022-11-03T14:55:06+00:00"
},
{
"name": "symfony/polyfill-php80",
- "version": "v1.28.0",
+ "version": "v1.27.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/polyfill-php80.git",
- "reference": "6caa57379c4aec19c0a12a38b59b26487dcfe4b5"
+ "reference": "7a6ff3f1959bb01aefccb463a0f2cd3d3d2fd936"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/6caa57379c4aec19c0a12a38b59b26487dcfe4b5",
- "reference": "6caa57379c4aec19c0a12a38b59b26487dcfe4b5",
+ "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/7a6ff3f1959bb01aefccb463a0f2cd3d3d2fd936",
+ "reference": "7a6ff3f1959bb01aefccb463a0f2cd3d3d2fd936",
"shasum": ""
},
"require": {
@@ -1295,7 +719,7 @@
"type": "library",
"extra": {
"branch-alias": {
- "dev-main": "1.28-dev"
+ "dev-main": "1.27-dev"
},
"thanks": {
"name": "symfony/polyfill",
@@ -1340,7 +764,7 @@
"shim"
],
"support": {
- "source": "https://github.com/symfony/polyfill-php80/tree/v1.28.0"
+ "source": "https://github.com/symfony/polyfill-php80/tree/v1.27.0"
},
"funding": [
{
@@ -1356,103 +780,32 @@
"type": "tidelift"
}
],
- "time": "2023-01-26T09:26:14+00:00"
- },
- {
- "name": "symfony/yaml",
- "version": "v7.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/yaml.git",
- "reference": "0055b230c408428b9b5cde7c55659555be5c0278"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/yaml/zipball/0055b230c408428b9b5cde7c55659555be5c0278",
- "reference": "0055b230c408428b9b5cde7c55659555be5c0278",
- "shasum": ""
- },
- "require": {
- "php": ">=8.2",
- "symfony/polyfill-ctype": "^1.8"
- },
- "conflict": {
- "symfony/console": "<6.4"
- },
- "require-dev": {
- "symfony/console": "^6.4|^7.0"
- },
- "bin": [
- "Resources/bin/yaml-lint"
- ],
- "type": "library",
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Yaml\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Loads and dumps YAML files",
- "homepage": "https://symfony.com",
- "support": {
- "source": "https://github.com/symfony/yaml/tree/v7.0.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": "2023-11-07T10:26:03+00:00"
+ "time": "2022-11-03T14:55:06+00:00"
},
{
"name": "twig/markdown-extra",
- "version": "v3.8.0",
+ "version": "v3.6.0",
"source": {
"type": "git",
"url": "https://github.com/twigphp/markdown-extra.git",
- "reference": "b6e4954ab60030233df5d293886b5404558daac8"
+ "reference": "8f1179e279cea6ef14066a4560b859df58acd5d8"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/twigphp/markdown-extra/zipball/b6e4954ab60030233df5d293886b5404558daac8",
- "reference": "b6e4954ab60030233df5d293886b5404558daac8",
+ "url": "https://api.github.com/repos/twigphp/markdown-extra/zipball/8f1179e279cea6ef14066a4560b859df58acd5d8",
+ "reference": "8f1179e279cea6ef14066a4560b859df58acd5d8",
"shasum": ""
},
"require": {
- "php": ">=7.2.5",
- "twig/twig": "^3.0"
+ "php": ">=7.1.3",
+ "twig/twig": "^2.7|^3.0"
},
"require-dev": {
"erusev/parsedown": "^1.7",
"league/commonmark": "^1.0|^2.0",
"league/html-to-markdown": "^4.8|^5.0",
"michelf/php-markdown": "^1.8|^2.0",
- "symfony/phpunit-bridge": "^6.4|^7.0"
+ "symfony/phpunit-bridge": "^4.4.9|^5.0.9|^6.0"
},
"type": "library",
"autoload": {
@@ -1483,7 +836,7 @@
"twig"
],
"support": {
- "source": "https://github.com/twigphp/markdown-extra/tree/v3.8.0"
+ "source": "https://github.com/twigphp/markdown-extra/tree/v3.6.0"
},
"funding": [
{
@@ -1495,31 +848,30 @@
"type": "tidelift"
}
],
- "time": "2023-11-21T14:02:01+00:00"
+ "time": "2023-02-09T06:45:16+00:00"
},
{
"name": "twig/twig",
- "version": "v3.8.0",
+ "version": "v3.6.0",
"source": {
"type": "git",
"url": "https://github.com/twigphp/Twig.git",
- "reference": "9d15f0ac07f44dc4217883ec6ae02fd555c6f71d"
+ "reference": "106c170d08e8415d78be2d16c3d057d0d108262b"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/twigphp/Twig/zipball/9d15f0ac07f44dc4217883ec6ae02fd555c6f71d",
- "reference": "9d15f0ac07f44dc4217883ec6ae02fd555c6f71d",
+ "url": "https://api.github.com/repos/twigphp/Twig/zipball/106c170d08e8415d78be2d16c3d057d0d108262b",
+ "reference": "106c170d08e8415d78be2d16c3d057d0d108262b",
"shasum": ""
},
"require": {
"php": ">=7.2.5",
"symfony/polyfill-ctype": "^1.8",
- "symfony/polyfill-mbstring": "^1.3",
- "symfony/polyfill-php80": "^1.22"
+ "symfony/polyfill-mbstring": "^1.3"
},
"require-dev": {
"psr/container": "^1.0|^2.0",
- "symfony/phpunit-bridge": "^5.4.9|^6.3|^7.0"
+ "symfony/phpunit-bridge": "^4.4.9|^5.0.9|^6.0"
},
"type": "library",
"autoload": {
@@ -1555,7 +907,7 @@
],
"support": {
"issues": "https://github.com/twigphp/Twig/issues",
- "source": "https://github.com/twigphp/Twig/tree/v3.8.0"
+ "source": "https://github.com/twigphp/Twig/tree/v3.6.0"
},
"funding": [
{
@@ -1567,7 +919,7 @@
"type": "tidelift"
}
],
- "time": "2023-11-21T18:54:41+00:00"
+ "time": "2023-05-03T19:06:57+00:00"
}
],
"packages-dev": [],
diff --git a/docker_dev/Dockerfile b/docker_dev/Dockerfile
index 6440854..60a6a66 100644
--- a/docker_dev/Dockerfile
+++ b/docker_dev/Dockerfile
@@ -1,7 +1,7 @@
FROM composer
WORKDIR /app
-COPY www/composer.* .
+COPY composer.* .
RUN composer install
FROM php:apache
@@ -12,9 +12,6 @@ RUN chmod -R a+r ./vendor
RUN a2enmod rewrite
RUN a2enmod headers
-RUN docker-php-ext-install mysqli && docker-php-ext-enable mysqli
-RUN mkdir raw
-
-COPY www/ .
-RUN chmod -R a+rw $(ls -I vendor)
+COPY . .
+RUN chmod -R a+r $(ls -I vendor)
diff --git a/docker_dev/MysqlDockerfile b/docker_dev/MysqlDockerfile
deleted file mode 100644
index be3c855..0000000
--- a/docker_dev/MysqlDockerfile
+++ /dev/null
@@ -1,4 +0,0 @@
-FROM mysql:8.0-debian
-
-WORKDIR /docker-entrypoint-initdb.d
-COPY mysql_schema.sql ./
\ No newline at end of file
diff --git a/docker_dev/compose.yaml b/docker_dev/compose.yaml
index 1b9493d..5e8c99b 100644
--- a/docker_dev/compose.yaml
+++ b/docker_dev/compose.yaml
@@ -5,44 +5,22 @@ services:
dockerfile: docker_dev/Dockerfile
ports:
- 8081:80
- environment:
- MYSQL_USER: root
- MYSQL_PASSWORD: example
- MYSQL_DATABASE: dragon_fire
- MYSQL_HOST: mysql
- MYSQL_PORT: 3306
develop:
watch:
- path: ./
action: rebuild
- - path: ../www/composer.*
- action: rebuild
- - path: ../www/
+ - path: ../.
action: sync
- target: /var/www/html
- ignore:
- - ../.git
- - mysql_schema.sql
- volumes:
- - website_datavolume:/var/www/html/raw
-
+ target: /usr/local/apache2/htdocs/
mysql:
- build:
- dockerfile: MysqlDockerfile
+ image: mysql:8.0-debian
# NOTE: use of "mysql_native_password" is not recommended: https://dev.mysql.com/doc/refman/8.0/en/upgrading-from-previous-series.html#upgrade-caching-sha2-password
# (this is just an example, not intended to be a production configuration)
command: --default-authentication-plugin=mysql_native_password
restart: always
environment:
MYSQL_ROOT_PASSWORD: example
- ports:
- - 3306:3306
- develop:
- watch:
- - path: mysql_schema.sql
- action: rebuild
volumes:
- sqlvolume:/var/lib/mysql
volumes:
sqlvolume: {}
- website_datavolume: {}
diff --git a/docker_dev/mysql_schema.sql b/docker_dev/mysql_schema.sql
deleted file mode 100644
index baf0a58..0000000
--- a/docker_dev/mysql_schema.sql
+++ /dev/null
@@ -1,148 +0,0 @@
-
-CREATE DATABASE dragon_fire;
-
-USE dragon_fire;
-
-CREATE TABLE posts (
- post_id INTEGER AUTO_INCREMENT,
-
- host VARCHAR(64) NOT NULL,
- post_path VARCHAR(255) NOT NULL,
- post_path_depth INTEGER NOT NULL DEFAULT 0,
-
- post_create_time DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
- post_update_time DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
-
- post_access_count INTEGER DEFAULT 0,
-
- post_metadata JSON NOT NULL,
- post_settings_cache JSON DEFAULT NULL,
-
- post_content MEDIUMTEXT,
-
- PRIMARY KEY(post_id),
- CONSTRAINT unique_post UNIQUE (host, post_path),
-
- INDEX(host, post_path),
- INDEX(post_path_depth, post_path),
- INDEX(post_create_time),
- INDEX(post_update_time)
-);
-
-CREATE TABLE path_access_counts (
- access_time DATETIME NOT NULL,
- host VARCHAR(64) NOT NULL,
- post_path VARCHAR(255),
- agent VARCHAR(255),
- referrer VARCHAR(255),
-
- path_access_count INTEGER DEFAULT 0,
- path_processing_time DOUBLE PRECISION DEFAULT 0,
-
- PRIMARY KEY(access_time, host, post_path, agent, referrer)
-);
-
-CREATE TABLE feed_cache (
- host VARCHAR(64) NOT NULL,
- search_path VARCHAR(255),
- export_type VARCHAR(255),
-
- feed_created_on DATETIME DEFAULT CURRENT_TIMESTAMP,
-
- feed_content MEDIUMTEXT,
-
- PRIMARY KEY(host, search_path, export_type)
-);
-
-INSERT INTO posts (post_path, post_path_depth, post_metadata, post_content)
-VALUES (
- '/about',
- 0,
-'
-{
- "tags": ["test", "test2", "hellorld"],
- "brief": "This is a simple test indeed",
- "type": "text/markdown",
- "title": "About the dergen"
-}
-',
-'
-# About the dergs indeed
-
-This is just a simple test. Might be nice, though!
-'
-), (
- '/about/neira',
- 1,
-'
-{
- "tags": ["test", "test2", "hellorld", "neira"],
- "brief": "This is a soft grab of Neira",
- "type": "text/markdown",
- "title": "About her"
-}
-',
-'
-# Nothing here yet!
-
-Sorry for this. She is working hard :>
-'
-), (
- '/about/xasin',
- 1,
-'
-{
- "tags": ["test", "test2", "hellorld", "xasin"],
- "brief": "This is a soft grab of Xasin",
- "type": "text/markdown",
- "title": "About her"
-}
-',
-'
-# Nothing here yet!
-
-Sorry for this. He is working hard :>
-'
-), (
- '/about/mesh',
- 1,
-'
-{
- "tags": ["test", "test2", "hellorld", "mesh"],
- "brief": "This is a soft grab of Mesh",
- "type": "text/markdown",
- "title": "About her"
-}
-',
-'
-# Nothing here yet!
-
-Sorry for this. Shi is working hard :>
-'
-), (
- '/about/alviere',
- 1,
-'
-{
- "tags": ["test", "test2", "hellorld", "mesh"],
- "brief": "SHE GRABS",
- "type": "text/markdown",
- "title": "SHE GRABS"
-}
-',
-'
-# Nothing here yet!
-
-Sorry for this. She GRABS A LOT
-
-----
-
-## And now, for the lorem:
-
-Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Eleifend mi in nulla posuere sollicitudin aliquam ultrices sagittis orci. Risus commodo viverra maecenas accumsan lacus vel facilisis. Sed viverra tellus in hac habitasse. Nulla malesuada pellentesque elit eget gravida cum. Posuere sollicitudin aliquam ultrices sagittis orci a. Libero nunc consequat interdum varius sit amet. Bibendum arcu vitae elementum curabitur vitae nunc sed velit. Amet mauris commodo quis imperdiet massa tincidunt nunc pulvinar. Sed adipiscing diam donec adipiscing. Laoreet id donec ultrices tincidunt arcu non sodales. Id semper risus in hendrerit gravida rutrum quisque non. Ut venenatis tellus in metus vulputate eu.
-
-Risus sed vulputate odio ut enim blandit volutpat. Placerat in egestas erat imperdiet. Non curabitur gravida arcu ac tortor dignissim convallis aenean. Neque aliquam vestibulum morbi blandit cursus risus at. Elementum integer enim neque volutpat ac tincidunt vitae semper. Eu ultrices vitae auctor eu augue ut. In mollis nunc sed id semper risus in hendrerit gravida. Lectus arcu bibendum at varius vel pharetra vel turpis nunc. In pellentesque massa placerat duis. Non quam lacus suspendisse faucibus. Vitae aliquet nec ullamcorper sit amet risus nullam. Accumsan lacus vel facilisis volutpat est velit egestas dui.
-
-Risus feugiat in ante metus dictum at tempor commodo. Duis ut diam quam nulla. Nunc aliquet bibendum enim facilisis gravida neque convallis. Tincidunt augue interdum velit euismod in pellentesque. Praesent semper feugiat nibh sed pulvinar proin gravida hendrerit lectus. Non odio euismod lacinia at quis risus sed vulputate odio. Nunc sed blandit libero volutpat sed cras ornare arcu. Adipiscing enim eu turpis egestas pretium aenean pharetra magna. Ut tristique et egestas quis ipsum suspendisse. Blandit cursus risus at ultrices mi tempus imperdiet nulla malesuada.
-'
-);
\ No newline at end of file
diff --git a/router.php b/router.php
new file mode 100644
index 0000000..9e2c99d
--- /dev/null
+++ b/router.php
@@ -0,0 +1,43 @@
+ true]);
+$twig->addExtension(new Twig\Extra\Markdown\MarkdownExtension());
+
+use Twig\Extra\Markdown\DefaultMarkdown;
+use Twig\Extra\Markdown\MarkdownRuntime;
+use Twig\RuntimeLoader\RuntimeLoaderInterface;
+
+$twig->addRuntimeLoader(new class implements RuntimeLoaderInterface {
+ public function load($class) {
+ if (MarkdownRuntime::class === $class) {
+ return new MarkdownRuntime(new DefaultMarkdown());
+ }
+ }
+});
+
+if($_SERVER['REQUEST_URI'] == '/') {
+ echo $twig->render('root.html');
+} elseif(preg_match('/^\/about(.html)?$/', $_SERVER['REQUEST_URI'])) {
+ echo $twig->render('about.html');
+} elseif(preg_match('/^\/gallery\/([^\?]+)/', $_SERVER['REQUEST_URI'])) {
+ echo $twig->render('/gallery/gallery_entry.html', [
+ 'image_url' => '/static/banner/0.png',
+ 'image_title' => 'Test!',
+ 'image_desc' => 'A soft piece made by a dear friend',
+ 'artist_name' => 'Doggonaut',
+ 'artist_src_link' => 'https://twitter.com/doggonaut'
+ ]);
+} else {
+ echo $twig->render('rrror.html',[
+ "error_code" => '404 Hoard not found!',
+ "error_description" => "Well, we searched
+ far and wide for `" . $_SERVER['REQUEST_URI'] . "` but
+ somehow it must have gotten lost... Sorry!"
+ ]);
+}
+
+?>
diff --git a/scripts/upload_file.sh b/scripts/upload_file.sh
deleted file mode 100755
index 587ceb9..0000000
--- a/scripts/upload_file.sh
+++ /dev/null
@@ -1,15 +0,0 @@
-
-CURL_URL=${DERG_UPLOAD_URL:-https://lucidragons.de/api/admin/upload}
-CURL_KEY=${DERG_UPLOAD_KEY:-SoftDragonKeys}
-
-for FILE_PATH in "$@"
-do
- if [ -f "${FILE_PATH}" ]; then
- POST_PATH="/${FILE_PATH#"./"}"
-
- echo "Uploading ${FILE_PATH} to ${POST_PATH}"
-
- curl -i -X POST -H "Content-Type: multipart/form-data" \
- -F "api_key=${CURL_KEY}" -F "post_path=${POST_PATH}" -F "post_data=@${FILE_PATH}" "${CURL_URL}"
- fi
-done
\ No newline at end of file
diff --git a/www/static/.htaccess b/static/.htaccess
similarity index 87%
rename from www/static/.htaccess
rename to static/.htaccess
index 1c117e2..5997760 100644
--- a/www/static/.htaccess
+++ b/static/.htaccess
@@ -1,7 +1,5 @@
Allow from all
-Options +Indexes
-
- | Name | -Title | -Modified | -
---|---|---|---|
- {{ fa[subpost.post_metadata.icon] | raw }} - | -- {{subpost.post_basename}} - | -- {{ subpost.post_metadata.title }} - | -- {{ subpost.post_update_time }} - | -
- | Name | -Title | -Modified | -
---|---|---|---|
- {{ fa[subpost.post_metadata.icon] | raw }} - | -- {{subpost.post_basename}} - | -- {{ subpost.post_metadata.title }} - | -- {{ subpost.post_update_time }} - | -
- This website may contain content meant for an 18+ audience. -
- - -