Added show listener stats page needs data display still

This commit is contained in:
Robbt 2019-04-30 20:40:22 -04:00
parent b8b656d8ca
commit fafc599780
4 changed files with 121 additions and 3 deletions

View file

@ -26,6 +26,7 @@ $ccAcl->add(new Zend_Acl_Resource('library'))
->add(new Zend_Acl_Resource('playouthistory'))
->add(new Zend_Acl_Resource('playouthistorytemplate'))
->add(new Zend_Acl_Resource('listenerstat'))
->add(new Zend_Acl_Resource('showlistenerstat'))
->add(new Zend_Acl_Resource('usersettings'))
->add(new Zend_Acl_Resource('audiopreview'))
->add(new Zend_Acl_Resource('webstream'))
@ -84,6 +85,7 @@ $ccAcl->allow('G', 'index')
->allow('H', 'playlist')
->allow('H', 'playouthistory')
->allow('H', 'listenerstat')
->allow('H', 'showlistenerstat')
->allow('A', 'playouthistorytemplate')
->allow('A', 'user')
->allow('A', 'systemstatus')

View file

@ -138,6 +138,14 @@ $pages[] = array(
'action' => 'index',
'resource' => 'listenerstat'
),
array(
'label' => _('Show Listener Stats'),
'module' => 'default',
'controller' => 'listenerstat',
'action' => 'show',
'resource' => 'showlistenerstat'
),
)
);
if (LIBRETIME_ENABLE_BILLING === true) {
@ -221,4 +229,4 @@ $container = new Zend_Navigation($pages);
$container->id = "nav";
//store it in the registry:
Zend_Registry::set('Zend_Navigation', $container);
Zend_Registry::set('Zend_Navigation', $container);