52 lines
1.2 KiB
PHP
52 lines
1.2 KiB
PHP
<?php
|
|
require 'admin.inc.php';
|
|
?>
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
|
|
<!-- shared imports (common css, MaterializeCss) -->
|
|
<?php readfile('shared/imports.php'); ?>
|
|
|
|
<!-- inits for the materializeCss -->
|
|
<script src="admin.js"></script>
|
|
|
|
<title><?php echo($meta['title']); ?></title>
|
|
<meta name="description" content="<?php echo($meta['description']); ?>" />
|
|
|
|
<link rel="icon" href="<?echo($config['ressourceUrl']);?>/graphiken/icons/cwsv.ico" />
|
|
<link rel="apple-touch-icon" href="<?echo($config['baseUrl']);?>/apple-touch-icon.png">
|
|
</head>
|
|
|
|
<body>
|
|
<header>
|
|
<!-- The sidenav -->
|
|
<?php require './admin.sidenav.inc.php'; ?>
|
|
</header>
|
|
|
|
<?php if (participo::isLoginValid() && participo::isUserAdmin()) { ?>
|
|
<main>
|
|
<h2>AdminStuff</h2>
|
|
<div id="admiStuff" class="row">
|
|
<?php
|
|
echo(
|
|
AppCard::fromArray([
|
|
'title' => 'lastLogins',
|
|
'description' => '</p>' . lastLoginTable() . '</p>'
|
|
])->htmlCode()
|
|
);
|
|
echo(
|
|
AppCard::fromArray([
|
|
'title' => 'Add User',
|
|
'description' => User::getHtmlFormAddUser(),
|
|
])->htmlCode()
|
|
);
|
|
?>
|
|
</div>
|
|
</main>
|
|
<?php } ?>
|
|
</body>
|
|
</html>
|