} } while ($file = smartstrip(array_shift($_SESSION['copy_files']))) { $basename = basename($file); if ($basename[0] == '.') { // automatically remove the beginning dot $basename = substr($basename, 1); } $new_path = $path . '/' . $basename; if (!$write_permission) { $popup_feedback .= access_denied_box($path); break; } elseif ($fs->chroot_file_exists($new_path)) { if ($overwrite_destination_path == $new_path && $overwrite_all != 'true') { if ($overwrite == "true") { $fs->chroot_copy_r1($file, $new_path); } } else { array_unshift($_SESSION['copy_files'], $file); $overwrite_source_path = $file; $overwrite_destination_path = $new_path; $task = 'overwrite'; break; } } else { $fs->chroot_copy_r1($file, $path . '/' . $basename); } } } else { $task = 'upload'; $feedback = '<p class="Error">' . $fbNoFile . ' ' . format_size($GO_CONFIG->max_file_size) . '</p>';