diff options
Diffstat (limited to 'public')
| -rw-r--r-- | public/emotes/index.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/public/emotes/index.php b/public/emotes/index.php index c73b3d0..b603cc0 100644 --- a/public/emotes/index.php +++ b/public/emotes/index.php @@ -1,5 +1,7 @@ <?php include "../../src/emote.php"; +include "../../src/accounts.php"; +authorize_user(); function display_list_emotes(int $page, int $limit): array { @@ -16,7 +18,8 @@ function display_list_emotes(int $page, int $limit): array $row["id"], $row["code"], $row["ext"], - intval(strtotime($row["created_at"])) + intval(strtotime($row["created_at"])), + $row["uploaded_by"] )); } @@ -35,7 +38,8 @@ function display_emote(int $id) $row["id"], $row["code"], $row["ext"], - intval(strtotime($row["created_at"])) + intval(strtotime($row["created_at"])), + $row["uploaded_by"] ); } |
