PluginProbe
GD Security Headers / 1.6
GD Security Headers v1.6
trunk 1.0 1.1 1.1.1 1.2 1.3 1.4 1.5 1.6 1.6.1 1.7 1.7.1 1.8 1.9
gd-security-headers / forms / setup / database.php

database.php in GD Security Headers 1.6, at forms/setup/database.php

29 lines 893 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <h3 style="margin-top: 0;"><?php _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