summaryrefslogtreecommitdiffstats
path: root/wp-admin/wpmu-admin.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-admin.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-admin.php')
-rw-r--r--wp-admin/wpmu-admin.php52
1 files changed, 52 insertions, 0 deletions
diff --git a/wp-admin/wpmu-admin.php b/wp-admin/wpmu-admin.php
new file mode 100644
index 0000000..d943761
--- /dev/null
+++ b/wp-admin/wpmu-admin.php
@@ -0,0 +1,52 @@
+<?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
+}
+?>
+<div class="wrap">
+<?php
+
+do_action( "wpmuadminresult", "" );
+
+switch( $_GET[ 'action' ] ) {
+ default:
+ /*
+ // print some global stats.
+ $stats = get_sitestats();
+ print "<h2>Site Stats</h2>
+ There are currently ".$stats[ 'blogs' ]." <a href='wpmu-blogs.php'>blogs</a> running on this server and ".$stats[ 'users' ]." <a href='wpmu-users.php'>users</a>.</p><br /><br />
+ ";
+
+ print "<table>";
+ #$blogs = get_blog_list();
+ #print "<br>blogs: <br>";
+ #print_r( $blogs );
+
+ $most_active = get_most_active_blogs( 10, false );
+ if( is_array( $most_active ) ) {
+ print "<caption>Most Active Blogs</caption>";
+ print "<tr><th scope='col'>ID</th><th scope='col'>Address</th><th scope='col'>Posts</th></tr>";
+ while( list( $key, $details ) = each( $most_active ) ) {
+ $class = ('alternate' == $class) ? '' : 'alternate';
+ $url = "http://" . $details[ 'domain' ] . $details[ 'path' ];
+ print "<tr class='$class'><td>" . $details[ 'blog_id' ] . "</td><td><a href='$url'>$url</a></td><td>" . $details[ 'postcount' ] . "</td></tr>";
+ }
+ }
+ print "</table>";
+
+ do_action( "wpmuadmindefaultpage", "" );
+ */
+ break;
+}
+
+?>
+</div>
+<?php include('admin-footer.php'); ?>