Initial commit

Couldnt keep the history unfortunately.
This commit is contained in:
Riyyi
2021-03-03 17:55:48 +01:00
commit a8056b66cc
67 changed files with 7759 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
<?php
use App\Classes\Config;
use App\Classes\User;
?>
<div class="content shadow p-4 mb-4">
<?= $this->partial('../app/views/partials/message.php'); ?>
<?php if (User::check()) { ?>
You&apos;re already logged in. Click to <a href="<?= \App\Classes\Config::c('APP_URL'); ?>/logout">log out</a>.
<?php if ($this->redirectURL) { ?>
<script type="text/javascript">
setTimeout(function() {
window.location.replace("<?= $this->redirectURL; ?>");
}, 3000);
</script>
<?php } ?>
<?php } else { ?>
<h1>Sign in</h1>
<?= $this->partial($this->injectView); ?>
<br>
<a href="<?= Config::c('APP_URL'); ?>/reset-password">Forgot password</a>?
<?php } ?>
<div class="pb-5"></div>
</div>