rejetto forum

Testing build #258

rejetto · 16 · 15475

0 Members and 1 Guest are viewing this topic.

Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
download @ www.dovedove.it/hfs/hfs258.exe

what's new
+ {.get|agent.} now supports iPhone, iPod, iPad, Chrome and generic WebKit browsers
+ log record for external address change (you can disable it by "other events")
+ new event [pre-filter-request] [link]
* "show customized options" will not list last-external-address and dynamic-dns-host
* filelists sorting was disabled, and is now enabled [link]
- {.get|uri.} was ignoring any parameter after a parameter not in the form X=Y



Offline r][m

  • Tireless poster
  • ****
    • Posts: 347
    • View Profile
I can't download 258. Says server not found?


Offline SilentPliz

  • Operator
  • Tireless poster
  • *****
    • Posts: 1298
  • ....... chut ! shh!
    • View Profile

Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile

Offline r][m

  • Tireless poster
  • ****
    • Posts: 347
    • View Profile
Resolved:
(I think) added to "hosts" file allowed connection. 258 downloaded.
Thanks  :)
Rejetto


Offline r][m

  • Tireless poster
  • ****
    • Posts: 347
    • View Profile
In 258 I find that settings for
Menu > Virtual File System > Folders Before doesn't work.
In 257 it does. Not a big problem here.
Could someone else confirm?
« Last Edit: March 11, 2010, 04:49:07 PM by r][m »


Offline crazyboris

  • Tireless poster
  • ****
    • Posts: 140
    • View Profile

keynes Lee

  • Guest
In 258,
I have an file "index.html" in the folder.
How can I prevent HFS to read and open the html file??

in 2.2f
There is no these kind of issue


Offline r][m

  • Tireless poster
  • ****
    • Posts: 347
    • View Profile
In 258,
I have an file "index.html" in the folder.
How can I prevent HFS to read and open the html file??

in 2.2f
There is no these kind of issue
You might try adding a non existing file mask for that folder.
In VFS window right click the folder, go to properties, File Mask Tab, in Default File Mask
enter something like   doesn't-exist.html.
Your file has the .html extension so when a user clicks on it, it will open as a web page.
If they want to download it, they must right click and "Save target as".
I use this method to remotely edit web pages.
There may be a better way, but this works for me.
« Last Edit: March 12, 2010, 06:02:00 PM by r][m »


Offline r][m

  • Tireless poster
  • ****
    • Posts: 347
    • View Profile
In 258 I find that settings for
Menu > Virtual File System > Folders Before doesn't work.

just tested and it works for me.
Odd....
Just deleted ini, and retested. Folders before checked, doesn't put the folders at the top
of the page in 258 as it does in 257 here. See screen shots.


Offline Mars

  • Operator
  • Tireless poster
  • *****
    • Posts: 2063
    • View Profile
go to menu >> other options >> defaut sorting

check by ext, then check by name  and save options

 :)

the problem can be solved by adding one line in main.pas

INITIALIZATION
defSorting:='name';
randomize();

I would like it's possible to add the possibility to overwrite the options foldersbefore and linksbefore in the main menu

The elegant solution is the following one:

http://url/?sort=n&rev&foldersbefore=1&linksbefore=0

Quote
procedure TfileListing.sort(conn:ThttpConn; def:string='');
......
  end; // qsort

 function isFalse(s:string):boolean;
  begin result:=(s='') or (strToFloatDef(s,1) = 0) end;


var
  v: string;
begin
// caching
foldersBefore:=mainfrm.foldersBeforeChk.checked;
linksBefore:=mainfrm.linksBeforeChk.checked;

v:=first(def, defSorting);
rev:=FALSE;
if assigned(conn) then
  with TconnData(conn.data).urlvars do
    begin
    v:=first(values['sort'], v);
    rev:=values['rev'] = '1';
   if (indexOf('foldersbefore') >= 0) then
      foldersBefore:=not isfalse(values['foldersbefore']);
    if (indexOf('linksbefore') >= 0) then
      foldersBefore:=not isfalse(values['linksbefore']);

    end;
if ansiStartsStr('!', v) then
  begin
  delete(v, 1,1);
  rev:=not rev;
  end;
if v = '' then exit;
case v[1] of
  'n': sortBy:=SB_NAME;
  'e': sortBy:=SB_EXT;
  's': sortBy:=SB_SIZE;
  't': sortBy:=SB_TIME;
  'd': sortBy:=SB_DL;
  'c': sortBy:=SB_COMMENT;
  else exit; // unsupported value
  end;
qsort( 0, length(dir)-1 );
end; // sort
« Last Edit: March 12, 2010, 11:12:13 PM by Mars »


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
go to menu >> other options >> defaut sorting
check by ext, then check by name  and save options

nice workaround

Quote
the problem can be solved by adding one line in main.pas
INITIALIZATION
defSorting:='name';

it would be a good solution for new installations.
sadly, old installations would load from the ini the "empty" value, that would overwrite your assignment.

so i changed
v:=first(def, defSorting);
in
v:=first([def, defSorting, 'name']);

this appears to be a very ugly problem to me. i guess i'm forced to publish a new build just to fix this.

Quote
I would like it's possible to add the possibility to overwrite the options foldersbefore and linksbefore in the main menu
The elegant solution is the following one:
http://url/?sort=n&rev&foldersbefore=1&linksbefore=0

ok
« Last Edit: March 13, 2010, 01:48:41 PM by rejetto »


Offline JamiDodger

  • Occasional poster
  • *
    • Posts: 12
    • View Profile
I found a problem with build 258, if you unchecked the enable box in user accounts, and apply and exit it wouldn't un-enable it, this is fixed in Build 259, this might just be the file
I'm Crazy Inside :D


Offline Mars

  • Operator
  • Tireless poster
  • *****
    • Posts: 2063
    • View Profile
Quote
so i changed
v:=first(def, defSorting);
in
v:=first([def, defSorting, 'name']);

this appears to be a very ugly problem to me. i guess i'm forced to publish a new build just to fix this.
nice solution , i wonder not to have thought of it, I had to not be in shape this day there  ;D