From 9daf3766a42243b322cd076eef7ac493ca88b738 Mon Sep 17 00:00:00 2001 From: Mohammad Shokri Date: Sat, 28 Sep 2013 13:23:10 +0330 Subject: [PATCH 1/6] Add table_prefix to registered_users query --- plugins/drupal/drupal_users_online.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/drupal/drupal_users_online.php b/plugins/drupal/drupal_users_online.php index 9eafa167..3d9f719a 100755 --- a/plugins/drupal/drupal_users_online.php +++ b/plugins/drupal/drupal_users_online.php @@ -114,7 +114,7 @@ function get_online_registered_users(&$dbh = NULL, $active_interval = 900) { $table_prefix = getenv('table_prefix'); - $sql = "SELECT COUNT(DISTINCT(uid)) AS count FROM sessions WHERE uid != 0 + $sql = "SELECT COUNT(DISTINCT(uid)) AS count FROM {$table_prefix}sessions WHERE uid != 0 AND timestamp >= (UNIX_TIMESTAMP(now()) - ?)"; $stmt = $dbh->prepare($sql); From daac83c489cf1abda180c7c3434c8d4e00bb5c40 Mon Sep 17 00:00:00 2001 From: Mohammad Shokri Date: Sat, 28 Sep 2013 13:25:37 +0330 Subject: [PATCH 2/6] Fixed env section of manual(doc) --- plugins/drupal/drupal_files_total.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/plugins/drupal/drupal_files_total.php b/plugins/drupal/drupal_files_total.php index 9b75a788..0cfe9604 100755 --- a/plugins/drupal/drupal_files_total.php +++ b/plugins/drupal/drupal_files_total.php @@ -9,11 +9,12 @@ * * @example Example entry for configuration: * [drupal*] - * env.db="drupal" - * env.user="mysql_user" - * env.pass="mysql_pass" - * env.host="localhost" - * env.port="3306" + * env.db drupal + * env.user mysql_user + * env.pass mysql_pass + * env.host localhost + * env.port 3306 + * env.table_prefix drupal_ * * @author Liran Tal * @version 1.0 2013 From 7310fe3227c0ce0ba4e668d2664abe0869acca8e Mon Sep 17 00:00:00 2001 From: Mohammad Shokri Date: Sat, 28 Sep 2013 13:36:24 +0330 Subject: [PATCH 3/6] Fixed env section of manual(doc) --- plugins/drupal/drupal_forums_total.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/plugins/drupal/drupal_forums_total.php b/plugins/drupal/drupal_forums_total.php index 38337149..6a73d2ee 100755 --- a/plugins/drupal/drupal_forums_total.php +++ b/plugins/drupal/drupal_forums_total.php @@ -9,11 +9,12 @@ * * @example Example entry for configuration: * [drupal*] - * env.db="drupal" - * env.user="mysql_user" - * env.pass="mysql_pass" - * env.host="localhost" - * env.port="3306" + * env.db drupal + * env.user mysql_user + * env.pass mysql_pass + * env.host localhost + * env.port 3306 + * env.table_prefix drupal_ * * @author Liran Tal * @version 1.0 2013 From 2e0503aca52e3be1820f97688a1f47195db39afb Mon Sep 17 00:00:00 2001 From: Mohammad Shokri Date: Sat, 28 Sep 2013 13:36:54 +0330 Subject: [PATCH 4/6] Fixed env section of manual(doc) --- plugins/drupal/drupal_node_distribution_count.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/plugins/drupal/drupal_node_distribution_count.php b/plugins/drupal/drupal_node_distribution_count.php index 1a3e661b..2e282e2d 100755 --- a/plugins/drupal/drupal_node_distribution_count.php +++ b/plugins/drupal/drupal_node_distribution_count.php @@ -9,11 +9,12 @@ * * @example Example entry for configuration: * [drupal*] - * env.db="drupal" - * env.user="mysql_user" - * env.pass="mysql_pass" - * env.host="localhost" - * env.port="3306" + * env.db drupal + * env.user mysql_user + * env.pass mysql_pass + * env.host localhost + * env.port 3306 + * env.table_prefix drupal_ * * @author Liran Tal * @version 1.0 2013 From f4070fafba994ed90cb76765490ba3a608fba597 Mon Sep 17 00:00:00 2001 From: Mohammad Shokri Date: Sat, 28 Sep 2013 13:37:02 +0330 Subject: [PATCH 5/6] Fixed env section of manual(doc) --- plugins/drupal/drupal_users_online.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/plugins/drupal/drupal_users_online.php b/plugins/drupal/drupal_users_online.php index 3d9f719a..b682f163 100755 --- a/plugins/drupal/drupal_users_online.php +++ b/plugins/drupal/drupal_users_online.php @@ -9,11 +9,12 @@ * * @example Example entry for configuration: * [drupal*] - * env.db="drupal" - * env.user="mysql_user" - * env.pass="mysql_pass" - * env.host="localhost" - * env.port="3306" + * env.db drupal + * env.user mysql_user + * env.pass mysql_pass + * env.host localhost + * env.port 3306 + * env.table_prefix drupal_ * * @author Liran Tal * @version 1.0 2013 From 55c30227fbd4220c645c776179176e395ee318ac Mon Sep 17 00:00:00 2001 From: Mohammad Shokri Date: Sat, 28 Sep 2013 13:37:12 +0330 Subject: [PATCH 6/6] Fixed env section of manual(doc) --- plugins/drupal/drupal_users_total.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/plugins/drupal/drupal_users_total.php b/plugins/drupal/drupal_users_total.php index e2eb81a8..0521b419 100755 --- a/plugins/drupal/drupal_users_total.php +++ b/plugins/drupal/drupal_users_total.php @@ -9,11 +9,12 @@ * * @example Example entry for configuration: * [drupal*] - * env.db="drupal" - * env.user="mysql_user" - * env.pass="mysql_pass" - * env.host="localhost" - * env.port="3306" + * env.db drupal + * env.user mysql_user + * env.pass mysql_pass + * env.host localhost + * env.port 3306 + * env.table_prefix drupal_ * * @author Liran Tal * @version 1.0 2013