From 52674523441bf41685c3f78853ca952d349b80da Mon Sep 17 00:00:00 2001 From: wlx Date: Mon, 17 Sep 2012 02:27:24 +0000 Subject: [PATCH] add create directory after insert user into database --- application/default/controllers/SubmitController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/application/default/controllers/SubmitController.php b/application/default/controllers/SubmitController.php index 13cc3a16..077bab63 100644 --- a/application/default/controllers/SubmitController.php +++ b/application/default/controllers/SubmitController.php @@ -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(