WIP: bring participo back - consistent use of bootstrap - formatting -

phpstan level 0 error free - fixes for kyu subpage - move mams into
participo framework - remove legacy `lib/db.php` usage - add attributer
admin function - add newsposter - fixing apiKey creation
This commit is contained in:
marko
2025-11-07 10:37:25 +01:00
parent 672eaccfc9
commit f28fa7b51b
96 changed files with 6152 additions and 6053 deletions

View File

@@ -0,0 +1,31 @@
<?php
require_once "config.php";
if (!isset($HOME)) {
die("Missing HOME config!");
}
$CONFIG = json_decode(
json: file_get_contents(filename: join("/", [$HOME, ".local/config.json"])),
associative: true,
);
$SECRETS = json_decode(
json: file_get_contents(
filename: join("/", [$HOME, "/.local/secrets.json"]),
),
associative: true,
);
setlocale(LC_ALL, "de_DE@euro", "de_DE", "de", "ge");
$BASE_PATH = join("/", [$HOME, $CONFIG["cwsvJudo"]["http"]["serve_dir"]]);
set_include_path(
implode(PATH_SEPARATOR, [
get_include_path(),
$BASE_PATH,
join("/", [$BASE_PATH, "ressourcen"]),
join("/", [$BASE_PATH, "ressourcen", "phpLib"]),
join("/", [$HOME, "libs", "php"]),
"./lib/",
]),
);