PluginProbe
Raptive Ads / trunk
Raptive Ads vtrunk
3.13.0 trunk 1.0.40 1.0.41 1.0.42 1.0.43 1.0.44 1.0.45 1.0.46 1.0.47 1.0.48 1.0.49 1.0.50 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 2.1.1 2.2.0 2.2.1 2.2.2 2.2.3 2.2.4 All 55 releases
adthrive-ads / adthrive-ads.php

adthrive-ads.php in Raptive Ads trunk, at adthrive-ads.php

76 lines 2.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Raptive Ads
4 *
5 * @package AdThrive Ads
6 *
7 * Plugin Name: Raptive Ads
8 * Plugin URI: http://www.raptive.com
9 * Description: Raptive Ads
10 * Version: 3.13.0
11 * Requires at least: 4.6
12 * Requires PHP: 5.6
13 * Author: Raptive
14 * Author URI: http://www.raptive.com
15 * License: GPL2
16 *
17 * Copyright (c) Raptive
18 *
19 * This plugin is free software: you can redistribute it and/or modify
20 * it under the terms of the GNU General Public License as published by
21 * the Free Software Foundation, either version 2 of the License, or
22 * any later version.
23 *
24 * This plugin is distributed in the hope that it will be useful,
25 * but WITHOUT ANY WARRANTY; without even the implied warranty of
26 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27 * GNU General Public License for more details.
28 *
29 * You should have received a copy of the GNU General Public License
30 * along with This plugin. If not, see {License URI}.
31 */
32
33 defined( 'ABSPATH' ) || die;
34
35 define( 'ADTHRIVE_ADS_VERSION', '3.13.0' );
36 define( 'ADTHRIVE_ADS_FILE', __FILE__ );
37 define( 'ADTHRIVE_ADS_PATH', plugin_dir_path( ADTHRIVE_ADS_FILE ) );
38 define( 'ADTHRIVE_ADS_URL', trailingslashit( plugin_dir_url( ADTHRIVE_ADS_FILE ) ) );
39 define( 'ADTHRIVE_PHP_INT_MIN', ~PHP_INT_MAX );
40
41 /**
42 * Output the minimum version error message
43 */
44 function adthrive_ads_php_notice() {
45 // @codingStandardsIgnoreStart
46 echo '<div class="error"><p>' . __( 'Raptive Ads requires PHP 5.6+ and WordPress 4.6+', 'adthrive-ads' ) . '</p></div>';
47
48 if ( isset( $_GET['activate'] ) ) {
49 unset( $_GET['activate'] );
50 }
51 // @codingStandardsIgnoreEnd
52 }
53
54 /**
55 * Deactivate this plugin
56 */
57 function adthrive_ads_deactivate_self() {
58 deactivate_plugins( plugin_basename( ADTHRIVE_ADS_FILE ) );
59 }
60
61 global $wp_version;
62
63 if ( version_compare( phpversion(), '5.6', '<' ) || version_compare( $wp_version, '4.6', '<' ) ) {
64 add_action( 'admin_notices', 'adthrive_ads_php_notice' );
65
66 add_action( 'admin_init', 'adthrive_ads_deactivate_self' );
67
68 return;
69 } else {
70 require_once 'adthrive-ads-loader.php';
71
72 require_once 'class-main.php';
73
74 new AdThrive_Ads\Main();
75 }
76