mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-01-28 11:11:14 -05:00
Updates to System Info
Updates to System Info Fixing misplaced error messages (language variables).
This commit is contained in:
@@ -113,7 +113,7 @@
|
||||
echo ' - ' . substr(sprintf("%o",fileperms($importcustomers)),-4) . ' | ' . '<font color="red"> Not Readable ✗ </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 ✗</font>';
|
||||
} else {
|
||||
echo ' | <font color="green">Security Check Passed ✓ </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"> » [application/logs:] ' . $this->lang->line('config_is_writable') . '</font>';
|
||||
|
||||
Reference in New Issue
Block a user