Gravatar sample implementation. This is ugly, NEVER use it in production

This commit is contained in:
Thomas Gelf 2014-02-21 10:46:10 +00:00
parent 23cbb8c9b8
commit 0bc65d97cb
1 changed files with 7 additions and 0 deletions

View File

@ -55,6 +55,13 @@ class StaticController extends ActionController
$this->_helper->layout()->disableLayout();
}
public function gravatarAction()
{
$img = file_get_contents('http://www.gravatar.com/avatar/' . md5(strtolower(trim($this->_request->getParam('email')))) . '?s=200&d=mm');
header('image/jpeg');
echo $img;
}
/**
* Return an image from the application's or the module's public folder
*/