$option_value) if (preg_match ("/^amazon_s3_files_/", $option) && ($option = preg_replace ("/^amazon_s3_files_/", "", $option))) $s3c[$option] = $option_value; /**/ if ($s3c["bucket"] && $s3c["access_key"] && $s3c["secret_key"]) return true; } /**/ return false; } /** * Checks to see if we're using Amazon® CloudFront. * * @package s2Member\Utilities * @since 110926 * * @return bool True if using Amazon® CloudFront, else false. */ public static function using_amazon_cf_storage () { foreach ($GLOBALS["WS_PLUGIN__"]["s2member"]["o"] as $option => $option_value) if (preg_match ("/^amazon_s3_files_/", $option) && ($option = preg_replace ("/^amazon_s3_files_/", "", $option))) $s3c[$option] = $option_value; /**/ foreach ($GLOBALS["WS_PLUGIN__"]["s2member"]["o"] as $option => $option_value) if (preg_match ("/^amazon_cf_files_/", $option) && ($option = preg_replace ("/^amazon_cf_files_/", "", $option))) $cfc[$option] = $option_value; /**/ if ($s3c["bucket"] && $s3c["access_key"] && $s3c["secret_key"]) if ($cfc["private_key"] && $cfc["private_key_id"] && $cfc["distros_access_id"] && $cfc["distros_s3_access_id"] && $cfc["distro_downloads_id"] && $cfc["distro_downloads_dname"] && $cfc["distro_streaming_id"] && $cfc["distro_streaming_dname"]) return true; /**/ return false; } } } ?>