add create directory after insert user into database

This commit is contained in:
wlx 2012-09-17 02:27:24 +00:00
parent a10a0fb4b2
commit 5267452344
1 changed files with 2 additions and 1 deletions

View File

@ -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(