mirror of
https://github.com/misterunknown/ifm.git
synced 2025-08-14 03:53:59 +02:00
return a boolean value for isDocroot
This commit is contained in:
@@ -2812,7 +2812,7 @@ function IFM( params ) {
|
|||||||
private function getConfig() {
|
private function getConfig() {
|
||||||
$ret = $this->config;
|
$ret = $this->config;
|
||||||
$ret['inline'] = ( $this->mode == "inline" ) ? true : false;
|
$ret['inline'] = ( $this->mode == "inline" ) ? true : false;
|
||||||
$ret['isDocroot'] = ( $this->getRootDir() == $this->getScriptRoot() ) ? "true" : "false";
|
$ret['isDocroot'] = ( $this->getRootDir() == $this->getScriptRoot() ) ? true : false;
|
||||||
echo $this->jsonResponse( $ret );
|
echo $this->jsonResponse( $ret );
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -3550,9 +3550,8 @@ function IFM( params ) {
|
|||||||
return copy( $source, $this->pathCombine( $dest, basename( $source ) ) );
|
return copy( $source, $this->pathCombine( $dest, basename( $source ) ) );
|
||||||
|
|
||||||
chdir( $source );
|
chdir( $source );
|
||||||
foreach( glob( '*' ) as $item ) {
|
foreach( glob( '*' ) as $item )
|
||||||
$this->xcopy( $item, $dest );
|
$this->xcopy( $item, $dest );
|
||||||
}
|
|
||||||
chdir( '..' );
|
chdir( '..' );
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
5
ifm.php
5
ifm.php
@@ -2812,7 +2812,7 @@ function IFM( params ) {
|
|||||||
private function getConfig() {
|
private function getConfig() {
|
||||||
$ret = $this->config;
|
$ret = $this->config;
|
||||||
$ret['inline'] = ( $this->mode == "inline" ) ? true : false;
|
$ret['inline'] = ( $this->mode == "inline" ) ? true : false;
|
||||||
$ret['isDocroot'] = ( $this->getRootDir() == $this->getScriptRoot() ) ? "true" : "false";
|
$ret['isDocroot'] = ( $this->getRootDir() == $this->getScriptRoot() ) ? true : false;
|
||||||
echo $this->jsonResponse( $ret );
|
echo $this->jsonResponse( $ret );
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -3550,9 +3550,8 @@ function IFM( params ) {
|
|||||||
return copy( $source, $this->pathCombine( $dest, basename( $source ) ) );
|
return copy( $source, $this->pathCombine( $dest, basename( $source ) ) );
|
||||||
|
|
||||||
chdir( $source );
|
chdir( $source );
|
||||||
foreach( glob( '*' ) as $item ) {
|
foreach( glob( '*' ) as $item )
|
||||||
$this->xcopy( $item, $dest );
|
$this->xcopy( $item, $dest );
|
||||||
}
|
|
||||||
chdir( '..' );
|
chdir( '..' );
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@@ -380,7 +380,7 @@ f00bar;
|
|||||||
private function getConfig() {
|
private function getConfig() {
|
||||||
$ret = $this->config;
|
$ret = $this->config;
|
||||||
$ret['inline'] = ( $this->mode == "inline" ) ? true : false;
|
$ret['inline'] = ( $this->mode == "inline" ) ? true : false;
|
||||||
$ret['isDocroot'] = ( $this->getRootDir() == $this->getScriptRoot() ) ? "true" : "false";
|
$ret['isDocroot'] = ( $this->getRootDir() == $this->getScriptRoot() ) ? true : false;
|
||||||
echo $this->jsonResponse( $ret );
|
echo $this->jsonResponse( $ret );
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1118,9 +1118,8 @@ f00bar;
|
|||||||
return copy( $source, $this->pathCombine( $dest, basename( $source ) ) );
|
return copy( $source, $this->pathCombine( $dest, basename( $source ) ) );
|
||||||
|
|
||||||
chdir( $source );
|
chdir( $source );
|
||||||
foreach( glob( '*' ) as $item ) {
|
foreach( glob( '*' ) as $item )
|
||||||
$this->xcopy( $item, $dest );
|
$this->xcopy( $item, $dest );
|
||||||
}
|
|
||||||
chdir( '..' );
|
chdir( '..' );
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user