mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Add a smarty plugin for md5
This commit is contained in:
23
resources/templates/engine/smarty/plugins/modifier.md5.php
Normal file
23
resources/templates/engine/smarty/plugins/modifier.md5.php
Normal 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);
|
||||
}
|
||||
Reference in New Issue
Block a user