rejetto forum

Software => HFS ~ HTTP File Server => Beta => Topic started by: rejetto on October 15, 2008, 11:02:02 PM

Title: Testing build #208
Post by: rejetto on October 15, 2008, 11:02:02 PM
download @ www.dovedove.it/hfs/hfs208.exe

what's new
+ reorder accounts with drag&drop
+ new template macros: mkdir, add header
+ add files/folder dialog will automatically place on the last used folder, even if hfs has been quitted in the while
* event script [download] is executed even when the download is going to be aborted for limits, so you can cancel and let it pass   
- minor fixes on groups
- running "path\hfs.exe relativepath\file.vfs" was not working
Title: Re: Testing build #208
Post by: AlexPebody on October 16, 2008, 03:40:31 AM
download @ www.dovedove.it/hfs/hfs208.exe

what's new
+ reorder accounts with drag&drop
+ new template macros: mkdir, add header
+ add files/folder dialog will automatically place on the last used folder, even if hfs has been quitted in the while
* event script [download] is executed even when the download is going to be aborted for limits, so you can cancel and let it pass   
- minor fixes on groups
- running "path\hfs.exe relativepath\file.vfs" was not working


Hi!
In beta 203 hfs,
function "NO Download" in virtual file system is NOT WORKING! :(:(
Title: Re: Testing build #208
Post by: Pit on October 16, 2008, 07:20:54 AM
Did you try the latest beta 208?
Title: Re: Testing build #208
Post by: AlexPebody on October 16, 2008, 07:31:01 AM
Did you try the latest beta 208?
Yes, latesr 208 working OK!!! :):)
Please answer me, how to made russions hfs server???
Title: Re: Testing build #208
Post by: Pit on October 16, 2008, 07:48:38 AM
You have to edit the template. Switch to expert mode und then menu --> HTML Template --> Edit.
But you can also ask in the other language section in the russian board of this forum. Because my english is not so good to tell you the complete way.  :'(
Title: Re: Testing build #208
Post by: AlexPebody on October 16, 2008, 08:18:19 AM
You have to edit the template. Switch to expert mode und then menu --> HTML Template --> Edit.
But you can also ask in the other language section in the russian board of this forum. Because my english is not so good to tell you the complete way.  :'(

Thanks! But... If i put translateble file: hfs.rus in to dir hfs server, hfs will be russ text in admin section! :):) But... How i can to made this file, or how i get this file?

And more... :)

Please tell me, how to decompile hfs.exe file? If i decompile this file, i can to edit all i want and then again compile file for working hfs server! :):)

Thanks!
Title: Re: Testing build #208
Post by: rejetto on October 16, 2008, 08:27:01 AM
Thanks! But... If i put translateble file: hfs.rus in to dir hfs server, hfs will be russ text in admin section! :):) But... How i can to made this file, or how i get this file?

you can't, but it's in the to-do-list.

Quote
Please tell me, how to decompile hfs.exe file? If i decompile this file, i can to edit all i want and then again compile file for working hfs server! :):)

you don't need to decompile: hfs is open source.
you can download sources of beta versions at
http://www.rejetto.com/forum/index.php?topic=5127.0
while official versions on the official website.
be warned: there's an avarage of a new beta version every week.
Title: Re: Testing build #208
Post by: AlexPebody on October 16, 2008, 08:58:41 AM
Thanks! But... If i put translateble file: hfs.rus in to dir hfs server, hfs will be russ text in admin section! :):) But... How i can to made this file, or how i get this file?

you can't, but it's in the to-do-list.

Quote
Please tell me, how to decompile hfs.exe file? If i decompile this file, i can to edit all i want and then again compile file for working hfs server! :):)

you don't need to decompile: hfs is open source.
you can download sources of beta versions at
http://www.rejetto.com/forum/index.php?topic=5127.0
while official versions on the official website.
be warned: there's an avarage of a new beta version every week.

OOO very thanks!!! But, where hfs is released?
Title: Re: Testing build #208
Post by: rejetto on October 16, 2008, 09:00:16 AM
You mean the official website? www.rejetto.com/hfs/
Title: Re: Testing build #208
Post by: SilentPliz on October 16, 2008, 11:26:14 AM
Hi rejetto!

The option, Menu -> Limits -> Max simultaneous downloads from single adress is broken.

It lacks in the main.dfm:

    end
      object maxDLsIP1: TMenuItem
        Caption = 'Max simultaneous downloads from single address...'
        OnClick = maxDLsIP1Click
    end
Title: Re: Testing build #208
Post by: Mars on October 16, 2008, 12:34:14 PM
minor bug
select an account , drag it on the access box , realase it and select another account :D
Title: Re: Testing build #208
Post by: SilentPliz on October 16, 2008, 03:37:52 PM
Another little bug: (I swear I have nothing against you. ;D)

Select an account anywhere in the list.

Click rename (button).

The last of the list is selected.
Title: Re: Testing build #208
Post by: Mars on October 16, 2008, 04:25:01 PM
Quote
Select an account anywhere in the list.

Click rename (button).

The last of the list is selected.

solved from build 207 by using a name box and read only on accounts list box ,( F2 +DblClick on an account to rename it , or select name box ), I will update it into build 208 ...  (picture 1)

******
to rejetto (picture2) into delphi ;)

A little organization to meet itself little there ...
Title: Re: Testing build #208
Post by: TCube on October 17, 2008, 12:24:03 PM
Salut Rejetto,

2 little odd things (not really bugs, should that be overhere ?)

-Selecting group of objects then asking for the bunch not to be journalized does not work (have to do it one by one).
- Advanced function --> copy url with different adress : it's ok external Ip and local are shown.
It is possible to get Url starting with http://%host% (really usefull for Usb ... among things)

Thks a lot
Title: Re: Testing build #208
Post by: rejetto on October 17, 2008, 12:29:08 PM
1. journalized?

2. isn't what you are asking already done by "copy url address" ?
Title: Re: Testing build #208
Post by: TCube on October 17, 2008, 12:36:59 PM
1 - Dont log
2 - No it either starts with http:// Ip adress or http://127.0.0.1 - Giving  a try setting a personal adress as %host% and it now works  ;)
Title: Re: Testing build #208
Post by: chthonic on October 17, 2008, 04:29:37 PM
hi.. and yes.. I am still alive! I have just been very busy with legal stuff.

I like that you have started working on the "groups" feature.... but.. there are some serious and time consuming issues with the way you have it coded.

I am not sure what you changed between 207 and 208 ..but in 208 I can no longer designate more than one group having access to a set of files.. the one will show to a user.. but the others wont.. if I go back to a single group.. they all show up.... this is very bad LOL

going to offer a suggestion one that's faster and can be handled all in one window.. namely the user accounts..

#1: do not link groups to listed files!! only use them to organize users.. then allow <add new user> to each specific group as a child of that group. [add group]=auto configures a new group [add user] etc if a group is selected then [add user] creates it as a group child rather than a root... like how guildftp works... you could add [create orphan] which places a user strictly in the accounts/groups root

#2: listed files are invisible to all by default.

#3: when creating a user account, allow the feature you are using to link groups to select the files that are in the VFS tree instead.. "folders and individual files".... like how emule plus allows you to select sharing folders, with the same option to CTRL+CLICK to select all subfolders/items etc

still keep the restrict access option in the right click sub menu of the vfs tree for on-the-fly configuration

(addition)..... have a sub window open in tree view showing account names only with check boxes and a button for OK and CANCEL... this will save time as well .. it would let us link new files and folders to multiple accounts in a single task. ??? ;D :-\

(addition2) hmm this idea could also work for adding new files or folders.. especially where virtual folders are involved.. I cna just check the folders to add instead of HFS loading ever single folder in the path.. wont have to fuss around later to remove unwanted folders.

if we can control user access at the account creation level .. it goes much faster and we can customize the file access for each specific user.... it would eliminate all the switching back and forth with each individual file/folder withe current method.. which is "one at a time".
***********
additional item noticed.... when deleting a group it changes any user account above or below to a group,.....
Title: Re: Testing build #208
Post by: Mars on October 17, 2008, 05:33:29 PM
Quote
It is possible to get Url starting with http://%host%

Menu > Ip Address >Custom...

add this to resolve your question ;)

%host%
127.0.0.1
Title: Re: Testing build #208 new update
Post by: Mars on October 17, 2008, 11:32:38 PM
load this version build 208, and comment it, please. Thanks

http://hfs.webhop.org/hfs_accounts_rights_icons.exe

look at picture

accounts are not checked but have icons,

when an icon is black and white then account is not checked
when an icon is in color

1) with 'via', account is not checked but as rights access through account linked
2) with only account name then account is checked

 ;)  I hope rejetto like it (or love it) ;D

The solution of this sleight of hand, everything is situated in main.pas
 
Quote

const
  VERSION = '2.3 beta';
  VERSION_BUILD = '208';
  ........
  TAB = #9;
  {The choice of this constant is important for separating the account name from the rest. All for the good functioning of the code}
  MCHAR=' ->';                              //add by mars
  BAK_EXT = '.bak';
  ......

*********************************
  procedure buildPermissionMenu(mi:Tmenuitem; action:TfileAction);
  var
    i: integer;
    g: boolean;             //add by mars

  function getlinked(i:integer; act: TfileAction):string;      //add by mars
  { all this function  is and update from  loadAccountProperties() }
    var
      f:Tfile;
      a, other: Paccount;
    begin
    a:=@accounts;
    result:='';
    f:=selectedfile;
    if f=nil then exit;
    if not stringExists(USER_ANY_ACCOUNT, f.accounts[act]) then
      begin
      other:=findEnabledLinkedAccount(a, f.accounts[act]);
      if other = NIL then exit;
      if other <> a then
        result:=MCHAR+' via '+other.user;
      end;
    end;         //add by mars  all this function


  begin
  mi.clear();

  if length(accounts) > 1 then
    begin
    mi.add( newItem( 'All existing accounts', 0, FALSE, TRUE, permissionMenuClick, PERMISSIONMENU_ALL_ACCOUNTS, '') );
    mi.add( newItem( 'No account', 0, FALSE, TRUE, permissionMenuClick, PERMISSIONMENU_NONE, '') );
    end;

  anyone:=stringExists(USER_ANYONE, all_accounts[action]);
  if action <> FA_ACCESS then mi.add( newItem('Anyone', 0, anyone, TRUE, permissionMenuClick, PERMISSIONMENU_ANYONE, '') );
  mi.add( newItem('Any account',0, stringExists(USER_ANY_ACCOUNT, all_accounts[action]), TRUE, permissionMenuClick, PERMISSIONMENU_ANY_ACCOUNT, '') );
  mi.add( newItem( 'New account...', 0, FALSE, TRUE, permissionMenuClick, PERMISSIONMENU_NEW_ACCOUNT, '') );
  mi.add( newItem('-',0,FALSE,TRUE,NIL,0,'') );

  if action = FA_ACCESS then mi.add( newItem(USER_ANONYMOUS,0, stringExists(USER_ANONYMOUS, all_accounts[action]), TRUE, permissionMenuClick, PERMISSIONMENU_ANONYMOUS, '') );


{debut modif mars}
  for i:=0 to length(accounts)-1 do
     with accounts do
          begin
            mi.add( newItem(user+getlinked(i,action), 0, not anyone and stringExists(user,all_accounts[action])       //mod by mars
               , not anyone and enabled, permissionMenuClick, 0, '')) ;               // Do not forget to put the semicolon
            g:=stringExists(user,all_accounts[action]) or (pos(MCHAR,mi.Items[mi.Count-1].Caption)>0);   //add by mars
            if not anyone then mi.Items[mi.Count-1].ImageIndex:=if_(group, if_(g,29,40), if_(g,27,28));   //add by mars
          end;
  end;
{fin de modif mars}
........

********************
procedure Tmainfrm.permissionMenuClick(sender:Tobject);
.......
case mi.helpContext of
  PERMISSIONMENU_ALL_ACCOUNTS:
    begin
    username:='';
    if all = NIL then exit;
    end;
  PERMISSIONMENU_NONE: username:='';
  PERMISSIONMENU_ANYONE: username:=USER_ANYONE;
  PERMISSIONMENU_ANY_ACCOUNT: username:=USER_ANY_ACCOUNT;
  PERMISSIONMENU_ANONYMOUS: username:=USER_ANONYMOUS;
  PERMISSIONMENU_NEW_ACCOUNT:
    begin
    acc:=createAccountOnTheFly();
    if acc = NIL then exit;
    username:=acc.user;
    end;
  else
    begin                                 //add by mars
     username:=mi.Caption;                //mod by mars
     username:=chop(MCHAR,username);      //add by mars
    end;                                  //add by mars
  end;
if (action = FA_ACCESS)
and ((username > '') and not mi.Checked or (mi.helpContext = PERMISSIONMENU_ALL_ACCOUNTS)) // we are protecting something
and fileAttributeInSelection(FA_LINK)
and (msgDlg(MSG_UNPROTECTED_LINKS, MB_ICONWARNING+MB_YESNO) <> IDYES) then exit;


Title: Re: Testing build #208
Post by: traxxus on October 18, 2008, 08:53:25 PM
With rejettos buld 208 i cant add accounts (hfs tells me, "account already exist)

@mars

your version works, no problems.
Title: Re: Testing build #208
Post by: Pit on October 18, 2008, 08:59:21 PM
I can add and delete accounts with the build 208 from rejetto.
Title: Re: Testing build #208
Post by: chthonic on October 18, 2008, 09:07:47 PM
I can add and remove accounts.. tho I did have this problem with a previous version... I just closed out HFS waited 2 minutes and loaded it back up... after that it was fine.
Title: Re: Testing build #208
Post by: bacter on October 19, 2008, 04:15:34 AM
it would be nice if the account sorting would not be case sensitive (as accounts are not case sensitive).
Title: Re: Testing build #208
Post by: Mars on October 19, 2008, 10:30:19 AM
Quote
Topic Summary
Posted on: Today at 06:15:34Posted by: bacter 
Insert Quote
it would be nice if the account sorting would not be case sensitive (as accounts are not case sensitive).
 

Made by leaving to the user the possibility of the choice ;)

http://hfs.webhop.org/hfs_accounts_sorting.exe


SortSensitiveChk is a TcheckBox

Quote
  function sortIt(reverse:boolean=FALSE):boolean;
  var
    s, i, j, l: integer;
  begin
  result:=FALSE;
  s:=accountsBox.ItemIndex;
  l:=length(tempAccounts);
  for i:=0 to l-2 do
    for j:=i+1 to l-1 do
      if reverse XOR (
      (SortSensitiveChk.checked and (tempAccounts.user > tempAccounts[j].user))
       or
      (not SortSensitiveChk.checked and (ansiCompareText(tempAccounts.user,tempAccounts[j].user)>0))
       ) then

        begin
        swapMem(tempAccounts, tempAccounts[j], sizeof(tempAccounts[0]));
        if i = s then
          s:=j
        else if j = s then
          s:=i;
        result:=TRUE;
        end;
  accountsBox.ItemIndex:=s;
  end; // sortIt
Title: Re: Testing build #208
Post by: SilentPliz on October 19, 2008, 10:54:39 AM
Made by leaving to the user the possibility of the choice ;)

http://hfs.webhop.org/hfs_accounts_sorting.exe


Because now we can choose our version of HFS...

I want one version that prepares breakfast.
I could stay longer in bed with my girlfriend. ;) ;D
Title: Re: Testing build #208
Post by: Mars on October 19, 2008, 11:01:15 AM
Quote
I want one version that prepares breakfast.
I could stay longer in bed with my girlfriend. 

With an option for the regulation of the cooking
...

Still you would have to deign to go to bed in the marriage bed and not on the sofa in front of the computer  :D

I believe that we are going eventually make it eject some forum if we continue our verbal extravagances ;)
Title: Re: Testing build #208
Post by: rejetto on October 19, 2008, 11:46:51 AM
1 - Dont log

i tested it and it worked for me.
i selected 2 virtual and 1 real folder, enabled, disabled the "don't log". never failed.
see if the problem is in your french version, or find a way to make me reproduce it.

Quote
2 - No it either starts with http:// Ip adress or http://127.0.0.1 - Giving  a try setting a personal adress as %host% and it now works  ;)

i made a quick test.
if i defined a customized address, even if it is not selected as the default one, it appears in the list "copy url with different host address".
let me know if there's any problem at all or it was just inattention.
Title: Re: Testing build #208
Post by: rejetto on October 19, 2008, 11:56:53 AM
it would be nice if the account sorting would not be case sensitive (as accounts are not case sensitive).

fixed in next beta
Title: Re: Testing build #208
Post by: TCube on October 19, 2008, 12:06:14 PM
Rejetto you're right. Thks for testing . My concentration might 've been a bit loose.
Title: Re: Testing build #208
Post by: rejetto on October 19, 2008, 01:03:01 PM
select an account , drag it on the access box , realase it and select another account :D

i found no way to fix this. :(
i just changed the control, from listview to listbox.
Title: Re: Testing build #208
Post by: Mars on October 19, 2008, 01:10:52 PM
With a treeview, the selection and the movement of files seems to work without bugs, why not to adapt to accounts?
Title: Re: Testing build #208
Post by: rejetto on October 19, 2008, 01:12:32 PM
because i don't need a tree structure, it's just a list
Title: Re: Testing build #208
Post by: rejetto on October 19, 2008, 01:19:53 PM
accounts are not checked but have icons,
when an icon is black and white then account is not checked
when an icon is in color

i like the idea of having icons.
i will add bold with colors, to help visually impaired people. (it may be not enough, but it's something)

Quote
1) with 'via', account is not checked but as rights access through account linked

i understand the purpose, but:
when a user clicks on it, being it displayed as "active", he may expect that clicking will deactivate it, removing the access. (while he is actually doing something totally different)

being the purpose "informative", we can use the popup hint when the mouse goes over the file. The menu is meant to be for changing things, more than for displaying information.

anyway, i wish in the near future to leave this menus and switch to dialogs. this will invalidate all these problems.
Title: Re: Testing build #208
Post by: rejetto on October 19, 2008, 05:08:47 PM
OT by AlexPebody moved to www.rejetto.com/forum/?topic=6243
Title: Re: Testing build #208
Post by: Mars on October 19, 2008, 05:21:15 PM
Quote
because i don't need a tree structure, it's just a list

It would have been possible, in that case for every account, to create children as upload download delete with the list of the concerned folders, then take an item of the vfs and to make it slide on the corresponding account
Title: Re: Testing build #208
Post by: rejetto on October 19, 2008, 05:35:03 PM
i don't fully understand how you would.
anyway, i guess the properties of an account should be displayed on the right side.
the account list can be long by its own. by putting properties as children, it would grow longer. we must profit of the horizontal space.