PluginProbe
Bubble Menu – Floating Button Menu with Sticky Navigation / 2.2
Bubble Menu – Floating Button Menu with Sticky Navigation v2.2
trunk 1.3 2.0 2.2 2.2.1 3.0 3.0.1 3.0.2 3.0.3 3.0.4 3.0.5 3.1 3.1.1 4.0 4.0.1 4.0.2 4.0.3 4.0.4 4.0.5 4.0.6 4.0.7 4.1 4.1.1
bubble-menu / admin / partials / tools-data-base.php

tools-data-base.php in Bubble Menu – Floating Button Menu with Sticky Navigation 2.2, at admin/partials/tools-data-base.php

33 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Database Result
4 *
5 * @package Wow Plugin
6 * @subpackage Admin/Database_result
7 * @author Dmytro Lobov <i@wpbiker.com>
8 * @copyright 2019 Wow-Company
9 * @license GNU Public License
10 * @version 1.0
11 */
12
13 if ( ! defined( 'ABSPATH' ) ) {
14 exit;
15 }
16
17 global $wpdb;
18 $data = $wpdb->prefix . 'wow_' . $this->plugin['prefix'];
19 $info = ( isset( $_REQUEST['info'] ) ) ? sanitize_text_field( $_REQUEST['info'] ) : '';
20 if ( $info == 'saved' ) {
21 $message_data = esc_attr__( 'Item Added', $this->plugin['text'] );
22 echo '<div class="updated" id="message"><p><strong>' . $message_data . '</strong>.</p></div>';
23 } elseif ( $info == 'update' ) {
24 $message_data = esc_attr__( 'Item Updated', $this->plugin['text'] );
25 echo '<div class="updated" id="message"><p><strong>' . $message_data . '</strong>.</p></div>';
26 } elseif ( $info == 'delete' ) {
27 $delid = absint( $_GET['did'] );
28 $wpdb->query( 'delete from ' . $data . ' where id=' . $delid );
29 self::delete_file( $delid );
30 $message_data = esc_attr__( 'Item Deleted', $this->plugin['text'] );
31 echo '<div class="updated" id="message"><p><strong>' . $message_data . '</strong>.</p></div>';
32 }
33