remove print_r

This commit is contained in:
Ibnu Maksum 2023-08-01 16:05:52 +07:00
parent 1111ea986e
commit 62c3002152
No known key found for this signature in database
GPG Key ID: 7FC82848810579E5
2 changed files with 47 additions and 47 deletions

View File

@ -6,7 +6,6 @@ class File
public static function copyFolder($from, $to, $exclude = [])
{
$files = scandir($from);
print_r($files);
foreach ($files as $file) {
if (is_file($from . $file) && !in_array($file, $exclude)) {
if (file_exists($to . $file)) unlink($to . $file);

View File

@ -107,7 +107,6 @@ function r2($to, $ntype = 'e', $msg = '')
function copyFolder($from, $to, $exclude = [])
{
$files = scandir($from);
print_r($files);
foreach ($files as $file) {
if (is_file($from . $file) && !in_array($file, $exclude)) {
if (file_exists($to . $file)) unlink($to . $file);
@ -127,7 +126,7 @@ function deleteFolder($path)
if (is_file($path . $file)) {
unlink($path . $file);
} else if (is_dir($path . $file) && !in_array($file, ['.', '..'])) {
File::deleteFolder($path . $file . DIRECTORY_SEPARATOR);
deleteFolder($path . $file . DIRECTORY_SEPARATOR);
rmdir($path . $file);
}
}
@ -187,6 +186,7 @@ function deleteFolder($path)
<?= $msg ?>
</div>
<?php } ?>
<?php if ($continue) { ?>
<?php if ($step == 1) { ?>
<div class="panel panel-primary">
<div class="panel-heading">Step 1</div>
@ -220,6 +220,7 @@ function deleteFolder($path)
</div>
<meta http-equiv="refresh" content="5; ./index.php?_route=dashboard">
<?php } ?>
<?php } ?>
</div>
</div>
</section>