$option['date'], 'filename' => $option['filename'], 'url' =>$option['url'], 'dir' => $option['dir'], 'log' =>$option['log'], 'destination' => $args[6], 'type' => $option['type'], 'size' => $option['size'] ); // error_log("set destination to $args[0]"); }else{ $newoptions[] = $option; } $count++; } update_option('wp_db_backup_backups', $newoptions); if (get_option('wp_db_log') == 1) { if(isset($args[4]) && !empty($args[4])) { if (is_writable($args[4]) || !file_exists($args[4])) { if (!$handle = @fopen($args[4], 'a')) return; if (!fwrite($handle, str_replace("
", "\n", $args[2]))) return; fclose($handle); return true; } } } } }