echo '<td><strong>', __('Name'), '</strong></td>'; echo '<td><strong>', __('Path'), '</strong></td>'; echo '<td><strong>', __('Current permissions'), '</strong></td>'; echo '<td><strong>', __('Suggested permissions'), '</strong></td>'; echo '</tr>'; echo '</thead>'; echo '<tbody>'; foreach ($acxFileList as $fileName => $v) { $filePath = $v['filePath']; if (false !== ($pos = stripos($filePath, 'readme'))) { if (!is_file($filePath)) { // safely ignore the readme file continue; } } $p = WsdUtil::getFilePermissions($filePath); $sp = $v['suggestedPermissions']; $cssClass = octdec($p) == octdec($sp) ? 'success' : 'error'; echo '<tr>'; echo '<td class="td_' . $cssClass . '"></td>'; echo '<td>', $fileName, '</td>'; echo '<td>', empty($filePath) ? 'Not Found' : WsdUtil::normalizePath($filePath), '</td>'; //@ Current if ($p > octdec('0')) { echo '<td>', $p, '</td>'; } else { echo '<td>', __('Not Found'), '</td>'; } //@ Suggested if (file_exists($filePath)) { echo '<td>', $sp, '</td>';