addMessage(sprinf(_('Getting vnstat %s information failed.'), _('daily')), 'error'); } exec('vnstat -w ', $stdoutvnstatweekly, $exitcodeweekly); if ($exitcodeweekly !== 0) { $status->addMessage(sprinf(_('Getting vnstat %s information failed.'), _('weekly')), 'error'); } exec('vnstat -d ', $stdoutvnstatdaily, $exitcodedaily); if ($exitcodedaily !== 0) { $status->addMessage(sprinf(_('Getting vnstat %s information failed.'), _('monthly')), 'error'); } ?>
showMessages(); ?>