ok Donncha, here it is (but it's really really simple)
admin/wpmu-options.php - Line 106
Add :
<fieldset class="options">
<legend><?php _e('Allow users to get multiple blog with one mail account') ?></legend>
<table width="100%" cellspacing="2" cellpadding="5" class="editform">
<?php
$allow_multiple_blog_per_account = get_site_option('allow_multiple_blog_per_account', 1);
?>
<tr valign="top">
<th width="33%" scope="row"><?php _e('Allow user to create multiple blog with a single account:') ?></th>
<td>
<select name="allow_multiple_blog_per_account" id="allow_multiple_blog_per_account">
<option value="1"<?php echo $allow_multiple_blog_per_account == 1 ? ' SELECTED' : ''; ?>><?php _e('Yes') ?></option>
<option value="0"<?php echo $allow_multiple_blog_per_account == 0 ? ' SELECTED' : ''; ?>><?php _e('No') ?></option>
</select>
</td>
</tr>
</table>
</fieldset>
admin/wpmu-edit.php - Line 32 :
Add :
update_site_option( "allow_multiple_blog_per_account", $_POST[ 'allow_multiple_blog_per_account' ] );
wp-signup.php - Line 13 :
Add :
if ( is_user_logged_in() ) {
// Attempt to sign-up again, check if users are allowed or not
if (get_site_option('allow_multiple_blog_per_account') == 0) {
wp_redirect('/');
}
}
May be I should inform already registered users why they are not alwoed to create a new blog, but in fact, most of time, only spammers like such tools ;) (I'm myself a spammer for SEO contests, I know exactly what to worrid about with a so easy to use blog tool).
Of Coure the PO files should be change also, but my english is not as good as I wish it to be, so I let you change the title for what you think is the best.