Gravatar sample implementation. This is ugly, NEVER use it in production
This commit is contained in:
parent
23cbb8c9b8
commit
0bc65d97cb
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue