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