Plugin Directory

Changeset 166926


Ignore:
Timestamp:
10/25/2009 09:34:58 PM (16 years ago)
Author:
reaperhulk
Message:

cf api 1.5.1 upgrade + wp2.8.5 compat marker

Location:
cdn-tools/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • cdn-tools/trunk/cdn_classes/cloudfiles/cloudfiles.php

    r164970 r166926  
    298298     * #
    299299     * $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.
    301311     *
    302312     * @param obj $cfs_auth previously authenticated CF_Authentication instance
     313     * @param boolean $servicenet enable/disable access via Rackspace servicenet.
    303314     * @throws AuthenticationException not authenticated
    304315     */
    305     function __construct($cfs_auth)
    306     {
     316    function __construct($cfs_auth, $servicenet=False)
     317    {
     318        if (isset($_ENV['RACKSPACE_SERVICENET']))
     319            $servicenet=True;
    307320        $this->cfs_http = new CF_Http(DEFAULT_CF_API_VERSION);
    308321        $this->cfs_auth = $cfs_auth;
     
    312325            throw new AuthenticationException($e);
    313326        }
    314         $this->cfs_http->setCFAuth($this->cfs_auth);
     327        $this->cfs_http->setCFAuth($this->cfs_auth, $servicenet=$servicenet);
    315328        $this->dbug = False;
    316329    }
  • cdn-tools/trunk/cdn_classes/cloudfiles/cloudfiles_http.php

    r164970 r166926  
    3030require_once("cloudfiles_exceptions.php");
    3131
    32 define("PHP_CF_VERSION", "1.4.0");
     32define("PHP_CF_VERSION", "1.5.0");
    3333define("USER_AGENT", sprintf("PHP-CloudFiles/%s", PHP_CF_VERSION));
    3434define("ACCOUNT_CONTAINER_COUNT", "X-Account-Container-Count");
     
    889889    }
    890890
    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        }
    894898        $this->auth_token = $cfs_auth->auth_token;
    895899        $this->cdnm_url = $cfs_auth->cdnm_url;
  • cdn-tools/trunk/cdntools.php

    r164970 r166926  
    55Description: 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.
    66Author: Paul Kehrer
    7 Version: 0.94
     7Version: 0.95
    88Author URI: http://langui.sh/
    99*/
     
    2828set_time_limit(300); //5 minutes max...
    2929
    30 define('CDNTOOLS_VERSION','0.94');
     30define('CDNTOOLS_VERSION','0.95');
    3131
    3232$dir_array = explode('/',dirname(__FILE__));
  • cdn-tools/trunk/readme.txt

    r164970 r166926  
    44Tags: cdn, sideload, speed, content, distribution, performance, cloudfiles, files, media, accelerator, cloud
    55Requires at least: 2.7
    6 Tested up to: 2.8.4
    7 Stable tag: 0.94
     6Tested up to: 2.8.5
     7Stable tag: 0.95
    88
    99CDN 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).
     
    1313[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.
    1414
    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.
    1817
    1918[View complete changelog](http://langui.sh/cdn-tools/ "CDN Tools Home").
     
    4645
    4746== 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
    4850= 0.94 - 10/19/2009 =
    4951* 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.