mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-18 08:12:15 +00:00
v1.7 alpha.2
This commit is contained in:
@@ -11,6 +11,21 @@ use Illuminate\Support\Facades\Storage;
|
||||
use Illuminate\Support\Str;
|
||||
use Intervention\Image\ImageManagerStatic as Image;
|
||||
|
||||
/**
|
||||
* Obfuscate email
|
||||
*
|
||||
* @param $email
|
||||
* @return string
|
||||
*/
|
||||
function obfuscate_email($email)
|
||||
{
|
||||
$em = explode("@",$email);
|
||||
$name = implode('@', array_slice($em, 0, count($em)-1));
|
||||
$len = floor(strlen($name)/2);
|
||||
|
||||
return substr($name,0, $len) . str_repeat('*', $len) . "@" . end($em);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get single value from settings table
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user