aboutsummaryrefslogtreecommitdiffstats
path: root/include
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 /include
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 'include')
-rw-r--r--include/account.php10
1 files changed, 7 insertions, 3 deletions
diff --git a/include/account.php b/include/account.php
index 991e799b5..a7a87f331 100644
--- a/include/account.php
+++ b/include/account.php
@@ -1261,7 +1261,7 @@ function zar_register_dutystate( $now=NULL, $day=NULL ) {
}
-function get_pending_accounts() {
+function get_pending_accounts($get_all = false) {
/* get pending */
// [hilmar ->
@@ -1271,9 +1271,13 @@ function get_pending_accounts() {
// better useability at the moment to tell all (ACCOUNT_PENDING >= 0) instead of (> 0 for those need approval)
+ $sql_extra = " AND (reg_flags & " . ACCOUNT_UNVERIFIED . ") = 0 ";
+
+ if($get_all)
+ $sql_extra = '';
+
$r = q("SELECT reg_did2, reg_created, reg_startup, reg_expires, reg_email, reg_atip, reg_hash, reg_id, reg_stuff
- FROM register WHERE reg_vital = 1 AND (reg_flags & %d) = 0 AND (reg_flags & %d) >= 0",
- intval(ACCOUNT_UNVERIFIED),
+ FROM register WHERE reg_vital = 1 $sql_extra AND (reg_flags & %d) >= 0",
intval(ACCOUNT_PENDING)
);