aboutsummaryrefslogtreecommitdiffstats
path: root/mod/siteinfo.php
diff options
context:
space:
mode:
authorPaolo Tacconi <p.tacconi@giunti.it>2014-09-30 13:30:04 +0200
committerPaolo Tacconi <p.tacconi@giunti.it>2014-09-30 13:30:04 +0200
commit1cc5babd39259409558a3be1bf206bc38bc9ca56 (patch)
tree33e11072761930e52aa2c63fe052746bc8b45496 /mod/siteinfo.php
parent018f1b813cffaef849652a7d287169f01defef68 (diff)
downloadvolse-hubzilla-1cc5babd39259409558a3be1bf206bc38bc9ca56.tar.gz
volse-hubzilla-1cc5babd39259409558a3be1bf206bc38bc9ca56.tar.bz2
volse-hubzilla-1cc5babd39259409558a3be1bf206bc38bc9ca56.zip
added directory status to siteinfo
Diffstat (limited to 'mod/siteinfo.php')
-rw-r--r--mod/siteinfo.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/mod/siteinfo.php b/mod/siteinfo.php
index 4568906f3..eab52e41e 100644
--- a/mod/siteinfo.php
+++ b/mod/siteinfo.php
@@ -4,7 +4,8 @@ function siteinfo_init(&$a) {
if ($a->argv[1]=="json"){
$register_policy = Array('REGISTER_CLOSED', 'REGISTER_APPROVE', 'REGISTER_OPEN');
-
+ $directory_mode = Array('DIRECTORY_MODE_NORMAL', 'DIRECTORY_MODE_SECONDARY','DIRECTORY_MODE_PRIMARY', 'DIRECTORY_MODE_STANDALONE');
+
$sql_extra = '';
$r = q("select * from channel left join account on account_id = channel_account_id where ( account_roles & 4096 ) and account_default_channel = channel_id");
@@ -100,6 +101,7 @@ function siteinfo_init(&$a) {
'url' => z_root(),
'plugins' => $visible_plugins,
'register_policy' => $register_policy[$a->config['system']['register_policy']],
+ 'directory_mode' => $directory_mode[$a->config['system']['directory_mode']],
'diaspora_emulation' => get_config('system','diaspora_enabled'),
'rss_connections' => get_config('system','feed_contacts'),
'default_service_restrictions' => $service_class,