= 0 ) { define( 'WPAM_PHP53', true ); } else if ( version_compare( PHP_VERSION, '5.1.0') >= 0 ) { define( 'WPAM_PHP51', true ); } else { wp_die( __( 'WordPress Affiliate Manager requires PHP 5.1 or higher.', 'affiliates-manager' ) ); } if ( version_compare( $wp_version, '3.5.0' ) < 0 ) { wp_die( __( 'WordPress Affiliate Manager requires WordPress 3.5 or higher.', 'affiliates-manager' ) ); } require_once WPAM_BASE_DIRECTORY . "/source/Plugin.php"; require_once WPAM_BASE_DIRECTORY . "/config.php"; $wpam_plugin = new WPAM_Plugin(); register_activation_hook( __FILE__, array( $wpam_plugin, 'onActivation' ) );