public function __construct ($wpdb, $config)
{
- if (GLM_MEMBERS_PLUGIN_ADMIN_DEBUG) {
+ if (GLM_MEMBERS_PLUGIN_ADMIN_DEBUG_VERBOSE) {
trigger_error(glmAssociateMemoryUsage().' - Start Admin Controller Constructor',E_USER_NOTICE);
}
}
- if (GLM_MEMBERS_PLUGIN_ADMIN_DEBUG) {
+ if (GLM_MEMBERS_PLUGIN_ADMIN_DEBUG_VERBOSE) {
trigger_error(glmAssociateMemoryUsage().' - End Admin Controller Constructor',E_USER_NOTICE);
}
public function glmMembersAdminAjax()
{
- if (GLM_MEMBERS_PLUGIN_ADMIN_DEBUG) {
+ if (GLM_MEMBERS_PLUGIN_ADMIN_DEBUG_VERBOSE) {
trigger_error(glmAssociateMemoryUsage()." - Start AJAX Controller",E_USER_NOTICE);
trigger_error(glmAssociateTimeTracker()." - Start AJAX Controller",E_USER_NOTICE);
}
$defaultTimeZone = date_default_timezone_get();
date_default_timezone_set($this->config['settings']['time_zone']);
- if (GLM_MEMBERS_PLUGIN_ADMIN_DEBUG) {
+ if (GLM_MEMBERS_PLUGIN_ADMIN_DEBUG_VERBOSE) {
trigger_error(glmAssociateMemoryUsage().' - Start Admin Controller AJAX',E_USER_NOTICE);
}
// Generate output from model data and view
$smarty->template->display($viewFile);
- if (GLM_MEMBERS_PLUGIN_ADMIN_DEBUG) {
+ if (GLM_MEMBERS_PLUGIN_ADMIN_DEBUG_VERBOSE) {
trigger_error(glmAssociateMemoryUsage().' - End Admin Controller AJAX',E_USER_NOTICE);
}
// Restore timezone that was set before our code was called
date_default_timezone_set($defaultTimeZone);
- if (GLM_MEMBERS_PLUGIN_ADMIN_DEBUG) {
+ if (GLM_MEMBERS_PLUGIN_ADMIN_DEBUG_VERBOSE) {
trigger_error(glmAssociateMemoryUsage()." - End AJAX Controller",E_USER_NOTICE);
trigger_error(glmAssociateTimeTracker()." - End AJAX Controller",E_USER_NOTICE);
}
public function controller( $menuItem, $action = false, $actionData = false, $returnOutput = false, $forceAction = false )
{
- if (GLM_MEMBERS_PLUGIN_ADMIN_DEBUG) {
+ if (GLM_MEMBERS_PLUGIN_ADMIN_DEBUG_VERBOSE) {
trigger_error(glmAssociateMemoryUsage()." - Start Admin Controller, Menu = $menuItem, Action = $action",E_USER_NOTICE);
trigger_error(glmAssociateTimeTracker()." - Start Admin Controller",E_USER_NOTICE);
}
// Restore timezone that was set before our code was called
date_default_timezone_set($defaultTimeZone);
- if (GLM_MEMBERS_PLUGIN_ADMIN_DEBUG) {
+ if (GLM_MEMBERS_PLUGIN_ADMIN_DEBUG_VERBOSE) {
trigger_error(glmAssociateMemoryUsage().' - End Admin Controller',E_USER_NOTICE);
trigger_error(glmAssociateTimeTracker().' - End Admin Controller',E_USER_NOTICE);
}
// Get configuration
require_once 'config.php';
-if (GLM_MEMBERS_PLUGIN_DEBUG) {
+if (GLM_MEMBERS_PLUGIN_DEBUG_VERBOSE) {
ini_set('log_errors_max_len', 4096);
trigger_error("GLM Associate Index Start: ".glmAssociateMemoryUsage()." - Start glm-member-db setup",E_USER_NOTICE);
}
wp_schedule_event( $t, 'hourly', 'glm_associate_cron' );
}
-if (GLM_MEMBERS_PLUGIN_DEBUG) {
+if (GLM_MEMBERS_PLUGIN_DEBUG_VERBOSE) {
trigger_error("GLM Associate Index End: ".glmAssociateMemoryUsage()." - Start glm-member-db setup",E_USER_NOTICE);
}