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,31 +1,19 @@
|
||||
<?php
|
||||
setlocale (LC_ALL, 'de_DE@euro', 'de_DE', 'de', 'ge');
|
||||
set_include_path(get_include_path() . PATH_SEPARATOR . "./lib/");
|
||||
|
||||
// configs and local data
|
||||
require_once './local/cwsvJudo.php';
|
||||
require_once "bootstrap.php";
|
||||
|
||||
// libraries
|
||||
require_once 'participoLib/dbConnector.php';
|
||||
require_once 'participoLib/participo.php';
|
||||
require_once "participoLib/participo.php";
|
||||
require_once "participoLib/dbConnector.php";
|
||||
|
||||
// init the db connector
|
||||
participo::init($CONFIG["cwsvJudo"], $SECRETS["cwsvJudo"]);
|
||||
|
||||
// init the db connector
|
||||
dbConnector::connect(
|
||||
$cwsvJudoConfig['db']['host'],
|
||||
$cwsvJudoConfig['db']['name'],
|
||||
$cwsvJudoConfig['db']['user'],
|
||||
$cwsvJudoConfig['db']['password']
|
||||
);
|
||||
|
||||
// authentication of the current user
|
||||
participo::authentificate();
|
||||
if (!participo::isUserAdmin()) {
|
||||
header('Location: /participo', true, 301);
|
||||
header("Location: /participo", true, 301);
|
||||
}
|
||||
|
||||
$meta = array(
|
||||
'title' => "AdminStuff",
|
||||
'description' => "Administrative Verwaltung"
|
||||
);
|
||||
?>
|
||||
$meta = [
|
||||
"title" => "AdminStuff",
|
||||
"description" => "Administrative Verwaltung",
|
||||
];
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user