1
0
mirror of https://github.com/misterunknown/ifm.git synced 2025-08-10 10:04:01 +02:00

remove debug output

This commit is contained in:
Marco Dickert
2017-07-21 17:44:43 +02:00
parent 3cd1c8b3e1
commit 81c7332c59
3 changed files with 0 additions and 3 deletions

View File

@@ -2246,7 +2246,6 @@ function IFM( params ) {
$this->chDirIfNecessary( $d['dir'] );
if( file_exists( $d['filename'] ) && is_file( $d['filename'] ) && is_readable( $d['filename'] ) ) {
$content = @file_get_contents( $d['filename'] );
file_put_contents( "debugifm.txt", "content: ".$content."\n\n\n" );
if( function_exists( "mb_check_encoding" ) && ! mb_check_encoding( $content, "UTF-8" ) )
$content = utf8_encode( $content );
echo json_encode( array( "status" => "OK", "data" => array( "filename" => $d['filename'], "content" => $content ) ) );

View File

@@ -2246,7 +2246,6 @@ function IFM( params ) {
$this->chDirIfNecessary( $d['dir'] );
if( file_exists( $d['filename'] ) && is_file( $d['filename'] ) && is_readable( $d['filename'] ) ) {
$content = @file_get_contents( $d['filename'] );
file_put_contents( "debugifm.txt", "content: ".$content."\n\n\n" );
if( function_exists( "mb_check_encoding" ) && ! mb_check_encoding( $content, "UTF-8" ) )
$content = utf8_encode( $content );
echo json_encode( array( "status" => "OK", "data" => array( "filename" => $d['filename'], "content" => $content ) ) );

View File

@@ -421,7 +421,6 @@ f00bar;
$this->chDirIfNecessary( $d['dir'] );
if( file_exists( $d['filename'] ) && is_file( $d['filename'] ) && is_readable( $d['filename'] ) ) {
$content = @file_get_contents( $d['filename'] );
file_put_contents( "debugifm.txt", "content: ".$content."\n\n\n" );
if( function_exists( "mb_check_encoding" ) && ! mb_check_encoding( $content, "UTF-8" ) )
$content = utf8_encode( $content );
echo json_encode( array( "status" => "OK", "data" => array( "filename" => $d['filename'], "content" => $content ) ) );