remove print_r
This commit is contained in:
parent
1111ea986e
commit
62c3002152
@ -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);
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user