aboutsummaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorAlex Vitkov <alexvitkov98@gmail.com>2021-01-29 15:07:18 +0200
committerAlex Vitkov <alexvitkov98@gmail.com>2021-01-29 15:07:18 +0200
commit9f0a624ea66aa329a78c464f08d99f63c7282ee8 (patch)
treef645f99ac9b9fb503d98df782525b75c7bae45f7 /index.php
parentd14f3109973c7d95a15174db1a1346887765988d (diff)
parent8ba2c35a306719932307ec5f99701101637e1fd2 (diff)
downloadfileup-9f0a624ea66aa329a78c464f08d99f63c7282ee8.tar.gz
Merge branch 'live'
Diffstat (limited to 'index.php')
-rw-r--r--index.php50
1 files changed, 50 insertions, 0 deletions
diff --git a/index.php b/index.php
new file mode 100644
index 0000000..21d56f0
--- /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>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>