public/wordpress/wp-content/plugins/backupbuddy/_importbuddy/importbuddy/controllers/ajax/5.php
// Parse submitted options/settings.
Parse submitted options/settings.
Parse submitted options / settings .
function parse_options( $restoreData ) {
	if ( '1' == pb_backupbuddy::_POST( 'migrateDatabase' ) ) { $restoreData['databaseSettings']['migrateDatabase'] = true; } else { $restoreData['databaseSettings']['migrateDatabase'] = false; }
	if ( '1' == pb_backupbuddy::_POST( 'migrateDatabaseBruteForce' ) ) { $restoreData['databaseSettings']['migrateDatabaseBruteForce'] = true; } else { $restoreData['databaseSettings']['migrateDatabaseBruteForce'] = false; }
	$restoreData['siteurl'] = preg_replace( '|/*$|', '', pb_backupbuddy::_POST( 'siteurl' ) ); 
	$restoreData['homeurl'] = preg_replace( '|/*$|', '', pb_backupbuddy::_POST( 'homeurl' ) ); 
	if ( ( 'on' != pb_backupbuddy::_POST( 'customHomeEnabled' ) ) || ( '' == $restoreData['homeurl'] ) ) { 
		$restoreData['homeurl'] = $restoreData['siteurl'];
	}
	$restoreData['maxExecutionTime'] = pb_backupbuddy::_POST( 'max_execution_time' );
	return $restoreData;
}
function parse_options ( $ restoreData ) { if ( '1' == pb_backupbuddy :: _POST ( 'migrateDatabase' ) ) { $ restoreData [ 'databaseSettings' ] [ 'migrateDatabase' ] = true ; } else { $ restoreData [ 'databaseSettings' ] [ 'migrateDatabase' ] = false ; } if ( '1' == pb_backupbuddy :: _POST ( 'migrateDatabaseBruteForce' ) ) { $ restoreData [ 'databaseSettings' ] [ 'migrateDatabaseBruteForce' ] = true ; } else { $ restoreData [ 'databaseSettings' ] [ 'migrateDatabaseBruteForce' ] = false ; } $ restoreData [ 'siteurl' ] = preg_replace ( '|/*$|' , '' , pb_backupbuddy :: _POST ( 'siteurl' ) ) ; $ restoreData [ 'homeurl' ] = preg_replace ( '|/*$|' , '' , pb_backupbuddy :: _POST ( 'homeurl' ) ) ; if ( ( 'on' != pb_backupbuddy :: _POST ( 'customHomeEnabled' ) ) || ( '' == $ restoreData [ 'homeurl' ] ) ) { $ restoreData [ 'homeurl' ] = $ restoreData [ 'siteurl' ] ; } $ restoreData [ 'maxExecutionTime' ] = pb_backupbuddy :: _POST ( 'max_execution_time' ) ; return $ restoreData ; }
Parse submitted options/settings.
Parse submitted options / settings .
// Strip trailing slashes. // Strip trailing slashes. // Home url was blank OR they did not check to customize the home url so just set it to siteurl.