diff options
| author | Hannah Isopod <me@bathynomus.xyz> | 2025-05-10 03:03:58 -0600 |
|---|---|---|
| committer | Hannah Isopod <me@bathynomus.xyz> | 2025-05-10 03:03:58 -0600 |
| commit | eb61c1bae2ffad114e17393d91d86fb00d7ac8cd (patch) | |
| tree | 4f997d73e0843dab760e5d988679a1a86b76f5da /stuff/spotifycdnsilly/ip.php | |
| parent | 4b9500ddeedbea21f80f41dfe4149cf3bf9be4c3 (diff) | |
Initialer commit
Just remade the repo because I don't *need* need a comprehensive source history for my personal website and this is easier than getting filter-repo to work good
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> |
