You are not logged in.
Hi
I have a Backup piece of software that uploads nightly all the latest versions of the file that I offer to clients via FTP, my problem is that the backup software uploads a file with the .bks extension on it, is it possible within Secureloads to prevent the client who has permission to download the files in Secureloads from seeing those files - they do need to be there for the backup software to function, but to prevent the client from seeing and downloading them would be great - is this possible?
look forward to any help given, many thanks in advance.
Offline
Hello,
it is possible, but some sort of code modification is required. I've prepared an updated file:
core/base/code/core/managers/fileManager.php
It will skip the ".bks" files in the listing. If you will need to add other extensions, please edit this file - starting from line 10 the regular expressions (yes, some PHP code knowledge is required) are listed in the array.
Offline
Although these files will now be invisible to the viewer through a browser, as my ftp client needs them to ensure incremental backups will it be able to still refer to the or will it not see them also.
In your reply above is this modified file something that I will have to get from you?
The file I have there at present has the code below on lines 10,11,12 and 13
function getFullPath( $path ){
$fullPath = $this->implodePath( array($this->root, $path) );
return $fullPath;
}
what do I have to change?
Last edited by amanuensis (2008-05-09 18:16:51)
Offline
sorry to sound dumb, but how do I get the attachment from this message?
Offline
please have a look at bottom of the message #2 of this thread. Anyway here is the direct link:
http://www.secureloads.com/forum/attachment.php?item=11
Offline
The link is giving me this message "You do not have permission to access this page."
Offline
Hi Algis
I have replaced the old fileManager.php with the new one, although I had not given you the correct extension to remove from view, Im gave you .bks when in fact it was .bkc. I have changed the only occurence of .bks in the file to .bkc.
Lines 7 to 14 now look like this
function fileManager(){
$this->root = STORAGE_DIR;
$this->skipFiles = array(
'/^\.+$/',
'/^\.htaccess$/',
'/\.bkc$/'
);
but still the files are visible?
Offline