rejetto forum
May 25, 2012, 10:00:31 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: This forum is free, you do NOT need to register to post. But you may.
PROBLEMS? QUESTIONS? CLICK HERE!
Fill the survey!
 
   Home   Help Search Login Register  
Pages: 1 [2]
  Print  
Author Topic: Testing build #246  (Read 4856 times)
0 Members and 3 Guests are viewing this topic.
kaler
Experienced poster
***
Offline Offline

Germany Germany

Posts: 94


View Profile
« Reply #15 on: September 12, 2009, 05:02:04 AM »

yea, but how many keys can you give one username?
Logged
kaler
Experienced poster
***
Offline Offline

Germany Germany

Posts: 94


View Profile
« Reply #16 on: September 12, 2009, 05:03:14 AM »

sorry i have seen it already.. sorry... Smiley
Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11830


View Profile
« Reply #17 on: September 24, 2009, 04: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.}
Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11830


View Profile
« Reply #18 on: September 24, 2009, 04: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.
Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11830


View Profile
« Reply #19 on: September 24, 2009, 04: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 Smiley
Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11830


View Profile
« Reply #20 on: September 24, 2009, 04: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)
Logged
rejetto forum
« Reply #20 on: September 24, 2009, 04:21:49 AM »

Do you like this software? Consider even $2
 Logged
Mars
Operator
Insane poster
*****
Offline Offline

France France

Posts: 1481



View Profile WWW
« Reply #21 on: September 25, 2009, 05: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, 05:17:45 PM by Mars » Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11830


View Profile
« Reply #22 on: October 02, 2009, 12:00:21 PM »

mars' ranting moved to
http://www.rejetto.com/forum/index.php?topic=7625.0
Logged
Pages: 1 [2]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!


Google visited last this page May 18, 2012, 12:29:22 AM