aboutsummaryrefslogtreecommitdiffstats
path: root/include/Contact.php
diff options
context:
space:
mode:
authortuscanhobbit <tuscanhobbit@users.noreply.github.com>2014-10-01 19:26:21 +0200
committertuscanhobbit <tuscanhobbit@users.noreply.github.com>2014-10-01 19:26:21 +0200
commit9cce852ac71fcd12970e985f1f61697333849172 (patch)
treec40ce5543c412035ca03188f7bd9e565efb62117 /include/Contact.php
parenta548f644d05f330a2b70c87df821bce05007c979 (diff)
parentf19d718631675d38efca1741f46bf0916af72a65 (diff)
downloadvolse-hubzilla-9cce852ac71fcd12970e985f1f61697333849172.tar.gz
volse-hubzilla-9cce852ac71fcd12970e985f1f61697333849172.tar.bz2
volse-hubzilla-9cce852ac71fcd12970e985f1f61697333849172.zip
Merge from upstream
Diffstat (limited to 'include/Contact.php')
-rw-r--r--include/Contact.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/Contact.php b/include/Contact.php
index 8d50b1e5b..4440369dc 100644
--- a/include/Contact.php
+++ b/include/Contact.php
@@ -328,6 +328,19 @@ function mark_orphan_hubsxchans() {
intval(HUBLOC_OFFLINE)
);
+// $realm = get_directory_realm();
+// if($realm == DIRECTORY_REALM) {
+// $r = q("select * from site where site_access != 0 and site_register !=0 and ( site_realm = '%s' or site_realm = '') order by rand()",
+// dbesc($realm)
+// );
+// }
+// else {
+// $r = q("select * from site where site_access != 0 and site_register !=0 and site_realm = '%s' order by rand()",
+// dbesc($realm)
+// );
+// }
+
+
$r = q("select hubloc_id, hubloc_hash from hubloc where (hubloc_status & %d) and not (hubloc_flags & %d)",
intval(HUBLOC_OFFLINE),
intval(HUBLOC_FLAGS_ORPHANCHECK)