Changeset 1285
- Timestamp:
- 05/12/08 14:29:55 (4 months ago)
- Files:
-
- trunk/wp-admin/wpmu-edit.php (modified) (4 diffs)
- trunk/wp-admin/wpmu-options.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wp-admin/wpmu-edit.php
r1276 r1285 13 13 } 14 14 15 if( isset( $_POST['ref'] ) == false && empty( $_SERVER['HTTP_REFERER'] ) == false) {15 if( isset( $_POST['ref'] ) == false && !empty($_SERVER['HTTP_REFERER']) ) { 16 16 $_POST['ref'] = $_SERVER['HTTP_REFERER']; 17 17 } … … 25 25 26 26 update_site_option( "WPLANG", $_POST['WPLANG'] ); 27 27 28 if( is_email( $_POST['admin_email'] ) ) 28 29 update_site_option( "admin_email", $_POST['admin_email'] ); 29 $illegal_names = split( ' ', $_POST['illegal_names'] ); 30 30 31 $illegal_names = split( ' ', $_POST['illegal_names'] ); 31 32 foreach( (array) $illegal_names as $name ) { 32 33 $name = trim( $name ); … … 34 35 $names[] = trim( $name ); 35 36 } 36 37 37 update_site_option( "illegal_names", $names ); 38 38 39 update_site_option( "registration", $_POST['registration'] ); 39 40 update_site_option( "registrationnotification", $_POST['registrationnotification'] ); 40 41 41 42 if( $_POST['limited_email_domains'] != '' ) { 42 update_site_option( "limited_email_domains", split( ' ', $_POST['limited_email_domains'] ) ); 43 $limited_email_domains = str_replace( ' ', "\n", $_POST[ 'limited_email_domains' ] ); 44 $limited_email_domains = split( "\n", stripslashes( $limited_email_domains ) ); 45 foreach( (array) $limited_email_domains as $domain ) { 46 $limited_email[] = trim( $domain ); 47 } 48 update_site_option( "limited_email_domains", $limited_email ); 43 49 } else { 44 50 update_site_option( "limited_email_domains", '' ); … … 46 52 47 53 if( $_POST['banned_email_domains'] != '' ) { 48 $banned_email_domains = split( "\n", stripslashes( $_POST['banned_email_domains']) );54 $banned_email_domains = split( "\n", stripslashes( $_POST[ 'banned_email_domains' ] ) ); 49 55 foreach( (array) $banned_email_domains as $domain ) { 50 56 $banned[] = trim( $domain ); trunk/wp-admin/wpmu-options.php
r1261 r1285 100 100 <th scope="row"><?php _e('Limited Email Registrations') ?></th> 101 101 <td> 102 <input name="limited_email_domains" type="text" id="limited_email_domains" style="width: 95%" value="<?php echo get_site_option('limited_email_domains') == '' ? '' : @implode( " ", get_site_option('limited_email_domains') ); ?>" size="45" /> 102 <?php $limited_email_domains = get_site_option('limited_email_domains'); 103 $limited_email_domains = str_replace( ' ', "\n", $limited_email_domains ); ?> 104 <textarea name="limited_email_domains" id="limited_email_domains" cols='40' rows='5'><?php echo $limited_email_domains == '' ? '' : @implode( "\n", $limited_email_domains ); ?></textarea> 103 105 <br /> 104 <?php _e('If you want to limit blog registrations to certain domains. Separate domains by spaces.') ?>106 <?php _e('If you want to limit blog registrations to certain domains. One domain per line.') ?> 105 107 </td> 106 108 </tr>
