Changeset 166926
- Timestamp:
- 10/25/2009 09:34:58 PM (16 years ago)
- Location:
- cdn-tools/trunk
- Files:
-
- 4 edited
-
cdn_classes/cloudfiles/cloudfiles.php (modified) (2 diffs)
-
cdn_classes/cloudfiles/cloudfiles_http.php (modified) (2 diffs)
-
cdntools.php (modified) (2 diffs)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
cdn-tools/trunk/cdn_classes/cloudfiles/cloudfiles.php
r164970 r166926 298 298 * # 299 299 * $conn = new CF_Connection($auth); 300 * </code> 300 * 301 * # If you are connecting via Rackspace servers and have access 302 * # to the servicenet network you can set the $servicenet to True 303 * # like this. 304 * 305 * $conn = new CF_Connection($auth, $servicenet=True); 306 * 307 * </code> 308 * 309 * If the environement variable RACKSPACE_SERVICENET is defined it will 310 * force to connect via the servicenet. 301 311 * 302 312 * @param obj $cfs_auth previously authenticated CF_Authentication instance 313 * @param boolean $servicenet enable/disable access via Rackspace servicenet. 303 314 * @throws AuthenticationException not authenticated 304 315 */ 305 function __construct($cfs_auth) 306 { 316 function __construct($cfs_auth, $servicenet=False) 317 { 318 if (isset($_ENV['RACKSPACE_SERVICENET'])) 319 $servicenet=True; 307 320 $this->cfs_http = new CF_Http(DEFAULT_CF_API_VERSION); 308 321 $this->cfs_auth = $cfs_auth; … … 312 325 throw new AuthenticationException($e); 313 326 } 314 $this->cfs_http->setCFAuth($this->cfs_auth );327 $this->cfs_http->setCFAuth($this->cfs_auth, $servicenet=$servicenet); 315 328 $this->dbug = False; 316 329 } -
cdn-tools/trunk/cdn_classes/cloudfiles/cloudfiles_http.php
r164970 r166926 30 30 require_once("cloudfiles_exceptions.php"); 31 31 32 define("PHP_CF_VERSION", "1. 4.0");32 define("PHP_CF_VERSION", "1.5.0"); 33 33 define("USER_AGENT", sprintf("PHP-CloudFiles/%s", PHP_CF_VERSION)); 34 34 define("ACCOUNT_CONTAINER_COUNT", "X-Account-Container-Count"); … … 889 889 } 890 890 891 function setCFAuth($cfs_auth) 892 { 893 $this->storage_url = $cfs_auth->storage_url; 891 function setCFAuth($cfs_auth, $servicenet=False) 892 { 893 if ($servicenet) { 894 $this->storage_url = "https://snet-" . substr($cfs_auth->storage_url, 8); 895 } else { 896 $this->storage_url = $cfs_auth->storage_url; 897 } 894 898 $this->auth_token = $cfs_auth->auth_token; 895 899 $this->cdnm_url = $cfs_auth->cdnm_url; -
cdn-tools/trunk/cdntools.php
r164970 r166926 5 5 Description: CDN Tools is a plugin designed to help you drastically speed up your blog's load time by loading content onto a distribution network. You can use a commercial CDN or just load some of your larger JS libraries for free from Google's servers! At this time Cloud Files is the only supported CDN. 6 6 Author: Paul Kehrer 7 Version: 0.9 47 Version: 0.95 8 8 Author URI: http://langui.sh/ 9 9 */ … … 28 28 set_time_limit(300); //5 minutes max... 29 29 30 define('CDNTOOLS_VERSION','0.9 4');30 define('CDNTOOLS_VERSION','0.95'); 31 31 32 32 $dir_array = explode('/',dirname(__FILE__)); -
cdn-tools/trunk/readme.txt
r164970 r166926 4 4 Tags: cdn, sideload, speed, content, distribution, performance, cloudfiles, files, media, accelerator, cloud 5 5 Requires at least: 2.7 6 Tested up to: 2.8. 47 Stable tag: 0.9 46 Tested up to: 2.8.5 7 Stable tag: 0.95 8 8 9 9 CDN Tools is a plugin designed to help you drastically speed up your blog's load time by loading data onto a content distribution network (CDN). … … 13 13 [CDN Tools](http://langui.sh/cdn-tools/ "CDN Tools Home") is a WordPress plugin that allows you to load javascript and media files to an external server to drastically speed page loads. You can sideload data to a commercial CDN or just load your larger JS libraries (prototype, jquery) for **free** from Google's servers. CDN Tools has been designed to be as easy to use as possible, so give it a shot! Your blog's readers will thank you. At this time the only commercial CDN supported is Cloud Files. Check out the plugin homepage to view a screencast. 14 14 15 = New in 0.94 = 16 * Upgraded to CF API 1.4. This should resolve some cURL issues users have experienced and removes the dependence on a png hack for RHEL4 users. 17 * Fixed major issue with Google AJAX CDN. Previously users were unable to switch between visual and HTML mode on the edit post page. 15 = New in 0.95 = 16 * Upgraded to CF API 1.5.1. For users within the Rackspace network who have $_ENV['RACKSPACE_SERVICENET'] defined, CDN Tools will now use the servicenet instead of the public network. This should speed sideloading of large files as well as not consuming your bandwidth. 18 17 19 18 [View complete changelog](http://langui.sh/cdn-tools/ "CDN Tools Home"). … … 46 45 47 46 == Changelog == 47 = 0.95 - 10/25/2009 = 48 * Upgraded to CF API 1.5.1. For users within the Rackspace network who have $_ENV['RACKSPACE_SERVICENET'] defined, CDN Tools will now use the servicenet instead of the public network. This should speed sideloading of large files as well as not consuming your bandwidth. 49 48 50 = 0.94 - 10/19/2009 = 49 51 * Upgraded to CF API 1.4. This should resolve some cURL issues users have experienced and removes the dependence on a png hack for RHEL4 users.
Note: See TracChangeset
for help on using the changeset viewer.