public function SiteAuditCheckSecurityHacked::getResultWarn in Hacked! 7.2
Implements \SiteAudit\Check\Abstract\getResultWarn().
Overrides SiteAuditCheckAbstract::getResultWarn
File
- ./
hacked.site_audit.inc, line 46 - Contains \SiteAudit\Check\Codebase\Hacked.
Class
- SiteAuditCheckSecurityHacked
- @file Contains \SiteAudit\Check\Codebase\Hacked.
Code
public function getResultWarn() {
$ret_val = dt('The following extension(s) have been modified:');
if (drush_get_option('html')) {
$ret_val = '<p>' . $ret_val . '</p>';
$ret_val .= '<table class="table table-condensed">';
$ret_val .= '<thead><tr><th>Name</th><th>Title</th><th>Version</th><th>Changed</th></thead>';
$ret_val .= '<tbody>';
foreach ($this->registry['hacked'] as $row) {
$ret_val .= '<tr><td>' . implode('</td><td>', $row) . '</td></tr>';
}
$ret_val .= '</tbody>';
$ret_val .= '</table>';
}
else {
foreach ($this->registry['hacked'] as $row) {
$ret_val .= PHP_EOL . str_repeat(' ', 6);
$ret_val .= $row['project_name'] . ' v' . $row['project_version'];
$ret_val .= ': ' . $row['lines_different'] . ' line(s)';
}
}
return $ret_val;
}