function moveBackup($option) { global $task; $files_out = array(); if (is_array($_REQUEST[files])) { foreach ($_REQUEST[files] as $key => $value) { if ($_REQUEST[cid][$key] != "") { $files_out[] = $value; } } } if ($_REQUEST['action'] == "connect") { $ret = start_connect($_REQUEST[files]); } if (!$ret) { HTML_cloner::TransferForm($option, $files_out); } }
function moveBackup($option) { global $task; $files_out = array(); if (is_array($_REQUEST[files])) { foreach ($_REQUEST[files] as $key => $value) { if ($_REQUEST[cid][$key] != "") { $files_out[] = $value; } } } if ($_REQUEST['action'] == "connect") { if (empty($_POST) || !wp_verify_nonce($_POST['csrf'], 'transfer')) { print 'Sorry, your nonce did not verify.'; exit; } $ret = start_connect($_REQUEST[files]); } if (!$ret) { $html = new HTML_cloner(); $html->TransferForm($option, $files_out); } }