X7ROOT File Manager
Current Path:
/home/oakwood/public_html/wp-content/plugins/popup-maker/classes
home
/
oakwood
/
public_html
/
wp-content
/
plugins
/
popup-maker
/
classes
/
ðŸ“
..
ðŸ“
Abstract
📄
Activator.php
(796 B)
ðŸ“
Admin
📄
Admin.php
(3.72 KB)
📄
Ajax.php
(1.66 KB)
📄
Analytics.php
(7.79 KB)
📄
AssetCache.php
(19.99 KB)
ðŸ“
Batch
📄
Cache.php
(252 B)
📄
ConditionCallbacks.php
(6.35 KB)
📄
Conditions.php
(14.26 KB)
📄
Cookies.php
(7.67 KB)
ðŸ“
DB
📄
DataStorage.php
(382 B)
📄
Deactivator.php
(594 B)
ðŸ“
Extension
📄
Extensions.php
(5.34 KB)
📄
GA.php
(2.31 KB)
📄
Helpers.php
(8.04 KB)
📄
Install.php
(7.92 KB)
ðŸ“
Integration
📄
Integrations.php
(12.69 KB)
ðŸ“
Interface
📄
Licensing.php
(7.69 KB)
📄
ListTable.php
(41.08 KB)
📄
Logging.php
(266 B)
ðŸ“
Model
ðŸ“
Newsletter
📄
Newsletters.php
(8.85 KB)
📄
Options.php
(308 B)
📄
Popup.php
(240 B)
📄
Popups.php
(787 B)
📄
Previews.php
(3.62 KB)
📄
Privacy.php
(16.22 KB)
ðŸ“
Repository
ðŸ“
Shortcode
📄
Shortcode.php
(11.61 KB)
📄
Shortcodes.php
(1.28 KB)
ðŸ“
Site
📄
Site.php
(4.67 KB)
📄
Telemetry.php
(10.31 KB)
📄
Triggers.php
(10.33 KB)
📄
Types.php
(7.59 KB)
ðŸ“
Upgrade
📄
Upgrades.php
(348 B)
📄
Upsell.php
(7.52 KB)
ðŸ“
Utils
📄
index.php
(116 B)
Editing: Ajax.php
<?php /** * AJAX Initialization & Helper Functions * * @since 1.4 * @package PUM * @subpackage PUM/includes * @author Daniel Iser <danieliser@wizardinternetsolutions.com> * @copyright Copyright (c) 2023, Code Atlantic LLC * @license http://opensource.org/licenses/gpl-3.0.php GNU Public License */ // Exit if accessed directly if ( ! defined( 'ABSPATH' ) ) { exit; } /** * Controls the basic analytics methods for Popup Maker */ class PUM_Ajax { /** * Creates and returns a 1x1 tracking gif to the browser. */ public static function serve_pixel() { $gif = self::get_file( POPMAKE_DIR . 'assets/images/beacon.gif' ); header( 'Content-Type: image/gif' ); header( 'Content-Length: ' . strlen( $gif ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped echo $gif; exit; } public static function get_file( $path ) { if ( function_exists( 'realpath' ) ) { $path = realpath( $path ); } // phpcs:ignore WordPress.PHP.NoSilencedErrors.Discouraged if ( ! $path || ! @is_file( $path ) ) { return ''; } // phpcs:ignore WordPress.PHP.NoSilencedErrors.Discouraged return @file_get_contents( $path ); } /** * Returns a 204 no content header. */ public static function serve_no_content() { header( 'HTTP/1.0 204 No Content' ); header( 'Content-Type: image/gif' ); header( 'Content-Length: 0' ); exit; } /** * Serves a proper json response. * * @param mixed $data */ public static function serve_json( $data = 0 ) { header( 'Content-Type: application/json' ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped echo PUM_Utils_Array::safe_json_encode( $data ); exit; } }
Upload File
Create Folder