[pLog-svn] r6785 - in plugins/branches/lifetype-1.2/unported/subscribe: . class/dao

jondaley at devel.lifetype.net jondaley at devel.lifetype.net
Sun Feb 1 09:20:35 EST 2009


Author: jondaley
Date: 2009-02-01 09:20:35 -0500 (Sun, 01 Feb 2009)
New Revision: 6785

Modified:
   plugins/branches/lifetype-1.2/unported/subscribe/class/dao/subscriptions.class.php
   plugins/branches/lifetype-1.2/unported/subscribe/pluginsubscribe.class.php
Log:
we need to use a configuration key, if people are actually going to use this plugin

Modified: plugins/branches/lifetype-1.2/unported/subscribe/class/dao/subscriptions.class.php
===================================================================
--- plugins/branches/lifetype-1.2/unported/subscribe/class/dao/subscriptions.class.php	2009-02-01 14:14:06 UTC (rev 6784)
+++ plugins/branches/lifetype-1.2/unported/subscribe/class/dao/subscriptions.class.php	2009-02-01 14:20:35 UTC (rev 6785)
@@ -68,9 +68,9 @@
     
         // calculate a secret hash used for confirmation of the email address
     function _getConfirmationCode($address){
-            // TODO: make a configuration option to set this key
+//        $key = $blogSettings->getValue( "plugin_subscribe_key" );
         $key = "JDKey";
-        
+
         return md5($address . $key);
             // PHP5 has a faster version (according to a commenter on the
             // php docs for md5 - and I think a LT user...

Modified: plugins/branches/lifetype-1.2/unported/subscribe/pluginsubscribe.class.php
===================================================================
--- plugins/branches/lifetype-1.2/unported/subscribe/pluginsubscribe.class.php	2009-02-01 14:14:06 UTC (rev 6784)
+++ plugins/branches/lifetype-1.2/unported/subscribe/pluginsubscribe.class.php	2009-02-01 14:20:35 UTC (rev 6785)
@@ -227,7 +227,14 @@
         }
 
         function getPluginConfigurationKeys(){
-            return(Array(Array( "name" => "plugin_subscribe_enabled", "type" => "boolean")));
+			lt_include( PLOG_CLASS_PATH."class/data/validator/stringvalidator.class.php" );
+
+            return(
+                Array(
+                    Array( "name" => "plugin_subscribe_enabled", "type" => "boolean")
+                    Array( "name" => "plugin_subscribe_key", "validator" => new StringValidator(), "type" => "string", "allowEmpty" => true ),
+                      )
+                   );
         }
         
     }



More information about the pLog-svn mailing list