- // Make FQFN for dummy file
- $FQFN = getConfig('CACHE_PATH') . 'dummy.tmp';
-
- // Check if we can create a file inside the path
- touch($FQFN, 'w');
-
- // Is the file there?
- if (isFileReadable($FQFN)) {
- // Yes, we can do. So let's remove it
- removeFile($FQFN);
-
- // Is there a .htaccess file?
- if (isFileReadable(getConfig('CACHE_PATH') . '.htaccess')) {
- // All done!
- $this->ret = $this->statusDone;
- } else {
- // Stop! Set a .htaccess file first
- $this->ret = 'htaccess';
- }
- } // END - if
+ // Is there a .htaccess file?
+ if (isFileReadable(getConfig('CACHE_PATH') . '.htaccess')) {
+ // All done!
+ $this->ret = $this->statusDone;
+ } else {
+ // Stop! Set a .htaccess file first
+ $this->ret = 'htaccess';
+ }