addInput(new Form_Input( 'backupcount', 'Backup Count', 'number', $config['system']['backupcount'] ))->setHelp('Maximum number of old configurations to keep in the cache, 0 for no backups, or leave blank for the default value (' . $g['default_config_backup_count'] . ' for the current platform).'); $space = exec("/usr/bin/du -sh /conf/backup | /usr/bin/awk '{print $1;}'"); $section->addInput(new Form_StaticText( 'Current space used by backups', $space )); $section->addInput(new Form_Button( 'Submit', gettext("Save"), null, 'fa-save' ))->addClass('btn-primary'); $form->add($section); print($form); if (is_array($confvers)) { ?>
')">