mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-22 21:34:28 +02:00
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();
|
$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
|
* Return an image from the application's or the module's public folder
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user