Updates to System Info

Updates to System Info Fixing misplaced error messages (language variables).
This commit is contained in:
WebShells
2020-09-19 00:32:38 +03:00
committed by jekkos
parent 1be9fd04c4
commit 382aebcf16

View File

@@ -113,7 +113,7 @@
echo ' - ' . substr(sprintf("%o",fileperms($importcustomers)),-4) . ' | ' . '<font color="red"> Not Readable &#x2717 </font>';
}
clearstatcache();
if (is_writable($importcustomers) && substr(decoct(fileperms($importcustomers)), -4) >= 751 ) {
if (is_writable($importcustomers) && substr(decoct(fileperms($importcustomers)), -4) >= 660 ) {
echo ' | <font color="red">Vulnerable &#x2717</font>';
} else {
echo ' | <font color="green">Security Check Passed &#x2713 </font>';
@@ -138,7 +138,7 @@
echo '<br><font color="red"><strong>' . $this->lang->line('config_security_issue') . '</strong> <br>' . $this->lang->line('config_perm_risk') . '</font><br>';
}
else {
echo '<br><font color="green">' . $this->lang->line('config_security_issue') . '</strong> <br>' . $this->lang->line('config_no_risk') . '</font>';
echo '<br><font color="green">' . $this->lang->line('config_no_risk') . '</strong> <br> </font>';
}
if(substr(decoct(fileperms($logs)), -4) > 750) {
echo '<br><font color="red"> &#187; [application/logs:] ' . $this->lang->line('config_is_writable') . '</font>';