2017-03-08 14:46:33 +01:00
|
|
|
<?php
|
2021-10-11 16:10:47 +02:00
|
|
|
|
2017-03-08 14:46:33 +01:00
|
|
|
class SystemstatusController extends Zend_Controller_Action
|
|
|
|
{
|
|
|
|
private $version;
|
2021-10-11 16:10:47 +02:00
|
|
|
|
2017-03-08 14:46:33 +01:00
|
|
|
public function init()
|
|
|
|
{
|
|
|
|
$config = Config::getConfig();
|
2022-09-19 11:58:31 +02:00
|
|
|
$this->view->headScript()->appendFile(Assets::url('js/airtime/status/status.js'), 'text/javascript');
|
2017-03-08 14:46:33 +01:00
|
|
|
$this->version = $config['airtime_version'];
|
|
|
|
}
|
|
|
|
|
|
|
|
public function indexAction()
|
|
|
|
{
|
|
|
|
Zend_Layout::getMvcInstance()->assign('parent_page', 'Settings');
|
|
|
|
|
|
|
|
$partitions = Application_Model_Systemstatus::GetDiskInfo();
|
2022-02-08 10:14:59 +01:00
|
|
|
$this->view->status = new stdClass();
|
2017-03-08 14:46:33 +01:00
|
|
|
$this->view->status->partitions = $partitions;
|
|
|
|
$this->view->version = $this->version;
|
|
|
|
}
|
|
|
|
}
|