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 ... 128 129 130 131 132 ... 135
1936
HFS ~ HTTP File Server / Re: upload filter
« on: November 07, 2007, 10:54:03 PM »
filter for upload is by default  \HFS.* all files begining by hfs. are not allowed,

changing this default by * will enable overwrite files like hfs.diff.tpl in a sub folder

Quote
function complyUploadFilter():boolean;
  var
    s: string;
  begin
  if f.isTemp() then s:=f.parent.uploadFilterMask
  else s:=f.uploadFilterMask;
  if s = '' then s:='\hfs.*'; // the user can disable this default filter by inputing * as mask
  result:=fileMatch(s, optAnsi(tpl.utf8, conn.post.filename));
  if result then exit;
  data.uploadFailed:='File name or extension forbidden';
  end; // complyUploadFilter

1937
HFS ~ HTTP File Server / Re: File name of imported template
« on: November 07, 2007, 06:49:42 PM »
I suggest to place at the head of your template

<!--  this template is named:     NAME OF TEMPLATE -->
<HTML .....


1938
Beta / Re: Testing build #140
« on: November 07, 2007, 06:44:18 PM »
Quote
new URL parameters is needed to seach in the subfolders

Rejetto factory of the tools, to you to use them to build what you want in your templates, some lines of code in hfs allow to avoid some pages of javascript, but you should not to ask in hfs to know how to make everything ...

Rejetto fabrique les outils ( filter, files-filter, sort, recursive ....), à vous de les utiliser pour construire avec ces outils ce que vous voulez dans vos templates, quelques lignes de code en delphi suffisent parfois, là où quelques pages de javascript seraient nécessaires, mais on ne peut demander à hfs de savoir faire toute les choses qu'on voudrait lui voir faire...

it was not directly to you rejetto but to all ask to you making this or this, somes limits are necessary.

Sample : can you transform hfs, i would like to go on MOON with it( Mars(ch), I know soon it   ;D ;D ;D)

1939
HFS ~ HTTP File Server / Re: not 2.2b but 2.3
« on: November 06, 2007, 09:52:21 PM »
A small update of Template Help.rtf would be welcome ;)

i am making some update for code main.pas , as soon as I shall have finished I you e-mail to know of what you think of it

1940
Beta / Re: Testing build #138
« on: November 02, 2007, 02:33:56 PM »
Bug with %urlvar-NAME%

if name is not in url  %urlvar-name% is not evaluate and appear as it %urlvar-name%

%urlvar-recursive% and %urlvar-rev%  don't works

it will be more easy to having %urlvar-name% giving "name" if name is in url else ""

and using %urlvalue-name% for the affected value to name

1941
HFS ~ HTTP File Server / Re: Hidden Folder For Only 1 User
« on: November 02, 2007, 01:49:46 PM »
yes: allow folder for all users exept one you want

1942
HFS ~ HTTP File Server / Re: things to come: ?sort=e ?rev
« on: November 02, 2007, 01:44:13 PM »
Usage:

?sort=[n|e|s|d|t][&rev][&recursive]

?rev    invert oder with "default sorting" in hfs options

1943
HFS ~ HTTP File Server / Re: things to come: ?sort=e ?rev
« on: November 01, 2007, 10:06:28 PM »
rejetto you say having receive my mail about sort ext, who include code. have you look at him in detail?

http://www.rejetto.com/forum/index.php?topic=5073.msg1028688#msg1028688

i have'nt no read my message at time i post above sorry big sorry

1944
HFS ~ HTTP File Server / upload filter
« on: November 01, 2007, 09:58:09 PM »
Quote
if you are able to describe a situation where the user is NOT FOOL and needs to put the vfs/ini inside the upload folder, then i'll consider it

For the vfs / ini: it is possible by mistake to put the file of hfs.exe unprotected upload and to crush the corresponding files for every user, thus all the server

Quote
the tpl is forbidden by default because it is normal to have such file in an upload folder, to customize it.
On the other hand it should be possible to be able to uploader a hfs.diff.tpl file for the persons authorized by the administrator of the server.

We can envisage a server on which the directories are created for every type of template existing and being able to be updated in distant for the last versions by their owner and in only reading for the others

1945
HFS ~ HTTP File Server / Re: Addon for the use of %sequential%
« on: November 01, 2007, 09:41:44 PM »
dear rejetto


Quote
Adding a symbol for every need is not wise.
I also believe it but it is a question here of finalizing the usage of %sequential%

If the code source of the topic is correct, can he be added all the same in the next beta version?

To overload templates with the javascript?? Why when we can make simple?

Among others I resolved the problem of the %files% display by page quite there javascript without using offset and limit

1946
HFS ~ HTTP File Server / Re: Addon for the use of %sequential%
« on: October 30, 2007, 02:49:06 PM »
Thanks to Foggy which understood of what it was question in this topic :D

Quote
I've the same problem as Foggy. Didn't even find nothing like %nb-links% that could help to understand in the source.


Voilà ce que c'est que d'utiliser des templates tout fait et de ne pas en faire soi même on ne comprends pas toujours..HI


my addon code source add only possibility to use %nb-sequential% with %sequential%, you can use this possibility to another personnal use, It is not restrictive to "total-links" or another

And to be in accordance with the papers of rejetto I shall have had to propose
%number-sequential%  but i find it very long

On this matter the correct syntax would be

%number-links%   number of links in the current folder.

Reference to the documentation
%number%   number of items in the current folder.
%number-files%   number of files in the current folder.
%number-folders%   number of folders in the current folder.

Each will judge that he needs or not, the only relevant question is to know if rejetto wish to include elements which do not ask for efforts of his part, and which do not break the future versions of hfs of his objectives.


Propose more of topics concerning the craftiness which you use in your templates, ca can open the other sometimes simple and powerful possibilities.
Some of you are endowed javascript there the others are him delphi there; Me, I make a little both in amateur and I try to take advantage of " language hfs " at most for my needs by sharing in the others.

Some of people will not see the necessity of such or such development, but in that case it is necessary to see coming.


I wait mainly for the answer of rejetto on this subject.

1947
HFS ~ HTTP File Server / Re: Addon for the use of %sequential%
« on: October 29, 2007, 03:53:15 PM »
%total-links% is missing? YES

but you can use %sequential% to count only mp3 or only gif or only jpg  (links are an example to explain) or another use

it is just a complement of %sequential% to have %NB-SEQUENTIAL%, a little thing who can help full.

When you want to use several   "Total xxxx="  (%sequential% -1) "files" next must be "Total xxxx="  (%sequential% -2) to having the same value on screen ..

1948
HFS ~ HTTP File Server / Re: Addon for the use of %sequential%
« on: October 29, 2007, 03:04:51 PM »
%sequential% can be using as a counter

every found %sequential% in a template is replaced by the value "%sequential%+1"

first "%sequential% take value "1", second take value 2",........the last take value "N"

I use it to count numbers of links in hfs web page like describe above by inserting in section [link]
<!-- %sequential% -->,  hfs replace %sequential% with the adapted value and when all links are diplayed, i can use 
    NB_links=%sequential%-1 to show the number of present links on the page of the user with document.write(NB_links);

    but the problem is "i must use javascript to do this", by modifying the code source(spring) it is possible to define by hfs internally the variable %NB-SEQUENTIAL% ant it can be placed wherever in the template

    all is right?

    1949
    HFS ~ HTTP File Server / Re: Addon for the use of %sequential%
    « on: October 29, 2007, 11:23:18 AM »
    ??? nobody for this topic?

    1950
    HFS ~ HTTP File Server / Re: Logical grouping of files in root
    « on: October 26, 2007, 07:38:07 AM »
    for a link appear on your hfs web page; uses always "http://%host%/... at the beginning of link,
    As it you are always insured that your links work, about is the user (internet or local)

    Pages: 1 ... 128 129 130 131 132 ... 135