aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Admin/Accounts.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-04-16 18:13:20 +0000
committerMario <mario@mariovavti.com>2021-04-16 18:13:20 +0000
commit88f7c2041d74d82db5c84b45f30e1eb64dfcc216 (patch)
treeecb7db547685d327a69cc6e9946d6e9a18e635bf /Zotlabs/Module/Admin/Accounts.php
parentb8a5f5fbf2b1702642c9489ea5ae3360c5b731bb (diff)
downloadvolse-hubzilla-88f7c2041d74d82db5c84b45f30e1eb64dfcc216.tar.gz
volse-hubzilla-88f7c2041d74d82db5c84b45f30e1eb64dfcc216.tar.bz2
volse-hubzilla-88f7c2041d74d82db5c84b45f30e1eb64dfcc216.zip
register: add option to show all register entries
Diffstat (limited to 'Zotlabs/Module/Admin/Accounts.php')
-rw-r--r--Zotlabs/Module/Admin/Accounts.php14
1 files changed, 10 insertions, 4 deletions
diff --git a/Zotlabs/Module/Admin/Accounts.php b/Zotlabs/Module/Admin/Accounts.php
index 32029eb00..76d332268 100644
--- a/Zotlabs/Module/Admin/Accounts.php
+++ b/Zotlabs/Module/Admin/Accounts.php
@@ -206,14 +206,20 @@ class Accounts {
$tao = 'tao.zar.zarax = ' . "'" . '<img src="' . z_root() . '/images/zapax16.gif">' . "';\n";
- $pending = get_pending_accounts();
+
+ // by default we will only return verified results. if reg_all is set we will return everything''
+ $get_all = isset($_REQUEST['get_all']);
+ $pending = get_pending_accounts($get_all);
unset($_SESSION[self::MYP]);
+
if ($pending) {
// collect and group all ip
- $atips = q("SELECT reg_atip AS atip, COUNT(reg_atip) AS atips FROM register "
- ." WHERE reg_vital = 1 GROUP BY reg_atip ");
- $atips ? $atipn = array_column($atips, 'atips', 'atip') : $atipn = array('' => 0);
+ $atips = dbq("SELECT reg_atip AS atip, COUNT(reg_atip) AS atips FROM register
+ WHERE reg_vital = 1 GROUP BY reg_atip"
+ );
+
+ (($atips) ? $atipn = array_column($atips, 'atips', 'atip') : $atipn = ['' => 0]);
$tao .= 'tao.zar.zarar = {';
foreach ($pending as $n => $v) {