58 lines
1.6 KiB
PHP
58 lines
1.6 KiB
PHP
<?php
|
|
setlocale (LC_ALL, 'de_DE@euro', 'de_DE', 'de', 'ge');
|
|
require_once("config.php");
|
|
|
|
require_once("./local/dbConf.php");
|
|
require_once("./local/achievementsConf.php");
|
|
|
|
require_once("./lib/achievementsLib.php");
|
|
|
|
require_once("./auth.php");
|
|
|
|
$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();
|
|
|
|
try{
|
|
$results = dbQuery(
|
|
$dbConnection,
|
|
"SELECT * FROM cwsvjudo.achievements;"
|
|
);
|
|
}
|
|
catch(PDOException $db_error){
|
|
print "Error!: " . $db_error->getMessage() . "<br/>queryString: ".$queryString."<br />"; var_dump($bindArray);
|
|
}
|
|
|
|
?>
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
|
|
<title>Achievements</title>
|
|
<meta name="description" content="Achievements">
|
|
|
|
<link rel="icon" href="<?echo($config['ressourceUrl']);?>/graphiken/icons/cwsv.ico" />
|
|
<link rel="apple-touch-icon" href="<?echo($config['baseUrl']);?>/apple-touch-icon.png">
|
|
|
|
<style>
|
|
<?php
|
|
# $css = file_get_contents( $basePath."/pages/desktop/wkParticipo/wkParticipo.css");
|
|
# echo(colorThemeCss($_SESSION['user']['userConfig']['colors']));
|
|
# echo($css);
|
|
?>
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<?php echo $login_status; ?>
|
|
<h1>Achievements</h1>
|
|
<?php echo( arrayKeyed2htmlTableString($results, ["id", "name", "rootId", "level", "description"], $withCaption = true) );?>
|
|
</body>
|
|
</html>
|
|
|