31 lines
727 B
PHP
31 lines
727 B
PHP
<?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';
|
|
|
|
// libraries
|
|
require_once 'participoLib/dbConnector.php';
|
|
require_once 'participoLib/participo.php';
|
|
|
|
|
|
// 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);
|
|
}
|
|
|
|
$meta = array(
|
|
'title' => "AdminStuff",
|
|
'description' => "Administrative Verwaltung"
|
|
);
|
|
?>
|