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
20 lines
403 B
PHP
20 lines
403 B
PHP
<?php
|
|
require_once "bootstrap.php";
|
|
|
|
// libraries
|
|
require_once "participoLib/participo.php";
|
|
require_once "participoLib/dbConnector.php";
|
|
|
|
// init the db connector
|
|
participo::init($CONFIG["cwsvJudo"], $SECRETS["cwsvJudo"]);
|
|
|
|
if (!participo::isUserAdmin()) {
|
|
header("Location: /participo", true, 301);
|
|
}
|
|
|
|
$meta = [
|
|
"title" => "AdminStuff",
|
|
"description" => "Administrative Verwaltung",
|
|
];
|
|
?>
|