diff options
Diffstat (limited to 'stuff/spotifycdnsilly/ip.php')
| -rw-r--r-- | stuff/spotifycdnsilly/ip.php | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/stuff/spotifycdnsilly/ip.php b/stuff/spotifycdnsilly/ip.php new file mode 100644 index 0000000..e8332ff --- /dev/null +++ b/stuff/spotifycdnsilly/ip.php @@ -0,0 +1,21 @@ +<?php + +$addr = $_SERVER['REMOTE_ADDR']; +$url = "https://seed-mix-image.spotifycdn.com/v6/img/desc/$addr/sv/large"; +$img = "<img src='$url' alt='Spotify: $addr'>"; + +?> + +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title><?php echo($addr); ?></title> + <link href="/style.css" rel="stylesheet" type="text/css" media="all"> + <?php echo("<meta property='og:image' content='$url'>"); ?> + </head> + <body style="display: flex; align-items: center; justify-content: center;"> + <?php echo($img); ?> + </body> +</html> |
