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.
This commit is contained in:
parent
1f916adfb8
commit
54823a6589
@ -49,6 +49,7 @@ function admin_post(&$a){
|
|||||||
if(is_ajax()) return;
|
if(is_ajax()) return;
|
||||||
|
|
||||||
goaway($a->get_baseurl(true) . '/admin/themes/' . $theme );
|
goaway($a->get_baseurl(true) . '/admin/themes/' . $theme );
|
||||||
|
|
||||||
return;
|
return;
|
||||||
break;
|
break;
|
||||||
case 'logs':
|
case 'logs':
|
||||||
@ -458,6 +459,25 @@ function admin_page_hubloc_post(&$a){
|
|||||||
|
|
||||||
function admin_page_hubloc(&$a) {
|
function admin_page_hubloc(&$a) {
|
||||||
$o = '';
|
$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;
|
return $o;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user