Changeset 13918 for trunk/wp-admin/ms-options.php
- Timestamp:
- 04/01/2010 09:21:27 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/ms-options.php (modified) (14 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/ms-options.php
r13884 r13918 1 1 <?php 2 require_once( 'admin.php');2 require_once( './admin.php' ); 3 3 4 4 if ( !is_multisite() ) 5 wp_die( __( 'Multisite support is not enabled.') );6 7 $title = __( 'Network Options');5 wp_die( __( 'Multisite support is not enabled.' ) ); 6 7 $title = __( 'Network Options' ); 8 8 $parent_file = 'ms-admin.php'; 9 9 10 include( 'admin-header.php');10 include( './admin-header.php' ); 11 11 12 12 if ( ! current_user_can( 'manage_network_options' ) ) 13 wp_die( __( 'You do not have permission to access this page.') );13 wp_die( __( 'You do not have permission to access this page.' ) ); 14 14 15 15 if (isset($_GET['updated'])) { 16 16 ?> 17 <div id="message" class="updated fade"><p><?php _e( 'Options saved.') ?></p></div>17 <div id="message" class="updated fade"><p><?php _e( 'Options saved.' ) ?></p></div> 18 18 <?php 19 19 } … … 22 22 <div class="wrap"> 23 23 <?php screen_icon(); ?> 24 <h2><?php _e( 'Network Options') ?></h2>24 <h2><?php _e( 'Network Options' ) ?></h2> 25 25 <form method="post" action="ms-edit.php?action=siteoptions"> 26 <?php wp_nonce_field( "siteoptions"); ?>27 <h3><?php _e( 'Operational Settings'); ?></h3>28 <table class="form-table"> 29 <tr valign="top"> 30 <th scope="row"><label for="site_name"><?php _e( 'Network Name') ?></label></th>31 <td> 32 <input name="site_name" type="text" id="site_name" class="regular-text" value="<?php echo esc_attr( $current_site->site_name) ?>" />33 <br /> 34 <?php _e( 'What you would like to call this website.') ?>35 </td> 36 </tr> 37 38 <tr valign="top"> 39 <th scope="row"><label for="admin_email"><?php _e( 'Network Admin Email') ?></label></th>26 <?php wp_nonce_field( 'siteoptions' ); ?> 27 <h3><?php _e( 'Operational Settings' ); ?></h3> 28 <table class="form-table"> 29 <tr valign="top"> 30 <th scope="row"><label for="site_name"><?php _e( 'Network Name' ) ?></label></th> 31 <td> 32 <input name="site_name" type="text" id="site_name" class="regular-text" value="<?php echo esc_attr( $current_site->site_name ) ?>" /> 33 <br /> 34 <?php _e( 'What you would like to call this website.' ) ?> 35 </td> 36 </tr> 37 38 <tr valign="top"> 39 <th scope="row"><label for="admin_email"><?php _e( 'Network Admin Email' ) ?></label></th> 40 40 <td> 41 41 <input name="admin_email" type="text" id="admin_email" class="regular-text" value="<?php echo esc_attr( get_site_option('admin_email') ) ?>" /> … … 46 46 47 47 <tr valign="top"> 48 <th scope="row"><?php _e( 'Global Terms') ?></th>49 <td> 50 <label><input type= 'radio' id="global_terms_enabled" name="global_terms_enabled" value='1'<?php checked( get_site_option( 'global_terms_enabled' ), 1 ) ?>/> <?php _e( 'Maintain a global list of terms from all sites across the network.' ); ?></label><br />51 <label><input type= 'radio' id="global_terms_enabled" name="global_terms_enabled" value='0'<?php checked( get_site_option( 'global_terms_enabled' ), 0 ) ?>/> <?php _e( 'Disabled' ); ?></label></td>52 </tr> 53 </table> 54 <h3><?php _e( 'Dashboard Settings'); ?></h3>55 <table class="form-table"> 56 <tr valign="top"> 57 <th scope="row"><label for="dashboard_blog"><?php _e( 'Dashboard Site') ?></label></th>48 <th scope="row"><?php _e( 'Global Terms' ) ?></th> 49 <td> 50 <label><input type="radio" id="global_terms_enabled" name="global_terms_enabled" value="1"<?php checked( get_site_option( 'global_terms_enabled' ), 1 ) ?>/> <?php _e( 'Maintain a global list of terms from all sites across the network.' ); ?></label><br /> 51 <label><input type="radio" id="global_terms_enabled" name="global_terms_enabled" value="0"<?php checked( get_site_option( 'global_terms_enabled' ), 0 ) ?>/> <?php _e( 'Disabled' ); ?></label></td> 52 </tr> 53 </table> 54 <h3><?php _e( 'Dashboard Settings' ); ?></h3> 55 <table class="form-table"> 56 <tr valign="top"> 57 <th scope="row"><label for="dashboard_blog"><?php _e( 'Dashboard Site' ) ?></label></th> 58 58 <td> 59 59 <?php … … 64 64 $blogname = ''; 65 65 }?> 66 <input name="dashboard_blog_orig" type="hidden" id="dashboard_blog_orig" value="<?php echo esc_attr( $blogname); ?>" />67 <input name="dashboard_blog" type="text" id="dashboard_blog" value="<?php echo esc_attr( $blogname); ?>" class="regular-text" />66 <input name="dashboard_blog_orig" type="hidden" id="dashboard_blog_orig" value="<?php echo esc_attr( $blogname ); ?>" /> 67 <input name="dashboard_blog" type="text" id="dashboard_blog" value="<?php echo esc_attr( $blogname ); ?>" class="regular-text" /> 68 68 <br /> 69 69 <?php _e( "Site path ('dashboard', 'control', 'manager', etc) or blog id.<br />New users are added to this site as the user role defined below if they don't have a site. Leave blank for the main site. Users with the subscriber role on old site will be moved to the new site if changed. The new site will be created if it does not exist." ); ?> … … 71 71 </tr> 72 72 <tr valign="top"> 73 <th scope="row"><label for="default_user_role"><?php _e( 'Dashboard User Default Role') ?></label></th>73 <th scope="row"><label for="default_user_role"><?php _e( 'Dashboard User Default Role' ) ?></label></th> 74 74 <td> 75 75 <select name="default_user_role" id="default_user_role"><?php … … 82 82 </tr> 83 83 <tr valign="top"> 84 <th scope="row"><label for="admin_notice_feed"><?php _e( 'Admin Notice Feed') ?></label></th>84 <th scope="row"><label for="admin_notice_feed"><?php _e( 'Admin Notice Feed' ) ?></label></th> 85 85 <td><input name="admin_notice_feed" class="large-text" type="text" id="admin_notice_feed" value="<?php echo esc_attr( get_site_option( 'admin_notice_feed' ) ) ?>" size="80" /><br /> 86 86 <?php _e( 'Display the latest post from this RSS or Atom feed on all site dashboards. Leave blank to disable.' ); ?><br /> 87 <?php if ( get_site_option( 'admin_notice_feed' ) != network_home_url('feed/', 'http') ) 88 echo __( "A good one to use would be the feed from your main site: " ) . network_home_url('feed/'); ?></td> 89 </tr> 90 </table> 91 <h3><?php _e('Registration Settings'); ?></h3> 92 <table class="form-table"> 93 <tr valign="top"> 94 <th scope="row"><?php _e('Allow new registrations') ?></th> 87 88 <?php if ( get_site_option( 'admin_notice_feed' ) != get_home_url( $current_site->id, 'feed/' ) ) 89 echo __( 'A good one to use would be the feed from your main site: ' ) . esc_url( get_home_url( $current_site->id, 'feed/' ) ) ?></td> 90 </tr> 91 </table> 92 <h3><?php _e( 'Registration Settings' ); ?></h3> 93 <table class="form-table"> 94 <tr valign="top"> 95 <th scope="row"><?php _e( 'Allow new registrations' ) ?></th> 95 96 <?php 96 if ( !get_site_option( 'registration') )97 if ( !get_site_option( 'registration' ) ) 97 98 update_site_option( 'registration', 'none' ); 99 $reg = get_site_option( 'registration' ); 98 100 ?> 99 101 <td> 100 <label><input name="registration" type="radio" id="registration1" value= 'none'<?php checked( get_site_option('registration'), 'none') ?> /> <?php _e('Registration is disabled.'); ?></label><br />101 <label><input name="registration" type="radio" id="registration2" value= 'user'<?php checked( get_site_option('registration'), 'user') ?> /> <?php _e('User accounts may be registered.'); ?></label><br />102 <label><input name="registration" type="radio" id="registration3" value= 'blog'<?php checked( get_site_option('registration'), 'blog') ?> /> <?php _e('Logged in users may register new sites.'); ?></label><br />103 <label><input name="registration" type="radio" id="registration4" value= 'all'<?php checked( get_site_option('registration'), 'all') ?> /> <?php _e('Both sites and user accounts can be registered.'); ?></label><br />104 <p><?php _e( 'Disable or enable registration and who or what can be registered. (Default is disabled.)'); ?></p>102 <label><input name="registration" type="radio" id="registration1" value="none"<?php checked( $reg, 'none') ?> /> <?php _e( 'Registration is disabled.' ); ?></label><br /> 103 <label><input name="registration" type="radio" id="registration2" value="user"<?php checked( $reg, 'user') ?> /> <?php _e( 'User accounts may be registered.' ); ?></label><br /> 104 <label><input name="registration" type="radio" id="registration3" value="blog"<?php checked( $reg, 'blog') ?> /> <?php _e( 'Logged in users may register new sites.' ); ?></label><br /> 105 <label><input name="registration" type="radio" id="registration4" value="all"<?php checked( $reg, 'all') ?> /> <?php _e( 'Both sites and user accounts can be registered.' ); ?></label><br /> 106 <p><?php _e( 'Disable or enable registration and who or what can be registered. (Default is disabled.)' ); ?></p> 105 107 <?php if ( is_subdomain_install() ) { 106 echo '<p>' . __( 'If registration is disabled, please set <code>NOBLOGREDIRECT</code> in <code>wp-config.php</code> to a url you will redirect visitors to if they visit a non-existent site.') . '</p>';108 echo '<p>' . __( 'If registration is disabled, please set <code>NOBLOGREDIRECT</code> in <code>wp-config.php</code> to a url you will redirect visitors to if they visit a non-existent site.' ) . '</p>'; 107 109 } ?> 108 110 </td> … … 110 112 111 113 <tr valign="top"> 112 <th scope="row"><?php _e( 'Registration notification') ?></th>114 <th scope="row"><?php _e( 'Registration notification' ) ?></th> 113 115 <?php 114 if ( !get_site_option( 'registrationnotification') )116 if ( !get_site_option( 'registrationnotification' ) ) 115 117 update_site_option( 'registrationnotification', 'yes' ); 116 118 ?> 117 119 <td> 118 <label><input name="registrationnotification" type="checkbox" id="registrationnotification" value= 'yes'<?php checked( get_site_option('registrationnotification'), 'yes' ) ?> /> <?php _e('Send the network admin an email notification every time someone registers a site or user account.') ?></label>120 <label><input name="registrationnotification" type="checkbox" id="registrationnotification" value="yes"<?php checked( get_site_option( 'registrationnotification' ), 'yes' ) ?> /> <?php _e( 'Send the network admin an email notification every time someone registers a site or user account.' ) ?></label> 119 121 </td> 120 122 </tr> 121 123 122 124 <tr valign="top" id="addnewusers"> 123 <th scope="row"><?php _e( 'Add New Users') ?></th>124 <td> 125 <label><input name="add_new_users" type="checkbox" id="add_new_users" value= '1'<?php checked( get_site_option('add_new_users') ) ?> /> <?php _e('Allow site administrators to add new users to their site via the "Users->Add New" page.'); ?></label>126 </td> 127 </tr> 128 129 <tr valign="top"> 130 <th scope="row"><label for="illegal_names"><?php _e( 'Banned Names') ?></label></th>131 <td> 132 <input name="illegal_names" type="text" id="illegal_names" class="large-text" value="<?php echo esc_attr( implode( " ", get_site_option( 'illegal_names') ) ); ?>" size="45" />133 <br /> 134 <?php _e( 'Users are not allowed to register these sites. Separate names by spaces.') ?>135 </td> 136 </tr> 137 138 <tr valign="top"> 139 <th scope="row"><label for="limited_email_domains"><?php _e( 'Limited Email Registrations') ?></label></th>140 <td> 141 <?php $limited_email_domains = get_site_option( 'limited_email_domains');125 <th scope="row"><?php _e( 'Add New Users' ) ?></th> 126 <td> 127 <label><input name="add_new_users" type="checkbox" id="add_new_users" value="1"<?php checked( get_site_option( 'add_new_users' ) ) ?> /> <?php _e( 'Allow site administrators to add new users to their site via the "Users->Add New" page.' ); ?></label> 128 </td> 129 </tr> 130 131 <tr valign="top"> 132 <th scope="row"><label for="illegal_names"><?php _e( 'Banned Names' ) ?></label></th> 133 <td> 134 <input name="illegal_names" type="text" id="illegal_names" class="large-text" value="<?php echo esc_attr( implode( " ", get_site_option( 'illegal_names' ) ) ); ?>" size="45" /> 135 <br /> 136 <?php _e( 'Users are not allowed to register these sites. Separate names by spaces.' ) ?> 137 </td> 138 </tr> 139 140 <tr valign="top"> 141 <th scope="row"><label for="limited_email_domains"><?php _e( 'Limited Email Registrations' ) ?></label></th> 142 <td> 143 <?php $limited_email_domains = get_site_option( 'limited_email_domains' ); 142 144 $limited_email_domains = str_replace( ' ', "\n", $limited_email_domains ); ?> 143 <textarea name="limited_email_domains" id="limited_email_domains" cols= '45' rows='5'><?php echo wp_htmledit_pre( $limited_email_domains == '' ? '' : implode( "\n", (array) $limited_email_domains ) ); ?></textarea>144 <br /> 145 <?php _e( 'If you want to limit site registrations to certain domains. Enter one domain per line.') ?>145 <textarea name="limited_email_domains" id="limited_email_domains" cols="45" rows="5"><?php echo wp_htmledit_pre( $limited_email_domains == '' ? '' : implode( "\n", (array) $limited_email_domains ) ); ?></textarea> 146 <br /> 147 <?php _e( 'If you want to limit site registrations to certain domains. Enter one domain per line.' ) ?> 146 148 </td> 147 149 </tr> … … 150 152 <th scope="row"><label for="banned_email_domains"><?php _e('Banned Email Domains') ?></label></th> 151 153 <td> 152 <textarea name="banned_email_domains" id="banned_email_domains" cols= '45' rows='5'><?php echo wp_htmledit_pre( get_site_option('banned_email_domains') == '' ? '' : implode( "\n", (array) get_site_option('banned_email_domains') ) ); ?></textarea>154 <textarea name="banned_email_domains" id="banned_email_domains" cols="45" rows="5"><?php echo wp_htmledit_pre( get_site_option( 'banned_email_domains' ) == '' ? '' : implode( "\n", (array) get_site_option( 'banned_email_domains' ) ) ); ?></textarea> 153 155 <br /> 154 156 <?php _e('If you want to ban domains from site registrations. Enter one domain per line.') ?> … … 161 163 162 164 <tr valign="top"> 163 <th scope="row"><label for="welcome_email"><?php _e( 'Welcome Email') ?></label></th>164 <td> 165 <textarea name="welcome_email" id="welcome_email" rows= '5' cols='45' class="large-text"><?php echo stripslashes( get_site_option('welcome_email') ) ?></textarea>166 <br /> 167 <?php _e( 'The welcome email sent to new site owners.') ?>168 </td> 169 </tr> 170 <tr valign="top"> 171 <th scope="row"><label for="welcome_user_email"><?php _e( 'Welcome User Email') ?></label></th>172 <td> 173 <textarea name="welcome_user_email" id="welcome_user_email" rows='5' cols='45' class="large-text"><?php echo stripslashes( get_site_option('welcome_user_email') ) ?></textarea>174 <br /> 175 <?php _e( 'The welcome email sent to new users.') ?>176 </td> 177 </tr> 178 <tr valign="top"> 179 <th scope="row"><label for="first_post"><?php _e( 'First Post') ?></label></th>180 <td> 181 <textarea name="first_post" id="first_post" rows= '5' cols='45' class="large-text"><?php echo stripslashes( get_site_option('first_post') ) ?></textarea>182 <br /> 183 <?php _e( 'The first post on a new site.') ?>184 </td> 185 </tr> 186 <tr valign="top"> 187 <th scope="row"><label for="first_page"><?php _e( 'First Page') ?></label></th>188 <td> 189 <textarea name="first_page" id="first_page" rows= '5' cols='45'class="large-text"><?php echo stripslashes( get_site_option('first_page') ) ?></textarea>190 <br /> 191 <?php _e( 'The first page on a new site.') ?>192 </td> 193 </tr> 194 <tr valign="top"> 195 <th scope="row"><label for="first_comment"><?php _e( 'First Comment') ?></label></th>196 <td> 197 <textarea name="first_comment" id="first_comment" rows= '5' cols='45'class="large-text"><?php echo stripslashes( get_site_option('first_comment') ) ?></textarea>198 <br /> 199 <?php _e( 'The first comment on a new site.') ?>200 </td> 201 </tr> 202 <tr valign="top"> 203 <th scope="row"><label for="first_comment_author"><?php _e( 'First Comment Author') ?></label></th>204 <td> 205 <input type="text" size= '40'name="first_comment_author" id="first_comment_author" value="<?php echo get_site_option('first_comment_author') ?>" />206 <br /> 207 <?php _e( 'The author of the first comment on a new site.') ?>208 </td> 209 </tr> 210 <tr valign="top"> 211 <th scope="row"><label for="first_comment_url"><?php _e( 'First Comment URL') ?></label></th>212 <td> 213 <input type="text" size= '40' name="first_comment_url" id="first_comment_url" value="<?php echo esc_attr(get_site_option('first_comment_url')) ?>" />214 <br /> 215 <?php _e( 'The URL for the first comment on a new site.') ?>216 </td> 217 </tr> 218 </table> 219 <h3><?php _e( 'Upload Settings'); ?></h3>220 <table class="form-table"> 221 <tr valign="top"> 222 <th scope="row"><?php _e( 'Media upload buttons') ?></th>165 <th scope="row"><label for="welcome_email"><?php _e( 'Welcome Email' ) ?></label></th> 166 <td> 167 <textarea name="welcome_email" id="welcome_email" rows="5" cols="45" class="large-text"><?php echo stripslashes( get_site_option( 'welcome_email' ) ) ?></textarea> 168 <br /> 169 <?php _e( 'The welcome email sent to new site owners.' ) ?> 170 </td> 171 </tr> 172 <tr valign="top"> 173 <th scope="row"><label for="welcome_user_email"><?php _e( 'Welcome User Email' ) ?></label></th> 174 <td> 175 <textarea name="welcome_user_email" id="welcome_user_email" rows="5" cols="45" class="large-text"><?php echo stripslashes( get_site_option( 'welcome_user_email' ) ) ?></textarea> 176 <br /> 177 <?php _e( 'The welcome email sent to new users.' ) ?> 178 </td> 179 </tr> 180 <tr valign="top"> 181 <th scope="row"><label for="first_post"><?php _e( 'First Post' ) ?></label></th> 182 <td> 183 <textarea name="first_post" id="first_post" rows="5" cols="45" class="large-text"><?php echo stripslashes( get_site_option( 'first_post' ) ) ?></textarea> 184 <br /> 185 <?php _e( 'The first post on a new site.' ) ?> 186 </td> 187 </tr> 188 <tr valign="top"> 189 <th scope="row"><label for="first_page"><?php _e( 'First Page' ) ?></label></th> 190 <td> 191 <textarea name="first_page" id="first_page" rows="5" cols="45" class="large-text"><?php echo stripslashes( get_site_option('first_page') ) ?></textarea> 192 <br /> 193 <?php _e( 'The first page on a new site.' ) ?> 194 </td> 195 </tr> 196 <tr valign="top"> 197 <th scope="row"><label for="first_comment"><?php _e( 'First Comment' ) ?></label></th> 198 <td> 199 <textarea name="first_comment" id="first_comment" rows="5" cols="45" class="large-text"><?php echo stripslashes( get_site_option('first_comment') ) ?></textarea> 200 <br /> 201 <?php _e( 'The first comment on a new site.' ) ?> 202 </td> 203 </tr> 204 <tr valign="top"> 205 <th scope="row"><label for="first_comment_author"><?php _e( 'First Comment Author' ) ?></label></th> 206 <td> 207 <input type="text" size="40" name="first_comment_author" id="first_comment_author" value="<?php echo get_site_option('first_comment_author') ?>" /> 208 <br /> 209 <?php _e( 'The author of the first comment on a new site.' ) ?> 210 </td> 211 </tr> 212 <tr valign="top"> 213 <th scope="row"><label for="first_comment_url"><?php _e( 'First Comment URL' ) ?></label></th> 214 <td> 215 <input type="text" size="40" name="first_comment_url" id="first_comment_url" value="<?php echo esc_attr( get_site_option( 'first_comment_url' ) ) ?>" /> 216 <br /> 217 <?php _e( 'The URL for the first comment on a new site.' ) ?> 218 </td> 219 </tr> 220 </table> 221 <h3><?php _e( 'Upload Settings' ); ?></h3> 222 <table class="form-table"> 223 <tr valign="top"> 224 <th scope="row"><?php _e( 'Media upload buttons' ) ?></th> 223 225 <?php $mu_media_buttons = get_site_option( 'mu_media_buttons', array() ); ?> 224 <td><label><input type= 'checkbox' id="mu_media_buttons_image" name="mu_media_buttons[image]" value='1'<?php checked( !empty($mu_media_buttons[ 'image' ]) ) ?>/> <?php _e( 'Images' ); ?></label><br />225 <label><input type= 'checkbox' id="mu_media_buttons_video" name="mu_media_buttons[video]" value='1'<?php checked( !empty($mu_media_buttons[ 'video' ]) ) ?>/> <?php _e( 'Videos' ); ?></label><br />226 <label><input type= 'checkbox' id="mu_media_buttons_audio" name="mu_media_buttons[audio]" value='1'<?php checked( !empty($mu_media_buttons[ 'audio' ]) ) ?>/> <?php _e( 'Music' ); ?></label><br />226 <td><label><input type="checkbox" id="mu_media_buttons_image" name="mu_media_buttons[image]" value="1"<?php checked( ! empty( $mu_media_buttons['image'] ) ) ?>/> <?php _e( 'Images' ); ?></label><br /> 227 <label><input type="checkbox" id="mu_media_buttons_video" name="mu_media_buttons[video]" value="1"<?php checked( ! empty( $mu_media_buttons['video'] ) ) ?>/> <?php _e( 'Videos' ); ?></label><br /> 228 <label><input type="checkbox" id="mu_media_buttons_audio" name="mu_media_buttons[audio]" value="1"<?php checked( ! empty( $mu_media_buttons['audio'] ) ) ?>/> <?php _e( 'Music' ); ?></label><br /> 227 229 <?php _e( 'The media upload buttons to display on the "Write Post" page. Make sure you update the allowed upload file types below as well.' ); ?></td> 228 230 </tr> 229 231 230 232 <tr valign="top"> 231 <th scope="row"><?php _e( 'Site upload space') ?></th>232 <td> 233 <label><input type= 'checkbox' id="upload_space_check_disabled" name="upload_space_check_disabled" value='0'<?php checked( get_site_option( 'upload_space_check_disabled' ), 0 ) ?>/> <?php printf( __( 'Limit total size of files uploaded to %s MB' ), '<input name="blog_upload_space" type="text" id="blog_upload_space" value="' . esc_attr( get_site_option('blog_upload_space', 10) ) . '" size="3" />' ); ?></label><br />234 </tr> 235 236 <tr valign="top"> 237 <th scope="row"><label for="upload_filetypes"><?php _e( 'Upload file types') ?></label></th>233 <th scope="row"><?php _e( 'Site upload space' ) ?></th> 234 <td> 235 <label><input type="checkbox" id="upload_space_check_disabled" name="upload_space_check_disabled" value="0"<?php checked( get_site_option( 'upload_space_check_disabled' ), 0 ) ?>/> <?php printf( __( 'Limit total size of files uploaded to %s MB' ), '<input name="blog_upload_space" type="text" id="blog_upload_space" value="' . esc_attr( get_site_option('blog_upload_space', 10) ) . '" size="3" />' ); ?></label><br /> 236 </tr> 237 238 <tr valign="top"> 239 <th scope="row"><label for="upload_filetypes"><?php _e( 'Upload file types' ) ?></label></th> 238 240 <td><input name="upload_filetypes" type="text" id="upload_filetypes" class="large-text" value="<?php echo esc_attr( get_site_option('upload_filetypes', 'jpg jpeg png gif') ) ?>" size="45" /></td> 239 241 </tr> 240 242 241 243 <tr valign="top"> 242 <th scope="row"><label for="fileupload_maxk"><?php _e( 'Max upload file size') ?></label></th>243 <td><?php printf( _x( '%s KB', 'File size in kilobytes' ), '<input name="fileupload_maxk" type="text" id="fileupload_maxk" value="' . esc_attr( get_site_option( 'fileupload_maxk', 300 ) ) . '" size="5" />' ); ?></td>244 <th scope="row"><label for="fileupload_maxk"><?php _e( 'Max upload file size' ) ?></label></th> 245 <td><?php printf( _x( '%s KB', 'File size in kilobytes' ), '<input name="fileupload_maxk" type="text" id="fileupload_maxk" value="' . esc_attr( get_site_option( 'fileupload_maxk', 300 ) ) . '" size="5" />' ); ?></td> 244 246 </tr> 245 247 </table> … … 248 250 $languages = get_available_languages(); 249 251 if ( ! empty( $languages ) ) { 250 $lang = get_site_option( 'WPLANG');252 $lang = get_site_option( 'WPLANG' ); 251 253 ?> 252 <h3><?php _e( 'Network Wide Settings'); ?></h3>254 <h3><?php _e( 'Network Wide Settings' ); ?></h3> 253 255 <div class="updated inline"><p><strong><?php _e( 'Notice:' ); ?></strong> <?php _e( 'These settings may be overridden by site owners.' ); ?></p></div> 254 256 <table class="form-table"> … … 256 258 ?> 257 259 <tr valign="top"> 258 <th><label for="WPLANG"><?php _e( 'Default Language') ?></label></th>260 <th><label for="WPLANG"><?php _e( 'Default Language' ) ?></label></th> 259 261 <td> 260 262 <select name="WPLANG" id="WPLANG"> 261 <?php mu_dropdown_languages( $languages, get_site_option( 'WPLANG') ); ?>263 <?php mu_dropdown_languages( $languages, get_site_option( 'WPLANG' ) ); ?> 262 264 </select> 263 265 </td> … … 268 270 ?> 269 271 270 <h3><?php _e( 'Menu Settings'); ?></h3>272 <h3><?php _e( 'Menu Settings' ); ?></h3> 271 273 <table id="menu" class="form-table"> 272 274 <tr valign="top"> … … 277 279 $menu_items = apply_filters( 'mu_menu_items', array( 'plugins' => __( 'Plugins' ) ) ); 278 280 foreach ( (array) $menu_items as $key => $val ) { 279 echo "<label><input type='checkbox' name='menu_items[" . $key . "]' value='1'" . ( isset( $menu_perms[ $key ] ) ? checked( $menu_perms[ $key], '1', false ) : '' ) . " /> " . esc_html( $val ) . "</label><br/>";281 echo "<label><input type='checkbox' name='menu_items[" . $key . "]' value='1'" . ( isset( $menu_perms[$key] ) ? checked( $menu_perms[$key], '1', false ) : '' ) . " /> " . esc_html( $val ) . "</label><br/>"; 280 282 } 281 283 ?> … … 286 288 <?php do_action( 'wpmu_options' ); // Add more options here ?> 287 289 288 <p class="submit"><input type="submit" class="button-primary" name="Submit" value="<?php esc_attr_e( 'Save Changes') ?>" /></p>290 <p class="submit"><input type="submit" class="button-primary" name="Submit" value="<?php esc_attr_e( 'Save Changes' ) ?>" /></p> 289 291 </form> 290 292 </div> 291 293 292 <?php include( './admin-footer.php'); ?>294 <?php include( './admin-footer.php' ); ?>
Note: See TracChangeset
for help on using the changeset viewer.