mirror of
https://github.com/mikaela/mikaela.github.io/
synced 2024-11-14 07:59:27 +01:00
php/gravatar.php: add size & mention size for Steam.
This commit is contained in:
parent
1568146940
commit
77dcc8bbab
@ -10,18 +10,28 @@
|
||||
|
||||
<p>
|
||||
<form action="gravatar.php" method="post">
|
||||
Email address: <input type="text" name="email">
|
||||
*Email address: <input type="text" name="email"><br>
|
||||
Size: <input type="text" name="size">
|
||||
<input type="submit">
|
||||
</form>
|
||||
</p>
|
||||
|
||||
<p>* marks required field. Only email address is required.</p>
|
||||
|
||||
<p>Size can be anything from 1 to 2048. If it's empty, size is
|
||||
80px.</p>
|
||||
|
||||
<p>For Steam profile pictures, set size as 184.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
<?php
|
||||
|
||||
$email = trim( $_REQUEST["email"] );
|
||||
$size = $_REQUEST["size"];
|
||||
|
||||
echo "<p>Email<br> $email</p>";
|
||||
echo "<p>Email<br> $email<br></p>";
|
||||
|
||||
$email = strtolower( $email );
|
||||
|
||||
@ -33,7 +43,7 @@ if($md5email != "d41d8cd98f00b204e9800998ecf8427e") {
|
||||
echo "<p>md5<br> $md5email</p>";
|
||||
|
||||
echo "<p>Link<br>";
|
||||
$gravatar = "https://gravatar.com/avatar/$md5email.jpg";
|
||||
$gravatar = "https://gravatar.com/avatar/$md5email?s=$size.jpeg";
|
||||
echo "$gravatar</p>";
|
||||
echo "<p>";
|
||||
echo "<img src=$gravatar>";
|
||||
|
Loading…
Reference in New Issue
Block a user