rejetto forum

Software => HFS ~ HTTP File Server => Topic started by: Mars on November 15, 2007, 09:39:51 PM

Title: compiling hfs and ADD-ON
Post by: Mars on November 15, 2007, 09:39:51 PM
connais tu quelqu'un qui a dejà reussi à compiler hfs en dehors de toi?
Title: Re: compiling hfs
Post by: rejetto on November 15, 2007, 09:45:38 PM
i don't remember who, but some did it, yes.
it may be tricky at times, but it is not arcane.
Title: Re: compiling hfs and ADD-ON
Post by: Mars on November 15, 2007, 10:36:24 PM
main.pas build 145

Quote
a:=tpl.getSyms();
for i:=0 to length(a)- 1 do
  addArray(result, ['%'+a+'%', tpl[a]]);

if assigned(conn) then
  addArray(result, [
    '%host%', conn.getHeader('host'),
    '%ip%', conn.address,
    '%port%', srv.port, 
   '%ip2name%', localDNSget(conn.address),
    '%lang%', copy(conn.getHeader('Accept-Language'),1,2)
  ]);

if folder = NIL then exit;

Title: Re: compiling hfs and ADD-ON
Post by: rejetto on November 15, 2007, 10:44:09 PM
who needs it? no one ever asked
Title: Re: compiling hfs and ADD-ON
Post by: Mars on November 15, 2007, 10:52:53 PM
ME!

Little gifts like that which miss of this from there and which can serve and do not require a lot of work.

Who knows a day that can help somebody!

and full of another proposal from me!

I have a very big idea for accelerate the treatments of listing in hfs but we shall see that for much more late.

A full of little things must be done before.

Now it's time to sleep and to have for you a Happy Birthday.... ;)
Title: Re: compiling hfs and ADD-ON
Post by: rejetto on November 15, 2007, 11:02:23 PM
ME!

ok, you need it.
can i ask you how you would use it?
Title: Re: compiling hfs and ADD-ON
Post by: Mars on November 15, 2007, 11:09:20 PM
Hard in business the rejetto ;D

sorry i forget to ask adding %host-name% ???

%host% is similar to %host-name%:%port%

but we cannot separate them

if I propose to you something who works can you include it into next build?


javascript is more difficult for me , i prefere making some changes in delphi.

I prefer to write  %port% instead <script .....>   function...... </script>

it is more efficient to do what others cannot
Title: Re: compiling hfs and ADD-ON
Post by: rejetto on November 15, 2007, 11:23:40 PM
in the while you can already do it with javascript
Title: Re: compiling hfs and ADD-ON
Post by: Giant Eagle on November 16, 2007, 12:10:36 AM
Just out of curiousity: Where are you going to use it for?
Title: Re: compiling hfs and ADD-ON
Post by: Mars on November 16, 2007, 12:17:42 AM
It comes to the same thing one limps space sometimes that itches to fill it.

Certain things are not in place them or badly defined, and then I try to fill the space.
Title: Re: compiling hfs and ADD-ON
Post by: rejetto on November 20, 2007, 09:00:07 PM
i didn't understand your last post,
but i created {{substring}} that should fit your needs