# wp-database-backup/6.0/includes/admin/admin-header-notification.php

WP Database Backup – Unlimited Database &amp; Files Backup by Backup for WP, version 6.0. 55 lines.

- Page: https://pluginprobe.com/plugins/wp-database-backup/6.0/code/includes/admin/admin-header-notification.php
- Raw: https://pluginprobe.com/plugins/wp-database-backup/6.0/raw/includes/admin/admin-header-notification.php
- Modified: 2022-12-22T14:17:56+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/wp-database-backup/6.0/code/includes/admin/admin-header-notification.php#L10-L20`.

```php
<?php
/**
 * Show header notification in dashboard
 *
 * @package wpdbbkp
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit;
} // Exit if accessed directly

if ( true === isset( $_GET['notification'] ) ) { ?>
	<div class="row wpdbbkp_notification_row">
		<div class="col-xs-12 col-sm-12 col-md-12">
		<div class="alert alert-success alert-dismissible fade in" role="alert">
	<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
		<div class="wpdbbkp_notification">	<?php
			if ( true === isset( $_GET['_wpnonce'] ) && wp_verify_nonce( sanitize_text_field( wp_unslash( $_GET['_wpnonce'] ) ), 'wp-database-backup' ) ) {
				if ( 'create' === $_GET['notification'] ) {
					$backup_list     = get_option( 'wp_db_backup_backups' );
					$download_backup = end( $backup_list );
					$backup_link     = '<a href="' . esc_url( $download_backup['url'] ) . '" style="color: #21759B;">' . __( 'Click Here to Download Backup.', 'wpdbbkp' ) . '</a>';
					esc_attr_e( 'Database Backup Created Successfully. ', 'wpdbbkp' );
					echo wp_kses_post( $backup_link );
				} elseif ( 'restore' === $_GET['notification'] ) {
					esc_attr_e( 'Database Backup Restore Successfully', 'wpdbbkp' );
				} elseif ( 'delete' === $_GET['notification'] ) {
					esc_attr_e( 'Database Backup deleted Successfully', 'wpdbbkp' );
				} elseif ( 'clear_temp_db_backup_file' === $_GET['notification'] ) {
					esc_attr_e( 'Clear all old/temp database backup files Successfully', 'wpdbbkp' );
				} elseif ( 'Invalid' === $_GET['notification'] ) {
					esc_attr_e( 'Invalid Access!!!!', 'wpdbbkp' );
				} elseif ( 'deleteauth' === $_GET['notification'] ) {
					esc_attr_e( 'Dropbox account unlink Successfully', 'wpdbbkp' );
				} elseif ( 'save' === $_GET['notification'] ) {
					esc_attr_e( 'Backup Setting Saved Successfully', 'wpdbbkp' );
				}
			}
			?>
			</div>
		</div>
	</div>
</div>
<?php } ?>


<div class="row">
<div class="col-xs-8 col-sm-8 col-md-8">
	<img id="backup_process" style="display:none" width="50" height="50" src="<?php echo esc_url( WPDB_PLUGIN_URL ); ?>/assets/images/icon_loading.gif">
</div>
	<div class="col-xs-4 col-sm-4 col-md-4 text-right">
		
	</div>
</div>

```
