Changeset 12752 for trunk/wp-admin/ms-options.php
- Timestamp:
- 01/18/2010 08:34:48 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/ms-options.php
r12674 r12752 47 47 <th scope="row"><?php _e('Allow new registrations') ?></th> 48 48 <?php 49 if ( !get_site_option('registration') )49 if ( !get_site_option('registration') ) 50 50 update_site_option( 'registration', 'all' ); 51 51 ?> … … 56 56 <label><input name="registration" type="radio" id="registration4" value='blog' <?php echo get_site_option('registration') == 'blog' ? 'checked="checked"' : ''; ?> /> <?php _e('Only logged in users can create new blogs.'); ?></label><br /> 57 57 <p><?php _e('Disable or enable registration and who or what can be registered. (Default=all)'); ?></p> 58 <?php if ( is_subdomain_install() ) {58 <?php if ( is_subdomain_install() ) { 59 59 echo "<p>" . __('If registration is disabled, please set "NOBLOGREDIRECT" in wp-config.php to a url you will redirect visitors to if they visit a non existant blog.') . "</p>"; 60 60 } ?> … … 65 65 <th scope="row"><?php _e('Registration notification') ?></th> 66 66 <?php 67 if ( !get_site_option('registrationnotification') )67 if ( !get_site_option('registrationnotification') ) 68 68 update_site_option( 'registrationnotification', 'yes' ); 69 69 ?> … … 202 202 <th scope="row"><?php _e('Upload media button') ?></th> 203 203 <?php $mu_media_buttons = get_site_option( 'mu_media_buttons', array() ); ?> 204 <td><label><input type='checkbox' id="mu_media_buttons_image" name="mu_media_buttons[image]" value='1' <?php if ( $mu_media_buttons[ 'image' ] ) { echo 'checked=checked '; } ?>/> <?php _e( 'Images' ); ?></label><br />205 <label><input type='checkbox' id="mu_media_buttons_video" name="mu_media_buttons[video]" value='1' <?php if ( $mu_media_buttons[ 'video' ] ) { echo 'checked=checked '; } ?>/> <?php _e( 'Videos' ); ?></label><br />206 <label><input type='checkbox' id="mu_media_buttons_audio" name="mu_media_buttons[audio]" value='1' <?php if ( $mu_media_buttons[ 'audio' ] ) { echo 'checked=checked '; } ?>/> <?php _e( 'Music' ); ?></label><br />204 <td><label><input type='checkbox' id="mu_media_buttons_image" name="mu_media_buttons[image]" value='1' <?php if ( $mu_media_buttons[ 'image' ] ) { echo 'checked=checked '; } ?>/> <?php _e( 'Images' ); ?></label><br /> 205 <label><input type='checkbox' id="mu_media_buttons_video" name="mu_media_buttons[video]" value='1' <?php if ( $mu_media_buttons[ 'video' ] ) { echo 'checked=checked '; } ?>/> <?php _e( 'Videos' ); ?></label><br /> 206 <label><input type='checkbox' id="mu_media_buttons_audio" name="mu_media_buttons[audio]" value='1' <?php if ( $mu_media_buttons[ 'audio' ] ) { echo 'checked=checked '; } ?>/> <?php _e( 'Music' ); ?></label><br /> 207 207 <?php _e( 'The media upload buttons to display on the "Write Post" page. Make sure you update the "Upload File Types" below as well.' ); ?></td> 208 208 </tr> … … 210 210 <th scope="row"><?php _e('Blog upload space check') ?></th> 211 211 <td> 212 <label><input type='radio' id="upload_space_check_disabled" name="upload_space_check_disabled" value='0' <?php if ( !get_site_option( 'upload_space_check_disabled' ) ) { echo 'checked=checked '; } ?>/> <?php _e( 'Enabled' ); ?></label><br />213 <label><input type='radio' id="upload_space_check_disabled" name="upload_space_check_disabled" value='1' <?php if ( get_site_option( 'upload_space_check_disabled' ) ) { echo 'checked=checked '; } ?>/> <?php _e( 'Disabled' ); ?></label><br />212 <label><input type='radio' id="upload_space_check_disabled" name="upload_space_check_disabled" value='0' <?php if ( !get_site_option( 'upload_space_check_disabled' ) ) { echo 'checked=checked '; } ?>/> <?php _e( 'Enabled' ); ?></label><br /> 213 <label><input type='radio' id="upload_space_check_disabled" name="upload_space_check_disabled" value='1' <?php if ( get_site_option( 'upload_space_check_disabled' ) ) { echo 'checked=checked '; } ?>/> <?php _e( 'Disabled' ); ?></label><br /> 214 214 <?php _e( 'By default there is a limit on the total size of files uploaded but it can be disabled here.' ); ?></td> 215 215 </tr> … … 232 232 <td><input name="admin_notice_feed" style="width: 95%" type="text" id="admin_notice_feed" value="<?php echo esc_attr( get_site_option( 'admin_notice_feed' ) ) ?>" size="80" /><br /> 233 233 <?php _e( 'Display the latest post from this RSS or Atom feed on all blog dashboards. Leave blank to disable.' ); ?><br /> 234 <?php if ( get_site_option( 'admin_notice_feed' ) != 'http://' . $current_site->domain . $current_site->path . 'feed/' )234 <?php if ( get_site_option( 'admin_notice_feed' ) != 'http://' . $current_site->domain . $current_site->path . 'feed/' ) 235 235 echo __( "A good one to use would be the feed from your main blog: " ) . 'http://' . $current_site->domain . $current_site->path . 'feed/'; ?></td> 236 236 </tr> … … 252 252 <table class="form-table"> 253 253 <?php 254 if ( is_dir( ABSPATH . LANGDIR ) && $dh = opendir( ABSPATH . LANGDIR ) )254 if ( is_dir( ABSPATH . LANGDIR ) && $dh = opendir( ABSPATH . LANGDIR ) ) 255 255 while( ( $lang_file = readdir( $dh ) ) !== false ) 256 if ( substr( $lang_file, -3 ) == '.mo' )256 if ( substr( $lang_file, -3 ) == '.mo' ) 257 257 $lang_files[] = $lang_file; 258 258 $lang = get_site_option('WPLANG'); 259 if ( is_array($lang_files) && !empty($lang_files) ) {259 if ( is_array($lang_files) && !empty($lang_files) ) { 260 260 ?> 261 261 <tr valign="top">
Note: See TracChangeset
for help on using the changeset viewer.