aboutsummaryrefslogtreecommitdiffstats
path: root/mod/admin.php
diff options
context:
space:
mode:
authorMichael Meer <michael@meer.name>2013-09-24 09:28:42 +0200
committerMichael Meer <michael@meer.name>2013-09-24 09:28:42 +0200
commit54823a65898db043a03aa3c509a71277ddaf52b4 (patch)
treedf4c1f5c7aa5a49f07355479d59b2861c2bf0430 /mod/admin.php
parent1f916adfb889c877ff975be75274fb7f3ac37b1f (diff)
downloadvolse-hubzilla-54823a65898db043a03aa3c509a71277ddaf52b4.tar.gz
volse-hubzilla-54823a65898db043a03aa3c509a71277ddaf52b4.tar.bz2
volse-hubzilla-54823a65898db043a03aa3c509a71277ddaf52b4.zip
admin hubloc page now with content from all hublocs, in next steps I add some tests with zping and reduce the content to known problems.
Diffstat (limited to 'mod/admin.php')
-rw-r--r--mod/admin.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/mod/admin.php b/mod/admin.php
index e9a456b52..c140cbc6f 100644
--- a/mod/admin.php
+++ b/mod/admin.php
@@ -49,6 +49,7 @@ function admin_post(&$a){
if(is_ajax()) return;
goaway($a->get_baseurl(true) . '/admin/themes/' . $theme );
+
return;
break;
case 'logs':
@@ -458,6 +459,25 @@ function admin_page_hubloc_post(&$a){
function admin_page_hubloc(&$a) {
$o = '';
+ $hubloc = q("SELECT hubloc_id, hubloc_addr, hubloc_host, hubloc_status FROM hubloc");
+
+
+ if(! $hubloc){
+ notice( t('No server found') . EOL);
+ goaway($a->get_baseurl(true) . '/admin/hubloc');
+ }
+
+ $t = get_markup_template("admin_hubloc.tpl");
+ return replace_macros($t, array(
+ '$hubloc' => $hubloc,
+ '$th_hubloc' => array(t('ID'), t('for channel'), t('on server'), t('Status')),
+ '$title' => t('Administration'),
+ '$page' => t('Server'),
+ '$queues' => $queues,
+ '$accounts' => $accounts,
+ '$pending' => Array( t('Pending registrations'), $pending),
+ '$plugins' => Array( t('Active plugins'), $a->plugins )
+ ));
return $o;
}