?> " class="zclip"> (<?php echo bytesToSize($backup['size']); ?> ) <?php echo $backup['name']; ?> </a> <input type="hidden" name="backup_name" value="<?php echo $filename; ?> " /> </td> <?php if (isset($backup['log'])) { printf('<td><a href="%s">log</a></td>', convertPathIntoUrl(WPCLONE_DIR_BACKUP . $backup['log'])); } else { echo '<td>—</td>'; } ?> <td><a class="copy-button" href="#" data-clipboard-text="<?php echo $filename; ?> " >Copy URL</a></td> <td><a href="<?php echo $url; ?> " class="delete" data-fileid="<?php echo $key; ?> ">Delete</a></td>
<?php } ?> <strong>Create Backup</strong> <input id="createBackup" name="createBackup" type="radio" value="fullBackup" checked="checked"/><br/><br/> <?php if (count($result) > 0) { ?> <div class="try"> <?php foreach ($result as $row) { $filename = convertPathIntoUrl(WPCLONE_DIR_BACKUP . $row['backup_name']); $url = wp_nonce_url(get_bloginfo('wpurl') . '/wp-admin/options-general.php?page=wp-clone&del=' . $row['id'], 'wpclone-submit'); ?> <div class="restore-backup-options"> <strong>Restore backup </strong> <input class="restoreBackup" name="restoreBackup" type="radio" value="<?php echo $filename; ?> " /> <a href="<?php echo $filename; ?> " class="zclip">
$Entry = "{$source}/{$entry}"; if (is_dir($Entry)) { wpa_copy($Entry, $target . '/' . $entry); } else { $wp_filesystem->copy($Entry, $target . '/' . $entry, true, FS_CHMOD_FILE); } } $d->close(); } else { $wp_filesystem->copy($source, $target, true); } } } /** * @since 2.0.6 */ function wpa_replace_prefix($newPrefix) { $wpconfig = wpa_wpconfig_path(); global $wp_filesystem; if (!$wp_filesystem->is_writable($wpconfig)) {
} ?> <strong>Create Backup</strong> <input id="createBackup" name="createBackup" type="radio" value="fullBackup" checked="checked"/><br/><br/> <?php if (false !== $backups && !empty($backups)) { ?> <div class="try"> <table class="restore-backup-options"> <?php foreach ($backups as $key => $backup) { $filename = convertPathIntoUrl(WPCLONE_DIR_BACKUP . $backup['name']); $url = wp_nonce_url(get_bloginfo('wpurl') . '/wp-admin/admin.php?page=wp-clone&del=' . $key, 'wpclone-submit'); ?> <tr> <th>Restore backup</th> <td><input class="restoreBackup" name="restoreBackup" type="radio" value="<?php echo $filename; ?> " /></td> <td> <a href="<?php echo $filename; ?> " class="zclip"> (<?php