rejetto forum

Testing build #246

rejetto · 23 · 18931

0 Members and 1 Guest are viewing this topic.

Offline kaler

  • Occasional poster
  • *
    • Posts: 94
    • View Profile
yea, but how many keys can you give one username?


Offline kaler

  • Occasional poster
  • *
    • Posts: 94
    • View Profile

Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
{.if|%user%|

{.mkdir|/user/%user%|overwrite=0.}
{.add folder|real|/user/%user%|/Accounts/%user%|overwrite=0.}
{.set item|/Accounts/%user%|add access=%user%.}
{.set item|/Accounts/%user%|add access=admin.}
{.set item|/Accounts/%user%|add delete=%user%.}
{.set item|/Accounts/%user%|add delete=admin.}
{.set item|/Accounts/%user%|add upload=%user%.}
{.set item|/Accounts/%user%|add upload=admin.}||.}

i see some problems in this

1. you use /user/%user% while you mean C:\user\%user
use "\", "/" is meant here for web paths.

2. after {.if|%user%|
you must {:quote:} all the instructions, because otherwise they will always be executed, even when %user% is empty.

3. you can reduce all those set item, to a single set item.
example
{.set item|/Accounts/%user%|add access=%user%|add access=admin.}


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
Since this build, HFS turns off and won't all me to restart. I get a message saying the port is already in use but even switching ports does nothing. On exit, it gives this error:

i compared all differences. I don't think it's truly the 246 causing this.
It may be a security software (firewall?) preventing it from opening the port.


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
It was only an error-message from hfs... (you can't add it anywhere...) it don't change anything...

i guess HFS-Lover  was referring to YOUR post, kaler :)


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
yea, but how many keys can you give one username?

there's no known limit.
anyway, the point is that you suggested numbers to use the as index for an array, right?
there are no such arrays in the scripting language, just the "tables", very similar, but using strings instead of numbers (cleary numbers will work as well, considered as strings)


Offline Mars

  • Operator
  • Tireless poster
  • *****
    • Posts: 2063
    • View Profile
missing a CRLF to separate each line inside file descript.ion

procedure Tfile.setDynamicComment(cmt:string);
......
try
  s:=loadDescriptionFile(path);
  i:=findNameInDescriptionFile(s, name);
  if i = 0 then
    s:=s+quoteIfAnyChar(' ', name)+' '+cmt+CRLF          //mod by mars
  else
    begin
...
end; // setDynamicComment
« Last Edit: September 25, 2009, 10:17:45 PM by Mars »