1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
<?php if ( ! is_admin() ) { die( 'Access denied.' ); } // Repair db integrity of a table.
/* db_repair() * * Repair specific table. Used on server info page. * * @return null */
$table = base64_decode( pb_backupbuddy::_GET( 'table' ) );
global $wpdb;
pb_backupbuddy::$ui->ajax_header(); echo '<h2>Database Table Repair</h2>'; echo 'Repairing table `' . $table . '`...<br><br>'; $rows = $wpdb->get_results( "REPAIR TABLE `" . backupbuddy_core::dbEscape( $table ) . "`", ARRAY_A ); echo '<b>Results:</b><br><br>'; echo '<table class="widefat">'; foreach( $rows as $row ) { echo '<tr>'; echo '<td>' . $row['Msg_type'] . '</td>'; echo '<td>' . $row['Msg_text'] . '</td>'; echo '</tr>'; } unset( $rows ); echo '</table>'; pb_backupbuddy::$ui->ajax_footer();
die();
|