Changeset 659
- Timestamp:
- 07/12/06 11:46:30 (2 years ago)
- Files:
-
- trunk/index-install.php (modified) (1 diff)
- trunk/wp-admin/wpmu-themes.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/index-install.php
r656 r659 388 388 $wpdb->query( "INSERT INTO ".$wpdb->sitemeta." (meta_id, site_id, meta_key, meta_value) VALUES (NULL, 1, 'fileupload_maxk', '1500' )" ); 389 389 $wpdb->query( "INSERT INTO ".$wpdb->sitemeta." (meta_id, site_id, meta_key, meta_value) VALUES (NULL, 1, 'site_admins', '" . serialize( array( 'admin' ) ) . "' )" ); 390 $wpdb->query( "INSERT INTO ".$wpdb->sitemeta." (meta_id, site_id, meta_key, meta_value) VALUES (NULL, 1, 'allowed_themes', '" . serialize( array( 'WordPress Classic', 'WordPress Default' ) ) . "' )" ); 390 391 $wpdb->query( "INSERT INTO ".$wpdb->sitemeta." (meta_id, site_id, meta_key, meta_value) VALUES (NULL, 1, 'illegal_names', '" . serialize( array( "www", "web", "root", "admin", "main", "invite", "administrator" ) ) . "' )" ); 391 392 $wpdb->query( "INSERT INTO ".$wpdb->sitemeta." (meta_id, site_id, meta_key, meta_value) VALUES (NULL, 1, 'welcome_email', 'Dear User, trunk/wp-admin/wpmu-themes.php
r528 r659 14 14 $themes = get_themes(); 15 15 $allowed_themes = get_site_option( "allowed_themes" ); 16 if( $allowed_themes == false ) {17 $allowed_themes = array_keys( $themes );18 }19 16 ?> 20 17 … … 23 20 <table border="0" cellspacing="5" cellpadding="5"> 24 21 <caption>Disable themes site-wide. You can enable themes on a blog by blog basis.</caption> 25 <tr><th width="100"> Disabled</th><th>Theme</th><th>Description</th></tr>22 <tr><th width="100">Active</th><th>Theme</th><th>Description</th></tr> 26 23 <?php 27 24 while( list( $key, $val ) = each( $themes ) ) { … … 38 35 <tr valign="top" style="<?php if ($i%2) echo 'background: #eee'; ?>"> 39 36 <td> 40 <label><input name="theme[<?php echo $key ?>]" type="radio" id="<?php echo $key ?>" value="disabled" <?php echo $disabled ?>/> Yes</label>37 <label><input name="theme[<?php echo $key ?>]" type="radio" id="<?php echo $key ?>" value="disabled" <?php echo $disabled ?>/>No</label> 41 38 42 <label><input name="theme[<?php echo $key ?>]" type="radio" id="<?php echo $key ?>" value="enabled" <?php echo $enabled ?>/> No</label>39 <label><input name="theme[<?php echo $key ?>]" type="radio" id="<?php echo $key ?>" value="enabled" <?php echo $enabled ?>/>Yes</label> 43 40 </td> 44 41 <th scope="row" align="left"><?php echo $key ?></th>
