mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-04-02 06:14:51 -04:00
Fix reference to uploads folder (#4270)
This commit is contained in:
@@ -90,8 +90,8 @@ use Config\OSPOS;
|
||||
File Permissions:<br>
|
||||
» [writable/logs:]
|
||||
<?php $logs = WRITEPATH . 'logs/';
|
||||
$uploads = WRITEPATH . 'uploads/';
|
||||
$images = WRITEPATH . 'uploads/item_pics/';
|
||||
$uploads = FCPATH. 'uploads/';
|
||||
$images = FCPATH. 'uploads/item_pics/';
|
||||
$importCustomers = WRITEPATH . '/uploads/importCustomers.csv'; // TODO: This variable does not follow naming conventions for the project.
|
||||
|
||||
if (is_writable($logs)) {
|
||||
@@ -109,7 +109,7 @@ use Config\OSPOS;
|
||||
clearstatcache();
|
||||
?>
|
||||
<br>
|
||||
» [writable/uploads:]
|
||||
» [public/uploads:]
|
||||
<?php
|
||||
if (is_writable($uploads)) {
|
||||
echo ' - ' . substr(sprintf("%o", fileperms($uploads)), -4) . ' | ' . '<span style="color: green;"> Writable ✓ </span>';
|
||||
@@ -128,7 +128,7 @@ use Config\OSPOS;
|
||||
clearstatcache();
|
||||
?>
|
||||
<br>
|
||||
» [writable/uploads/item_pics:]
|
||||
» [public/uploads/item_pics:]
|
||||
<?php
|
||||
if (is_writable($images)) {
|
||||
echo ' - ' . substr(sprintf("%o", fileperms($images)), -4) . ' | ' . '<span style="color: green;"> Writable ✓ </span>';
|
||||
|
||||
Reference in New Issue
Block a user