Re: Letting users create ftp account.
Posted: Thu Jan 14, 2010 8:20 am
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.
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.