Amazon Web Services plugin.', 'as3cf' ), 'https://github.com/deliciousbrains/wp-amazon-web-services' ) . '
';
if ( file_exists( WP_PLUGIN_DIR . '/amazon-web-services/amazon-web-services.php' ) ) {
$activate_url = wp_nonce_url( 'plugins.php?action=activate&plugin=amazon-web-services/amazon-web-services.php', 'activate-plugin_amazon-web-services/amazon-web-services.php' );
$msg .= sprintf( __( 'It appears to already be installed. Click here to activate it.', 'as3cf' ), $activate_url );
}
else {
$download_url = 'https://github.com/deliciousbrains/wp-amazon-web-services/releases/download/v0.1/amazon-web-services-0.1.zip';
$msg .= sprintf( __( 'Click here to download a zip of the latest version. Then install and activate it. ', 'as3cf' ), $download_url );
}
$msg .= '
' . __( 'Once it has been activated, you can activate Amazon S3 and CloudFront.', 'as3cf' );
wp_die( $msg );
}
add_action( 'plugins_loaded', 'as3cf_check_required_plugin' );
function as3cf_init( $aws ) {
global $as3cf;
require_once 'classes/amazon-s3-and-cloudfront.php';
$as3cf = new Amazon_S3_And_CloudFront( __FILE__, $aws );
}
add_action( 'aws_init', 'as3cf_init' );