Linux business72.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
LiteSpeed
: 162.0.229.97 | : 3.129.70.162
Cant Read [ /etc/named.conf ]
8.1.30
temmmp
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
home /
temmmp /
anonmags.com /
wp-content /
plugins /
google-site-kit /
includes /
Modules /
Analytics_4 /
[ HOME SHELL ]
Name
Size
Permission
Action
Advanced_Tracking
[ DIR ]
drwxr-xr-x
Conversion_Reporting
[ DIR ]
drwxr-xr-x
GoogleAnalyticsAdmin
[ DIR ]
drwxr-xr-x
Report
[ DIR ]
drwxr-xr-x
AMP_Tag.php
5.15
KB
-rw-r--r--
Account_Ticket.php
3.44
KB
-rw-r--r--
Advanced_Tracking.php
3.96
KB
-rw-r--r--
Audience_Settings.php
2.41
KB
-rw-r--r--
Custom_Dimensions_Data_Availab...
3.53
KB
-rw-r--r--
PivotReport.php
2.16
KB
-rw-r--r--
Report.php
990
B
-rw-r--r--
Reset_Audiences.php
3.86
KB
-rw-r--r--
Resource_Data_Availability_Dat...
7.55
KB
-rw-r--r--
Settings.php
6.36
KB
-rw-r--r--
Synchronize_AdSenseLinked.php
4.48
KB
-rw-r--r--
Synchronize_AdsLinked.php
3.21
KB
-rw-r--r--
Synchronize_Property.php
4.13
KB
-rw-r--r--
Tag_Guard.php
878
B
-rw-r--r--
Tag_Interface.php
821
B
-rw-r--r--
Tag_Matchers.php
2.1
KB
-rw-r--r--
Web_Tag.php
6.15
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : Synchronize_AdSenseLinked.php
<?php /** * Class Google\Site_Kit\Modules\Analytics_4\Synchronize_AdSenseLinked * * @package Google\Site_Kit\Modules\Analytics_4 * @copyright 2024 Google LLC * @license https://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0 * @link https://sitekit.withgoogle.com */ namespace Google\Site_Kit\Modules\Analytics_4; use Google\Site_Kit\Core\Permissions\Permissions; use Google\Site_Kit\Core\Storage\Options; use Google\Site_Kit\Core\Storage\User_Options; use Google\Site_Kit\Modules\Adsense; use Google\Site_Kit\Modules\Analytics_4; use Google\Site_Kit\Modules\AdSense\Settings as Adsense_Settings; /** * The base class for Synchronizing the adSenseLinked status. * * @since 1.123.0 * @access private * @ignore */ class Synchronize_AdSenseLinked { const CRON_SYNCHRONIZE_ADSENSE_LINKED = 'googlesitekit_cron_synchronize_adsense_linked_data'; /** * Analytics_4 instance. * * @since 1.123.0 * @var Analytics_4 */ protected $analytics_4; /** * User_Options instance. * * @since 1.123.0 * @var User_Options */ protected $user_options; /** * Options instance. * * @since 1.123.0 * @var Options */ protected $options; /** * Constructor. * * @since 1.123.0 * * @param Analytics_4 $analytics_4 Analytics 4 instance. * @param User_Options $user_options User_Options instance. * @param Options $options Options instance. */ public function __construct( Analytics_4 $analytics_4, User_Options $user_options, Options $options ) { $this->analytics_4 = $analytics_4; $this->user_options = $user_options; $this->options = $options; } /** * Registers functionality through WordPress hooks. * * @since 1.123.0 */ public function register() { add_action( self::CRON_SYNCHRONIZE_ADSENSE_LINKED, function () { $this->synchronize_adsense_linked_data(); } ); } /** * Cron callback for synchronizing the adsense linked data. * * @since 1.123.0 * @since 1.130.0 Added check for property ID, so it can return early if property ID is not set. */ protected function synchronize_adsense_linked_data() { $owner_id = $this->analytics_4->get_owner_id(); $restore_user = $this->user_options->switch_user( $owner_id ); $settings_ga4 = $this->analytics_4->get_settings()->get(); if ( empty( $settings_ga4['propertyID'] ) ) { return; } if ( user_can( $owner_id, Permissions::VIEW_AUTHENTICATED_DASHBOARD ) ) { $this->synchronize_adsense_linked_status(); } $restore_user(); } /** * Schedules single cron which will synchronize the adSenseLinked status. * * @since 1.123.0 */ public function maybe_schedule_synchronize_adsense_linked() { $analytics_4_connected = apply_filters( 'googlesitekit_is_module_connected', false, Analytics_4::MODULE_SLUG ); $adsense_connected = apply_filters( 'googlesitekit_is_module_connected', false, AdSense::MODULE_SLUG ); $cron_already_scheduled = wp_next_scheduled( self::CRON_SYNCHRONIZE_ADSENSE_LINKED ); if ( $analytics_4_connected && $adsense_connected && ! $cron_already_scheduled ) { wp_schedule_single_event( // Schedule the task to run in 24 hours. time() + ( DAY_IN_SECONDS ), self::CRON_SYNCHRONIZE_ADSENSE_LINKED ); } } /** * Synchronize the AdSenseLinked status. * * @since 1.123.0 * * @return null */ protected function synchronize_adsense_linked_status() { $settings_ga4 = $this->analytics_4->get_settings()->get(); $property_id = $settings_ga4['propertyID']; $property_adsense_links = $this->analytics_4->get_data( 'adsense-links', array( 'propertyID' => $property_id ) ); $current_adsense_options = ( new AdSense_Settings( $this->options ) )->get(); $current_adsense_client_id = ! empty( $current_adsense_options['clientID'] ) ? $current_adsense_options['clientID'] : ''; if ( is_wp_error( $property_adsense_links ) || empty( $property_adsense_links ) ) { return null; } $found_adsense_linked_for_client_id = false; // Iterate over returned AdSense links and set true if one is found // matching the same client ID. foreach ( $property_adsense_links as $property_adsense_link ) { if ( $current_adsense_client_id === $property_adsense_link['adClientCode'] ) { $found_adsense_linked_for_client_id = true; break; } } // Update the AdSenseLinked status and timestamp. $this->analytics_4->get_settings()->merge( array( 'adSenseLinked' => $found_adsense_linked_for_client_id, 'adSenseLinkedLastSyncedAt' => time(), ) ); } }
Close