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:
31
homepage/participo/bootstrap.php
Normal file
31
homepage/participo/bootstrap.php
Normal 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/",
|
||||
]),
|
||||
);
|
||||
Reference in New Issue
Block a user