| Server IP : 104.21.21.239 / Your IP : 216.73.216.101 Web Server : Apache/2.4.68 (Amazon Linux) OpenSSL/3.5.5 System : Linux ip-172-31-69-123.ec2.internal 6.1.176-223.369.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Jul 24 13:34:27 UTC 2026 x86_64 User : ec2-user ( 1000) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/home2/domains/siparent/wp-content/plugins/advanced-ads-responsive/ |
Upload File : |
<?php
/**
* Advanced Ads – Responsive Ads
*
* Plugin Name: Advanced Ads – Responsive Ads
* Plugin URI: https://wpadvancedads.com/add-ons/responsive-ads/
* Description: Improve ad display on mobile devices and AMP pages
* Version: 1.10.2
* Author: Advanced Ads GmbH
* Author URI: https://wpadvancedads.com
* Text Domain: advanced-ads-responsive
* Domain Path: /languages
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
// Only load if not already existing (maybe within another plugin I created).
if ( ! class_exists( 'Advanced_Ads_Responsive' ) ) {
// Load basic path and url to the plugin.
define( 'AAR_BASE_PATH', plugin_dir_path( __FILE__ ) );
define( 'AAR_BASE_URL', plugin_dir_url( __FILE__ ) );
define( 'AAR_BASE_DIR', dirname( plugin_basename( __FILE__ ) ) ); // Directory of the plugin without any paths.
// Plugin slug and textdoamin.
define( 'AAR_SLUG', 'responsive-ads' );
define( 'AAR_VERSION', '1.10.2' );
define( 'AAR_PLUGIN_URL', 'https://wpadvancedads.com' );
define( 'AAR_PLUGIN_NAME', 'Responsive Ads' );
// Public-Facing Functionality.
include_once plugin_dir_path( __FILE__ ) . 'classes/plugin.php';
include_once plugin_dir_path( __FILE__ ) . 'public/public.php';
new Advanced_Ads_Responsive();
// Dashboard and Administrative Functionality.
if ( is_admin() && ( ! defined( 'DOING_AJAX' ) || ! DOING_AJAX ) ) {
include_once plugin_dir_path( __FILE__ ) . 'admin/admin.php';
new Advanced_Ads_Responsive_Admin();
}
// Loads Modules.
include_once AAR_BASE_PATH . 'modules/gadsense/main.php';
include_once AAR_BASE_PATH . 'classes/Mobile-Detect/Mobile_Detect.php';
$advads_mobile_detect = new Advanced_Ads_Mobile_Detect();
include_once AAR_BASE_PATH . 'modules/amp/main.php';
}