Amazon Web Services plugin.', 'as3cf' ), 'http://wordpress.org/extend/plugins/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 {
$install_url = wp_nonce_url( self_admin_url( 'update.php?action=install-plugin&plugin=amazon-web-services' ), 'install-plugin_amazon-web-services' );
$msg .= sprintf( __( 'Click here to install it automatically. Then activate it. ', 'as3cf' ), $install_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' );