Version Description
- Included info about Server Operating System
- Changed class name to c_ip_address_memory_usage to avoid error on some systems: "Redefining already defined constructor for class ip_address_memory_usage".
Download this release
Release Info
Developer | apasionados |
Plugin | Server IP & Memory Usage Display |
Version | 1.0.2 |
Comparing to | |
See all releases |
Code changes from version 1.0.1 to 1.0.2
- readme.txt +7 -3
- server-ip-memory-usage.php +4 -4
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Author URI: http://apasionados.es/
|
|
5 |
Tags: memory, memory-limit, ip, ips, admin, adress, php, server, info
|
6 |
Requires at least: 3.0.1
|
7 |
Tested up to: 4.0.0
|
8 |
-
Stable tag: 1.0.
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -80,6 +80,10 @@ Of course we do. That's why we created it. ;-)
|
|
80 |
|
81 |
== Changelog ==
|
82 |
|
|
|
|
|
|
|
|
|
83 |
= 1.0.1 =
|
84 |
* First official release.
|
85 |
|
@@ -91,8 +95,8 @@ Of course we do. That's why we created it. ;-)
|
|
91 |
|
92 |
== Upgrade Notice ==
|
93 |
|
94 |
-
= 1.0.
|
95 |
-
|
96 |
|
97 |
== Contact ==
|
98 |
|
5 |
Tags: memory, memory-limit, ip, ips, admin, adress, php, server, info
|
6 |
Requires at least: 3.0.1
|
7 |
Tested up to: 4.0.0
|
8 |
+
Stable tag: 1.0.2
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
80 |
|
81 |
== Changelog ==
|
82 |
|
83 |
+
= 1.0.2 =
|
84 |
+
* Included info about Server Operating System
|
85 |
+
* Changed class name to c_ip_address_memory_usage to avoid error on some systems: "Redefining already defined constructor for class ip_address_memory_usage".
|
86 |
+
|
87 |
= 1.0.1 =
|
88 |
* First official release.
|
89 |
|
95 |
|
96 |
== Upgrade Notice ==
|
97 |
|
98 |
+
= 1.0.2 =
|
99 |
+
Included info about Server Operating System and stability improvement.
|
100 |
|
101 |
== Contact ==
|
102 |
|
server-ip-memory-usage.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Server IP & Memory Usage Display
|
4 |
Plugin URI: http://apasionados.es/#utm_source=wpadmin&utm_medium=plugin&utm_campaign=server-ip-memory-usage-plugin
|
5 |
Description: Show the memory limit, current memory usage and IP address in the admin footer.
|
6 |
-
Version: 1.0.
|
7 |
Author: Apasionados, Apasionados del Marketing, Nunsys
|
8 |
Author URI: http://apasionados.es
|
9 |
|
@@ -26,7 +26,7 @@
|
|
26 |
|
27 |
if ( is_admin() ) {
|
28 |
|
29 |
-
class
|
30 |
|
31 |
var $memory = false;
|
32 |
var $server_ip_address = false;
|
@@ -67,11 +67,11 @@ if ( is_admin() ) {
|
|
67 |
function add_footer($content) {
|
68 |
$this->check_memory_usage();
|
69 |
$server_ip_address = $_SERVER[ 'SERVER_ADDR' ];
|
70 |
-
$content .= ' | ' . __( 'Memory', 'server-ip-memory-usage' ) . ': ' . $this->memory['usage'] . ' ' . __( 'of', 'server-ip-memory-usage' ) . ' ' . $this->memory['limit'] . ' MB (<span style="' . $this->memory['color'] . '">' . $this->memory['percent'] . '%</span>) | IP ' . $server_ip_address . ' | PHP ' . PHP_VERSION . ' @' . (PHP_INT_SIZE * 8) . 'BitOS';
|
71 |
return $content;
|
72 |
}
|
73 |
|
74 |
}
|
75 |
|
76 |
-
add_action( 'plugins_loaded', create_function('', '$memory = new
|
77 |
}
|
3 |
Plugin Name: Server IP & Memory Usage Display
|
4 |
Plugin URI: http://apasionados.es/#utm_source=wpadmin&utm_medium=plugin&utm_campaign=server-ip-memory-usage-plugin
|
5 |
Description: Show the memory limit, current memory usage and IP address in the admin footer.
|
6 |
+
Version: 1.0.2
|
7 |
Author: Apasionados, Apasionados del Marketing, Nunsys
|
8 |
Author URI: http://apasionados.es
|
9 |
|
26 |
|
27 |
if ( is_admin() ) {
|
28 |
|
29 |
+
class c_ip_address_memory_usage {
|
30 |
|
31 |
var $memory = false;
|
32 |
var $server_ip_address = false;
|
67 |
function add_footer($content) {
|
68 |
$this->check_memory_usage();
|
69 |
$server_ip_address = $_SERVER[ 'SERVER_ADDR' ];
|
70 |
+
$content .= ' | ' . __( 'Memory', 'server-ip-memory-usage' ) . ': ' . $this->memory['usage'] . ' ' . __( 'of', 'server-ip-memory-usage' ) . ' ' . $this->memory['limit'] . ' MB (<span style="' . $this->memory['color'] . '">' . $this->memory['percent'] . '%</span>) | IP ' . $server_ip_address . ' | PHP ' . PHP_VERSION . ' - ' . php_uname('s') . ' @' . (PHP_INT_SIZE * 8) . 'BitOS';
|
71 |
return $content;
|
72 |
}
|
73 |
|
74 |
}
|
75 |
|
76 |
+
add_action( 'plugins_loaded', create_function('', '$memory = new c_ip_address_memory_usage();') );
|
77 |
}
|