WordPress.org

Plugin Directory

Changeset 563605


Ignore:
Timestamp:
06/25/12 15:40:31 (22 months ago)
Author:
sLaNGjI
Message:
 
Location:
wp-overview-lite
Files:
4 edited

Legend:

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

    r563517 r563605  
    9797is very suggested upgrade to the latest build always!` 
    9898= Development Release = 
    99 [Version 2012.0625-BUGFIX.1404-DEVELOPMENTAL](http://downloads.wordpress.org/plugin/wp-overview-lite.zip) (WP > 3.2+) 
     99[Version 2012.0625-BUGFIX.1728-DEVELOPMENTAL](http://downloads.wordpress.org/plugin/wp-overview-lite.zip) (WP > 3.2+) 
     100= Warning Notice = 
     101Version 2011.0723.2011 was silently updated on 2012-06-25. 
     102Please re-download and re-install as soon possible! Enjoy :) 
    100103= 2011.0723.2011 = 
    101104* Major Release [CERTIFIED] Silent bugfix updates, functions revision. 
  • wp-overview-lite/tags/2011.0723.2011/wp-overview-lite.php

    r563516 r563605  
    1111License: GPLv2 
    1212 * 
    13  * Development Release: Version 2012 Build 0625-BUGFIX Revision 1404-DEVELOPMENT (WP 3.2.0 REQUIRED) 
     13 * Development Release: Version 2012 Build 0625-BUGFIX Revision 1728-DEVELOPMENT (WP 3.2.0 REQUIRED) 
    1414 * 
    1515 * [WP Overview (lite)](http://wordpress.org/extend/plugins/wp-overview-lite/) WordPress PlugIn 
     
    4747if(!function_exists('add_action')){header('HTTP/1.0 403 Forbidden');header('HTTP/1.1 403 Forbidden');exit();}?><?php 
    4848function wpo_footer_log(){echo"\n<!--Plugin WP Overview (lite) 2011.0723.2011 Active-->";}add_action('wp_head','wpo_footer_log');add_action('wp_footer','wpo_footer_log')?><?php 
    49 if(is_admin()){class wp_overview_lite{var$memory=false;function wpo(){return$this->__construct();}function __construct(){add_action('init',array(&$this,'wpo_limit'));add_action('wp_dashboard_setup',array(&$this,'wpo_dashboard'));add_filter('admin_footer_text',array(&$this,'wpo_footer'));$this->memory=array();}function wpo_limit(){$this->memory['wpo-limit']=(int)ini_get('memory_limit');} 
    50 function wpo_load(){$this->memory['wpo-load']=function_exists('memory_get_usage')?round(memory_get_usage()/1024/1024,2):0;}function wpo_consumption(){$this->memory['wpo-consumption']=round($this->memory['wpo-load']/$this->memory['wpo-limit']*100,0);}function wpo_output(){$this->wpo_load();$this->wpo_consumption();$this->memory['wpo-load']=empty($this->memory['wpo-load'])?__('0'):$this->memory['wpo-load'].__('M')?><?php 
     49if(is_admin()){class wp_overview_lite{var$memory=false;function wpo(){return$this->__construct();}function __construct(){add_action('init',array(&$this,'wpo_limit'));add_action('wp_dashboard_setup',array(&$this,'wpo_dashboard'));add_filter('admin_footer_text',array(&$this,'wpo_footer'));$this->memory=array();}function wpo_limit(){$this->memory['wpo-limit']=(int)ini_get('memory_limit');}function wpo_load(){$this->memory['wpo-load']=function_exists('memory_get_usage')?round(memory_get_usage()/1024/1024,2):0;}function wpo_consumption(){$this->memory['wpo-consumption']=round($this->memory['wpo-load']/$this->memory['wpo-limit']*100,0);}function wpo_output(){$this->wpo_load();$this->wpo_consumption();$this->memory['wpo-load']=empty($this->memory['wpo-load'])?__('0'):$this->memory['wpo-load'].__('M')?><?php 
    5150global$wpdb,$wp_version,$wpmu_version;$cur_locale=get_locale();$mysql_status=array();$mysql_vars=array();foreach($wpdb->get_results('SHOW GLOBAL STATUS')as$result){$mysql_status[$result->Variable_name]=$result->Value;}foreach($wpdb->get_results('SHOW GLOBAL VARIABLES')as$result){$mysql_vars[$result->Variable_name]=$result->Value;}$uptime_days=$mysql_status['Uptime']/86400;$uptime_hours=($uptime_days-(int)$uptime_days)*24;$uptime_minutes=($uptime_hours-(int)$uptime_hours)*60;$uptime_seconds=($uptime_minutes-(int)$uptime_minutes)*60;$uptime_string=(int)$uptime_days.' days, '.(int)$uptime_hours.' hours, '.(int)$uptime_minutes.' minutes, '.(int)$uptime_seconds.' seconds'?> 
    5251<ul><li><strong>Mem</strong>: 
     
    9392<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/> 
    9493<em><strong>Legend</strong> 0=disabled 1=enabled</em><?php 
    95 }function wpo_dashboard(){if(!current_user_can('unfiltered_html'))return;wp_add_dashboard_widget('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();'));} 
    96 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'];} 
    97 $dbsize=wpo_fs_info($dbsize);echo"db {$dbsize['size']}{$dbsize['type']}";}add_filter('admin_footer_text','wpo_db_size')?> 
     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 
     95if(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');}?> 
  • wp-overview-lite/trunk/readme.txt

    r563518 r563605  
    9797is very suggested upgrade to the latest build always!` 
    9898= Development Release = 
    99 [Version 2012.0625-BUGFIX.1404-DEVELOPMENTAL](http://downloads.wordpress.org/plugin/wp-overview-lite.zip) (WP > 3.2+) 
     99[Version 2012.0625-BUGFIX.1728-DEVELOPMENTAL](http://downloads.wordpress.org/plugin/wp-overview-lite.zip) (WP > 3.2+) 
     100= Warning Notice = 
     101Version 2011.0723.2011 was silently updated on 2012-06-25. 
     102Please re-download and re-install as soon possible! Enjoy :) 
    100103= 2011.0723.2011 = 
    101104* Major Release [CERTIFIED] Silent bugfix updates, functions revision. 
  • wp-overview-lite/trunk/wp-overview-lite.php

    r563516 r563605  
    44Plugin URI: http://slangji.wordpress.com/wp-overview-lite/ 
    55Description: Show <code>Dashboard Overview</code> and <code>Memory Load Usage</code> on Footer. Work under GPLv2 License. (DEVELOPMENT VERSION WP 3.2.0 REQUIRED) Thanks to RavanH! | <a href="http://slangji.wordpress.com/donate/" title="Free Donation">Donate</a> | <a href="http://slangji.wordpress.com/contact/" title="Send me bug and suggestions">Contact</a> | <a href="http://wordpress.org/extend/plugins/wp-overview-lite/" title="Show Dashboard Overview and Footer Memory Load Usage">WP Overview?</a> | <a href="http://wordpress.org/extend/plugins/wp-missed-schedule/" title="Fix Missed Scheduled Future Posts Cron Job">WP Missed Schedule?</a> | <a href="http://wordpress.org/extend/plugins/wp-admin-bar-removal/" title="Remove Admin Bar Frontend Backend User Profile and Code">Admin Bar Removal?</a> | <a href="http://wordpress.org/extend/plugins/wp-admin-bar-node-removal/" title="Remove Admin Bar Frontend and Backend Node">Admin Bar Node Removal?</a> | <a href="http://wordpress.org/extend/plugins/wp-toolbar-removal/" title="Remove ToolBar Frontend Backend User Profile and Code">ToolBar Removal?</a> | <a href="http://wordpress.org/extend/plugins/wp-toolbar-node-removal/" title="Remove ToolBar Frontend and Backend Node">ToolBar Node Removal?</a> | <a href="http://wordpress.org/extend/plugins/wp-login-deindexing/" title="Total DeIndexing WordPress LogIn from all Search Engines">LogIn DeIndexing?</a> | <a href="http://wordpress.org/extend/plugins/wp-total-deindexing/" title="Total DeIndexing WordPress from all Search Engines">WP DeIndexing?</a> | <a href="http://wordpress.org/extend/plugins/wp-ie-enhancer-and-modernizer/" title="Enhancer and Modernizer IE Surfing Expirience">Enhancer IE Surfing?</a> 
    6 Version: 2012.0625-BUGFIX.1404-DEVELOPMENT 
     6Version: 2012.0625-BUGFIX.1728-DEVELOPMENT 
    77Author: sLa 
    88Author URI: http://slangji.wordpress.com/ 
    99Requires at least: 3.2 
    10 Tested up to: 3.4.1 
     10Tested up to: 3.5 
    1111License: GPLv2 
    1212 * 
     
    3939 * @subpackage WordPress PlugIn 
    4040 * @since 3.2.0 
    41  * @version 2012.0625-BUGFIX.1404-DEVELOPMENT 
     41 * @version 2012.0625-BUGFIX.1728-DEVELOPMENT 
    4242 * @author sLa 
    4343 * @license GPLv2 
     
    4646 */ 
    4747if(!function_exists('add_action')){header('HTTP/1.0 403 Forbidden');header('HTTP/1.1 403 Forbidden');exit();}?><?php 
    48 function wpo_footer_log(){echo"\n<!--Plugin WP Overview (lite) 2012.0625-BUGFIX.1404-DEVELOPMENT Active-->";}add_action('wp_head','wpo_footer_log');add_action('wp_footer','wpo_footer_log')?><?php 
    49 if(is_admin()){class wp_overview_lite{var$memory=false;function wpo(){return$this->__construct();}function __construct(){add_action('init',array(&$this,'wpo_limit'));add_action('wp_dashboard_setup',array(&$this,'wpo_dashboard'));add_filter('admin_footer_text',array(&$this,'wpo_footer'));$this->memory=array();}function wpo_limit(){$this->memory['wpo-limit']=(int)ini_get('memory_limit');} 
    50 function wpo_load(){$this->memory['wpo-load']=function_exists('memory_get_usage')?round(memory_get_usage()/1024/1024,2):0;}function wpo_consumption(){$this->memory['wpo-consumption']=round($this->memory['wpo-load']/$this->memory['wpo-limit']*100,0);}function wpo_output(){$this->wpo_load();$this->wpo_consumption();$this->memory['wpo-load']=empty($this->memory['wpo-load'])?__('0'):$this->memory['wpo-load'].__('M')?><?php 
     48function wpo_footer_log(){echo"\n<!--Plugin WP Overview (lite) 2012.0625-BUGFIX.1728-DEVELOPMENT Active-->";}add_action('wp_head','wpo_footer_log');add_action('wp_footer','wpo_footer_log')?><?php 
     49if(is_blog_admin()||is_network_admin()){class wp_overview_lite{var$memory=false;function wpo(){return$this->__construct();}function __construct(){add_action('init',array(&$this,'wpo_limit'));add_action('wp_dashboard_setup',array(&$this,'wpo_dashboard'));add_action('wp_network_dashboard_setup',array(&$this,'wpo_network_dashboard'));add_filter('admin_footer_text',array(&$this,'wpo_footer'));$this->memory=array();}function wpo_limit(){$this->memory['wpo-limit']=(int)ini_get('memory_limit');}function wpo_load(){$this->memory['wpo-load']=function_exists('memory_get_usage')?round(memory_get_usage()/1024/1024,2):0;}function wpo_consumption(){$this->memory['wpo-consumption']=round($this->memory['wpo-load']/$this->memory['wpo-limit']*100,0);}function wpo_output(){$this->wpo_load();$this->wpo_consumption();$this->memory['wpo-load']=empty($this->memory['wpo-load'])?__('0'):$this->memory['wpo-load'].__('M')?><?php 
    5150global$wpdb,$wp_version,$wpmu_version;$cur_locale=get_locale();$mysql_status=array();$mysql_vars=array();foreach($wpdb->get_results('SHOW GLOBAL STATUS')as$result){$mysql_status[$result->Variable_name]=$result->Value;}foreach($wpdb->get_results('SHOW GLOBAL VARIABLES')as$result){$mysql_vars[$result->Variable_name]=$result->Value;}$uptime_days=$mysql_status['Uptime']/86400;$uptime_hours=($uptime_days-(int)$uptime_days)*24;$uptime_minutes=($uptime_hours-(int)$uptime_hours)*60;$uptime_seconds=($uptime_minutes-(int)$uptime_minutes)*60;$uptime_string=(int)$uptime_days.' days, '.(int)$uptime_hours.' hours, '.(int)$uptime_minutes.' minutes, '.(int)$uptime_seconds.' seconds'?> 
    5251<ul><li><strong>Mem</strong>: 
     
    101100<!--<li><strong>Admin Bar </strong><span><?php echo(int)show_admin_bar?></span> Frontend <span><?php //echo(int)show_admin_bar_front?></span> Backend <span><?php //echo(int)show_admin_bar_admin?></span><em> (since wp3.1)</em> *</li>--></ul><br/> 
    102101<em><strong>Legend</strong> 0=disabled 1=enabled *=alpha option</em><?php 
    103 }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_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();'));} 
    104 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'];} 
    105 $dbsize=wpo_fs_info($dbsize);echo"db {$dbsize['size']}{$dbsize['type']}";}add_filter('admin_footer_text','wpo_db_size')?> 
     102}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 
     103if(is_blog_admin()||is_network_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.