Add a smarty plugin for md5

This commit is contained in:
FusionPBX 2023-06-30 17:34:10 -06:00 committed by GitHub
parent e03becd5d1
commit 7d90568f05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,23 @@
<?php
/**
* Smarty plugin
*
* @package Smarty
* @subpackage PluginsModifier
*/
/**
* Smarty md5 modifier plugin
* Type: modifier
* Name: md5
* Purpose: Checks if a value exists in an array
*
* @param string $needle
* @param array $haystack
*
* @return boolean
*/
function smarty_modifier_md5($string)
{
return md5($string);
}