View sourcecode

The following files exists in this folder. Click to view.

index.php

28 lines UTF-8 Windows (CRLF)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
session_start
();

if (isset(
$_SESSION['player_id'])) {
    
header("Location: dashboard.php");
    exit;
}
?>

<!DOCTYPE html>
<html>
<head>
    <title>Stegen</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
</head>
<body class="bg-light">

<div class="container mt-5 text-center">
    <h1 class="mb-3">Stegen</h1>
    <p class="mb-4">Klättra Stegen</p>

    <a href="login.php" class="btn btn-primary me-2">Login</a>
    <a href="register.php" class="btn btn-success">Register</a>
</div>

</body>
</html>