summaryrefslogtreecommitdiffstats
path: root/wp-admin/wpmu-themes.php
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2006-06-22 18:31:50 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2006-06-22 18:31:50 +0000
commitd48e85e0ac5e675ca33fac173f30c75403d1033f (patch)
tree1164430fa3b83a4d9283961b09c1576f2885e6b2 /wp-admin/wpmu-themes.php
parent086dcde66603301531efc6d8087bd06d0546f148 (diff)
downloadwordpress-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.php57
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>
+&nbsp;&nbsp;&nbsp;
+<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 &raquo;' />
+</p>
+</form>
+
+</div>
+<?php include('admin-footer.php'); ?>