diff options
author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2006-06-22 18:31:50 +0000 |
---|---|---|
committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2006-06-22 18:31:50 +0000 |
commit | d48e85e0ac5e675ca33fac173f30c75403d1033f (patch) | |
tree | 1164430fa3b83a4d9283961b09c1576f2885e6b2 /wp-admin/wpmu-themes.php | |
parent | 086dcde66603301531efc6d8087bd06d0546f148 (diff) | |
download | wordpress-mu-d48e85e0ac5e675ca33fac173f30c75403d1033f.tar.gz wordpress-mu-d48e85e0ac5e675ca33fac173f30c75403d1033f.tar.xz wordpress-mu-d48e85e0ac5e675ca33fac173f30c75403d1033f.zip |
Moved everything in wp-inst down a directory.
Uses's Ryan Boren's htaccess rules and mods
If you're upgrading, try this on a test server first!
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@591 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-admin/wpmu-themes.php')
-rw-r--r-- | wp-admin/wpmu-themes.php | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/wp-admin/wpmu-themes.php b/wp-admin/wpmu-themes.php new file mode 100644 index 0000000..a8e679c --- /dev/null +++ b/wp-admin/wpmu-themes.php @@ -0,0 +1,57 @@ +<?php +require_once('admin.php'); + +$title = __('WPMU Admin'); +$parent_file = 'wpmu-admin.php'; +require_once('admin-header.php'); +if( is_site_admin() == false ) { + die( __('<p>You do not have permission to access this page.</p>') ); +} +if (isset($_GET['updated'])) { + ?><div id="message" class="updated fade"><p><?php _e('Options saved.') ?></p></div><?php +} +print '<div class="wrap">'; +$themes = get_themes(); +$allowed_themes = get_site_option( "allowed_themes" ); +if( $allowed_themes == false ) { + $allowed_themes = array_keys( $themes ); +} +?> + +<form action='wpmu-edit.php?action=updatethemes' method='POST'> +<h3>Site Themes</h3> +<table border="0" cellspacing="5" cellpadding="5"> +<caption>Disable themes site-wide. You can enable themes on a blog by blog basis.</caption> +<tr><th width="100">Disabled</th><th>Theme</th><th>Description</th></tr> +<?php +while( list( $key, $val ) = each( $themes ) ) { + $i++; + $enabled = ''; + $disabled = ''; + if( isset( $allowed_themes[ $key ] ) == true ) { + $enabled = 'checked '; + } else { + $disabled = 'checked '; + } +?> + +<tr valign="top" style="<?php if ($i%2) echo 'background: #eee'; ?>"> +<td> +<label><input name="theme[<?php echo $key ?>]" type="radio" id="<?php echo $key ?>" value="disabled" <?php echo $disabled ?>/> Yes</label> + +<label><input name="theme[<?php echo $key ?>]" type="radio" id="<?php echo $key ?>" value="enabled" <?php echo $enabled ?>/> No</label> +</td> +<th scope="row" align="left"><?php echo $key ?></th> +<td><?php echo $val[ 'Description' ] ?></td> +</tr> +<?php +} +?> +</table> +<p class="submit"> +<input type='submit' value='Update Themes »' /> +</p> +</form> + +</div> +<?php include('admin-footer.php'); ?> |