secureloadsSecure Downloads Area Software

Forum

You are not logged in.

#1 2008-04-24 07:58:13

amanuensis
Member
Registered: 2007-02-01
Posts: 64

Hiding certain files within Secureloads

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

 

#2 2008-04-28 06:20:41

algis
Administrator
Registered: 2006-01-09
Posts: 632
Website

Re: Hiding certain files within Secureloads

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.


Attachments:
Attachment Icon fileManager.php, Size: 7,506 bytes, Downloads: 42

Offline

 

#3 2008-05-09 18:08:56

amanuensis
Member
Registered: 2007-02-01
Posts: 64

Re: Hiding certain files within Secureloads

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

 

#4 2008-05-11 14:22:18

algis
Administrator
Registered: 2006-01-09
Posts: 632
Website

Re: Hiding certain files within Secureloads

please update the file "core/base/code/core/managers/fileManager.php" with the one that is attached to this message

Offline

 

#5 2008-05-12 09:18:03

amanuensis
Member
Registered: 2007-02-01
Posts: 64

Re: Hiding certain files within Secureloads

sorry to sound dumb, but how do I get the attachment from this message?

Offline

 

#6 2008-05-13 05:26:15

algis
Administrator
Registered: 2006-01-09
Posts: 632
Website

Re: Hiding certain files within Secureloads

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

 

#7 2008-05-13 07:51:14

amanuensis
Member
Registered: 2007-02-01
Posts: 64

Re: Hiding certain files within Secureloads

The link is giving me this message "You do not have permission to access this page."

Offline

 

#8 2008-05-16 06:07:01

algis
Administrator
Registered: 2006-01-09
Posts: 632
Website

Re: Hiding certain files within Secureloads

agh, sorry I've fixed the permissions, it should be available now

Offline

 

#9 2008-05-16 08:31:08

amanuensis
Member
Registered: 2007-02-01
Posts: 64

Re: Hiding certain files within Secureloads

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

 

#10 2008-05-20 05:33:07

algis
Administrator
Registered: 2006-01-09
Posts: 632
Website

Re: Hiding certain files within Secureloads

hmm, seems strange. Is it possible to get a temporary FTP access for me?

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson