wordpress/wp-content/plugins/sqlite-integration/utilities/utility.php
/**
	 * Method to delete backup database file(s).
	 *
	 * Users can delete multiple files at a time.
	 *
	 * @return false if file names aren't checked, empty array if failed, array of messages if succeeded.
	 * @access private
	 */
Method to delete backup database file(s).
Users can delete multiple files at a time.

@return false if file names aren't checked, empty array if failed, array of messages if succeeded.
@access private
Method to delete backup database file ( s ) . Users can delete multiple files at a time . @return false if file names aren ' t checked empty array if failed array of messages if succeeded . @access private
private function delete_backup_db() {
		$domain = $this->text_domain;
		$file_names = array();
		$results = array();
		if (isset($_POST['backup_checked'])) {
			$file_names = $_POST['backup_checked'];
		} else {
			return false;
		}
		if (chdir(FQDBDIR)) {
			foreach ($file_names as $file) {
				if (unlink($file)) {
					$results[$file] = sprintf(__('File %s was deleted.', $domain), $file);
				} else {
					$results[$file] = sprintf(__('Error! File was not deleted.', $domain), $file);
				}
			}
		}
		return $results;
	}
private function delete_backup_db ( ) { $ domain = $ this -> text_domain ; $ file_names = array ( ) ; $ results = array ( ) ; if ( isset ( $ _POST [ 'backup_checked' ] ) ) { $ file_names = $ _POST [ 'backup_checked' ] ; } else { return false ; } if ( chdir ( FQDBDIR ) ) { foreach ( $ file_names as $ file ) { if ( unlink ( $ file ) ) { $ results [ $ file ] = sprintf ( __ ( 'File %s was deleted.' , $ domain ) , $ file ) ; } else { $ results [ $ file ] = sprintf ( __ ( 'Error! File was not deleted.' , $ domain ) , $ file ) ; } } } return $ results ; }
Method to delete backup database file(s).
Method to delete backup database file ( s ) .