webcron-site/admin/index.php

48 lines
1.5 KiB
PHP
Raw Permalink Normal View History

<?php
$root = $_SERVER['DOCUMENT_ROOT'];
require "$root/Libraries/table/class.php";
use table\Table;
$db = new SQLite3("../webcron.db");
?>
<!Doctype html>
<!--
Color pallet: https://colorhunt.co/palette/b9eddd87cbb9569daa577d86
-->
<html>
<head>
<link rel="stylesheet" href="/css/main.css">
<script src="/js/admin.js"> </script>
<title>Administration</title>
</head>
<body>
<nav>
<a class='nav-button' href='/index.php'>Back to Site</a>
<?php
$items = scandir(".");
foreach ($items as $item){
if (preg_match('/\.php$/', $item) && $item != "index.php"){
$item_name=ucfirst(explode('.', $item)[0]);
echo "<a class='nav-button' href='$item'>$item_name</a>";
}
}
?>
<a class='nav-button' href='/admin/index.php'>Administration</a>
</nav>
<div class="content_area bordered rounded_border">
<div class="single_width menu_bar bordered_right cell border_rounded_left">
<button class="menu_button">View Login History</button>
<button class="menu_button">User Activity History</button>
</div>
<div id="content" class="content cell">
</div>
<div class="double_width menu_bar bordered_left cell border_rounded_right">
</div>
</div>
</body>
</html>