WordPress.org

Plugin Directory

Changeset 563621


Ignore:
Timestamp:
06/25/12 16:11:46 (22 months ago)
Author:
sLaNGjI
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-overview-lite/tags/2011.0723.2011/wp-overview-lite.php

    r563615 r563621  
    9292<li><strong>Trash </strong><span><?php echo(int)WP_TRASH?></span><strong> Empty </strong><span><?php echo(int)EMPTY_TRASH_DAYS.' days'?></span><em> (since wp2.9)</em></li><br/> 
    9393<em><strong>Legend</strong> 0=disabled 1=enabled</em><?php 
    94 }function wpo_dashboard(){if(!current_user_can('unfiltered_html'))return;wp_add_dashboard_widget('dashboard_overview','Overview DEVELOPMENT (wp 3.2.0 required)',array(&$this,'wpo_output'));}function wpo_network_dashboard(){if(!current_user_can('unfiltered_html'))return;wp_add_dashboard_widget('network_dashboard_overview','Overview DEVELOPMENT (wp 3.2.0 required)',array(&$this,'wpo_output'));}function wpo_footer($content){$this->wpo_load();$content.=' ~ load '.$this->memory['wpo-load'].' of '.$this->memory['wpo-limit'].'M';return$content;}}add_action('plugins_loaded',create_function('','$memory=new wp_overview_lite();'));}?><?php 
     94}function wpo_dashboard(){if(!current_user_can('unfiltered_html'))return;wp_add_dashboard_widget('dashboard_overview','Overview)',array(&$this,'wpo_output'));}function wpo_network_dashboard(){if(!current_user_can('unfiltered_html'))return;wp_add_dashboard_widget('network_dashboard_overview','Overview)',array(&$this,'wpo_output'));}function wpo_footer($content){$this->wpo_load();$content.=' ~ load '.$this->memory['wpo-load'].' of '.$this->memory['wpo-limit'].'M';return$content;}}add_action('plugins_loaded',create_function('','$memory=new wp_overview_lite();'));}?><?php 
    9595if(is_admin()){function wpo_fs_info($filesize){$bytes=array('B','K','M','G','T');if($filesize<1024)$filesize=1;for($i=0;$filesize>1024;$i++)$filesize/=1024;$wpo_fs_info['size']=round($filesize,3);$wpo_fs_info['type']=$bytes[$i];return$wpo_fs_info;}function wpo_db_size(){$rows=mysql_query("SHOW table STATUS");$dbsize=0;while($row=mysql_fetch_array($rows)){$dbsize+=$row['Data_length']+$row['Index_length'];}$dbsize=wpo_fs_info($dbsize);echo"db {$dbsize['size']}{$dbsize['type']}";}add_filter('admin_footer_text','wpo_db_size');}?> 
Note: See TracChangeset for help on using the changeset viewer.