22 lines
621 B
PHP
22 lines
621 B
PHP
|
<?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>
|