mirror of
https://github.com/DanWin/hosting.git
synced 2025-07-28 01:26:07 +02:00
Set default file manager path to /www/
This commit is contained in:
parent
9c5294e64e
commit
4aa51f4371
1 changed files with 1 additions and 1 deletions
|
@ -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, '/');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue