secureloadsSecure Downloads Area Software

Forum

You are not logged in.

#1 2007-07-30 10:29:07

TNT
Member
Registered: 2007-05-15
Posts: 25

How to hide hidden files

Hi algis,

windows server creates a files called thumbs.db, and now i have seen that he is listed in my securload.

How can i hide this kind of files?

Thanks
Ivan

Offline

 

#2 2007-07-30 20:21:33

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

Re: How to hide hidden files

Hello Ivan,
you can update the code where the file listing is being generated. Please open up this file:
sdl\base\code\core\managers\fileManager.php

there's a function called listFiles(). Currently on line 170 the '.' and '..' entries are being filtered out from the listing, I suggest it is the right place to add your exceptions there as well. So the final code might look like this:
       
    if( in_array($file, array('.', '..', 'thumbs.db') ) )

Offline

 

#3 2007-08-01 07:04:24

TNT
Member
Registered: 2007-05-15
Posts: 25

Re: How to hide hidden files

Hello algis,

it works fine.

Thanks
Ivan

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson