Author Topic: Testing build #246  (Read 8269 times)

0 Members and 1 Guest are viewing this topic.

Offline kaler

  • Occasional poster
  • *
  • Posts: 94
    • View Profile
Re: Testing build #246
« Reply #15 on: September 12, 2009, 10:02:04 AM »
yea, but how many keys can you give one username?

Offline kaler

  • Occasional poster
  • *
  • Posts: 94
    • View Profile
Re: Testing build #246
« Reply #16 on: September 12, 2009, 10:03:14 AM »
sorry i have seen it already.. sorry... :)

Offline rejetto

  • Administrator
  • Tireless poster
  • *
  • Posts: 12953
    • View Profile
Re: Testing build #246
« Reply #17 on: September 24, 2009, 09:02:58 AM »
{.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: 12953
    • View Profile
Re: Testing build #246
« Reply #18 on: September 24, 2009, 09:18:18 AM »
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: 12953
    • View Profile
Re: Testing build #246
« Reply #19 on: September 24, 2009, 09:19:39 AM »
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: 12953
    • View Profile
Re: Testing build #246
« Reply #20 on: September 24, 2009, 09:21:49 AM »
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: 1895
    • View Profile
Re: Testing build #246 bug with descript.ion
« Reply #21 on: September 25, 2009, 10:32:48 AM »
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 »

Offline rejetto

  • Administrator
  • Tireless poster
  • *
  • Posts: 12953
    • View Profile
Re: Testing build #246
« Reply #22 on: October 02, 2009, 05:00:21 PM »