PluginProbe
FireBox – WooCommerce Popup Builder, Exit Intent Popup, Email Optin & Cart Abandonment / 2.1.23
FireBox – WooCommerce Popup Builder, Exit Intent Popup, Email Optin & Cart Abandonment v2.1.23
3.1.13 3.1.12 3.1.11 3.1.10 3.1.9 3.1.8 3.1.7 trunk 1.0.0 1.0.1 1.0.10 1.0.11 1.0.12 1.0.13 1.0.14 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.1.1 All 122 releases
← All changes | Inc/Core/Tables/Boxlog.php +3 -42 trunk2.1.23 View file →
@@ -1,12 +1,12 @@
1 1 <?php
2 2 /**
3 3 * @package FireBox
4 - * @version 3.1.13 Free
4 + * @version 2.1.23 Free
5 5 *
6 6 * @author FirePlugins <[email protected]>
7 7 * @link https://www.fireplugins.com
8 - * @copyright Copyright © 2026 FirePlugins All Rights Reserved
8 + * @copyright Copyright © 2024 FirePlugins All Rights Reserved
9 9 * @license GNU GPLv3 <http://www.gnu.org/licenses/gpl.html> or later
10 10 */
11 11
12 12 namespace FireBox\Core\Tables;
@@ -19,52 +19,13 @@
19 19 use FPFramework\Includes\DB;
20 20
21 21 class Boxlog extends DB
22 22 {
23 - /**
24 - * The column list below covers this table in full, so inserts can safely be
25 - * restricted to it.
26 - *
27 - * @var bool
28 - */
29 - protected $enforce_insert_columns = true;
30 -
31 23 public function __construct()
32 24 {
33 25 $this->table_name = 'firebox_logs';
34 26 }
35 -
36 - /**
37 - * Returns whether the given impression log belongs to the given campaign.
38 - *
39 - * Conversion events are logged against a log_id supplied by the client, so without
40 - * this any visitor could attribute conversions to impressions that never happened or
41 - * that belong to another campaign.
42 - *
43 - * @param int $log_id
44 - * @param int $box_id
45 - *
46 - * @return bool
47 - */
48 - public function belongsToCampaign($log_id, $box_id)
49 - {
50 - $log_id = (int) $log_id;
51 - $box_id = (int) $box_id;
52 -
53 - if ($log_id <= 0 || $box_id <= 0)
54 - {
55 - return false;
56 - }
57 -
58 - global $wpdb;
59 -
60 - return (bool) $wpdb->get_var($wpdb->prepare(
61 - "SELECT 1 FROM `{$this->getFullTableName()}` WHERE id = %d AND box = %d LIMIT 1",// phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared
62 - $log_id,
63 - $box_id
64 - ));
65 - }
66 -
27 +
67 28 /**
68 29 * Get columns and formats
69 30 *
70 31 * @return array