<?php

backupbuddy_core::verifyAjaxAccess();
// File restorer (actual unzip/restore) in the file restore page.
/* restore_file_restore()
*
* AJAX page for thickbox for restoring a file from inside an archive..
*
*/
$files = pb_backupbuddy::_GET('files');
// file to extract.
$files_array = explode(',', $files);
$files = array();
foreach ($files_array as $file) {
    if (substr($file, -1) == '/') {
        // If directory then add wildcard.
        $file = $file . '*';
    }
    $files[$file] = $file;
}
unset($files_array);
pb_backupbuddy::$ui->ajax_header(true, false);
// js, no padding
?>

<style>html { background: inherit !important; }</style>
<script type="text/javascript">
	function pb_status_append( json ) {
		if( 'undefined' === typeof statusBox ) { // No status box yet so may need to create it.
			statusBox = jQuery( '#backupbuddy_messages' );
			if( statusBox.length == 0 ) { // No status box yet so suppress.