Quellcode durchsuchen

Add a smarty plugin for md5

FusionPBX vor 2 Jahren
Ursprung
Commit
6cd288879a
1 geänderte Dateien mit 23 neuen und 0 gelöschten Zeilen
  1. 23 0
      resources/templates/engine/smarty/plugins/modifier.md5.php

+ 23 - 0
resources/templates/engine/smarty/plugins/modifier.md5.php

@@ -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);
+}