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 ... 123 124 125 126 127 ... 134
1861
Quote
Would it make more sense to have
Restrict Access - No Account
renamed to:
Restrict Access - No Restrictions?
'No Account' implies that you are restricted to not being able to log in with any account.

NO RESTRICTION is better and clearer if we keep  RESTRICT ACCESS    (Negation of a limitation)

but  ANYONE is more suited if we use ACCESS GRANTED TO ... ANYONE
                                                                                        NEW ACCOUNT
                                                                                        ALL EXISTING ACCOUNTS
                                                                                        (SELECTED ACCOUNTS)



1862
The appropriate term could be:

 restrict access     -->>   Access granted to ...

and

no account       -->>  anyone    (with a checked box before and work as for upload when activ)
                                             at the first position into sub-menu "restrict access"

1863
RAWR-Designs / Re: Icon displaying bug
« on: December 07, 2007, 09:03:23 PM »
post us the section [file] from your template


Make a try by moving %comment% just after %item-name%



%item-name%<p>%comment%<p>

1864
HFS ~ HTTP File Server / Re: Default file mask to ~setting
« on: December 07, 2007, 06:56:47 PM »
j'en conclus donc que la macro

{{ section | mysection | fichier_externe}}   

sera dans la prochaine build?
 ;)

1865
Bug reports / function cut() io non comprendere
« on: December 06, 2007, 11:21:31 PM »
 procedure cut();
  var
    from, upTo, l: integer;
    s: string;
  begin
(1)  s:=par(2);                               
(2)  l:=length(s);
(3)  from:=strToIntDef(par(0), 1);
(4)  upTo:=strToIntDef(par(1), l);
(5)  if from < 0 then from:=l+from+1;
(6)  if upTo >= 0 then upTo:=from+upTo-1
(7)  else upTo:=l+upTo;
(8)  result:=substr(s, from, upTo);
  end; // cut

(0) {{cut|-3|-4|ABCDEFGH}}
(1) s='ABCDEFGH'
(2) l=
(3)  from=-3
(4)  upTo:=-4
(5)  if from < 0 then from:=l+from+1;         --> from=8-3+1=6
(6)  if upTo >= 0 then upTo:=from+upTo-1
(7)  else upTo:=l+upTo;                            --> upto=8-4=4 
(8)  result:=substr(s, from, upTo)               ---> substr(s,6,4)=copy(s,6,4-6+1)=copy(s,6,-1)=????? 

quelle est dans ton idée l'usage de nombres negatifs dans la macro cut ??


non documentée dans le wiki:
if name = 'replace' then
  result:=replaceText(par(2), par(1), p);






1866
HFS ~ HTTP File Server / Re: delete files/folders
« on: December 06, 2007, 10:51:12 PM »
 ;D ;D ;D

I wanted to speak about a file of size equal to zero

1867
HFS ~ HTTP File Server / Re: Default file mask to ~setting
« on: December 06, 2007, 10:36:29 PM »
Quote
Quote
à ce propos je propose à rejeto une extrension de la macro 'section'
{{ section | mysection | fichier_externe}}    (le code est deja sur papier brouillon)


you'd better tell what is supposed to do
if it loads the [mysection] from an external template file, then you can just do {{load|file}} {{$mysection}}

le but est de lire une partie (section) d'un fichier sans le charger complètement dans le template principal, au lieu d'avoir N fichiers contenant chacun 1 section, je préfère avoir 1 fichier contenant N sections et pouvoir charger la section qui m'intéresse.

si dans mon fichier j'ai des information confidentielles organisées en section comme par exemple

[user1]
name=toto
address= chez rejetto
tel=0123456789

[user2]
name=titi
address= toujours chez  rejetto
tel=0123456789

....
[user5265898]  // yes 5 265 898 users
name=mars
address= chez mars
tel=0123450000

il n'est pas nécessaire de charger tout le fichier dans le template par {{load|file}}  et d'afficher la section désirée par {{$mysection}}, sinon j'utiliserai cette syntaxe

{{section|mysection|{{load|myfile}}}}

en considérant [mysection] is in myfile

utiliser %mysection% dans la partie main de hfs.tpl
et {load|myfile} à lal fin de hfs.tpl comme il se doit,

je ne pense pas que ca puisse fonctionner: 1 chance sur 2 selon l'ordre de résolution des macros


en reprenant mon idée

dans le fichier myfile se trouve la section

Quote
.
[section-précédente].
.
.
[mysection]
//begin mysection
...
//end mysection
[section-suivante]
.
.
.
le resultat obtenu serait:

Quote
//begin mysection
...
//end mysection

Tout ce blabla au dessus pour en arriver à ça:

en code delphi

if name = 'section' then
 if pars.count=2 then begin
      result:= loadFile(par(1));           //avec la syntaxe {{section|mysection|myfile}}
ou    result:= par(1);           //avec la syntaxe {{section|mysection|{{load|myfile}}}}  plus de possibilités avec cette dernière
      chop('['+par(0)+']',result);    //suppression jusqu'au  nom de section
      chopline(result);                 //suppression de la ligne [mysection]
      result:=chop('#13#10[',result); //  couper en debut de section suivante ou si fin de fichier atteinte
      end
    else
    try result:=md.tpl[p] except end;

Répons : oui la syntaxe est bonne et les fonctions sont judicieusement choisies pour ne pas exiger plus de code, et donner le résultat escompté.

1868
HFS ~ HTTP File Server / Re: Uploaded by
« on: December 06, 2007, 11:11:34 AM »
I, I shall look who makes what in the log ;D ;D ;)

More it would reveal which login is used for a specific resource.

Without wanting to discourage you the slightest of the world for this proposition. On the other hand, if it is for an internal usage it would be more sensible to write a log of success uploads in a file to part, it I think that it is possible more easily in first time.
And having Uploads message, you can choose what as information to put in this log file.

after you can  create section

[history]

{{load| uploads.log}}

and talk it by ~history

1869
HFS ~ HTTP File Server / Re: delete files/folders
« on: December 06, 2007, 11:06:05 AM »
Rejetto, by waiting it is always possible to erase an upload wich as no size

1870
HFS ~ HTTP File Server / Re: Default file mask to ~setting
« on: December 06, 2007, 10:54:04 AM »
{{$section}} ou <#section> ou toute autre forme quelle que soit la syntaxe , au final l'expression entière est remplacée, 2 choses comptent: la lisibilité des templates et aussi la difficulté d'interprétation au niveau de delphi ( faut aussi penser au programmeur)

faire un truc du genre  :(  

<script type="text/Rejetto">
{load nom-fichier};
{switch %user% ....};
{section|mysection}
</script>
selon moi c'est trop proche du javascript

pour ma part je préfère les chose plus simples où <#nom_employe> ou %user% sont remplacés par leur équivalent meme si on introduit un peu de language  style basic sans aller jusqu'au POKE ;D

Ce qui est interressant c'est de remplacer une partie du javascript par des macros HFS, comme cela moins de données transitent vers le navigateur et cela augmente la confidentialité des données. Prenons simplement l'exemple qui consiste à afficher le contenu d'un texte en fonction de l'utilisateur

Soit on transmet l'ensemble des messages et c'est le navigateur qui masque ou affiche ce qui doit être ou alors on utilise:

<p>{{load|/messages/message%user%.txt}<p>

à ce propos je propose à rejeto une extrension de la macro 'section'

{{ section | mysection }}  complétée par

{{ section | mysection | fichier_externe}}    (le code est deja sur papier brouillon)


pour finir un template principal

<HTML>
<head>
...
</head>
<body>
Choice your language/Choisir sa langue/.....
...
%login-link%
%loggedin%
.....
</body>
</html>

[style]

[login-link]
{{section | login-link | hfs{{urlvar|lang}}.tpl}}
OU
{{section | {{urlvar|lang}} | hfs.login-link.tpl}}


[loggedin]
{{section | loggedin | hfs{{urlvar|lang}}.tpl}}
OU
{{section | {{urlvar|lang}} | hfs.loggedin.tpl}}

....





1871
HFS ~ HTTP File Server / Re: Default file mask to ~setting
« on: December 05, 2007, 10:30:31 PM »
Analyse de tout ça en cours avant de me pronocer

un oeil la dessus

http://www.laboiteaprog.com/article-35-1-delphi_modele_html

1872
HFS ~ HTTP File Server / Re: Default file mask to ~setting
« on: December 04, 2007, 11:53:17 PM »
RTL
Quote
RTL (Rejetto-Template-Language).
It is the slow evolution or the migration towards the php ;D ;D

1873
HFS ~ HTTP File Server / Re: Default file mask to ~setting
« on: December 04, 2007, 11:32:30 PM »
By looking at this post, I wondered if it was possible to add the equivalent of
{{=|%folder%|/|}}
Quote
if name = '=' then
  trueIf(sameText(par(0), par(1)));


{{equal|%folder%|/|}}
Quote
if name = 'equal' then
  trueIf(sameText(par(0), par(1)));

{{=|'{{=|#|&}}'|''}}   The syntax is obviously of use to nothing but is correct and to decipher it is another story 

{{equal|'{{equal|#|&}}'|''}} is a little easier to follow

{{if|{{=|'{{=|#|&}}'|''}}|You win|You lose}} or {{if|{{equal|'{{equal|#|&}}'|''}}|You win|You lose}}

1874
HTML & templates / Mp3 and %item-tags%
« on: December 02, 2007, 10:26:21 PM »
Small one source got back delphi and who shall allow to extract the information, notably with mp3 files
A way towards the variable %items-tags% for [file.mp3]?

1875
Programmers corner / Re: Can use Borland Delphi 6 compile sources ?
« on: November 30, 2007, 11:03:55 PM »
It is indeed what I hoped to hear (thanks to rejetto and bacter)
 
The purpose is to make the community of hfs prosper through the forum as the SilentPliz  fact it in its French-style translations:http://www.rejetto.com/forum/index.php?topic=5173.msg1030362#msg1030362

If the purpose is quite other, and that it is necessary to appropier the work of rejetto by modifying his sources, and to create a concurent of hfs under another logo then I get indignant very strongly at this mentality.

 Where from my a little bit severe warning in the first message.

Even I, who am able to compile hfs by using trickery a little, I am not certain about the reliability of this compilation and I use it only in purposes of test.

What would be the short-term ideal, it is to be able to use an external file to adapt the menus and the messages of hfs in the  language wished of highly-rated administrator. Of highly-rated user it is enough to adapt templates.

Pages: 1 ... 123 124 125 126 127 ... 134