From 34fa0309c41be71e5d7d34eb5d8f8f9e1ac622e4 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Thu, 21 Aug 2008 18:43:52 +0000 Subject: Update: Add check for mcrypt extension Refs #38 --- update/plugin/wordpress/trunk/instadisc/instadisc.php | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'update/plugin/wordpress/trunk') diff --git a/update/plugin/wordpress/trunk/instadisc/instadisc.php b/update/plugin/wordpress/trunk/instadisc/instadisc.php index 07e23f0..6716b01 100644 --- a/update/plugin/wordpress/trunk/instadisc/instadisc.php +++ b/update/plugin/wordpress/trunk/instadisc/instadisc.php @@ -30,12 +30,12 @@ if (get_option('instaDisc_subscription_title') === FALSE) add_option('instaDisc_subscription_title',get_option('blogname')); } -if (get_option('instaDisc_blogPost_password') === FALSE) +if ((get_option('instaDisc_blogPost_password') === FALSE) || !extension_loaded('mcrypt')) { add_option('instaDisc_blogPost_password',''); } -if (get_option('instaDisc_comment_password') === FALSE) +if ((get_option('instaDisc_comment_password') === FALSE) || !extension_loaded('mcrypt')) { add_option('instaDisc_comment_password',''); } @@ -99,6 +99,10 @@ function id_settings_page()
Both after registration and after activation, the Central Server you are using should tell you it's XML-RPC URL (usually a URL containing the string "xmlrpc.php"). Copy that URL into this field. + @@ -106,6 +110,9 @@ function id_settings_page()
If you would like to password-protect your feed, enter a password into this box. That password will need to be known by anyone allowed to view your subscription. If you don't want to password protect this feed, leave this field blank. +

Comments Subscription

@@ -144,6 +151,10 @@ function id_settings_page()
Both after registration and after activation, the Central Server you are using should tell you it's XML-RPC URL (usually a URL containing the string "xmlrpc.php"). Copy that URL into this field. + +
@@ -151,6 +162,9 @@ function id_settings_page()
If you would like to password-protect your feed, enter a password into this box. That password will need to be known by anyone allowed to view your subscription. If you don't want to password protect this feed, leave this field blank.
-- cgit 1.4.1