PluginProbe
Float menu – awesome floating side menu / 3.3.1
Float menu – awesome floating side menu v3.3.1
7.2.5 trunk 2.1 2.2 3.0.1 3.1 3.2.2 3.3.1 3.5 3.5.1 3.5.2 3.5.3. 3.5.4 4.0 4.1 4.1.1 4.2 4.3 4.3.1 4.3.2 5.0 5.0.1 5.0.2 5.0.3 5.1 All 57 releases
float-menu / admin / partials / tools-data-base.php

tools-data-base.php in Float menu – awesome floating side menu 3.3.1, at admin/partials/tools-data-base.php

32 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 <d@dayes.dev>
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 $message_data = esc_attr__( 'Item Deleted', $this->plugin['text'] );
30 echo '<div class="updated" id="message"><p><strong>' . $message_data . '</strong>.</p></div>';
31 }
32