Set default file manager path to /www/
This commit is contained in:
@ -101,7 +101,7 @@ if(!empty($_REQUEST['path'])){
|
|||||||
$dir=str_replace('..', '\.\.', $dir);
|
$dir=str_replace('..', '\.\.', $dir);
|
||||||
$dir=preg_replace('~//+~', '/', $dir);
|
$dir=preg_replace('~//+~', '/', $dir);
|
||||||
}else{
|
}else{
|
||||||
$dir='/';
|
$dir='/www/';
|
||||||
}
|
}
|
||||||
if(@!ftp_chdir($ftp, $dir)){
|
if(@!ftp_chdir($ftp, $dir)){
|
||||||
$dir=rtrim($dir, '/');
|
$dir=rtrim($dir, '/');
|
||||||
|
Reference in New Issue
Block a user