diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-08-21 18:43:52 +0000 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-08-21 18:43:52 +0000 |
commit | 34fa0309c41be71e5d7d34eb5d8f8f9e1ac622e4 (patch) | |
tree | b37633cb31f6af003f472c03e20672d312ae460d /update/plugin/wordpress/trunk | |
parent | 09d7b6c435b4884cff4d2c3da6bc6807cacaaef0 (diff) | |
download | instadisc-34fa0309c41be71e5d7d34eb5d8f8f9e1ac622e4.tar.gz instadisc-34fa0309c41be71e5d7d34eb5d8f8f9e1ac622e4.tar.bz2 instadisc-34fa0309c41be71e5d7d34eb5d8f8f9e1ac622e4.zip |
Update: Add check for mcrypt extension
Refs #38
Diffstat (limited to 'update/plugin/wordpress/trunk')
-rw-r--r-- | update/plugin/wordpress/trunk/instadisc/instadisc.php | 18 |
1 files changed, 16 insertions, 2 deletions
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) | |||
30 | add_option('instaDisc_subscription_title',get_option('blogname')); | 30 | add_option('instaDisc_subscription_title',get_option('blogname')); |
31 | } | 31 | } |
32 | 32 | ||
33 | if (get_option('instaDisc_blogPost_password') === FALSE) | 33 | if ((get_option('instaDisc_blogPost_password') === FALSE) || !extension_loaded('mcrypt')) |
34 | { | 34 | { |
35 | add_option('instaDisc_blogPost_password',''); | 35 | add_option('instaDisc_blogPost_password',''); |
36 | } | 36 | } |
37 | 37 | ||
38 | if (get_option('instaDisc_comment_password') === FALSE) | 38 | if ((get_option('instaDisc_comment_password') === FALSE) || !extension_loaded('mcrypt')) |
39 | { | 39 | { |
40 | add_option('instaDisc_comment_password',''); | 40 | add_option('instaDisc_comment_password',''); |
41 | } | 41 | } |
@@ -99,6 +99,10 @@ function id_settings_page() | |||
99 | <BR>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. | 99 | <BR>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. |
100 | </TD> | 100 | </TD> |
101 | </TR> | 101 | </TR> |
102 | <?php | ||
103 | if (extension_loaded('mcrypt')) | ||
104 | { | ||
105 | ?> | ||
102 | <TR VALIGN="top"> | 106 | <TR VALIGN="top"> |
103 | <TH SCOPE="row"><LABEL>Encryption Password</LABEL> | 107 | <TH SCOPE="row"><LABEL>Encryption Password</LABEL> |
104 | <TD> | 108 | <TD> |
@@ -106,6 +110,9 @@ function id_settings_page() | |||
106 | <BR>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. | 110 | <BR>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. |
107 | </TD> | 111 | </TD> |
108 | </TR> | 112 | </TR> |
113 | <?php | ||
114 | } | ||
115 | ?> | ||
109 | </TABLE> | 116 | </TABLE> |
110 | <H3>Comments Subscription</H3> | 117 | <H3>Comments Subscription</H3> |
111 | <TABLE CLASS="form-table"> | 118 | <TABLE CLASS="form-table"> |
@@ -144,6 +151,10 @@ function id_settings_page() | |||
144 | <BR>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 | <BR>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. |
145 | </TD> | 152 | </TD> |
146 | </TR> | 153 | </TR> |
154 | <?php | ||
155 | if (extension_loaded('mcrypt')) | ||
156 | { | ||
157 | ?> | ||
147 | <TR VALIGN="top"> | 158 | <TR VALIGN="top"> |
148 | <TH SCOPE="row"><LABEL>Encryption Password</LABEL> | 159 | <TH SCOPE="row"><LABEL>Encryption Password</LABEL> |
149 | <TD> | 160 | <TD> |
@@ -151,6 +162,9 @@ function id_settings_page() | |||
151 | <BR>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. | 162 | <BR>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. |
152 | </TD> | 163 | </TD> |
153 | </TR> | 164 | </TR> |
165 | <?php | ||
166 | } | ||
167 | ?> | ||
154 | </TABLE> | 168 | </TABLE> |
155 | <INPUT TYPE="hidden" NAME="action" VALUE="update"> | 169 | <INPUT TYPE="hidden" NAME="action" VALUE="update"> |
156 | <INPUT TYPE="hidden" NAME="page_options" VALUE="instaDisc_subscription_title,instadisc_blogPost_centralServer_activationKey,instaDisc_blogPost_centralServer,instaDisc_comment_centralServer_activationKey,instaDisc_comment_centralServer,instaDisc_blogPost_centralServer_username,instaDisc_blogPost_centralServer_password,instaDisc_comment_centralServer_username,instaDisc_comment_centralServer_password,instaDisc_blogPost_password,instaDisc_comment_password"> | 170 | <INPUT TYPE="hidden" NAME="page_options" VALUE="instaDisc_subscription_title,instadisc_blogPost_centralServer_activationKey,instaDisc_blogPost_centralServer,instaDisc_comment_centralServer_activationKey,instaDisc_comment_centralServer,instaDisc_blogPost_centralServer_username,instaDisc_blogPost_centralServer_password,instaDisc_comment_centralServer_username,instaDisc_comment_centralServer_password,instaDisc_blogPost_password,instaDisc_comment_password"> |