| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* The plugin bootstrap file |
| 5 |
* |
| 6 |
* This file is read by WordPress to generate the plugin information in the plugin |
| 7 |
* admin area. This file also includes all of the dependencies used by the plugin, |
| 8 |
* registers the activation and deactivation functions, and defines a function |
| 9 |
* that starts the plugin. |
| 10 |
* |
| 11 |
* @link https://bowo.io |
| 12 |
* @since 1.0.0 |
| 13 |
* @package System_Dashboard |
| 14 |
* |
| 15 |
* @wordpress-plugin |
| 16 |
* Plugin Name: System Dashboard |
| 17 |
* Plugin URI: https://wordpress.org/plugins/system-dashboard/ |
| 18 |
* Description: Centralized dashboard to monitor various WordPress components, stats and data, including the server. |
| 19 |
* Version: 2.8.6 |
| 20 |
* Author: Bowo |
| 21 |
* Author URI: https://bowo.io |
| 22 |
* License: GPL-2.0+ |
| 23 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt |
| 24 |
* Text Domain: system-dashboard |
| 25 |
* Domain Path: /languages |
| 26 |
*/ |
| 27 |
|
| 28 |
// If this file is called directly, abort. |
| 29 |
if ( ! defined( 'WPINC' ) ) { |
| 30 |
die; |
| 31 |
} |
| 32 |
|
| 33 |
/** |
| 34 |
* Currently plugin version. |
| 35 |
* Start at version 1.0.0 and use SemVer - https://semver.org |
| 36 |
* Rename this for your plugin and update it as you release new versions. |
| 37 |
*/ |
| 38 |
define( 'SYSTEM_DASHBOARD_VERSION', '2.8.6' ); |
| 39 |
define( 'SYSTEM_DASHBOARD_PLUGIN_SLUG', 'system-dashboard' ); |
| 40 |
|
| 41 |
/** |
| 42 |
* The code that runs during plugin activation. |
| 43 |
* This action is documented in includes/class-system-dashboard-activator.php |
| 44 |
*/ |
| 45 |
function activate_system_dashboard() { |
| 46 |
require_once plugin_dir_path( __FILE__ ) . 'includes/class-system-dashboard-activator.php'; |
| 47 |
System_Dashboard_Activator::activate(); |
| 48 |
} |
| 49 |
|
| 50 |
/** |
| 51 |
* The code that runs during plugin deactivation. |
| 52 |
* This action is documented in includes/class-system-dashboard-deactivator.php |
| 53 |
*/ |
| 54 |
function deactivate_system_dashboard() { |
| 55 |
require_once plugin_dir_path( __FILE__ ) . 'includes/class-system-dashboard-deactivator.php'; |
| 56 |
System_Dashboard_Deactivator::deactivate(); |
| 57 |
} |
| 58 |
|
| 59 |
register_activation_hook( __FILE__, 'activate_system_dashboard' ); |
| 60 |
register_deactivation_hook( __FILE__, 'deactivate_system_dashboard' ); |
| 61 |
|
| 62 |
/** |
| 63 |
* The core plugin class that is used to define internationalization, |
| 64 |
* admin-specific hooks, and public-facing site hooks. |
| 65 |
*/ |
| 66 |
require plugin_dir_path( __FILE__ ) . 'includes/class-system-dashboard.php'; |
| 67 |
|
| 68 |
/** |
| 69 |
* Begins execution of the plugin. |
| 70 |
* |
| 71 |
* Since everything within the plugin is registered via hooks, |
| 72 |
* then kicking off the plugin from this point in the file does |
| 73 |
* not affect the page life cycle. |
| 74 |
* |
| 75 |
* @since 1.0.0 |
| 76 |
*/ |
| 77 |
function run_system_dashboard() { |
| 78 |
|
| 79 |
$plugin = new System_Dashboard(); |
| 80 |
$plugin->run(); |
| 81 |
|
| 82 |
} |
| 83 |
run_system_dashboard(); |
| 84 |
|