Author Topic: Testing build #258  (Read 6487 times)

0 Members and 1 Guest are viewing this topic.

Offline rejetto

  • Administrator
  • Tireless poster
  • *
  • Posts: 12953
    • View Profile
Testing build #258
« on: March 09, 2010, 01:00:04 PM »
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 rejetto

  • Administrator
  • Tireless poster
  • *
  • Posts: 12953
    • View Profile
Re: Testing build #258
« Reply #1 on: March 09, 2010, 01:47:15 PM »

Offline r][m

  • Tireless poster
  • ****
  • Posts: 347
    • View Profile
Re: Testing build #258
« Reply #2 on: March 09, 2010, 03:48:10 PM »
I can't download 258. Says server not found?

Offline SilentPliz

  • Operator
  • Tireless poster
  • *****
  • Posts: 1243
  • ....... chut ! shh!
    • View Profile
Re: Testing build #258
« Reply #3 on: March 09, 2010, 03:54:26 PM »
The link works normally for me.

Offline rejetto

  • Administrator
  • Tireless poster
  • *
  • Posts: 12953
    • View Profile
Re: Testing build #258
« Reply #4 on: March 09, 2010, 04:02:51 PM »
works here

Offline r][m

  • Tireless poster
  • ****
  • Posts: 347
    • View Profile
Re: Testing build #258
« Reply #5 on: March 09, 2010, 08:35:31 PM »
Resolved:
(I think) added to "hosts" file allowed connection. 258 downloaded.
Thanks  :)
Rejetto

Offline r][m

  • Tireless poster
  • ****
  • Posts: 347
    • View Profile
Re: Testing build #258
« Reply #6 on: March 11, 2010, 04:47:08 PM »
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
Re: Testing build #258
« Reply #7 on: March 11, 2010, 06:06:07 PM »
just tested and it works for me.

keynes Lee

  • Guest
Re: Testing build #258
« Reply #8 on: March 12, 2010, 04:40:12 PM »
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
Re: Testing build #258
« Reply #9 on: March 12, 2010, 05:32:40 PM »
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
Re: Testing build #258
« Reply #10 on: March 12, 2010, 05:55:15 PM »
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: 1899
    • View Profile
Re: Testing build #258
« Reply #11 on: March 12, 2010, 07:09:36 PM »
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: 12953
    • View Profile
Re: Testing build #258
« Reply #12 on: March 13, 2010, 01:46:19 PM »
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
Re: Testing build #258
« Reply #13 on: March 14, 2010, 11:22:40 AM »
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: 1899
    • View Profile
Re: Testing build #258
« Reply #14 on: March 14, 2010, 06:20:28 PM »
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