add create directory after insert user into database
This commit is contained in:
parent
a10a0fb4b2
commit
5267452344
|
@ -511,6 +511,7 @@ 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));
|
||||
@mkdir($homedir,0644);
|
||||
if($rs)
|
||||
{
|
||||
$data = array(
|
||||
|
|
Loading…
Reference in New Issue