diff options
author | RaindropsSys <raindrops@equestria.dev> | 2023-11-08 20:59:42 +0100 |
---|---|---|
committer | RaindropsSys <raindrops@equestria.dev> | 2023-11-08 20:59:42 +0100 |
commit | b83a38434156038bc02db74cb93fa8460d0f2f32 (patch) | |
tree | 5229c62153ad640f164ff3d4a837bd8345305e02 /api/randomFavorites.php | |
parent | 4755889793a36a1f33282ee4759445bef1eb2bb2 (diff) | |
download | mist-b83a38434156038bc02db74cb93fa8460d0f2f32.tar.gz mist-b83a38434156038bc02db74cb93fa8460d0f2f32.tar.bz2 mist-b83a38434156038bc02db74cb93fa8460d0f2f32.zip |
Updated 16 files, added 3 files, deleted android/app/release/app-release.apk.zip and renamed android/app/release/app-release.apk (automated)
Diffstat (limited to 'api/randomFavorites.php')
-rw-r--r-- | api/randomFavorites.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/api/randomFavorites.php b/api/randomFavorites.php new file mode 100644 index 0000000..8994c6f --- /dev/null +++ b/api/randomFavorites.php @@ -0,0 +1,8 @@ +<?php + +header("X-Frame-Options: SAMEORIGIN"); +require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/session.php"; +header("Content-Type: application/json"); +global $favorites; +shuffle($favorites); +die(json_encode($favorites));
\ No newline at end of file |