mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-10-25 01:28:44 -04:00
CSV check
This commit is contained in:
1 parent
85f7139dfe
commit
1681afe65a
1 file changed
+5
-5
@@ -83,22 +83,22 @@
|
||||
import_items.csv:
|
||||
<?php
|
||||
if (is_writable($import)) {
|
||||
echo 'Writable ✗';
|
||||
echo 'Writable ✓';
|
||||
} else {
|
||||
echo 'NOT Writable/Read Only ✓';
|
||||
echo 'NOT Writable/Read Only ✗';
|
||||
}
|
||||
?><br>
|
||||
import_customers.csv:
|
||||
<?php
|
||||
if (is_writable($importcustomers)) {
|
||||
echo 'Writable ✗ <br>';
|
||||
echo 'Writable ✓ <br>';
|
||||
} else {
|
||||
echo 'NOT Writable/Read Only ✓ <br>';
|
||||
echo 'NOT Writable/Read Only ✗ <br>';
|
||||
}
|
||||
chmod("../import_items.csv",0664);
|
||||
chmod("../import_customers.csv",0664);
|
||||
echo "<br>";
|
||||
echo "CSV permissions were reset to 0664";
|
||||
echo "CSV permissions were set to 0664";
|
||||
?><br>
|
||||
<a href="https://github.com/opensourcepos/opensourcepos/issues/new" target="_blank"> Report An issue </a>
|
||||
</td>
|
||||
|
||||
Reference in new issue
Block a user