diff options
author | adam <adam@> | 2021-02-11 19:43:06 +0200 |
---|---|---|
committer | adam <adam@> | 2021-02-11 19:43:06 +0200 |
commit | d538c3041c6c7d05a9328ace960838aa194879d9 (patch) | |
tree | 0b070027c9e758ed1783012c43c58070b39595f5 /index.php | |
parent | d35678c131d4547cea8b3d9fcc1978dec0d2d903 (diff) | |
parent | f1cd0085cd8dba8b25818fc998d315b28e6c13a5 (diff) | |
download | fileup-d538c3041c6c7d05a9328ace960838aa194879d9.tar.gz |
setting up
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/index.php b/index.php new file mode 100644 index 0000000..645e31f --- /dev/null +++ b/index.php @@ -0,0 +1,50 @@ +<?php + session_start(); +?> +<!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 style="flex: 1 0 0;"></div> + <ul id="topmenu"> + + <?php if (array_key_exists("username", $_SESSION)) { ?> + + <li><?php echo $_SESSION['username'];?></li> + <li onclick="window.location.href='/php/logout.php'">Sign out</li> + + <?php } else {?> + + <li onclick="showLogin(false)">Sign up</li> + <li onclick="showLogin(true)">Log in</li> + + <?php }?> + </ul> + + </div> + + <div id="page"> + +<?php + if (array_key_exists("username", $_SESSION)) { + require_once("loggedin.php"); + } else { + require_once("loginregister.php"); + } +?> + + </div> + </div> + <img src="svg/bottom.svg" class="bgbottom"> + </div> + </body> +<html> |