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:
@@ -1,21 +1,18 @@
|
||||
<?php
|
||||
setlocale(LC_ALL, "de_DE@euro", "de_DE", "de", "ge");
|
||||
set_include_path(
|
||||
get_include_path() . PATH_SEPARATOR . "../lib/" . PATH_SEPARATOR . ".."
|
||||
);
|
||||
|
||||
require_once "config/participo.php";
|
||||
require_once "local/cwsvJudo.php";
|
||||
|
||||
require_once "bootstrap.php";
|
||||
require_once "participoLib/participo.php";
|
||||
|
||||
function init($config)
|
||||
function init($config, $secrets)
|
||||
{
|
||||
dbConnector::setOptions([
|
||||
"dbCharset" => $config["dbCharset"] ?? "UTF-8",
|
||||
"outCharset" => $config["outCharset"] ?? "UTF-8",
|
||||
]);
|
||||
dbConnector::connect(
|
||||
$config["db"]["host"],
|
||||
$config["db"]["name"],
|
||||
$config["db"]["user"],
|
||||
$config["db"]["password"]
|
||||
$secrets["db"][$config["db"]["user"]],
|
||||
);
|
||||
}
|
||||
|
||||
@@ -66,7 +63,7 @@ function get()
|
||||
return $wkSqlResponse;
|
||||
}
|
||||
|
||||
init($cwsvJudoConfig);
|
||||
init($CONFIG["cwsvJudo"], $SECRETS["cwsvJudo"]);
|
||||
authorize();
|
||||
$wkSqlResponse = get();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user