This repository has been archived on 2023-01-06. You can view files and clone it, but cannot push or open issues or pull requests.
web/public/simulator.php
2022-01-24 16:54:26 +01:00

16 lines
510 B
PHP

<?php
$app = require '../app/inc.php';
if ($_SERVER['REQUEST_METHOD'] === 'POST')
{
if (!isset($_POST['cardnumber']) || empty($_POST['cardnumber']))
{
$app->session->flash('Kortnummer kan ikke være tom!', 'danger');
} else {
$app->session->flash("Kortnummer: \"{$_POST['cardnumber']}\" er ikke blitt lastet opp men burde bli implementert snart!", 'success');
}
}
$app->view('template/header', ['title' => 'Simulator']);
$app->view('simulator');
$app->view('template/footer');