update_option('glmMembersDatabaseServerStatsPluginVersion', GLM_MEMBERS_SERVERSTATS_PLUGIN_VERSION);
// Set Roles and Capabilities for this plugin
- require_once(GLM_MEMBERS_SERVERSTATS_PLUGIN_SETUP_PATH.'/rolesAndCapabilities.php');
+ require_once GLM_MEMBERS_SERVERSTATS_PLUGIN_SETUP_PATH.'/rolesAndCapabilities.php';
}
/*
$startupNotices = '';
// Get standard defined parameters
-require_once('defines.php');
+require_once 'defines.php';
// Required to be able to get user capabilities when being called as a filter from the main plugin
-require_once(ABSPATH . 'wp-includes/pluggable.php');
+require_once ABSPATH . 'wp-includes/pluggable.php';
// Include defines to tell if a plugin is active
-include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
+include_once ABSPATH . 'wp-admin/includes/plugin.php';
/*
* Do some preliminary sanity checks
/*
* Register this add-on with the main GLM Member DB plugin and get information on all add-ons loaded.
*/
-require_once(GLM_MEMBERS_SERVERSTATS_PLUGIN_SETUP_PATH.'/validActions.php');
-require_once(GLM_MEMBERS_SERVERSTATS_PLUGIN_SETUP_PATH.'/shortcodes.php');
+require_once GLM_MEMBERS_SERVERSTATS_PLUGIN_SETUP_PATH.'/validActions.php';
+require_once GLM_MEMBERS_SERVERSTATS_PLUGIN_SETUP_PATH.'/shortcodes.php';
if (is_file(GLM_MEMBERS_SERVERSTATS_PLUGIN_DB_SCRIPTS.'/dbVersions.php')) {
- require_once(GLM_MEMBERS_SERVERSTATS_PLUGIN_DB_SCRIPTS.'/dbVersions.php');
+ require_once GLM_MEMBERS_SERVERSTATS_PLUGIN_DB_SCRIPTS.'/dbVersions.php';
}
// Load ServerStats Management Settings data
function glmMembersServerStatsPluginActivate ()
{
global $wpdb, $config;
- require_once (GLM_MEMBERS_SERVERSTATS_PLUGIN_PATH . '/activate.php');
+ require_once GLM_MEMBERS_SERVERSTATS_PLUGIN_PATH . '/activate.php';
new glmMembersServerStatsPluginActivate($wpdb, $config);
}
register_activation_hook(__FILE__, 'glmMembersServerStatsPluginActivate');
function glmMembersServerStatsPluginDeactivate ()
{
global $wpdb, $config;
- require_once (GLM_MEMBERS_SERVERSTATS_PLUGIN_PATH . '/deactivate.php');
+ require_once GLM_MEMBERS_SERVERSTATS_PLUGIN_PATH . '/deactivate.php';
$x = new glmMembersServerStatsPluginDeactivate($wpdb, $config);
return false;
}
/*
* Hooks for testing capabilities provided by this add-on
*/
-require_once(GLM_MEMBERS_SERVERSTATS_PLUGIN_SETUP_PATH.'/permissions.php');
+require_once GLM_MEMBERS_SERVERSTATS_PLUGIN_SETUP_PATH.'/permissions.php';
*/
// Load Members Data Class
-require_once(GLM_MEMBERS_SERVERSTATS_PLUGIN_CLASS_PATH.'/serverBandwidthSupport.php');
+require_once GLM_MEMBERS_SERVERSTATS_PLUGIN_CLASS_PATH.'/serverBandwidthSupport.php';
/*
* This class exports the currently selected members list
$this->config = $config;
// Get Server Stats database access information and connect to database
- require_once(GLM_MEMBERS_SERVERSTATS_PLUGIN_CLASS_PATH.'/data/dataManagement.php');
+ require_once GLM_MEMBERS_SERVERSTATS_PLUGIN_CLASS_PATH.'/data/dataManagement.php';
$DataManagement = new GlmDataServerStatsManagement($this->wpdb, $this->config);
$dbData= $DataManagement->getEntry(1);
$this->bandwidthDataConnect(
$data = $this->bandwidthGetGraphData($graphType);
// Load PHPGraphLib
- require_once(GLM_MEMBERS_PLUGIN_LIB_PATH.'/phpgraphlib-master/phpgraphlib.php');
+ require_once GLM_MEMBERS_PLUGIN_LIB_PATH.'/phpgraphlib-master/phpgraphlib.php';
// Create graph object and set parameters
$graph = new PHPGraphLib(1200,300);
*/
// Load Members Data Class
-require_once(GLM_MEMBERS_SERVERSTATS_PLUGIN_CLASS_PATH.'/serverBandwidthSupport.php');
+require_once GLM_MEMBERS_SERVERSTATS_PLUGIN_CLASS_PATH.'/serverBandwidthSupport.php';
class GlmMembersAdmin_dashboardWidget_serverStats extends GlmServerBandwidthSupport
$this->config = $config;
// Get Server Stats database access information and connect to database
- require_once(GLM_MEMBERS_SERVERSTATS_PLUGIN_CLASS_PATH.'/data/dataManagement.php');
+ require_once GLM_MEMBERS_SERVERSTATS_PLUGIN_CLASS_PATH.'/data/dataManagement.php';
$DataManagement = new GlmDataServerStatsManagement($this->wpdb, $this->config);
$dbData= $DataManagement->getEntry(1);
*/
// Load Management Server Stats data abstract
-require_once(GLM_MEMBERS_SERVERSTATS_PLUGIN_CLASS_PATH.'/data/dataManagement.php');
+require_once GLM_MEMBERS_SERVERSTATS_PLUGIN_CLASS_PATH.'/data/dataManagement.php';
/**
* GlmMembersAdmin_management_serverStats
}
// Test database connection and warn user if not functional
- require_once(GLM_MEMBERS_SERVERSTATS_PLUGIN_CLASS_PATH.'/serverBandwidthSupport.php');
+ require_once GLM_MEMBERS_SERVERSTATS_PLUGIN_CLASS_PATH.'/serverBandwidthSupport.php';
$BandwidthStats = new GlmServerBandwidthSupport();
$res = $BandwidthStats->bandwidthDataConnect(
$serverStatsSettings['fieldData']['db_host'],