支持中文路径
This commit is contained in:
parent
f24ea5e1ef
commit
9b220549cf
|
@ -36,7 +36,7 @@
|
||||||
{
|
{
|
||||||
$row = pg_fetch_array($result, $ri);
|
$row = pg_fetch_array($result, $ri);
|
||||||
$content.='# path: '.$row['path']."\n";
|
$content.='# path: '.$row['path']."\n";
|
||||||
$content.='mkdir -p "/home/ftp/westdc_'.$row['userid'].'/'.basename($row['path']).'"'."\n";
|
$content.='mkdir -p "/home/ftp/westdc_'.$row['userid'].'/'.preg_replace('/^.+[\\\\\\/]/', '', rtrim($row['path'],'/')).'"'."\n";
|
||||||
$content.='mount --bind "'.$row['path'].'" "/home/ftp/westdc_'.$row['userid'].'/'.preg_replace('/^.+[\\\\\\/]/', '', rtrim($row['path'],'/')).'"'."\n";
|
$content.='mount --bind "'.$row['path'].'" "/home/ftp/westdc_'.$row['userid'].'/'.preg_replace('/^.+[\\\\\\/]/', '', rtrim($row['path'],'/')).'"'."\n";
|
||||||
}
|
}
|
||||||
$filename='./proftp-user.sh';
|
$filename='./proftp-user.sh';
|
||||||
|
|
Loading…
Reference in New Issue