コード例 #1
0
/**
 * Get a list of the files that need uploaded
 */
function get_files_to_remove($params)
{
    echo json_encode(get_local_files());
    die;
}
コード例 #2
0
					<th scope="row">
						<label for="rs_cdn[use_ssl]">Remove Local Files</label>
					</th>
					<td>
						<input type="checkbox" name="rs_cdn[remove_local_files]" value="true" <?php 
echo isset($cdn_settings->remove_local_files) && $cdn_settings->remove_local_files == true ? 'checked' : '';
?>
> 
						<span class="description">Remove files from local server when uploaded to CDN?</span>
					</td>
				</tr>
				<?php 
if (isset($cdn_settings->remove_local_files)) {
    ?>
				<tr id="remove_local_files_container" valign="top"<?php 
    echo count(get_local_files()) == 0 ? ' style="display:none;"' : (count($files_to_sync['upload']) > 0 ? ' style="display:none;"' : '');
    ?>
>
					<th scope="row"></th>
					<td>
						<a href="#" class="button" id="remove_local_files" style="color:#ff0000;vertical-align:middle;" data-blogurl="<?php 
    echo site_url();
    ?>
">Remove Local Files</a>
						<span class="description" style="color:#ff0000;vertical-align:middle;"><strong>WARNING:</strong> Only click this button once you have confirmed all files have been synchronized to the CDN.</span>
						<br />
						<span id="file_delete" class="description"></span>
					</td>
				</tr>
				<?php 
}