add this to use the private function
This commit is contained in:
parent
3e19a86a7d
commit
0d9b73ac2e
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue