diff options
Diffstat (limited to 'static/php/index.php')
| -rw-r--r-- | static/php/index.php | 12 |
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'; +} |
