WordPress.org

Plugin Directory

Changeset 563516


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

Legend:

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

    r560222 r563516  
    33Plugin Name: WP Overview (lite) 
    44Plugin URI: http://slangji.wordpress.com/wp-overview-lite/ 
    5 Description: Show <code>Dashboard Overview</code> and <code>Memory Load Usage</code> on Footer. Work under GPLv2 License. Thanks to RavanH! | <a href="http://slangji.wordpress.com/donate/" title="Free Donation">Donate</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> 
     5Description: Show <code>Dashboard Overview</code> and <code>Memory Load Usage</code> on Footer. Work under GPLv2 License. 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> 
    66Version: 2011.0723.2011 
    77Author: sLa 
     
    1111License: GPLv2 
    1212 * 
    13  * Development Release: Version 2012 Build 0322-BUGFIX Revision 0000-DEVELOPMENTAL (WP 3.2.0 REQUIRED) 
     13 * Development Release: Version 2012 Build 0625-BUGFIX Revision 1404-DEVELOPMENT (WP 3.2.0 REQUIRED) 
    1414 * 
    1515 * [WP Overview (lite)](http://wordpress.org/extend/plugins/wp-overview-lite/) WordPress PlugIn 
     
    4545 * Show Dashboard Overview and Memory Load Usage on Footer. 
    4646 */ 
    47 if(!function_exists('add_action')){header('Status 403 Forbidden');header('HTTP/1.0 403 Forbidden');header('HTTP/1.1 403 Forbidden');exit();}?><?php 
     47if(!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 
    4949if(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');} 
     
    8383<strong>Display </strong><span><?php echo(int)WP_DEBUG_DISPLAY?></span> 
    8484<strong>Log </strong><span><?php echo(int)WP_DEBUG_LOG?></span> 
    85 <strong>Script </strong><span><?php echo(int)SCRIPT_DEBUG?></span> 
    86 <strong>Deprecated </strong><span><?php echo(int)E_DEPRECATED?></span><br/></li> 
     85<strong>Script </strong><span><?php echo(int)SCRIPT_DEBUG?></span><br/></li> 
    8786<li><br/><strong>SQL Uptime</strong>: 
    8887<span><?php echo$uptime_string?></span><br/></li> 
     
    9493<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/> 
    9594<em><strong>Legend</strong> 0=disabled 1=enabled</em><?php 
    96 }function wpo_dashboard(){if(!current_user_can('unfiltered_html'))return;wp_add_dashboard_widget('wp_overview_lite_mu_dashboard_widget','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();'));} 
     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();'));} 
    9796function 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'];} 
    9897$dbsize=wpo_fs_info($dbsize);echo"db {$dbsize['size']}{$dbsize['type']}";}add_filter('admin_footer_text','wpo_db_size')?> 
  • wp-overview-lite/trunk/wp-overview-lite.php

    r560222 r563516  
    11<?php 
    22/* 
    3 Plugin Name: WP Overview (lite) DEVELOPMENTAL 
     3Plugin Name: WP Overview (lite) DEV 
    44Plugin URI: http://slangji.wordpress.com/wp-overview-lite/ 
    5 Description: Show <code>Dashboard Overview</code> and <code>Memory Load Usage</code> on Footer. Work under GPLv2 License. (DEVELOPMENTAL VERSION WP 3.2.0 REQUIRED) Thanks to RavanH! | <a href="http://slangji.wordpress.com/donate/" title="Free Donation">Donate</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.0322-BUGFIX.0000-DEVELOPMENTAL 
     5Description: 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> 
     6Version: 2012.0625-BUGFIX.1404-DEVELOPMENT 
    77Author: sLa 
    88Author URI: http://slangji.wordpress.com/ 
     
    1111License: GPLv2 
    1212 * 
    13  * Stable Release: Version 2012 Build 0321 Revision 1111 
     13 * Stable Release: Version 2011 Build 0723 Revision 2011 
    1414 * 
    1515 * [WP Overview (lite)](http://wordpress.org/extend/plugins/wp-overview-lite/) WordPress PlugIn 
     
    3636 */ 
    3737/** 
    38  * @package WP Overview (lite) 
     38 * @package WP Overview (lite) DEV 
    3939 * @subpackage WordPress PlugIn 
    4040 * @since 3.2.0 
    41  * @version 2012.0322-BUGFIX.0000-DEVELOPMENTAL 
     41 * @version 2012.0625-BUGFIX.1404-DEVELOPMENT 
    4242 * @author sLa 
    4343 * @license GPLv2 
     
    4545 * Show Dashboard Overview and Memory Load Usage on Footer. 
    4646 */ 
    47 if(!function_exists('add_action')){header('Status 403 Forbidden');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.0322-BUGFIX.0000-DEVELOPMENTAL Active-->";}add_action('wp_head','wpo_footer_log');add_action('wp_footer','wpo_footer_log')?><?php 
     47if(!function_exists('add_action')){header('HTTP/1.0 403 Forbidden');header('HTTP/1.1 403 Forbidden');exit();}?><?php 
     48function 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 
    4949if(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');} 
    5050function 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 
     
    8484<strong>Display </strong><span><?php echo(int)WP_DEBUG_DISPLAY?></span> 
    8585<strong>Log </strong><span><?php echo(int)WP_DEBUG_LOG?></span> 
    86 <strong>Script </strong><span><?php echo(int)SCRIPT_DEBUG?></span> 
    87 <strong>Deprecated </strong><span><?php echo(int)E_DEPRECATED?></span><br/></li> 
     86<strong>Script </strong><span><?php echo(int)SCRIPT_DEBUG?></span><br/></li> 
     87<!--<strong>Deprecated </strong><span><?php //echo(int)E_DEPRECATED?></span>--> 
    8888<li><br/><strong>SQL Uptime</strong>: 
    8989<span><?php echo$uptime_string?></span><br/></li> 
     
    101101<!--<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/> 
    102102<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('wp_overview_lite_mu_dashboard_widget','Overview DEVELOPMENTAL (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();'));} 
     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();'));} 
    104104function 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'];} 
    105105$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.