php/gravatar.php: add size & mention size for Steam.

This commit is contained in:
Mikaela Suomalainen 2014-06-30 13:01:02 +03:00
parent 1568146940
commit 77dcc8bbab

View File

@ -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>";