summaryrefslogtreecommitdiffstats
path: root/wp-admin
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2007-10-15 17:12:03 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2007-10-15 17:12:03 +0000
commit62be96c8da309f5fb3987d978b926f0e00266030 (patch)
treec03bd93e82823cfaa19733a87f18be2fae121d14 /wp-admin
parent157499c240c15fb5bdd3e5ac23f7153638b0b3dc (diff)
downloadwordpress-mu-62be96c8da309f5fb3987d978b926f0e00266030.tar.gz
wordpress-mu-62be96c8da309f5fb3987d978b926f0e00266030.tar.xz
wordpress-mu-62be96c8da309f5fb3987d978b926f0e00266030.zip
Disable xmlrpc posting by default
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@1077 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-admin')
-rw-r--r--wp-admin/wpmu-edit.php1
-rw-r--r--wp-admin/wpmu-options.php10
2 files changed, 11 insertions, 0 deletions
diff --git a/wp-admin/wpmu-edit.php b/wp-admin/wpmu-edit.php
index 5665924..9befdff 100644
--- a/wp-admin/wpmu-edit.php
+++ b/wp-admin/wpmu-edit.php
@@ -25,6 +25,7 @@ switch( $_REQUEST[ 'action' ] ) {
}
update_site_option( "illegal_names", $names );
update_site_option( "registration", $wpdb->escape( $_POST[ 'registration' ] ) );
+ update_site_option( "xmlrpc_active", $wpdb->escape( $_POST[ 'xmlrpc_active' ] ) );
update_site_option( "registrationnotification", $wpdb->escape( $_POST[ 'registrationnotification' ] ) );
if( $_POST[ 'limited_email_domains' ] != '' ) {
update_site_option( "limited_email_domains", split( ' ', $_POST[ 'limited_email_domains' ] ) );
diff --git a/wp-admin/wpmu-options.php b/wp-admin/wpmu-options.php
index 8361389..98114a8 100644
--- a/wp-admin/wpmu-options.php
+++ b/wp-admin/wpmu-options.php
@@ -57,6 +57,16 @@ if (isset($_GET['updated'])) {
<?php _e('Send the site admin an email notification every time someone registers a blog or user account.') ?></td>
</tr>
<tr valign="top">
+ <th scope="row"><?php _e('Enable posting by XMLRPC') ?></th>
+ <?php
+ if( !get_site_option('xmlrpc_active') )
+ update_site_option( 'xmlrpc_active', 'no' );
+ ?>
+ <td><input name="xmlrpc_active" type="radio" id="xmlrpc_active1" value='yes' <?php echo get_site_option('xmlrpc_active') == 'yes' ? 'checked' : ''; ?> /> Yes<br />
+ <input name="xmlrpc_active" type="radio" id="xmlrpc_active2" value='no' <?php echo get_site_option('xmlrpc_active') == 'no' ? 'checked' : ''; ?> /> No<br />
+ <?php _e('This is an advanced technique for making posts to blogs. It is used by <a href="http://codex.wordpress.org/Weblog_Client">blog clients</a> like Ecto, Flock and Microsoft Live Writer and by Flickr to post pictures to blogs. Unfortunately it is also extensively used by spammers. <em>Disabled by Default</em>') ?></td>
+ </tr>
+ <tr valign="top">
<th scope="row"><?php _e('Welcome Email:') ?></th>
<td><textarea name="welcome_email" id="welcome_email" rows='5' cols='45' style="width: 95%"><?php echo stripslashes( get_site_option('welcome_email') ) ?></textarea>
<br />