Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions cron.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
closedir($handle);
}
}
echo 'Старые файлы удалены<br>';
//echo 'Старые файлы удалены<br>';
}

} catch (Exception $e) {
Expand All @@ -61,6 +61,6 @@
$html = file_get_contents('template/error.tpl');
$html = str_replace('{title}', 'Ошибка', $html);
$html = str_replace('{error}', $error, $html);
echo $html;
//echo $html;
}
?>
?>
4 changes: 2 additions & 2 deletions inc/function_zipcompressfile.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ function zipcompressfile($source,$destination,$filename,$level=false)
$dest=$destination.$filename.'.zip';
$mode='wb'.$level;
$error=false;
echo $source.$filename.' -> '.$dest.'<br>';
//echo $source.$filename.' -> '.$dest.'<br>';
if($fp_out=gzopen($dest,$mode))
{
if($fp_in=fopen($source.$filename,'rb'))
Expand All @@ -23,4 +23,4 @@ function zipcompressfile($source,$destination,$filename,$level=false)
if($error) return false;
else return $dest;
}
?>
?>