trainingskartenvorbereitung 2022

This commit is contained in:
marko
2022-05-14 10:54:04 +02:00
parent 9abe755e13
commit 9e15a9d3fb
45 changed files with 33 additions and 148 deletions

View File

@@ -20,10 +20,7 @@ $dbConnection = getPdoDbConnection(
$basePath = "/users/cwsvjudo/www";
require_once($basePath."/config/cwsvJudo.config.php");
require_once($basePath."/config/phpcount.config.php");
// require_once($basePath."/ressourcen/phpLib/phpcount/phpcount.php");
// require_once($basePath."/ressourcen/phpLib/cwsvJudo/miscAssis.php");
// $dbConnection = getCwsvJudoDbConn();
$dbConnection = getPdoDbConnection(
$cwsvJudoConfig["db"]["host"],
$cwsvJudoConfig["db"]["name"],
@@ -31,7 +28,12 @@ $dbConnection = getPdoDbConnection(
$cwsvJudoConfig["db"]["password"]
);
$achievementGroups = getAchievementGroups($dbConnection);
require_once("./auth.php");
achievementGroup::setDbConnection($dbConnection);
record::setDbConnection($dbConnection);
$achievementGroups = achievementGroup::getAllAchievementGroups();
processPostData($dbConnection, $_POST);
@@ -58,9 +60,8 @@ processPostData($dbConnection, $_POST);
</head>
<body>
<?php echo $login_status; ?>
<?php
<?php include("lib/machs/sidenav.php");?>
<?php
if( hasUserAttribute($dbConnection, $_SESSION['user']['userId'], "inTraining" ) ){
echo( "<h2>Eigene Achievements</h2>" );
echo( htmlUsersUploadBox($dbConnection, $_SESSION['user']['userId']) );