public function actionIndex($ajax = null) { $load = SystemHelper::getLoad(); $totalspace = disk_total_space(VIREX_STORAGE_PATH); $freespace = disk_free_space(VIREX_STORAGE_PATH); $slov = new ProgressBar(100, $load, 150); $slov->suff = ''; $slov->doneBg = '#9BB947'; $duov = new ProgressBar($totalspace, $totalspace - $freespace, 150); $duov->suff = ''; $duov->doneBg = '#9BB947'; $sysHealth = array(array('id' => 2, 'Property' => 'Operating System', 'Value' => PHP_OS, 'Overview' => ''), array('id' => 3, 'Property' => 'Web server', 'Value' => $_SERVER["SERVER_SOFTWARE"], 'Overview' => ''), array('id' => 4, 'Property' => 'PHP version', 'Value' => PHP_VERSION, 'Overview' => ''), array('id' => 5, 'Property' => 'MySQL version', 'Value' => Yii::app()->db->serverVersion, 'Overview' => ''), array('id' => 1, 'Property' => 'Storage space', 'Value' => FileHelper::formatSize($totalspace - $freespace) . ' / ' . FileHelper::formatSize($totalspace), 'Overview' => $duov->display()), array('id' => 6, 'Property' => 'System load / CPU usage', 'Value' => '', 'Overview' => $slov->display())); $this->render('index', array('systemHealth' => new CArrayDataProvider($sysHealth))); }
} ?> <div id="cleanup-job-result" class="padding-5"> <p class="text-headline"> <?php _e('Cleanup is running ...'); ?> </p> <div class="padding-5"> <?php $ProgressBar = new ProgressBar(1, ProgressBarSingle::$COLOR_GREEN); $ProgressBar->setInline(); $ProgressBar->setAnimated(); $ProgressBar->display(); ?> </div> <div class="c"> 100 % </div> <p class="text"></p> <?php $Job = $this->Job(); foreach ($this->Job()->messages() as $message) { echo HTML::okay($message); } ?>