add this to use the private function

This commit is contained in:
wlx 2012-06-21 07:05:59 +00:00
parent 3e19a86a7d
commit 0d9b73ac2e
1 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ class Pureftp
// offline user, the $user->path is an array of string // offline user, the $user->path is an array of string
function createuser($user) function createuser($user)
{ {
insert_user($user); $this->insert_user($user);
// add system link directory // add system link directory
if (is_array($user->path)) if (is_array($user->path))
{ {
@ -25,7 +25,7 @@ class Pureftp
//online path, only one path //online path, only one path
symlink($this->data_path.$user->path,'/home/ftp/'.$user->username.'/'.str_replace('/','-',substr($user->path,1))); symlink($this->data_path.$user->path,'/home/ftp/'.$user->username.'/'.str_replace('/','-',substr($user->path,1)));
} }
return update_pwd($user); return $this->update_pwd($user);
} }
/* /*