[pLog-svn] r5088 - in plugins/branches/lifetype-1.2/hiddeninput/class: . dao

jondaley at devel.lifetype.net jondaley at devel.lifetype.net
Wed Mar 14 10:13:35 EDT 2007


Author: jondaley
Date: 2007-03-14 10:13:35 -0400 (Wed, 14 Mar 2007)
New Revision: 5088

Added:
   plugins/branches/lifetype-1.2/hiddeninput/class/dao/
   plugins/branches/lifetype-1.2/hiddeninput/class/dao/hiddeninput.class.php
Log:
oops, forgot to add this yesterday

Added: plugins/branches/lifetype-1.2/hiddeninput/class/dao/hiddeninput.class.php
===================================================================
--- plugins/branches/lifetype-1.2/hiddeninput/class/dao/hiddeninput.class.php	                        (rev 0)
+++ plugins/branches/lifetype-1.2/hiddeninput/class/dao/hiddeninput.class.php	2007-03-14 14:13:35 UTC (rev 5088)
@@ -0,0 +1,16 @@
+<?php
+
+// Helpers for the Hidden Input plugin
+
+class HiddenInput{
+
+    function generateValue($blogSettings, $field){
+        $hiddenEmptyFields = $blogSettings->getValue("plugin_hiddeninput_emptyfields");
+        if(strpos($hiddenEmptyFields, $field) === FALSE){
+            return md5($field);
+        }
+        return "";
+    }
+}
+
+?>
\ No newline at end of file



More information about the pLog-svn mailing list