| 1 |
<h3 style="margin-top: 0;"><?php esc_html_e( 'Database Tables', 'gd-security-headers' ); ?></h3> |
| 2 |
<?php |
| 3 |
|
| 4 |
require_once( GDSIH_PATH . 'core/admin/install.php' ); |
| 5 |
|
| 6 |
$list_db = gdsih_install_database(); |
| 7 |
|
| 8 |
if ( ! empty( $list_db ) ) { |
| 9 |
echo '<h4>' . __( 'Upgrade Notices', 'gd-security-headers' ) . '</h4>'; |
| 10 |
echo join( '<br/>', $list_db ); |
| 11 |
} |
| 12 |
|
| 13 |
echo '<h4>' . __( 'Tables Check', 'gd-security-headers' ) . '</h4>'; |
| 14 |
$check = gdsih_check_database(); |
| 15 |
|
| 16 |
$msg = array(); |
| 17 |
foreach ( $check as $table => $data ) { |
| 18 |
if ( $data['status'] == 'error' ) { |
| 19 |
$_proceed = false; |
| 20 |
$_error_db = true; |
| 21 |
|
| 22 |
$msg[] = '<span class="gdpc-error">[' . __( 'ERROR', 'gd-security-headers' ) . '] - <strong>' . $table . '</strong>: ' . $data['msg'] . '</span>'; |
| 23 |
} else { |
| 24 |
$msg[] = '<span class="gdpc-ok">[' . __( 'OK', 'gd-security-headers' ) . '] - <strong>' . $table . '</strong></span>'; |
| 25 |
} |
| 26 |
} |
| 27 |
|
| 28 |
echo join( '<br/>', $msg ); |
| 29 |
|