new file: src/Controllers/AuthController.php

This commit is contained in:
2024-12-19 08:16:09 +02:00
parent f96c3e9337
commit 248698fda3
9 changed files with 612 additions and 103 deletions

View File

@@ -0,0 +1,92 @@
<?php
/* Smarty version 5.4.2, created on 2024-12-18 19:19:42
from 'file:login.tpl' */
/* @var \Smarty\Template $_smarty_tpl */
if ($_smarty_tpl->getCompiled()->isFresh($_smarty_tpl, array (
'version' => '5.4.2',
'unifunc' => 'content_6763204e824e49_51557939',
'has_nocache_code' => false,
'file_dependency' =>
array (
'b56b63fa35b4c8d6169eae7042db3ea0125ea5bf' =>
array (
0 => 'login.tpl',
1 => 1734549413,
2 => 'file',
),
),
'includes' =>
array (
),
))) {
function content_6763204e824e49_51557939 (\Smarty\Template $_smarty_tpl) {
$_smarty_current_dir = '/home/upw/clients/kpopping/xbotcontrol/smarty/template';
?><!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>XBotControl</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
<?php echo '<script'; ?>
src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"
integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous">
<?php echo '</script'; ?>
>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-table@1.23.5/dist/bootstrap-table.min.css">
<?php echo '<script'; ?>
src="https://code.jquery.com/jquery-3.7.1.min.js"><?php echo '</script'; ?>
>
<!-- Latest compiled and minified JavaScript -->
<?php echo '<script'; ?>
src="https://cdn.jsdelivr.net/npm/bootstrap-table@1.23.5/dist/bootstrap-table.min.js"><?php echo '</script'; ?>
>
<!-- Latest compiled and minified Locales -->
<?php echo '<script'; ?>
src="https://cdn.jsdelivr.net/npm/bootstrap-table@1.23.5/dist/locale/bootstrap-table-zh-CN.min.js"><?php echo '</script'; ?>
>
<link rel="stylesheet" type="text/css"
href="https://cdn.jsdelivr.net/npm/bootstrap-table@1.23.5/dist/extensions/filter-control/bootstrap-table-filter-control.css">
<?php echo '<script'; ?>
src="https://cdn.jsdelivr.net/npm/bootstrap-table@1.23.5/dist/extensions/filter-control/bootstrap-table-filter-control.js">
<?php echo '</script'; ?>
>
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.1/css/all.min.css" rel="stylesheet">
</head>
<body>
<div class="content">
<div class="d-flex align-items-center justify-content-center vh-100">
<form id="form" enctype="multipart/form-data" action="login" method="post" class="p-4 border rounded">
<div class="mb-3">
<label for="api_key" class="form-label">API Key</label>
<input type="text" class="form-control" id="api_key" name="api_key">
</div>
<button type="submit" class="btn btn-success w-100">Login</button>
</form>
</div>
</div>
<footer class="text-white text-center py-3">
<div class="footer">
<div class="container text-center text-light">
<h6>Copyright 2024
</h6>
</div>
</div>
</footer>
</body><?php }
}