add create directory after insert user into database
This commit is contained in:
parent
a10a0fb4b2
commit
5267452344
|
@ -510,7 +510,8 @@ class SubmitController extends Zend_Controller_Action
|
|||
|
||||
$sql = "UPDATE pureftp SET passwd=?,uid=?,gid=?,homedir=? WHERE userid=?";
|
||||
$sth = $this->db->prepare($sql);
|
||||
$rs = $sth->execute(array($passwd,$uid,$gid,$homedir,$uname));
|
||||
$rs = $sth->execute(array($passwd,$uid,$gid,$homedir,$uname));
|
||||
@mkdir($homedir,0644);
|
||||
if($rs)
|
||||
{
|
||||
$data = array(
|
||||
|
|
Loading…
Reference in New Issue