aboutsummaryrefslogtreecommitdiffstats
path: root/index.php
blob: b42c5f27134a4341a864390eed1bcc07146790a5 (plain)
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
29
30
31
32
33
34
35
36
37
38
39
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>shady file upload</title> <link rel="stylesheet" type="text/css" href="css/style.css"> 
    </head>

    <body>
        <div class="overlay" style="height: 100%;">
            <div class="vert2">
                <div id="header">
                    <p class="logo">shady_file_upload</p>
                </div>

                <div id="page">


<?php
    session_start();
    if (array_key_exists("username", $_SESSION)) {
        echo "Welcome, $_SESSION[username]"; 
?>

<a href="/php/logout.php">Log out</a>

<?php
    }
    else {
        require_once("loginregister.html");
    }
?>

                </div>
            </div>
            <img src="svg/bottom.svg" class="bgbottom">
        </div>
        <script src="main.js"></script>
    </body>
<html>