diff options
Diffstat (limited to 'public/index.php')
| -rw-r--r-- | public/index.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/public/index.php b/public/index.php index 2a6311f..8f1d7dd 100644 --- a/public/index.php +++ b/public/index.php @@ -1,5 +1,8 @@ <?php include_once "../src/config.php"; +include_once "../src/accounts.php"; +authorize_user(); + ?> <html> @@ -17,7 +20,9 @@ include_once "../src/config.php"; <a href="/emotes">Emotes</a> <a href="/emotesets.php">Emotesets</a> <a href="/users.php">Users</a> - <a href="/emotes/upload.php">Upload</a> + <?php if (ANONYMOUS_UPLOAD || (isset($_SESSION["user_role"]) && $_SESSION["user_role"]["permission_upload"])) { + echo '<a href="/emotes/upload.php">Upload</a>'; + } ?> <a href="/account">Account</a> <a href="/software">Chat clients</a> </div> |
