Server IP & Memory Usage Display - Version 1.0.3

Version Description

  • Removed call to _construct() which caused problems on some systems: ERROR "Strict Standards: Redefining already defined constructor for class ip_addressmemory_usage in /home/---/public_html/wp-content/plugins/server-ip-memory-usage/server-ip-memory-usage.php on line 40)".
Download this release

Release Info

Developer apasionados
Plugin Icon 128x128 Server IP & Memory Usage Display
Version 1.0.3
Comparing to
See all releases

Code changes from version 1.0.2 to 1.0.3

lang/server-ip-memory-usage-es_ES.mo CHANGED
Binary file
lang/server-ip-memory-usage-es_ES.po CHANGED
@@ -1,24 +1,37 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: ip-address-memory-usage\n"
4
- "POT-Creation-Date: 2013-10-26 12:30+0100\n"
5
- "PO-Revision-Date: 2013-10-26 12:36+0100\n"
6
  "Last-Translator: Ramon <marketing@apasionados.es>\n"
7
  "Language-Team: Apasionados <info@apasionados.es>\n"
8
  "Language: es_ES\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
- "X-Generator: Poedit 1.5.7\n"
13
  "X-Poedit-KeywordsList: __;_;gettext;gettext_noop;_e\n"
14
  "X-Poedit-Basepath: .\n"
15
  "X-Poedit-SearchPath-0: .\n"
16
  "X-Poedit-SearchPath-1: ..\n"
17
 
18
- #: ../ip-address-memory-usage.php:51
 
 
 
 
 
 
 
 
 
 
 
 
 
19
  msgid "Memory"
20
  msgstr "Memoria"
21
 
22
- #: ../ip-address-memory-usage.php:51
23
  msgid "of"
24
  msgstr "de"
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: ip-address-memory-usage\n"
4
+ "POT-Creation-Date: 2014-12-09 20:59+0100\n"
5
+ "PO-Revision-Date: 2014-12-09 20:59+0100\n"
6
  "Last-Translator: Ramon <marketing@apasionados.es>\n"
7
  "Language-Team: Apasionados <info@apasionados.es>\n"
8
  "Language: es_ES\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Generator: Poedit 1.7\n"
13
  "X-Poedit-KeywordsList: __;_;gettext;gettext_noop;_e\n"
14
  "X-Poedit-Basepath: .\n"
15
  "X-Poedit-SearchPath-0: .\n"
16
  "X-Poedit-SearchPath-1: ..\n"
17
 
18
+ #: ../server-ip-memory-usage.php:25
19
+ msgid "Server IP & Memory Usage Display"
20
+ msgstr "Mostrar IP del servidor y uso de memoria"
21
+
22
+ #: ../server-ip-memory-usage.php:25
23
+ msgid ""
24
+ "Show the memory limit, current memory usage and IP address in the admin "
25
+ "footer."
26
+ msgstr ""
27
+ "Muestra la memoria disponible, el uso actual de la misma y la dirección IP "
28
+ "en el pie de la adminstración de WordPress para los usuarios que son "
29
+ "adminstradores."
30
+
31
+ #: ../server-ip-memory-usage.php:64
32
  msgid "Memory"
33
  msgstr "Memoria"
34
 
35
+ #: ../server-ip-memory-usage.php:64
36
  msgid "of"
37
  msgstr "de"
readme.txt CHANGED
@@ -4,8 +4,8 @@ Donate link: http://apasionados.es/
4
  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.2
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -80,6 +80,9 @@ Of course we do. That's why we created it. ;-)
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".
@@ -95,8 +98,8 @@ Of course we do. That's why we created it. ;-)
95
 
96
  == Upgrade Notice ==
97
 
98
- = 1.0.2 =
99
- Included info about Server Operating System and stability improvement.
100
 
101
  == Contact ==
102
 
4
  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.3.0
8
+ Stable tag: 1.0.3
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.3 =
84
+ * Removed call to __construct() which caused problems on some systems: ERROR "Strict Standards: Redefining already defined constructor for class ip_address_memory_usage in /home/---/public_html/wp-content/plugins/server-ip-memory-usage/server-ip-memory-usage.php on line 40)".
85
+
86
  = 1.0.2 =
87
  * Included info about Server Operating System
88
  * 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".
98
 
99
  == Upgrade Notice ==
100
 
101
+ = 1.0.3 =
102
+ Stability improvement.
103
 
104
  == Contact ==
105
 
server-ip-memory-usage.php CHANGED
@@ -1,50 +1,44 @@
1
  <?php
2
  /*
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
 
10
- This program is free software; you can redistribute it and/or modify
11
- it under the terms of the GNU General Public License as published by
12
- the Free Software Foundation; either version 2 of the License, or
13
- (at your option) any later version.
14
-
15
- This program is distributed in the hope that it will be useful,
16
- but WITHOUT ANY WARRANTY; without even the implied warranty of
17
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
- GNU General Public License for more details.
19
-
20
- You should have received a copy of the GNU General Public License
21
- along with this program; if not, write to the Free Software
22
- Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
23
  */
24
 
25
-
26
 
27
  if ( is_admin() ) {
28
 
29
- class c_ip_address_memory_usage {
30
 
31
  var $memory = false;
32
  var $server_ip_address = false;
33
 
34
-
35
-
36
  function ip_address_memory_usage() {
37
- return $this->__construct();
38
- }
39
-
40
- function __construct() {
41
  add_action( 'admin_init', 'ipmem_load_language' );
42
  function ipmem_load_language() {
43
  load_plugin_textdomain( 'server-ip-memory-usage', false, dirname( plugin_basename( __FILE__ ) ) . '/lang/' );
44
  }
45
  add_action( 'init', array (&$this, 'check_limit') );
46
  add_filter( 'admin_footer_text', array (&$this, 'add_footer') );
47
-
48
  $this->memory = array();
49
  }
50
 
@@ -67,11 +61,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_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
  }
1
  <?php
2
  /*
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.3
7
+ Author: Apasionados, Apasionados del Marketing
8
+ Author URI: http://apasionados.es
9
+ Text Domain: server-ip-memory-usage
10
 
11
+ # This program is free software; you can redistribute it and/or modify
12
+ # it under the terms of the GNU General Public License as published by
13
+ # the Free Software Foundation; either version 2 of the License, or
14
+ # (at your option) any later version.
15
+ #
16
+ # This program is distributed in the hope that it will be useful,
17
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
18
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
+ # GNU General Public License for more details.
20
+ #
21
+ # You should have received a copy of the GNU General Public License
22
+ # along with this program; if not, write to the Free Software
23
+ # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
24
  */
25
 
26
+ $plugin_header_translate = array( __('Server IP & Memory Usage Display', 'server-ip-memory-usage'), __('Show the memory limit, current memory usage and IP address in the admin footer.', 'server-ip-memory-usage') );
27
 
28
  if ( is_admin() ) {
29
 
30
+ class ip_address_memory_usage {
31
 
32
  var $memory = false;
33
  var $server_ip_address = false;
34
 
 
 
35
  function ip_address_memory_usage() {
 
 
 
 
36
  add_action( 'admin_init', 'ipmem_load_language' );
37
  function ipmem_load_language() {
38
  load_plugin_textdomain( 'server-ip-memory-usage', false, dirname( plugin_basename( __FILE__ ) ) . '/lang/' );
39
  }
40
  add_action( 'init', array (&$this, 'check_limit') );
41
  add_filter( 'admin_footer_text', array (&$this, 'add_footer') );
 
42
  $this->memory = array();
43
  }
44
 
61
  function add_footer($content) {
62
  $this->check_memory_usage();
63
  $server_ip_address = $_SERVER[ 'SERVER_ADDR' ];
64
+ $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';
65
  return $content;
66
  }
67
 
68
  }
69
 
70
+ add_action( 'plugins_loaded', create_function('', '$memory = new ip_address_memory_usage();') );
71
  }