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:
@@ -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 ) ) );
|
||||
|
1
ifm.php
1
ifm.php
@@ -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 ) ) );
|
||||
|
@@ -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 ) ) );
|
||||
|
Reference in New Issue
Block a user