From 2c42b2a06a476addbf61cb2448135a3b6e89286a Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Tue, 1 Oct 2019 11:32:12 -0400 Subject: [PATCH] Add active option Active option to get all active id's. --- index.php | 6 +++--- models/admin/ajax/relay.php | 8 ++++++++ 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/index.php b/index.php index 62dcc11..9ee81cf 100644 --- a/index.php +++ b/index.php @@ -3,7 +3,7 @@ * Plugin Name: GLM Members Database Relay * Plugin URI: http://www.gaslightmedia.com/ * Description: Relay Add On - * Version: 1.0.1 + * Version: 1.0.2 * Author: Gaslight Media * Author URI: http://www.gaslightmedia.com/ * License: GPL2 @@ -19,7 +19,7 @@ * @package glmMembersRelayAddOn * @author Chuck Scott * @license http://www.gaslightmedia.com Gaslightmedia - * @version 1.0.1 + * @version 1.0.2 */ // Check that we're being called by WordPress. @@ -43,7 +43,7 @@ if (!defined('ABSPATH')) { * so that we're sure the other add-ons see an up to date * version from this plugin. */ -define('GLM_MEMBERS_RELAY_PLUGIN_VERSION', '1.0.1'); +define('GLM_MEMBERS_RELAY_PLUGIN_VERSION', '1.0.2'); /** * Database Version diff --git a/models/admin/ajax/relay.php b/models/admin/ajax/relay.php index 1968138..0a10588 100644 --- a/models/admin/ajax/relay.php +++ b/models/admin/ajax/relay.php @@ -96,6 +96,14 @@ class GlmMembersAdmin_ajax_relay extends GlmDataMessages $messages = $this->getList( 'T.status = 10', 'T.updated DESC' ); break; + case 'active': + $messages = $this->wpdb->get_results( + "SELECT id + FROM " . $this->table, + ARRAY_A + ); + break; + case 'since': if ( isset( $_REQUEST['timestamp'] ) ) { $timestamp = filter_var( $_REQUEST['timestamp'], FILTER_VALIDATE_INT ); -- 2.17.1