public/wordpress/wp-content/plugins/backupbuddy/_importbuddy/importbuddy/controllers/ajax/6.php
// Parse submitted options/settings.
Parse submitted options/settings.
Parse submitted options / settings .
function parse_options( $restoreData ) {
	if ( '1' == pb_backupbuddy::_POST( 'delete_backup' ) ) {
		$restoreData['cleanup']['deleteArchive'] = true;
	} else {
		$restoreData['cleanup']['deleteArchive'] = false;
	}
	if ( '1' == pb_backupbuddy::_POST( 'delete_temp' ) ) {
		$restoreData['cleanup']['deleteTempFiles'] = true;
	} else {
		$restoreData['cleanup']['deleteTempFiles'] = false;
	}
	if ( '1' == pb_backupbuddy::_POST( 'delete_importbuddy' ) ) {
		$restoreData['cleanup']['deleteImportBuddy'] = true;
	} else {
		$restoreData['cleanup']['deleteImportBuddy'] = false;
	}
	if ( '1' == pb_backupbuddy::_POST( 'delete_importbuddy_directory' ) ) {
		$restoreData['cleanup']['deleteImportBuddyDirectory'] = true;
	} else {
		$restoreData['cleanup']['deleteImportBuddyDirectory'] = false;
	}
	if ( '1' == pb_backupbuddy::_POST( 'delete_importbuddylog' ) ) {
		$restoreData['cleanup']['deleteImportLog'] = true;
	} else {
		$restoreData['cleanup']['deleteImportLog'] = false;
	}
	if ( '1' == pb_backupbuddy::_POST( 'set_blog_public' ) ) {
		$restoreData['cleanup']['set_blog_public'] = true;
	} elseif ( '0' == pb_backupbuddy::_POST( 'set_blog_public' ) ) {
		$restoreData['cleanup']['set_blog_public'] = false;
	}
	return $restoreData;
}
function parse_options ( $ restoreData ) { if ( '1' == pb_backupbuddy :: _POST ( 'delete_backup' ) ) { $ restoreData [ 'cleanup' ] [ 'deleteArchive' ] = true ; } else { $ restoreData [ 'cleanup' ] [ 'deleteArchive' ] = false ; } if ( '1' == pb_backupbuddy :: _POST ( 'delete_temp' ) ) { $ restoreData [ 'cleanup' ] [ 'deleteTempFiles' ] = true ; } else { $ restoreData [ 'cleanup' ] [ 'deleteTempFiles' ] = false ; } if ( '1' == pb_backupbuddy :: _POST ( 'delete_importbuddy' ) ) { $ restoreData [ 'cleanup' ] [ 'deleteImportBuddy' ] = true ; } else { $ restoreData [ 'cleanup' ] [ 'deleteImportBuddy' ] = false ; } if ( '1' == pb_backupbuddy :: _POST ( 'delete_importbuddy_directory' ) ) { $ restoreData [ 'cleanup' ] [ 'deleteImportBuddyDirectory' ] = true ; } else { $ restoreData [ 'cleanup' ] [ 'deleteImportBuddyDirectory' ] = false ; } if ( '1' == pb_backupbuddy :: _POST ( 'delete_importbuddylog' ) ) { $ restoreData [ 'cleanup' ] [ 'deleteImportLog' ] = true ; } else { $ restoreData [ 'cleanup' ] [ 'deleteImportLog' ] = false ; } if ( '1' == pb_backupbuddy :: _POST ( 'set_blog_public' ) ) { $ restoreData [ 'cleanup' ] [ 'set_blog_public' ] = true ; } elseif ( '0' == pb_backupbuddy :: _POST ( 'set_blog_public' ) ) { $ restoreData [ 'cleanup' ] [ 'set_blog_public' ] = false ; } return $ restoreData ; }
Parse submitted options/settings.
Parse submitted options / settings .
// Search engine visibility (set_blog_public wp_options).