Page 2 of 2

Re: Letting users create ftp account.

Posted: Thu Jan 14, 2010 8:20 am
by FTP
Hi,Andre

Sorry, Maybe there is a bit mistake in the scripts. Please change some code as following:

$strLuaScript = <<<EOT
c_AddUser('$domain','$username',md5('$password'),63,1,1)
c_AddUserDirectory('$domain','$username','$homedir','/',true,true,false,false,false,true,false,false,false)
EOT;


Note, variable $homedir must be a physical path.

Re: Letting users create ftp account.

Posted: Thu Jan 14, 2010 9:55 am
by Andre
It works! Thank you. :-)
We're going to test it and test it and test it.

:-)