Plugin Directory

Changeset 562598


Ignore:
Timestamp:
06/22/2012 06:41:10 PM (14 years ago)
Author:
ljg3
Message:

Initial Commit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • multisite-plugin-stats/trunk/multisite-plugin-stats.php

    r562597 r562598  
    1010Network: true
    1111
    12 Copyright 2012  Lewis J. Goettner, III  (email : lew@goettner.net)
     12Copyright 2012  Lewis J. Goettner, III  (email : lew@goettner.net)
    1313
    1414This program is free software; you can redistribute it and/or modify
     
    1818This program is distributed in the hope that it will be useful,
    1919but WITHOUT ANY WARRANTY; without even the implied warranty of
    20 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.    See the
     20MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    2121GNU General Public License for more details.
    2222
    2323You should have received a copy of the GNU General Public License
    2424along with this program; if not, write to the Free Software
    25 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA    02110-1301 USA
     25Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
    2626
    2727*/
     
    6565        // Scan the sites for activation
    6666        $blogs = $wpdb->get_col("SELECT blog_id FROM {$wpdb->blogs} WHERE site_id = {$wpdb->siteid} AND spam = 0 AND deleted = 0");
    67         if ($blogs) {
    68             foreach($blogs as $blog_id) {
    69                 switch_to_blog($blog_id);
     67        if ($blogs) {
     68          foreach($blogs as $blog_id)   {
     69            switch_to_blog($blog_id);
    7070               
    7171                // Get active plugins
     
    8181                }
    8282               
    83                 restore_current_blog();
     83            restore_current_blog();
    8484            }
    8585        }
     
    127127    // Add a little style
    128128    function custom_css() {
    129         echo '<style type="text/css">
    130                         .plugin_list li { margin-left: 2em; }
    131                     </style>';
     129      echo '<style type="text/css">
     130              .plugin_list li { margin-left: 2em; }
     131            </style>';
    132132    }
    133133   
Note: See TracChangeset for help on using the changeset viewer.