rejetto forum

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Mars

Pages: 1 ... 125 126 127 128 129 ... 134
1891
HFS ~ HTTP File Server / Re: %new% resolved, Cookies are not necessary
« on: November 20, 2007, 01:53:17 AM »
The implementation in hfs is soon ended, the interface with template is at the end of study.

1893
HFS ~ HTTP File Server / Re: %new% resolved ,Cookies are not necessary
« on: November 17, 2007, 10:18:33 PM »
time of creating account can be use to initiate timenew, and after we can offer by url a possibility to define itself this dateby example

http://server/?timenew=17/11/2007  this in  format dd/mm/yyyy

we can define a %timenew% var to use into templates.

1894
HFS ~ HTTP File Server / Re: %new% resolved ,Cookies are not necessary
« on: November 17, 2007, 09:26:07 PM »
Quote
Wouldn't that require some kind of database? storing all that data inside a .ini file cant be good if you have +50 users. and +5000 files

no more just a date of the last use with url http://server/~new to compare

The previous one Identification AND the last time of use of http://server/~new URL will define the  stored time into timenew   

If you connect in time T,  you can use the url  'http://server/~new' as often as you want in the same session,
The shown result will be the same, more the new files arrived in the course of session.

If you open another session , time of the previous session is use to define what are the new files since the last session or since the last  'http://server/~new' in the previous sessions (it is not necessarily the last session)

for files they are more old than this date 'timenew',  they don't appear in file listing.

1895
Beta / Re: Testing build #144
« on: November 17, 2007, 09:05:21 PM »
+ Options -> Accounts -> "After login, redirect to"

it is an automatic redirect link just after a user identify itself by login and pass

you can define redirect to a specific user folder or an external web link

if you define by example an account (login=guest;pass=guest) you can redirect him to a special template in a folder (see usage of hfs.diff.tpl)...

1896
HFS ~ HTTP File Server / Re: Question about New file flagged
« on: November 17, 2007, 08:07:46 PM »
solution into topic http://www.rejetto.com/forum/index.php?topic=5227.0

I use a topic new on the same subject because of the importance of the brought solution and so that rejetto takes note more quickly

1897
HFS ~ HTTP File Server / %new% resolved, Cookies are not necessary
« on: November 17, 2007, 08:03:14 PM »
next topic from http://www.rejetto.com/forum/index.php?topic=5210.0


into hfs accounts are a class like

Quote
Taccount = record   // user/pass profile
    user, pwd, redir: string;
    enabled, noLimits: boolean;
    end;

user = login
pwd = password

Account properties:
redir =  'After login redirect to'
enable = true/false
limits = true/false

 what is new?

Quote
Taccount = record   // user/pass profile
    user, pwd, redir: string;
    enabled, noLimits: boolean;
    timecreate,timenew: Tdatetime;
    end;


timecreate create will be the date that account was creating
timenew will be the date (next is important) that the registered user has use the 'new' service

we can include an address line operator   ~new (as ~login -->[loggedin] or  ~upload -->[upload])  with a section [new] who work as:

if user is not logged , login and password are required to access the new.
if user is logged web page from url http://server/~new  equal   http://server/&recursive&new

at the difference that
 "http://server/&recursive&new" use time defined with  'flag files added recently" and will continue to work as before.
 "http://server/~new"  use time of last used this command line.

if you have use '~new' 3 days ago then this date was stored into 'timenew' and all files created after this date appears in the '~new' web page. and then actual time is now stored into 'timenew' and another use of '~new' web page after a few minutes give 'No files found' until some files are added into hfs.


NOTE:
For any not constructive comment it's better to read again and to understand the brought solution. In spite of my pitiful English, I think of having given all the necessary explanations; once coded this solution will seem simple in the usage.





1898
Beta / Re: Testing build #144
« on: November 16, 2007, 12:50:30 AM »
just an example to argumente

in main I use {{section|mysection}} to include mysection where i like to see it...


[mysection]
your name is {{if|%user%|%user%|Anonymous}}

mysection is included but {{if|%user%|%user%|Anonymous}} is not evaluate

problem can be correct like for 
Quote
// apply 3 times the table because symbols can generate symbols


Quote
...
      result:=diffTpl[''];
      if conn.state = HCS_DISCONNECTED then exit;
      // apply 3 times the table because symbols can generate symbols
      result:=x_template(result, table);
      result:=x_template(result, table);
      applySequential();
      md.cd:=conn.data;
      md.tpl:=diffTpl;
      md.folder:=folder;
      result:=applyMacros(result, cbMacros, @md);
      result:=x_template(result, table);

      result:=x_template(result, [
        '%build-time%', floatToStrF((now()-buildTime)*SECONDS, ffFixed, 7,3)
      ]);
...

main.pas modified

Quote
...
      result:=diffTpl[''];
      if conn.state = HCS_DISCONNECTED then exit;
      // apply 3 times the table because symbols can generate symbols
      result:=x_template(result, table);
      result:=x_template(result, table);
      md.cd:=conn.data;
      md.tpl:=diffTpl;
      md.folder:=folder;
      result:=applyMacros(result, cbMacros, @md);
      result:=x_template(result, table);
//
      result:=applyMacros(result, cbMacros, @md);
      result:=x_template(result, table);
      applySequential();

      result:=x_template(result, [
        '%build-time%', floatToStrF((now()-buildTime)*SECONDS, ffFixed, 7,3)
      ]);
...

tested and work perfectly



1899
HFS ~ HTTP File Server / Re: compiling hfs and ADD-ON
« 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.

1900
HFS ~ HTTP File Server / Re: compiling hfs and ADD-ON
« 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

1901
HFS ~ HTTP File Server / Re: compiling hfs and ADD-ON
« 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.... ;)

1902
HFS ~ HTTP File Server / Re: compiling hfs and ADD-ON
« 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;


1903
Beta / Re: Testing build #144
« on: November 15, 2007, 09:44:56 PM »
'search' work fully with HFS version 2.3 beta 144 and his template, vfs file will not interfere

1904
HFS ~ HTTP File Server / compiling hfs and ADD-ON
« on: November 15, 2007, 09:39:51 PM »
connais tu quelqu'un qui a dejà reussi à compiler hfs en dehors de toi?

1905
Everything else / Re: Prague
« on: November 15, 2007, 09:35:22 PM »
A ton retour hfs en sera déjà à la build 148 ;D

That_Stevens_Guy: What a lack of humor you have!

Quote
I doubt even rejetto would be pleased to have you spamming the beta forum with false build releases.

It is your point of view, but it was really not to damage. To (you) the prosecutor to plead but to the judge to decide.
Will the defence be entitled to the word??
                                                               For me the affair is closed and I would not appeal. ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D

Pages: 1 ... 125 126 127 128 129 ... 134