summaryrefslogtreecommitdiff
path: root/static/php/index.php
diff options
context:
space:
mode:
authorMandragorat Wandystanu <wktir@wandystan.eu>2017-11-18 01:26:16 +0100
committerMandragorat Wandystanu <wktir@wandystan.eu>2017-11-18 01:26:16 +0100
commit512fb6d72f897e688143dee13ae5fd6b87cb4791 (patch)
tree6edd71f8cee1fd0c5ef9397ff32df482f53098c4 /static/php/index.php
parent66561d4b4fe195b81446c94bdbfdcda4fb7167f7 (diff)
New site layout.
Diffstat (limited to 'static/php/index.php')
-rw-r--r--static/php/index.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/static/php/index.php b/static/php/index.php
new file mode 100644
index 0000000..c06d77d
--- /dev/null
+++ b/static/php/index.php
@@ -0,0 +1,12 @@
+<?php
+/**
+ * Display proper page depending on the login status.
+ */
+
+require_once 'classes/Login.class.php';
+
+if ((new Login())->isLoggedIn()) {
+ include 'upload_logged.html';
+} else {
+ include 'upload_unlogged.html';
+}