Initial commit: Cloud Control Panel

This commit is contained in:
2026-01-10 01:24:08 +07:00
commit 01d99c5054
69 changed files with 12697 additions and 0 deletions

21
resources/views/login.php Executable file
View File

@@ -0,0 +1,21 @@
<?php
/** @var Din9xtrCloud\ViewModels\Login\LoginViewModel $viewModel */
?>
<div class="login-card">
<h1><?= htmlspecialchars($viewModel->title ?? 'Login') ?></h1>
<?php if (!empty($viewModel->error)) : ?>
<p class="error"><?= htmlspecialchars($viewModel->error) ?></p>
<?php endif; ?>
<form method="POST" action="/login" class="login-form">
<label>
<input type="text" name="username" required placeholder="Enter username">
</label>
<label>
<input type="password" name="password" required placeholder="Enter password">
</label>
<button type="submit">Sign In</button>
<input type="hidden" name="_csrf"
value="<?= htmlspecialchars($viewModel->csrf) ?>">
</form>
</div>