PluginProbe
WP-ServerInfo / trunk
WP-ServerInfo vtrunk
3.0.0 trunk 1.00 1.30 1.31 1.40 1.50 1.65 1.66 2.0.0
wp-serverinfo / wp-serverinfo.php

wp-serverinfo.php in WP-ServerInfo trunk, at wp-serverinfo.php

83 lines 2.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Plugin Name: WP-ServerInfo
4 * Plugin URI: https://lesterchan.net/portfolio/programming/php/
5 * Description: Display your host's PHP, MYSQL, memcached & Redis information on your WordPress dashboard.
6 * Version: 3.0.0
7 * Requires at least: 6.8
8 * Requires PHP: 8.2
9 * Author: Lester 'GaMerZ' Chan
10 * Author URI: https://lesterchan.net
11 * License: GPLv2 or later
12 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
13 * Text Domain: wp-serverinfo
14 * Domain Path: /languages
15 *
16 * @package WP-ServerInfo
17 */
18
19 /*
20 Copyright 2026 Lester Chan (email : lesterchan@gmail.com)
21
22 This program is free software; you can redistribute it and/or modify
23 it under the terms of the GNU General Public License as published by
24 the Free Software Foundation; either version 2 of the License, or
25 (at your option) any later version.
26
27 This program is distributed in the hope that it will be useful,
28 but WITHOUT ANY WARRANTY; without even the implied warranty of
29 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
30 GNU General Public License for more details.
31
32 You should have received a copy of the GNU General Public License
33 along with this program; if not, write to the Free Software
34 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
35 */
36
37 defined( 'ABSPATH' ) || exit;
38
39 /**
40 * WP-ServerInfo version. The last-run value is kept in the wp_serverinfo_version row.
41 */
42 define( 'WP_SERVERINFO_VERSION', '3.0.0' );
43
44 /**
45 * WP-ServerInfo slug, which is also the text domain.
46 */
47 define( 'WP_SERVERINFO_SLUG', 'wp-serverinfo' );
48
49 /**
50 * WP-ServerInfo main file.
51 */
52 define( 'WP_SERVERINFO_MAIN_FILE', __FILE__ );
53
54 /**
55 * WP-ServerInfo directory, with a trailing slash.
56 */
57 define( 'WP_SERVERINFO_DIR', plugin_dir_path( __FILE__ ) );
58
59 /**
60 * WP-ServerInfo URL, with a trailing slash.
61 */
62 define( 'WP_SERVERINFO_URL', plugin_dir_url( __FILE__ ) );
63
64 /**
65 * The Dashboard widget's id.
66 *
67 * WordPress records this string in per-user meta the moment somebody closes,
68 * hides or reorders the widget, so it is part of what the plugin leaves in the
69 * database and uninstall.php has to know it too. It is spelled out there rather
70 * than read from here, because uninstall runs with the plugin inactive.
71 */
72 define( 'WP_SERVERINFO_WIDGET_ID', 'dashboard_serverinfo' );
73
74 require_once WP_SERVERINFO_DIR . 'includes/class-wp-serverinfo-format.php';
75 require_once WP_SERVERINFO_DIR . 'includes/class-wp-serverinfo-php.php';
76 require_once WP_SERVERINFO_DIR . 'includes/class-wp-serverinfo-mysql.php';
77 require_once WP_SERVERINFO_DIR . 'includes/class-wp-serverinfo-cache.php';
78 require_once WP_SERVERINFO_DIR . 'includes/class-wp-serverinfo-admin.php';
79 require_once WP_SERVERINFO_DIR . 'includes/class-wp-serverinfo-dashboard.php';
80 require_once WP_SERVERINFO_DIR . 'includes/class-wp-serverinfo.php';
81
82 WP_ServerInfo::get_instance();
83