function hackedProject::compute_details in Hacked! 6.2
Same name and namespace in other branches
- 7.2 includes/hackedProject.inc \hackedProject::compute_details()
Return a nice detailed report.
File
- includes/
hacked_project.inc, line 275
Class
- hackedProject
- Ensapsulates a Hacked! project.
Code
function compute_details() {
// Ensure we know the differences.
$report = $this
->compute_report();
$report['files'] = array();
// Add extra details about every file.
$states = array(
'access_denied' => HACKED_STATUS_PERMISSION_DENIED,
'missing' => HACKED_STATUS_DELETED,
'different' => HACKED_STATUS_HACKED,
'same' => HACKED_STATUS_UNHACKED,
);
foreach ($states as $state => $status) {
foreach ($this->result[$state] as $file) {
$report['files'][$file] = $status;
$report['diffable'][$file] = $this
->file_is_diffable($file);
}
}
return $report;
}