westdc-core/Westdc/Service/ServiceAgent/Gravatar.php

19 lines
366 B
PHP
Raw Normal View History

<?php
namespace Westdc\Service\ServiceAgent;
class Gravatar{
function Get( $email, $size='' ) {
$default = "http://www.msgfm.com/static/img/gCons/agent.png";
if(empty($size))
{
$size = 40;
}
$url = "http://www.gravatar.com/avatar/" . md5( strtolower( trim( $email ) ) ) . "?d=" . urlencode( $default ) . "&s=" . $size;
return $url;
}
}