From 02ca15aaadc86387c587fc81021ac368512dff8a Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Wed, 7 Apr 2010 02:18:53 -0400 Subject: [PATCH] added new wp-s3 repo --- .gitmodules | 3 + .../wp-content/plugins/tantan-s3/lib/curl.php | 204 -------- blog/wp-content/plugins/tantan-s3/readme.txt | 30 -- .../plugins/tantan-s3/screenshot-1.gif | Bin 8119 -> 0 bytes .../plugins/tantan-s3/screenshot-2.jpg | Bin 8305 -> 0 bytes .../plugins/tantan-s3/wordpress-s3.php | 63 --- .../tantan-s3/wordpress-s3/admin-options.html | 217 -------- .../wordpress-s3/admin-tab-head.html | 32 -- .../tantan-s3/wordpress-s3/admin-tab.html | 98 ---- .../tantan-s3/wordpress-s3/admin-tab.js | 59 --- .../wordpress-s3/admin-version-error.html | 58 --- .../wordpress-s3/class-plugin-public.php | 29 -- .../tantan-s3/wordpress-s3/class-plugin.php | 464 ------------------ .../tantan-s3/wordpress-s3/config-sample.php | 20 - .../tantan-s3/wordpress-s3/database.png | Bin 390 -> 0 bytes .../plugins/tantan-s3/wordpress-s3/index.php | 1 - .../plugins/tantan-s3/wordpress-s3/lib.s3.php | 397 --------------- .../tantan-s3/wordpress-s3/styles/add.png | Bin 733 -> 0 bytes .../wordpress-s3/styles/arrow_left.png | Bin 345 -> 0 bytes .../wordpress-s3/styles/arrow_refresh.png | Bin 685 -> 0 bytes .../wordpress-s3/styles/arrow_right.png | Bin 349 -> 0 bytes .../tantan-s3/wordpress-s3/styles/cancel.png | Bin 587 -> 0 bytes .../wordpress-s3/styles/compress.png | Bin 766 -> 0 bytes .../tantan-s3/wordpress-s3/styles/film.png | Bin 653 -> 0 bytes .../tantan-s3/wordpress-s3/styles/folder.gif | Bin 249 -> 0 bytes .../wordpress-s3/styles/folder_add.png | Bin 668 -> 0 bytes .../tantan-s3/wordpress-s3/styles/page.png | Bin 635 -> 0 bytes .../wordpress-s3/styles/page_code.png | Bin 818 -> 0 bytes .../wordpress-s3/styles/page_excel.png | Bin 817 -> 0 bytes .../wordpress-s3/styles/page_white.png | Bin 294 -> 0 bytes .../styles/page_white_acrobat.png | Bin 591 -> 0 bytes .../wordpress-s3/styles/page_white_excel.png | Bin 663 -> 0 bytes .../wordpress-s3/styles/page_white_php.png | Bin 538 -> 0 bytes .../styles/page_white_powerpoint.png | Bin 588 -> 0 bytes .../wordpress-s3/styles/page_white_text.png | Bin 342 -> 0 bytes .../wordpress-s3/styles/page_white_word.png | Bin 651 -> 0 bytes .../wordpress-s3/styles/page_white_zip.png | Bin 386 -> 0 bytes .../wordpress-s3/styles/page_word.png | Bin 777 -> 0 bytes .../tantan-s3/wordpress-s3/styles/photo.png | Bin 589 -> 0 bytes .../tantan-s3/wordpress-s3/styles/picture.png | Bin 606 -> 0 bytes .../tantan-s3/wordpress-s3/styles/sound.png | Bin 610 -> 0 bytes .../tantan-s3/wordpress-s3/styles/styles.css | 189 ------- blog/wp-content/plugins/wp-s3 | 1 + 43 files changed, 4 insertions(+), 1861 deletions(-) delete mode 100755 blog/wp-content/plugins/tantan-s3/lib/curl.php delete mode 100755 blog/wp-content/plugins/tantan-s3/readme.txt delete mode 100755 blog/wp-content/plugins/tantan-s3/screenshot-1.gif delete mode 100755 blog/wp-content/plugins/tantan-s3/screenshot-2.jpg delete mode 100755 blog/wp-content/plugins/tantan-s3/wordpress-s3.php delete mode 100755 blog/wp-content/plugins/tantan-s3/wordpress-s3/admin-options.html delete mode 100755 blog/wp-content/plugins/tantan-s3/wordpress-s3/admin-tab-head.html delete mode 100755 blog/wp-content/plugins/tantan-s3/wordpress-s3/admin-tab.html delete mode 100755 blog/wp-content/plugins/tantan-s3/wordpress-s3/admin-tab.js delete mode 100755 blog/wp-content/plugins/tantan-s3/wordpress-s3/admin-version-error.html delete mode 100755 blog/wp-content/plugins/tantan-s3/wordpress-s3/class-plugin-public.php delete mode 100755 blog/wp-content/plugins/tantan-s3/wordpress-s3/class-plugin.php delete mode 100755 blog/wp-content/plugins/tantan-s3/wordpress-s3/config-sample.php delete mode 100755 blog/wp-content/plugins/tantan-s3/wordpress-s3/database.png delete mode 100755 blog/wp-content/plugins/tantan-s3/wordpress-s3/index.php delete mode 100755 blog/wp-content/plugins/tantan-s3/wordpress-s3/lib.s3.php delete mode 100755 blog/wp-content/plugins/tantan-s3/wordpress-s3/styles/add.png delete mode 100755 blog/wp-content/plugins/tantan-s3/wordpress-s3/styles/arrow_left.png delete mode 100755 blog/wp-content/plugins/tantan-s3/wordpress-s3/styles/arrow_refresh.png delete mode 100755 blog/wp-content/plugins/tantan-s3/wordpress-s3/styles/arrow_right.png delete mode 100755 blog/wp-content/plugins/tantan-s3/wordpress-s3/styles/cancel.png delete mode 100755 blog/wp-content/plugins/tantan-s3/wordpress-s3/styles/compress.png delete mode 100755 blog/wp-content/plugins/tantan-s3/wordpress-s3/styles/film.png delete mode 100755 blog/wp-content/plugins/tantan-s3/wordpress-s3/styles/folder.gif delete mode 100755 blog/wp-content/plugins/tantan-s3/wordpress-s3/styles/folder_add.png delete mode 100755 blog/wp-content/plugins/tantan-s3/wordpress-s3/styles/page.png delete mode 100755 blog/wp-content/plugins/tantan-s3/wordpress-s3/styles/page_code.png delete mode 100755 blog/wp-content/plugins/tantan-s3/wordpress-s3/styles/page_excel.png delete mode 100755 blog/wp-content/plugins/tantan-s3/wordpress-s3/styles/page_white.png delete mode 100755 blog/wp-content/plugins/tantan-s3/wordpress-s3/styles/page_white_acrobat.png delete mode 100755 blog/wp-content/plugins/tantan-s3/wordpress-s3/styles/page_white_excel.png delete mode 100755 blog/wp-content/plugins/tantan-s3/wordpress-s3/styles/page_white_php.png delete mode 100755 blog/wp-content/plugins/tantan-s3/wordpress-s3/styles/page_white_powerpoint.png delete mode 100755 blog/wp-content/plugins/tantan-s3/wordpress-s3/styles/page_white_text.png delete mode 100755 blog/wp-content/plugins/tantan-s3/wordpress-s3/styles/page_white_word.png delete mode 100755 blog/wp-content/plugins/tantan-s3/wordpress-s3/styles/page_white_zip.png delete mode 100755 blog/wp-content/plugins/tantan-s3/wordpress-s3/styles/page_word.png delete mode 100755 blog/wp-content/plugins/tantan-s3/wordpress-s3/styles/photo.png delete mode 100755 blog/wp-content/plugins/tantan-s3/wordpress-s3/styles/picture.png delete mode 100755 blog/wp-content/plugins/tantan-s3/wordpress-s3/styles/sound.png delete mode 100755 blog/wp-content/plugins/tantan-s3/wordpress-s3/styles/styles.css create mode 160000 blog/wp-content/plugins/wp-s3 diff --git a/.gitmodules b/.gitmodules index b069f43..8164817 100644 --- a/.gitmodules +++ b/.gitmodules @@ -13,3 +13,6 @@ [submodule "blog/wp-content/plugins/wp-async-google-analytics"] path = blog/wp-content/plugins/wp-async-google-analytics url = git://github.com/kennethreitz/wp-async-google-analytics.git +[submodule "blog/wp-content/plugins/wp-s3"] + path = blog/wp-content/plugins/wp-s3 + url = git://github.com/kennethreitz/wp-s3.git diff --git a/blog/wp-content/plugins/tantan-s3/lib/curl.php b/blog/wp-content/plugins/tantan-s3/lib/curl.php deleted file mode 100755 index f2e0976..0000000 --- a/blog/wp-content/plugins/tantan-s3/lib/curl.php +++ /dev/null @@ -1,204 +0,0 @@ -curl = curl_init(); - $this->postData = array(); - $this->cookies = array(); - $this->headers = array(); - if (!empty($url)) { - $this->setURL($url); - } else { - $this->setURL(false); - } - foreach ($params as $key => $value) { - $this->{'_' . $key} = $value; - } - - $this->addHeader('Connection', 'close'); - - // We don't do keep-alives by default - $this->addHeader('Connection', 'close'); - - // Basic authentication - if (!empty($this->_user)) { - $this->addHeader('Authorization', 'Basic ' . base64_encode($this->_user . ':' . $this->_pass)); - } - - // Proxy authentication (see bug #5913) - if (!empty($this->_proxy_user)) { - $this->addHeader('Proxy-Authorization', 'Basic ' . base64_encode($this->_proxy_user . ':' . $this->_proxy_pass)); - } - - } - - function addHeader($header, $value) { - $this->headers[$header] = $value; - } - - function setMethod($method) { - switch ($method) { - case 'DELETE': - curl_setopt($this->curl, CURLOPT_CUSTOMREQUEST, 'DELETE'); - break; - case HTTP_REQUEST_METHOD_PUT: - case 'PUT': - curl_setopt($this->curl, CURLOPT_PUT, true); - //CURLOPT_INFILE CURLOPT_INFILESIZE - break; - case HTTP_REQUEST_METHOD_POST: - case 'POST': - curl_setopt($this->curl, CURLOPT_POST, true); - break; - default: - case 'GET': - curl_setopt($this->curl, CURLOPT_HTTPGET, true); - break; - case 'HEAD': - curl_setopt($this->curl, CURLOPT_CUSTOMREQUEST, 'HEAD'); - break; - } - } - function setURL($url) { - $this->url = $url; - } - function addPostData($name, $value) { - $this->postData[$name] = $value; - } - function addCookie($name, $value) { - $this->cookies[$name] = array('name' => $name, 'value' => $value); - } - function sendRequest() { - $headers = array( - "Accept: *.*", - ); - - foreach ($this->headers as $k=>$h) { - $headers[] = "$k: $h"; - } - - if (count($this->cookies) > 0) { - $cookieVars = ''; - foreach ($this->cookies as $cookie) { - //$headers[] = "Cookie: ".$cookie['name'].'='.$cookie['value']; - $cookieVars .= ''.$cookie['name'].'='.$cookie['value'].'; '; - } - curl_setopt($this->curl, CURLOPT_COOKIE, $cookieVars); - //print_r($cookieVars); - } - - if (count($this->postData) > 0) { // if a POST - $postVars = ''; - foreach ($this->postData as $key=>$value) { - $postVars .= $key.'='.urlencode($value).'&'; - } - // *** TODO *** - // weird, libcurl doesnt seem to POST correctly - curl_setopt($this->curl, CURLOPT_POST, true); - curl_setopt($this->curl, CURLOPT_POSTFIELDS, $postVars); - - //curl_setopt($this->curl, CURLOPT_HTTPGET, true); - //$this->url .= '?'.$postVars; - - - } else { - curl_setopt($this->curl, CURLOPT_HTTPGET, true); - } - curl_setopt($this->curl, CURLOPT_URL, $this->url); - curl_setopt($this->curl, CURLOPT_FOLLOWLOCATION, false); - curl_setopt($this->curl, CURLOPT_HEADER, true); - curl_setopt($this->curl, CURLOPT_HTTPHEADER, $headers); - curl_setopt($this->curl, CURLOPT_RETURNTRANSFER, true); - curl_setopt($this->curl, CURLOPT_SSL_VERIFYPEER, false); - $this->raw = curl_exec($this->curl); - $this->response = $this->_parseResponse($this->raw); - return true; // hmm no error checking for now - } - - function getResponseHeader($header=false) { - if ($header) { - return $this->response['header'][$header]; - } else { - return $this->response['header']; - } - } - function getResponseCookies() { - $hdrCookies = array(); - foreach ($this->response['header'] as $key => $value) { - if (strtolower($key) == 'set-cookie') { - $hdrCookies = array_merge($hdrCookies, explode("\n", $value)); - } - } - //$hdrCookies = explode("\n", $this->response['header']['Set-Cookie']); - $cookies = array(); - - foreach ($hdrCookies as $cookie) { - if ($cookie) { - list($name, $value) = explode('=', $cookie, 2); - list($value, $domain, $path, $expires) = explode(';', $value); - $cookies[$name] = array('name' => $name, 'value' => $value); - } - } - return $cookies; - } - function getResponseBody() { - return $this->response['body']; - } - function getResponseCode() { - return $this->response['code']; - } - function getResponseRaw() { - return $this->raw; - } - function clearPostData($var=false) { - if (!$var) { - $this->postData = array(); - } else { - unset($this->postData[$var]); - } - } - - function _parseResponse($this_response) { - if (substr_count($this_response, 'HTTP/1.') > 1) { // yet another weird bug. CURL seems to be appending response bodies together - $chunks = preg_split('@(HTTP/[0-9]\.[0-9] [0-9]{3}.*\n)@', $this_response, -1, PREG_SPLIT_DELIM_CAPTURE); - $this_response = array_pop($chunks); - $this_response = array_pop($chunks) . $this_response; - - } - - list($response_headers, $response_body) = explode("\r\n\r\n", $this_response, 2); - $response_header_lines = explode("\r\n", $response_headers); - - $http_response_line = array_shift($response_header_lines); - if (preg_match('@^HTTP/[0-9]\.[0-9] 100@',$http_response_line, $matches)) { - return $this->_parseResponse($response_body); - } else if(preg_match('@^HTTP/[0-9]\.[0-9] ([0-9]{3})@',$http_response_line, $matches)) { - $response_code = $matches[1]; - } - $response_header_array = array(); - foreach($response_header_lines as $header_line) { - list($header,$value) = explode(': ', $header_line, 2); - $response_header_array[$header] .= $value."\n"; - } - return array("code" => $response_code, "header" => $response_header_array, "body" => $response_body); - } -} -?> \ No newline at end of file diff --git a/blog/wp-content/plugins/tantan-s3/readme.txt b/blog/wp-content/plugins/tantan-s3/readme.txt deleted file mode 100755 index f343345..0000000 --- a/blog/wp-content/plugins/tantan-s3/readme.txt +++ /dev/null @@ -1,30 +0,0 @@ -=== Plugin Name === -Contributors: joetan -Tags: uploads, amazon, s3, mirror, admin, media -Requires at least: 2.3 -Tested up to: 2.7 -Stable tag: 0.3.4 - -Allows you to mirror your WordPress media uploads over to Amazon S3 for storage and delivery. - -== Description == - -This WordPress plugin allows you to use Amazon's Simple Storage Service to host your media for your WordPress powered blog. - -Amazon S3 is a cheap and cost effective way to scale your site to easily handle large spikes in traffic (such as from Digg) without having to go through the expense of setting up the infrastructure for a content delivery network. - -Once setup, this plugin transparently integrates with your WordPress blog. File uploads are automatically saved into your Amazon S3 bucket without any extra steps. Once saved, these files will be delivered by Amazon S3, instead of your web host. Any image thumbnails that get created are saved to Amazon S3 too. You'll also find an "Amazon S3" tab next to your regular "Upload" tab, which allows you to easily browse and manage files that were not upload via WordPress. - -== Installation == - -1. Upload `tantan-s3` to the `/wp-content/plugins/` directory -1. Activate the plugin through the 'Plugins' menu in WordPress -1. Configure the plugin in the 'Options' (or 'Settings') screen by following the onscreen prompts. - -## Documentation -If you need more help installing and configuring the plugin, [see here for more information](http://code.google.com/p/wordpress-s3/wiki/Documentation). - -== Screenshots == - -1. The settings screen for the plugin -2. Browse files in a Amazon S3 bucket diff --git a/blog/wp-content/plugins/tantan-s3/screenshot-1.gif b/blog/wp-content/plugins/tantan-s3/screenshot-1.gif deleted file mode 100755 index 7e491f7ecf0318f4559db88b153689b024f6487a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 8119 zcmV;oA4uRwNk%w1VLbwk0mJ|R|Ns9pGczTFt<=!SfPjF^%*;SQKmY&$adC0;^YfOL zmWGCg($dnnxVY!%=gP{;uCA`5qod&9;O*`0+1c5`!omOm00000000000000000000 z000000000000000A^8LV00000EC2ui06hYY0RRR6ARvxpX`X1Ru59bRa4gSsZQppV z?|kq7z@TtQEE41ejE#*3JbUr%~>*n)e#lW9vr(i zzypu~hE+g;4pRiUB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l@*sJd}4By^7$b7aks%{;xE19d7V)Hak} ztckX&x^N}OeI+T>aZ;MG$Y5a<;2Ig6+Ur@2P9sdlnR_R!6%9_J@dbKe9!|FydKTQ% zOs;kcFBS5_mvtr!@H3N`g4C^0#&)SFBLCHKlx9UsT#eNAp)7%|%Dp^BMX!!BugVs> zn}#|0j!W)7#6q7(jrjYQ8W7OQ696ZVzj2pVvVj2HF*MF?ti5NdL<3*pRkgZ0|EBQG z4a@|^)6dA@MXVlN+CSErs4wqS9y8os<?SNnnyNrh=#*z)uu_cXvZp3B z`dseJ)idt-Q;PKt=jxV#a%0>G2s&|wIAW8h;ZV+o%9mSPLWB&}v^Pp?Qk5c~d*ihG z7Z%%%Lq_Zky0pNImRDTA&`G<<-TS&$X0(kpC!LpQcR_!DO&U73W}$?H-paBRSYEL< zPk`Z-`cW~sucHsB$uay%weJuB=`S7DSq0GCX`;vl#u@d(Akc)7rNaRkS-xuW#U5S* zz=Nf3g3^jLlHD@g%q(7Mo>@3_GW10us=b0j>HHNTCuSZZ1n0C>^LU%(k`|k7n5NX# zY=LgTs5sX`S4>}ot-pjgMOxrCo@ z%BF0=a$8#SHCO^FnLVldY^03U7o-SA-JVihgVfOmu}%QShEcCMwOefk7qU@KOVu%c zl_^VU{Zfm&`ZvvDvTE^#&})q3e$5b*4jLNu=qR*MoZ7IFZ_GiKEx~KKr1DOr_!*m; z?%B^oOBF$N6ekxLe= 0) { // just load in admin - $ver = get_bloginfo('version'); - if (version_compare(phpversion(), '5.0', '>=') && version_compare($ver, '2.1', '>=')) { - require_once(dirname(__FILE__).'/wordpress-s3/class-plugin.php'); - $TanTanWordPressS3Plugin = new TanTanWordPressS3Plugin(); - } elseif (ereg('wordpress-mu-', $ver)) { - require_once(dirname(__FILE__).'/wordpress-s3/class-plugin.php'); - $TanTanWordPressS3Plugin = new TanTanWordPressS3Plugin(); - } else { - class TanTanWordPressS3Error { - function TanTanWordPressS3Error() {add_action('admin_menu', array(&$this, 'addhooks'));} - function addhooks() {add_options_page('Amazon S3', 'Amazon S3', 10, __FILE__, array(&$this, 'admin'));} - function admin(){include(dirname(__FILE__).'/wordpress-s3/admin-version-error.html');} - } - $error = new TanTanWordPressS3Error(); - } -} else { - require_once(dirname(__FILE__).'/wordpress-s3/class-plugin-public.php'); - $TanTanWordPressS3Plugin = new TanTanWordPressS3PluginPublic(); -} -?> \ No newline at end of file diff --git a/blog/wp-content/plugins/tantan-s3/wordpress-s3/admin-options.html b/blog/wp-content/plugins/tantan-s3/wordpress-s3/admin-options.html deleted file mode 100755 index dc463e1..0000000 --- a/blog/wp-content/plugins/tantan-s3/wordpress-s3/admin-options.html +++ /dev/null @@ -1,217 +0,0 @@ - -

- -

- - - - - -
-

Amazon S3 Plugin for WordPress

- - - - -

-This plugin allows you to easily upload, retrieve, and link to files stored on Amazon's S3 web service from within WordPress. - -

-

Amazon S3 Setup: If you don't have an Amazon S3 account yet, here's a quick video tutorial that'll show -you how to set one up. Sign up for Amazon S3 > -

- -

Plugin Installation and Usage: Just follow the onscreen prompts to link this plugin to your Amazon S3 account.

- - -
-If you find this plugin helpful, please consider donating a few dollars to support this plugin. Thanks! -

- -
- - - - - - - - - - - - - - -
-Amount: $
-
-
- -
- -
- -
- - -

-This plugin is provided by TanTanNoodles -and licensed free of charge for you to use under the GPL. -This plugin is unsupported and comes with no official technical support. -

-

-You can check the following pages for the latest updates to this plugin, along with any unofficial technical support:
-
-Release Page: tantannoodles.com/toolkit/wordpress-s3/
-Project Page: code.google.com/p/wordpress-s3/
-

-

-RSS Updates: Subscribe to the TanTanToolkit feed and get notified when there's an update to this plugin. -

- - - - -
-Amazon S3 Settings - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
AWS Access Key ID:
Secret Key:
-Login to Amazon.com to retrieve your Secret Key >
-

- -

-
Use this bucket: -
-
Host name settings: - /> - (more info) -
File Uploads: - /> - -
Note: Uncheck this to revert back to using your own web host for storage at anytime. -
Expires Header: - /> - -
File Permissions: - /> - -
  -Uploading files directly to your Amazon S3 account is not currently supported by this plugin (uploads must temporarily pass through your blog). -But, there are a some free tools to help you upload and manage your files on directly on Amazon S3. See this page for some suggested tools. -
-

- -

-
- - - -
- - - - - - -
\ No newline at end of file diff --git a/blog/wp-content/plugins/tantan-s3/wordpress-s3/admin-tab-head.html b/blog/wp-content/plugins/tantan-s3/wordpress-s3/admin-tab-head.html deleted file mode 100755 index 1eda8bd..0000000 --- a/blog/wp-content/plugins/tantan-s3/wordpress-s3/admin-tab-head.html +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - diff --git a/blog/wp-content/plugins/tantan-s3/wordpress-s3/admin-tab.html b/blog/wp-content/plugins/tantan-s3/wordpress-s3/admin-tab.html deleted file mode 100755 index 9d86c60..0000000 --- a/blog/wp-content/plugins/tantan-s3/wordpress-s3/admin-tab.html +++ /dev/null @@ -1,98 +0,0 @@ - - -
- -
- - - -back -forward - -refresh -upload -new folder - - -home / '; -$path = ''; -$paths = preg_split('/\//', $prefix, 100, PREG_SPLIT_NO_EMPTY); -$numPaths = count($paths); -$i=0; -foreach ($paths as $name) if ($name) { - $path .= $name .'/'; - $isLast = (++$i) >= $numPaths; - echo ''.$name.' '.(!$isLast ? ' / ' : ' '); -} -?> - - - - -
-
- - - -
-
-
-
- - -
-
- -
-
-
-
    - -
  • - -
-
-
-
- -
-
-
\ No newline at end of file diff --git a/blog/wp-content/plugins/tantan-s3/wordpress-s3/admin-tab.js b/blog/wp-content/plugins/tantan-s3/wordpress-s3/admin-tab.js deleted file mode 100755 index 7da8539..0000000 --- a/blog/wp-content/plugins/tantan-s3/wordpress-s3/admin-tab.js +++ /dev/null @@ -1,59 +0,0 @@ - -function s3_insertImage(imgURL, title) { - if (!title) title = ''; - return s3_insert(''+title+' '); -} - -function s3_insertLink(label, url) { - var useBittorrent = document.getElementById('useBittorrent').checked - return s3_insert('' + label + ' '); -} -function s3_insert(h) { - var win = window.dialogArguments || opener || parent || top; - - if (typeof win.send_to_editor == 'function') { - win.send_to_editor(h); - if (typeof win.tb_remove == 'function') - win.tb_remove(); - return false; - } - tinyMCE = win.tinyMCE; - if ( typeof tinyMCE != 'undefined' && tinyMCE.getInstanceById('content') ) { - tinyMCE.selectedInstance.getWin().focus(); - tinyMCE.execCommand('mceInsertContent', false, h); - } else win.edInsertContent(win.edCanvas, h); - - return false; -} -function s3_toggleUpload() { - document.getElementById('create-form').style.display='none'; - - var div = document.getElementById('upload-form'); - if (div.style.display == 'block') { - div.style.display = 'none'; - } else { - div.style.display = 'block'; - } - return false; -} -function s3_toggleCreateFolder() { - document.getElementById('upload-form').style.display='none'; - - var div = document.getElementById('create-form'); - if (div.style.display == 'block') { - div.style.display = 'none'; - } else { - div.style.display = 'block'; - document.getElementById('newfolder').focus(); - } - return false; - - - var div = document.getElementById('createFolder'); - if (div.className != 'create') { - div.className = 'create'; - document.getElementById('newfolder').focus(); - } else { - div.className = ''; - } -} diff --git a/blog/wp-content/plugins/tantan-s3/wordpress-s3/admin-version-error.html b/blog/wp-content/plugins/tantan-s3/wordpress-s3/admin-version-error.html deleted file mode 100755 index c3c1cff..0000000 --- a/blog/wp-content/plugins/tantan-s3/wordpress-s3/admin-version-error.html +++ /dev/null @@ -1,58 +0,0 @@ - -

- -

- - - - - -
-

Amazon S3 Plugin for WordPress

-
- Switch to a better web host!
- Use the coupon code - TANTAN50COUPON - when you signup to get a $50 discount, and you'll - help support this plugin in the process. - That works out to be less than $6.00 per month for the first year. - -
-

Error

-

-Sorry, this plugin requires at least PHP 5.0 and WordPress 2.1 in order to work correctly. -Please contact your systems administrator about getting your version of PHP and/or WordPress upgraded. -

-

-Your PHP version:
-Your WordPress version: -
-

- -

-Download PHP
-Download WordPress
-

-
\ No newline at end of file diff --git a/blog/wp-content/plugins/tantan-s3/wordpress-s3/class-plugin-public.php b/blog/wp-content/plugins/tantan-s3/wordpress-s3/class-plugin-public.php deleted file mode 100755 index 32ec445..0000000 --- a/blog/wp-content/plugins/tantan-s3/wordpress-s3/class-plugin-public.php +++ /dev/null @@ -1,29 +0,0 @@ -options = array(); - if (file_exists(dirname(__FILE__).'/config.php')) { - require_once(dirname(__FILE__).'/config.php'); - if ($TanTanWordPressS3Config) $this->options = $TanTanWordPressS3Config; - } - add_action('plugins_loaded', array(&$this, 'addhooks')); - } - function addhooks() { - add_filter('wp_get_attachment_url', array(&$this, 'wp_get_attachment_url'), 9, 2); - } - function wp_get_attachment_url($url, $postID) { - if (!$this->options) $this->options = get_option('tantan_wordpress_s3'); - - if ($this->options['wp-uploads'] && ($amazon = get_post_meta($postID, 'amazonS3_info', true))) { - $accessDomain = $this->options['virtual-host'] ? $amazon['bucket'] : $amazon['bucket'].'.s3.amazonaws.com'; - return 'http://'.$accessDomain.'/'.$amazon['key']; - } else { - return $url; - } - } -} -?> \ No newline at end of file diff --git a/blog/wp-content/plugins/tantan-s3/wordpress-s3/class-plugin.php b/blog/wp-content/plugins/tantan-s3/wordpress-s3/class-plugin.php deleted file mode 100755 index 6c76166..0000000 --- a/blog/wp-content/plugins/tantan-s3/wordpress-s3/class-plugin.php +++ /dev/null @@ -1,464 +0,0 @@ -options['hideAmazonS3UploadTab']) { - add_action('load-upload.php', array(&$this, 'addPhotosTab')); // WP < 2.5 - - // WP >= 2.5 - add_action('media_buttons_context', array(&$this, 'media_buttons')); - add_action('media_upload_tantan-wordpress-s3', array(&$this, 'media_upload_content')); - } - add_action('activate_tantan/wordpress-s3.php', array(&$this, 'activate')); - if ($_GET['tantanActivate'] == 'wordpress-s3') { - $this->showConfigNotice(); - } - $this->photos = array(); - $this->albums = array(); - $this->perPage = 1000; - - - } - - // this should install the javascripts onto the user's s3.amazonaws.com account - - function installAjax() { - $js = array('S3Ajax.js'); - } - - function activate() { - wp_redirect('plugins.php?tantanActivate=wordpress-s3'); - exit; - } - function deactivate() {} - - function showConfigNotice() { - add_action('admin_notices', create_function('', 'echo \'

Amazon S3 Plugin for WordPress activated. Configure the plugin >

\';')); - } - - function settings() { - add_options_page('Amazon S3', 'Amazon S3', 10, __FILE__, array(&$this, 'admin')); - $this->version_check(); - } - function addhooks() { - parent::addhooks(); - if (!$_POST['disable_amazonS3']) { - add_filter('wp_update_attachment_metadata', array(&$this, 'wp_update_attachment_metadata'), 9, 2); - //can't delete mirrored files just yet - //add_filter('wp_get_attachment_metadata', array(&$this, 'wp_get_attachment_metadata')); - //add_filter('wp_delete_file', array(&$this, 'wp_delete_file')); - } - } - function version_check() { - global $TanTanVersionCheck; - if (is_object($TanTanVersionCheck)) { - $data = get_plugin_data(dirname(__FILE__).'/../wordpress-s3.php'); - $TanTanVersionCheck->versionCheck(668, $data['Version']); - } - } - function admin() { - if ($_POST['action'] == 'save') { - if (!is_array($_POST['options'])) $_POST['options'] = array(); - $options = get_option('tantan_wordpress_s3'); - - $_POST['options']['key'] = trim($_POST['options']['key']); - $_POST['options']['secret'] = trim($_POST['options']['secret']); - - if (!$_POST['options']['secret'] || ereg('not shown', $_POST['options']['secret'])) { - $_POST['options']['secret'] = $options['secret']; - } - - update_option('tantan_wordpress_s3', $_POST['options']); - - if ($_POST['options']['bucket']) { - $options = get_option('tantan_wordpress_s3'); - require_once(dirname(__FILE__).'/lib.s3.php'); - $s3 = new TanTanS3($options['key'], $options['secret']); - - if (!in_array($_POST['options']['bucket'], $s3->listBuckets())) { - if ($s3->createBucket($_POST['options']['bucket'],'public-read')) { - $message = "Saved settings and created a new bucket: ".$_POST['options']['bucket']; - } else { - $error = "There was an error creating the bucket: ".$_POST['options']['bucket']; - } - } else { - $message = "Saved settings."; - } - } else { - $message = "Saved Amazon S3 authentication information. "; - } - if (function_exists('dns_get_record') && $_POST['options']['virtual-host']) { - $record = dns_get_record($_POST['options']['bucket']); - if (($record[0]['type'] != 'CNAME') || ($record[0]['target'] != $_POST['options']['bucket'].'s3.amazonaws.com')) { - $error = "Warning: Your DNS doesn't seem to be setup correctly to virtually host the domain ".$_POST['options']['bucket'].". ". - "Double check and make sure the following entry is added to your DNS. ". - "More info >". - "

". - "".$_POST['options']['bucket']." CNAME ".$_POST['options']['bucket'].".s3.amazonaws.com.". - "

". - "You can ignore this message if you're sure everything is setup correctly."; - } - } - } - $options = get_option('tantan_wordpress_s3'); - if ($options['key'] && $options['secret']) { - require_once(dirname(__FILE__).'/lib.s3.php'); - $s3 = new TanTanS3($options['key'], $options['secret']); - if (!($buckets = $s3->listBuckets())) { - $error = $this->getErrorMessage($s3->parsed_xml, $s3->responseCode); - } - - $s3->initCacheTables(); - - } elseif ($options['key']) { - $error = "Please enter your Secret Access Key."; - } elseif ($options['secret']) { - $error = "Please enter your Access Key ID."; - } - - - include(dirname(__FILE__).'/admin-options.html'); - } - - - /* - Delete corresponding file from Amazon S3 - */ - function wp_delete_file($file) { - return $file; - if (!$this->options) $this->options = get_option('tantan_wordpress_s3'); - - if (!$this->options['wp-uploads'] || !$this->options['bucket'] || !$this->options['secret']) { - return $file; - } - - if (is_array($this->meta)) { - require_once(dirname(__FILE__).'/lib.s3.php'); - $this->s3 = new TanTanS3($this->options['key'], $this->options['secret']); - $this->s3->setOptions($this->options); - if (deleteObject($this->meta['bucket'], $this->meta['key'])) { - - } - $accessDomain = $this->options['virtual-host'] ? $this->meta['bucket'] : $this->meta['bucket'].'.s3.amazonaws.com'; - return $file; - //return 'http://'.$accessDomain.'/'.$amazon['key']; - - } - return $file; - } - function wp_get_attachment_metadata($data=false, $postID=false) { - if (is_numeric($postID)) $this->meta = get_post_meta($postID, 'amazonS3_info', true); - return $data; - } - /* - Handle uploads through default WordPress upload handler - */ - function wp_update_attachment_metadata($data, $postID) { - if (!$this->options) $this->options = get_option('tantan_wordpress_s3'); - - if (!$this->options['wp-uploads'] || !$this->options['bucket'] || !$this->options['secret']) { - return $data; - } - - add_filter('option_siteurl', array(&$this, 'upload_path')); - $uploadDir = wp_upload_dir(); - remove_filter('option_siteurl', array(&$this, 'upload_path')); - $parts = parse_url($uploadDir['url']); - - $prefix = substr($parts['path'], 1) .'/'; - $type = get_post_mime_type($postID); - - $data['file'] = get_attached_file($postID, true); - - if (file_exists($data['file'])) { - $file = array( - 'name' => basename($data['file']), - 'type' => $type, - 'tmp_name' => $data['file'], - 'error' => 0, - 'size' => filesize($data['file']), - ); - - require_once(dirname(__FILE__).'/lib.s3.php'); - $this->s3 = new TanTanS3($this->options['key'], $this->options['secret']); - $this->s3->setOptions($this->options); - - if ($this->s3->putObjectStream($this->options['bucket'], $prefix.$file['name'], $file)) { - - if ($data['thumb']) { - $thumbpath = str_replace( basename( $data['file'] ), $data['thumb'], $data['file'] ); - $filethumb = array( - 'name' => $data['thumb'], - 'type' => $type, - 'tmp_name' => $thumbpath, - 'size' => filesize($thumbpath), - ); - - $this->s3->putObjectStream($this->options['bucket'], $prefix.$filethumb['name'], $filethumb); - } elseif (count($data['sizes'])) foreach ($data['sizes'] as $altName => $altSize) { - $altPath = str_replace( basename( $data['file'] ), $altSize['file'], $data['file'] ); - $altMeta = array( - 'name' => $altSize['file'], - 'type' => $type, - 'tmp_name' => $altPath, - 'size' => filesize($altPath), - ); - $this->s3->putObjectStream($this->options['bucket'], $prefix.$altMeta['name'], $altMeta); - - } - - - delete_post_meta($postID, 'amazonS3_info'); - add_post_meta($postID, 'amazonS3_info', array( - 'bucket' => $this->options['bucket'], - 'key' => $prefix.$file['name'] - )); - } else { - - } - } - return $data; - } - function wp_handle_upload($info) { - return $info; - } - - // figure out the correct path to upload to, for wordpress mu installs - function upload_path($path='') { - global $current_blog; - if (!$current_blog) return $path; - if ($current_blog->path == '/' && ($current_blog->blog_id != 1)) { - $dir = substr($current_blog->domain, 0, strpos($current_blog->domain, '.')); - } else { - // prepend a directory onto the path for vhosted blogs - if (constant("VHOST") != 'yes') { - $dir = ''; - } else { - $dir = $current_blog->path; - } - } - //echo trim($path.'/'.$dir, '/'); - if ($path == '') { - $path = $current_blog->path; - } - return trim($path.'/'.$dir, '/'); - } - function media_buttons($context) { - global $post_ID, $temp_ID; - $dir = dirname(__FILE__); - $pluginRootURL = get_option('siteurl').substr($dir, strpos($dir, '/wp-content')); - $image_btn = $pluginRootURL.'/database.png'; - $image_title = 'Amazon S3'; - - $uploading_iframe_ID = (int) (0 == $post_ID ? $temp_ID : $post_ID); - - $media_upload_iframe_src = "media-upload.php?post_id=$uploading_iframe_ID"; - $out = ' '.$image_title.''; - return $context.$out; - } - function media_upload_content() { - $this->upload_files_tantan_amazons3(); // process any uploaded files or new folders - - if (!$this->options) $this->options = get_option('tantan_wordpress_s3'); - //if (!is_object($this->s3)) { - require_once(dirname(__FILE__).'/lib.s3.php'); - $this->s3 = new TanTanS3($this->options['key'], $this->options['secret']); - $this->s3->setOptions($this->options); - //} - - add_action('admin_print_scripts', array(&$this, 'upload_tabs_scripts')); - wp_iframe(array(&$this, 'tab')); - } - /* - Display tabs - */ - function addPhotosTab() { - add_filter('wp_upload_tabs', array(&$this, 'wp_upload_tabs')); - add_action('upload_files_tantan_amazons3', array(&$this, 'upload_files_tantan_amazons3')); - add_action('upload_files_upload', array(&$this, 'upload_files_upload')); - add_action('admin_print_scripts', array(&$this, 'upload_tabs_scripts')); - } - function wp_upload_tabs ($array) { - /* - 0 => tab display name, - 1 => required cap, - 2 => function that produces tab content, - 3 => total number objects OR array(total, objects per page), - 4 => add_query_args - */ - if (!$this->options) $this->options = get_option('tantan_wordpress_s3'); - require_once(dirname(__FILE__).'/lib.s3.php'); - $this->s3 = new TanTanS3($this->options['key'], $this->options['secret']); - - - if ($this->options['key'] && $this->options['secret'] && $this->options['bucket']) { - $paged = array(); - $args = array('prefix' => ''); // this doesn't do anything in WP 2.1.2 - $tab = array( - 'tantan_amazons3' => array('Amazon S3', 'upload_files', array(&$this, 'tab'), $paged, $args), - //'tantan_amazons3_upload' => array('Upload S3', 'upload_files', array(&$this, 'upload'), $paged, $args), - ); - - return array_merge($array, $tab); - } else { - return $array; - } - } - - function upload_tabs_scripts() { - //wp_enqueue_script('prototype'); - if (!$this->options) $this->options = get_option('tantan_wordpress_s3'); - - $accessDomain = $this->options['virtual-host'] ? $this->options['bucket'] : $this->options['bucket'].'.s3.amazonaws.com'; - - include(dirname(__FILE__).'/admin-tab-head.html'); - } - function upload_files_upload() { - // javascript here to inject javascript and allow the upload from to post to amazon s3 instead - } - function upload_files_tantan_amazons3() { - global $current_blog; - $restrictPrefix = ''; // restrict to a selected prefix in current bucket - if ($current_blog) { // if wordpress mu - $restrictPrefix = ltrim($this->upload_path().'/files/', '/'); - } - - if (is_array($_FILES['newfile'])) { - $file = $_FILES['newfile']; - if (!$this->options) $this->options = get_option('tantan_wordpress_s3'); - require_once(dirname(__FILE__).'/lib.s3.php'); - $this->s3 = new TanTanS3($this->options['key'], $this->options['secret']); - $this->s3->setOptions($this->options); - $this->s3->putObjectStream($this->options['bucket'], $restrictPrefix.$_GET['prefix'].$file['name'], $file); - } - if ($_POST['newfolder']) { - if (!$this->options) $this->options = get_option('tantan_wordpress_s3'); - require_once(dirname(__FILE__).'/lib.s3.php'); - $this->s3 = new TanTanS3($this->options['key'], $this->options['secret']); - - $this->s3->putPrefix($this->options['bucket'], $restrictPrefix.$_POST['prefix'].$_POST['newfolder']); - } - } - function tab() { - global $current_blog; - $restrictPrefix = ''; // restrict to a selected prefix in current bucket - if ($current_blog) { // if wordpress mu - $restrictPrefix = ltrim($this->upload_path().'/files/', '/'); - } - - $offsetpage = (int) $_GET['paged']; - if (!$offsetpage) $offsetpage = 1; - - if (!$this->options['key'] || !$this->options['secret']) { - return; - } - $bucket = $this->options['bucket']; - $accessDomain = $this->options['virtual-host'] ? $this->options['bucket'] : $this->options['bucket'].'.s3.amazonaws.com'; - - $prefix = $_GET['prefix'] ? $_GET['prefix'] : ''; - list($prefixes, $keys, $meta, $privateKeys) = $this->getKeys($restrictPrefix.$prefix); - if ($restrictPrefix) { - foreach ($prefixes as $k=>$v) { - $prefixes[$k] = str_replace($restrictPrefix, '', $v); - } - } - include(dirname(__FILE__).'/admin-tab.html'); - } - - function getErrorMessage($parsed_xml, $responseCode){ - $message = 'Error '.$responseCode.': ' . $parsed_xml->Message; - if(isset($parsed_xml->StringToSignBytes)) $message .= "
Hex-endcoded string to sign: " . $parsed_xml->StringToSignBytes; - return $message; - } - - // turns array('a', 'b', 'c') into $array['a']['b']['c'] - function mapKey($keys, $path) { - $k =& $keys; - $size = count($path) - 1; - $workingPath = '/'; - foreach ($path as $i => $p) { - if ($i === $size) { - $k['_size'] = isset($k['_size']) ? $k['_size'] + 1 : 1; - $k['_path'] = $workingPath; - $k['_objects'][$k['_size']] = $p; - } else { - $k =& $k[$p]; // traverse the tree - $workingPath .= $p . '/'; - } - } - return $keys; - } - - // should probably figgure out a way to cache these results to make things more speedy - function getKeys($prefix) { - $ret = $this->s3->listKeys($this->options['bucket'], false, urlencode($prefix), '/');//, false, 's3/', '/'); - - if ($this->s3->responseCode >= 400) { - return array(); - } - $keys = array(); - $privateKeys = array(); - $prefixes = array(); - $meta = array(); - if ($this->s3->parsed_xml->CommonPrefixes) foreach ($this->s3->parsed_xml->CommonPrefixes as $content) { - $prefixes[] = (string) $content->Prefix; - } - - if ($this->s3->parsed_xml->Contents) foreach ($this->s3->parsed_xml->Contents as $content) { - $key = (string) $content->Key; - if ($this->isPublic($key)) $keys[] = $key; - else { - if (!($p1 = ereg('^\.', $key)) && - !($p2 = ereg('_\$folder\$$', $key)) && - !($p3 = ereg('placeholder.ns3', $key))) { - $privateKeys[] = $key; - } elseif ($p2) { - $prefix = ereg_replace('(_\$folder\$$)', '/', $key); - if (!in_array($prefix, $prefixes)) $prefixes[] = $prefix; - } else { - - } - } - } - if ($this->options['permissions'] == 'public') { - foreach ($privateKeys as $key) { - $this->s3->setObjectACL($this->options['bucket'], $key, 'public-read'); - $keys[] = $key; - } - } - - foreach ($keys as $i => $key) { - $meta[$i] = $this->s3->getMetadata($this->options['bucket'], $key); - } - natcasesort($keys); - natcasesort($prefixes); - - return array($prefixes, $keys, $meta, $privateKeys); - } - - function isPublic($key) { - $everyone = 'http://acs.amazonaws.com/groups/global/AllUsers'; - $this->s3->getObjectACL($this->options['bucket'], $key); - $acl = (array) $this->s3->parsed_xml->AccessControlList; - if (is_array($acl['Grant'])) foreach ($acl['Grant'] as $grant) { - $grant = (array) $grant; - if ($grant['Grantee'] && (ereg('AllUsers', (string) $grant['Grantee']->URI))) { - $perm = (string) $grant['Permission']; - if ($perm == 'READ' || $perm == 'FULL_CONTROL') return true; - } - } - - - } -} -?> \ No newline at end of file diff --git a/blog/wp-content/plugins/tantan-s3/wordpress-s3/config-sample.php b/blog/wp-content/plugins/tantan-s3/wordpress-s3/config-sample.php deleted file mode 100755 index 523665f..0000000 --- a/blog/wp-content/plugins/tantan-s3/wordpress-s3/config-sample.php +++ /dev/null @@ -1,20 +0,0 @@ - '', // AWS Access Key ID - 'secret' => '', // AWS Secret Key - 'bucket' => '', // S3 Bucket - 'virtual-host' => false, // Bucket is configured for virtual hosting - 'wp-uploads' => true, // mirror all WordPress uploads into Amazon S3 bucket - 'permissions' => '', // set to "public" to have the plugin force all files in the specified bucket to "public" (sometimes third party upload utilities don't do this) - 'hideAmazonS3UploadTab' => false, // hide the Amazon S3 tab in the WordPress upload widget - 'expires' => 315360000, // set http expires header 10 years into the future - ); -?> \ No newline at end of file diff --git a/blog/wp-content/plugins/tantan-s3/wordpress-s3/database.png b/blog/wp-content/plugins/tantan-s3/wordpress-s3/database.png deleted file mode 100755 index 3d09261a26eb97c6dedc1d3504cbc2cf915eb642..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 390 zcmV;10eSw3P);1k*-!zk~CMF9Bv_3(^PCOq; \ No newline at end of file diff --git a/blog/wp-content/plugins/tantan-s3/wordpress-s3/lib.s3.php b/blog/wp-content/plugins/tantan-s3/wordpress-s3/lib.s3.php deleted file mode 100755 index 5815c1e..0000000 --- a/blog/wp-content/plugins/tantan-s3/wordpress-s3/lib.s3.php +++ /dev/null @@ -1,397 +0,0 @@ -setFunction($func);$this->setKey($key);} -function setFunction($func){if (!$this->_pack = $this->_getPackFormat($func)) { die('Unsupported hash function'); }$this->_func = $func;} -function setKey($key){$func = $this->_func;if (strlen($key) > 64) {$key = pack($this->_pack, $func($key));}if (strlen($key) < 64) {$key = str_pad($key, 64, chr(0));}$this->_ipad = (substr($key, 0, 64) ^ str_repeat(chr(0x36), 64));$this->_opad = (substr($key, 0, 64) ^ str_repeat(chr(0x5C), 64));} -function _getPackFormat($func){$packs = array('md5' => 'H32', 'sha1' => 'H40');return isset($packs[$func]) ? $packs[$func] : false;} -function hash($data){$func = $this->_func;return $func($this->_opad . pack($this->_pack, $func($this->_ipad . $data)));} -} -/* -class Stream{ -var $data; -function stream_function($handle, $fd, $length){return fread($this->data, $length);} -} -*/ -if (!class_exists('TanTanHTTPRequestCurl')) require_once (dirname(__FILE__).'/../lib/curl.php'); - -/* - based on code provided by Amazon -*/ -// This software code is made available "AS IS" without warranties of any -// kind. You may copy, display, modify and redistribute the software -// code either by itself or as incorporated into your code; provided that -// you do not remove any proprietary notices. Your use of this software -// code is at your own risk and you waive any claim against Amazon -// Digital Services, Inc. or its affiliates with respect to your use of -// this software code. (c) 2006 Amazon Digital Services, Inc. or its -// affiliates. - -class TanTanS3 { - - var $serviceUrl; - var $accessKeyId; - var $secretKey; - var $responseString; - var $responseCode; - var $parsed_xml; - var $req; - var $fp; - var $options; - - /** - * Constructor - * - * Takes ($accessKeyId, $secretKey, $serviceUrl) - * - * - [str] $accessKeyId: Your AWS Access Key Id - * - [str] $secretKey: Your AWS Secret Access Key - * - [str] $serviceUrl: OPTIONAL: defaults: http://s3.amazonaws.com/ - * - */ - function TanTanS3($accessKeyId, $secretKey, $serviceUrl="http://s3.amazonaws.com/") { - global $wpdb; - $this->serviceUrl=$serviceUrl; - $this->accessKeyId=$accessKeyId; - $this->secretKey=$secretKey; - $this->req =& new TanTanHTTPRequestCurl($this->serviceUrl); - $this->options = array(); - $this->options['cache_table'] = $wpdb->prefix . 'tantan_wordpress_s3_cache'; - //$this->req = new HTTP_Request($this->serviceUrl); - } - - function setOptions($options) { - if (is_array($options)) { - $this->options = array_merge($this->options, $options); - } - } - /** - * listBuckets -- Lists all buckets. - */ - function listBuckets() { - $ret = $this->send('', ''); - if($ret == 200){ - $return = array(); - if(count($this->parsed_xml->Buckets->Bucket) > 0){ - foreach ($this->parsed_xml->Buckets->Bucket as $bucket) { - $return[] = (string) $bucket->Name; - } - } - return $return; - - } - else{ - return false; - } - } - /** - * listKeys -- Lists keys in a bucket. - * - * Takes ($bucket [,$marker][,$prefix][,$delimiter][,$maxKeys]) -- $marker, $prefix, $delimeter, $maxKeys are independently optional - * - * - [str] $bucket: the bucket whose keys are to be listed - * - [str] $marker: keys returned will occur lexicographically after $marker (OPTIONAL: defaults to false) - * - [str] $prefix: keys returned will start with $prefix (OPTIONAL: defaults to false) - * - [str] $delimiter: keys returned will be of the form "$prefix[some string]$delimeter" (OPTIONAL: defaults to false) - * - [str] $maxKeys: number of keys to be returned (OPTIONAL: defaults to 1000 - maximum allowed by service) - */ - function listKeys($bucket, $marker=FALSE, $prefix=FALSE, $delimiter=FALSE, $maxKeys='1000') { - $ret = $this->send($bucket, '/', "max-keys={$maxKeys}&marker={$marker}&prefix={$prefix}&delimiter={$delimiter}"); - if($ret == 200){ - return true; - } else { - return false; - } - } - function createBucket($bucket, $acl = 'private') { - $httpDate = gmdate("D, d M Y G:i:s T"); - $stringToSign = "PUT\n\n\n$httpDate\nx-amz-acl:$acl\n/$bucket"; - $signature = $this->constructSig($stringToSign); - //$req =& new HTTP_Request($this->serviceUrl . $bucket); - $this->req->setURL($this->serviceUrl . $bucket); - $this->req->setMethod("PUT"); - $this->req->addHeader("Date", $httpDate); - $this->req->addHeader("Authorization", "AWS " . $this->accessKeyId . ":" . $signature); - $this->req->addHeader("x-amz-acl", $acl); - $this->req->sendRequest(); - $this->responseCode=$this->req->getResponseCode(); - $this->responseString = $this->req->getResponseBody(); - $this->parsed_xml = simplexml_load_string($this->responseString); - if ($this->responseCode == 200) { - return true; - } else { - return false; - } - } - /** - * getBucketACL -- Gets bucket access control policy. - * - * Takes ($bucket) - * - * - [str] $bucket: the bucket whose acl you want - */ - function getBucketACL($bucket){ - $ret = $this->send($bucket, '/?acl'); - if ($ret == 200) { - return true; - } else { - return false; - } - } - - /** - * getObjectACL -- gets an objects access control policy. - * - * Takes ($bucket, $key) - * - * - [str] $bucket - * - [str] $key - */ - function getObjectACL($bucket, $key){ - $ret = $this->send($bucket, "/".urlencode($key).'?acl'); - if ($ret == 200) { - return true; - } else { - return false; - } - } - /** - * setObjectACL -- sets objects access control policy to one of Amazon S3 canned policies. - * - * Takes ($bucket, $key, $acl) - * - * - [str] $bucket - * - [str] $key - * - [str] $acl -- One of canned access control policies. - */ - function setObjectACL($bucket, $key, $acl){ - $serviceUrl = 'http://'.$bucket.'.s3.amazonaws.com/'; - - $httpDate = gmdate("D, d M Y G:i:s T"); - $resource = urlencode($key); - $stringToSign = "PUT\n\n\n$httpDate\nx-amz-acl:$acl\n/$bucket/$resource?acl"; - $signature = $this->constructSig($stringToSign); - //$req =& new HTTP_Request($this->serviceUrl.$resource.'?acl'); - $this->req->setURL($serviceUrl.$resource.'?acl'); - $this->req->setMethod("PUT"); - $this->req->addHeader("Date", $httpDate); - $this->req->addHeader("Authorization", "AWS " . $this->accessKeyId . ":" . $signature); - $this->req->addHeader("x-amz-acl", $acl); - $this->req->sendRequest(); - if ($this->req->getResponseCode() == 200) { - return true; - } else { - return false; - } - } - - /** - * getMetadata -- Gets the metadata associated with an object. - * - * Takes ($bucket, $key) - * - * - [str] $bucket - * - [str] $key - */ - function getMetadata($bucket, $key){ - if ($data = $this->getCache($bucket."/".$key)) { - return $data; - } - $ret = $this->send($bucket, "/".urlencode($key), '', 'HEAD'); - if ($ret == 200) { - $data = $this->req->getResponseHeader(); - foreach ($data as $k => $d) $data[strtolower($k)] = trim($d); - $this->setCache($bucket."/".$key, $data); - return $data; - } else { - return array(); - } - } - - - /** - * putObjectStream -- Streams data to a bucket. - * - * Takes ($bucket, $key, $streamFunction, $contentType, $contentLength [,$acl, $metadataArray, $md5]) - * http://www.missiondata.com/blog/linux/49/s3-streaming-with-php/ - * - * - [str] $bucket: the bucket into which file will be written - * - [str] $key: key of written file - * - [str] $fileName: path to file - * - [str] $contentType: file content type - * - [str] $contentLength: file content length - * - [str] $acl: access control policy of file (OPTIONAL: defaults to 'private') - * - [str] $metadataArray: associative array containing user-defined metadata (name=>value) (OPTIONAL) - * - [bool] $md5: the MD5 hash of the object (OPTIONAL) - */ - function putObjectStream($bucket, $key, $fileInfo, $acl='public-read', $metadataArray=array(), $md5=false){ - $serviceUrl = 'http://'.$bucket.'.s3.amazonaws.com/'; - - sort($metadataArray); - $fileName = $fileInfo['tmp_name']; - $contentLength = $fileInfo['size']; - $contentType = $fileInfo['type']; - if (!file_exists($fileName)) { - return false; - } - $this->fp = fopen($fileName, 'r'); - $resource = urlencode($key); - $httpDate = gmdate("D, d M Y G:i:s T"); - - $curl_inst = curl_init(); - - curl_setopt ($curl_inst, CURLOPT_CONNECTTIMEOUT, 30); - curl_setopt ($curl_inst, CURLOPT_LOW_SPEED_LIMIT, 1); - curl_setopt ($curl_inst, CURLOPT_LOW_SPEED_TIME, 180); - curl_setopt ($curl_inst, CURLOPT_NOSIGNAL, 1); - curl_setopt ($curl_inst, CURLOPT_READFUNCTION, array(&$this, 'stream_function')); - curl_setopt ($curl_inst, CURLOPT_URL, $serviceUrl . $resource); - curl_setopt ($curl_inst, CURLOPT_UPLOAD, true); - curl_setopt ($curl_inst, CURLINFO_CONTENT_LENGTH_UPLOAD, $contentLength); - - $header[] = "Date: $httpDate"; - $header[] = "Content-Type: $contentType"; - $header[] = "Content-Length: $contentLength"; - $header[] = "Expect: "; - if (is_numeric($this->options['expires'])) { - $header[] = "Expires: ".date('D, d M Y H:i:s O', time()+$this->options['expires']); - } - $header[] = "Transfer-Encoding: "; - $header[] = "x-amz-acl: $acl"; - - $MD5 = ""; - if($md5){ - $MD5 = $this->hex2b64(md5_file($filePath)); - $header[] = "Content-MD5: $MD5"; - } - - $stringToSign="PUT\n$MD5\n$contentType\n$httpDate\nx-amz-acl:$acl\n"; - foreach($metadataArray as $current){ - if($current!=""){ - $stringToSign.="x-amz-meta-$currentn"; - $header = substr($current,0,strpos($current,':')); - $meta = substr($current,strpos($current,':')+1,strlen($current)); - $header[] = "x-amz-meta-$header: $meta"; - } - } - - $stringToSign.="/$bucket/$resource"; - - $signature = $this->constructSig($stringToSign); - - $header[] = "Authorization: AWS $this->accessKeyId:$signature"; - - curl_setopt($curl_inst, CURLOPT_HTTPHEADER, $header); - curl_setopt($curl_inst, CURLOPT_RETURNTRANSFER, 1); - - $result = curl_exec ($curl_inst); - - $this->responseString = $result; - $this->responseCode = curl_getinfo($curl_inst, CURLINFO_HTTP_CODE); - - fclose($this->fp); - curl_close($curl_inst); - return true; - } - function stream_function($handle, $fd, $length){return fread($this->fp, $length);} - - function putPrefix($bucket, $prefix){ - $ret = $this->send($bucket, "/".urlencode($prefix.'_$folder$'), '', 'PUT', array('Content-Type' => '', 'Content-Length' => 0)); - if ($ret == 200) { - return true; - } else { - return false; - } - } - - function deleteObject($bucket, $key) { - $ret = $this->send($bucket, "/".urlencode($key), '', 'DELETE'); - if ($ret == 204) { - return true; - } else { - return false; - } - } - - function send($bucket, $resource, $args='', $method='GET', $headers=false) { - if ($bucket != '') { - $serviceUrl = 'http://'.$bucket.'.s3.amazonaws.com'; - } else { - $serviceUrl = 'http://s3.amazonaws.com/'; - } - - $method=strtoupper($method); - $httpDate = gmdate("D, d M Y G:i:s T"); - $signature = $this->constructSig("$method\n\n\n$httpDate\n/".($bucket ? ($bucket.$resource) : $resource)); - - $this->req->setURL($serviceUrl.$resource.($args ? '?'.$args : '')); - $this->req->setMethod($method); - $this->req->addHeader("Date", $httpDate); - $this->req->addHeader("Authorization", "AWS " . $this->accessKeyId . ":" . $signature); - if (is_array($headers)) foreach ($headers as $key => $header) $this->req->addHeader($key, $header); - $this->req->sendRequest(); - if ($method=='GET') { - $this->parsed_xml = simplexml_load_string($this->req->getResponseBody()); - } - - return $this->req->getResponseCode(); - } - function hex2b64($str) { - $raw = ''; - for ($i=0; $i < strlen($str); $i+=2) { - $raw .= chr(hexdec(substr($str, $i, 2))); - } - return base64_encode($raw); - } - - function constructSig($str) { - $hasher =& new TanTanCrypt_HMAC($this->secretKey, "sha1"); - $signature = $this->hex2b64($hasher->hash($str)); - return($signature); - } - - function initCacheTables() { - global $wpdb; - if (!is_object($wpdb)) return; - - $wpdb->query("CREATE TABLE IF NOT EXISTS `".$this->options['cache_table']."` ( - `request` VARCHAR( 255 ) NOT NULL , - `response` TEXT NOT NULL , - `timestamp` DATETIME NOT NULL , - PRIMARY KEY ( `request` ) - ) TYPE = MYISAM"); - } - function setCache($key, $data) { - global $wpdb; - if (!is_object($wpdb)) return false; - $key = addslashes(trim($key)); - if ($wpdb->query("DELETE FROM ".$this->options['cache_table']." WHERE request = '".$key."'") !== false) { - $sql = "INSERT INTO ".$this->options['cache_table']." (request, response, timestamp) VALUES ('".$key."', '" . addslashes(serialize($data)) . "', '" . strftime("%Y-%m-%d %H:%M:%S") . "')"; - $wpdb->query($sql); - } else { // tables might not be setup, so just try to do that - $this->initCacheTables(); - } - return $data; - } - function getCache($key) { - global $wpdb; - if (!is_object($wpdb)) return false; - $key = trim($key); - $result = @$wpdb->get_var("SELECT response FROM ".$this->options['cache_table']." WHERE request = '" . $key . "' LIMIT 1"); - - if (!empty($result)) { - return unserialize($result); - } - return false; - } - function clearCache() { - global $wpdb; - if (!is_object($wpdb)) return false; - $result = @$wpdb->query("DELETE FROM ".$this->options['cache_table'].";"); - } -} -?> \ No newline at end of file diff --git a/blog/wp-content/plugins/tantan-s3/wordpress-s3/styles/add.png b/blog/wp-content/plugins/tantan-s3/wordpress-s3/styles/add.png deleted file mode 100755 index 6332fefea4be19eeadf211b0b202b272e8564898..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 733 zcmV<30wVp1P)9VHk(~TedF+gQSL8D5xnVSSWAVY>J9b+m>@{iq7_KE}go~11+5s4;8hc+i0Xa zI1j@EX5!S+Me6HNqKzU5YQwL;-W5$p%ZMKMeR<%zp69-~?<4?8|C8S?bklXr4v&Ov zb&06v2|-x?qB`90yn>Qi%Sh2^G4n)$ZdyvTPf9}1)_buUT7>`e2G&2VU@~Bb(o+Mz zi4)>IxlSY${Dj4k={-9RzU^W5g9|2V5RZ2ZulL9s2xQbZ@r6eP9Ra5u(s|C0Nj#&4>wTSkb?%#=9?@ z^oxDy-O@tyN{L@by(WWvQ3%CyEu8x{+#Jb4-h&K9Owi)2pgg+heWDyked|3R$$kL@A z#sp1v-r+=G4B8D6DqsDH0@7OztA7aT9qc1Py{()w`m``?Y0&gi2=ROcc-9+nU^I6< zT=e_Y=vSnG@?3Ue{BW5ONFttcE!R-R_W4O01|0-|K-YNXLo2`4Qv z`r1LxR6#yf3FB%T95gJnaKKivA~Z}S9A(ZxEDK}O3T04USJ P00000NkvXXu0mjf^IS-S diff --git a/blog/wp-content/plugins/tantan-s3/wordpress-s3/styles/arrow_left.png b/blog/wp-content/plugins/tantan-s3/wordpress-s3/styles/arrow_left.png deleted file mode 100755 index 5dc696781e6135d37b5bf2e98e46fd94f020c48d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 345 zcmV-f0jBq$gGR5;6H z{Qv(y10{fofkH6I3@AO3$p*x`Nil#0jeqs;pT9Ds7{CaN1)$9r#n~kE{`~pF@bLXZ zhF?E_GyM7i!oL`P0x_8Wj$ni2F7#hzWPxfvDaI`!iy8(2_#ButL^3%VaH2WCpD^U)OZxp@C)2#hU)y+@T%ZNzJigNk%37 zz-WYJwT%teVfiEI+B*@v4ey@58(ld4VY_&5-ox`e@AKg+0U-I`y79bmuw_~y6+4rZ zBG5EdFDS+@M0OSE`>d7SUDOzKZ&h*4eB1iX7tOd9RiYtW2mQ--bUahxr1`i{RG@dM zL#}_X=DDO1{;UI$pFu=dLYT_=5d8WC-sLfjr7UO-HKMAwa=!>)kEhvuwre zuW3yF@ZxFCkI*+ad|5kOX%5zu8IQjhan)UqgSrFGA_0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a/blog/wp-content/plugins/tantan-s3/wordpress-s3/styles/folder.gif b/blog/wp-content/plugins/tantan-s3/wordpress-s3/styles/folder.gif deleted file mode 100755 index 8dc04c495632136f63cccb0f347980ffc7f2af38..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 249 zcmV&8+3^S0~HG5`DX_vDxJ+k@-8M)>Nr>$W}p^Tho3 z==}80>(iM0?yURn!};l<_T#GS&3W#j2G&T01Gjrr=m|M$-S_r>eai|f&h z|Mt`N=CJ?&|NsC0A^8LW0018VEC2ui01yBW000Gc;3tk`X`ZI1s;KBOj21;}?R~F@ z?O6o?f}r4*+hH=uOdyaM;x+>wz(7SHCKTdttLQo$heQ?!7?>4}#)CkxIL00TXPI7G z3WWn4ut=-h1rib+a0Ur=fD#oI5QPZ~3kePv2OSU)7ll@v6P=!LHlZsmC?NnlqS<{& diff --git a/blog/wp-content/plugins/tantan-s3/wordpress-s3/styles/folder_add.png b/blog/wp-content/plugins/tantan-s3/wordpress-s3/styles/folder_add.png deleted file mode 100755 index 529fe8fe04c5b750ce3b4d48118465d73c74c970..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 668 zcmV;N0%QG&P)g@#5J*h%>dq^uaFBvVQ$3&c*y#>&P@VnG_z zkezqQ&je1b~~$O}L9 zo^;|X_f#3CS5n-cFHBf|3c+u^PpWoka6G0Rsr|AOXUJ zbHD{5nUGu>5YB96PUmjGgM{$-j5TbT8bBGbz2R zHjvpHkWu0*cCs9&;{|Ugi`d3|T+)Vj%kXX`qqQ>4W)|B!_mMlW`2x#YyU0W#8Pyvn z-<;pE4zUG8k-yYxmFW4%eIAbtF|hR_$8YW;YMMc&ZY1$9z5S(QZA)e!-q6)Y`+^>Z zzdYprlOaC7jZYg%{Ey!L(s5u9Pz1(+vk%UU4EzNDb1nO~@as(g00000)+jEP);68^d)m`eN0o>(5%D`Q(1;j>g@G;xlf`0VBQ`PFY?6)!N&f?*K}$p; zB!U=NBn{eB8${1}&-2_L*HuZp@ZP1@clS@cHp)4iM1ewzw59vko7eMM{e9z|%NNdX z0V;`?KKSzTCvTm5bc{L^CIKLUxc2X{i{ISz$8Sgf{q)1nXTP{`{s?9mQ$4&hPiKC- zY8q7(Y1Xu5iCf33=O4Vy(+|zQ?rW#gkKB0f%}?+6{G*qT22|DQB-73`YzA{N4W^=s zq0kQYcbtFfz zLz)H<&|z(Y4k@LCln44|RX7Ti z0HI3&7jPq){odH{?_{%nYVq_;n_c4WbUpvU(&Cvnj!vq|kVC-vpF6vp^;;e0mm6HW z+WPzA`AZ|;pPp$&dNjzrc??4rt`k%Q1l*u-BPD0MQ}Fbm8jnsyezNt7+u{23>t7Em zJtETY?ja9KrVs^!LJ$xEMF3-bAZO;-IQJavE60KA7fO$VY_%N)R6s>g5mW>fL4&aR z*EVgKKTBXm!=L?S0?xM zYqL@C$|EDF2q*3zWW7;PDZ}SK*IE8;i!3U62=qn80C&*I1Le7WwNP5EcX;_oh2dJn zf#HgBe4@r$GcjHjmj2vAfT%(YN?}kK=(*+1*DkNNc1H5R++vfBMhACi<5uFUU+N4+ z<&U*CPmWi}REa7C6-t>2im1CWv5Jkefxa6>)dEj-CAW wWa{_}BJ!}~75?MkfaCnj>Dn=~vkLS70Pk`;z)@TQj{pDw07*qoM6N<$f@imYHUIzs diff --git a/blog/wp-content/plugins/tantan-s3/wordpress-s3/styles/page_excel.png b/blog/wp-content/plugins/tantan-s3/wordpress-s3/styles/page_excel.png deleted file mode 100755 index eb6158eb5ca9c4b64c81e70e0fd894dbc8e2bed9..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 817 zcmV-11J3-3P)hdKqhFO_H1|Vn1E?(=|cjAh_&P}y{{^`u< zcYD@PK?$)4i~7o9*6F_$F$4lR(d4AAvrez^(88Hk+)+B7E)M3jc=Ewl4$S^`_qwSF zA%qz@=c2EOsz@0qB1IqsqJU)HaG&+}%`-OM8YqW{K85hqj@4&V9vz!Cm_n0-W#f;# zeEpJde%vdgRn5?(+PY=W*z~|lT2-mtown({ll8&3S5+lWz5K}LTRW{k{eJn3Qz!SU zQ`@qI_n2;K?RG~pYJ9=dj-RWgG;P&wEuoAxL~Q)<>x0b=dED^Outj&xQ^rA;u3pw| zca_ClTh_d9cxXg_U!lLRl0`xU@$=UXO|_dRdtXfKwPawmnf(LC7u}-U>8k6}3u|{8 zs9LHr>MIJZGD^r9h|q2yF24Wuh+PM^yMN9GP1$khlDkdyCY}D{kg}jEf-(kW5jBY> z0rB29ZhG-r=i_R{;+1k0?A-sBM;AP6(k1i9ZuixR4?MqXOvphQgCYj~RnXKKL~J9Q zIDNz~XMfO{ZhUg&BTtMyXJqDVqc<x643?SvKHx004lTvR=0a5$dUw z>Xb470000$S;ka1sfH4I-R8njUol7M4dtApOahDylptpYswf1hD#CwFoz6oEA>(SIECU&IQ%a}GXdnC!9$70`0uH1B00000NkvXXu0mjf!8w72 diff --git a/blog/wp-content/plugins/tantan-s3/wordpress-s3/styles/page_white.png b/blog/wp-content/plugins/tantan-s3/wordpress-s3/styles/page_white.png deleted file mode 100755 index 8b8b1ca0000bc8fa8d0379926736029f8fabe364..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 294 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!60wlNoGJgf6SkfJR9T^zbpD<_bdI{u9mbgZg z1m~xflqVLYGB~E>C#5QQ<|d}62BjvZR2H60wE-&H;pyTSqH(@-Vl>|&1p(LP>kg~E zYiz5X^`c$+%8#zC{u)yfe-5 zmgid={Z3k(ERKCKrE7DF;=x4^O+ pzO8rLO8p|Ip=x)jHOtWj`bJBmKdh_V<`47(gQu&X%Q~loCIFbEay|e6 diff --git a/blog/wp-content/plugins/tantan-s3/wordpress-s3/styles/page_white_acrobat.png b/blog/wp-content/plugins/tantan-s3/wordpress-s3/styles/page_white_acrobat.png deleted file mode 100755 index 8f8095e46fa4965700afe1f9d065d8a37b101676..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 591 zcmV-V0~O9lw>B8WRlD)Gm}Jrz31u-X&&gn2lvjs=i{7nIaL6v2==uw+8Lcs(8j27 z;|c`rmSv@Lx!heopGP^^Ieb3f=R!%Lpp$}iMS-&P3EJ)s48wrJ_Ni0~k|c47D2nj= z{jS6bt|kFpFf|p5cM`_&0Zh|`rfEp0(}=}lT#(6RpzAsUfxv^LSYX>WlAaN$>)*J5 z0#sE+JRUD8iT9*fz{)_^7@6P&!sEjTcD+I9Z4YjT1`wH@fV{cEvneYGFU%maIEU2s55&K(LixD|{p-uiS@?KNj zk-Go8G$hH6g002ovPDHLkV1hVj1#|!a diff --git a/blog/wp-content/plugins/tantan-s3/wordpress-s3/styles/page_white_excel.png b/blog/wp-content/plugins/tantan-s3/wordpress-s3/styles/page_white_excel.png deleted file mode 100755 index b977d7e52e2446ea01201c5c7209ac3a05f12c9f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 663 zcmV;I0%-k-P)^@R5;6x zlTS!gQ5431_q{u#M2 zg&W%y6a}>qj1Z|7Vu&-DW6d~k-n;jnHsjb-q#u0C^W!_5^C=MlKq<8oNCQ6qS00!X z5eI;XP=g!^f}j{hku}E1zZ?XCjE;`p19k(Rh%^AQQ54xysU+ocx$c#f61Z4HnT#3u~FR(3>BnZniMIF4DouI8Hi4u>cAK%EN)5PO(ip3(% zIgBx+QYirR){Z8QwV$9Z(Mpt=L-Or3#bf-G@66}txq0yc*T(zNTBDT0T8rO^JeNbSI-Tzf5!pBioy4NwAN^?iN#{;fH1Jke4Xa`^fR8m z%h6dq%xX)S?7`zae))(Xst^Scp6B8FejQW?RLTM8@0=vnnntuRGBM2dpo>gbCnTD= z^<;=JuqdSf@O>Z8^XdR?s+KEfhDdB_#ahFj^giCtzT(s8kA$AViyTqaAR;KGaLzUU z<=GqA4bRwpX|IG~*x>pZ!@zLr`XQ`od>m(`;jz|M_*1GDO#$7;n74ppb8=eiqh760 x0yt}J1#p`gw$`o!R{d7zU9~!Un@nJV{4bstt4Au+Up@c;002ovPDHLkV1kWhGjjj{ diff --git a/blog/wp-content/plugins/tantan-s3/wordpress-s3/styles/page_white_php.png b/blog/wp-content/plugins/tantan-s3/wordpress-s3/styles/page_white_php.png deleted file mode 100755 index 7868a25945cd5e5cb7daaca9591927511ca65c0f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 538 zcmV+#0_FXQP)vYep8SaFV10Q$h+;hIUPX_=v5b}%>Tm<(&j1&5;I!55C)oN0s(P%ZB zP3Q#ahfpXKWF@S?jm4U#fv)QovMhrriclyNs6-G12#3R##4PSZ0VY(dRWJ;Lwuq{# zAW0Gwi$yA^R4RZ!;W+L`f&%x{=D^VK#BBWL4Ys{;*!A7Q;!=dN<&D8*GzGaF4`hV4 zDbY0{NrMX>ZqF=0((gR5-zL$kC*b)!fwu{Euru|XrG<$^n#@)7i_>rCmRxnDq>$Y%gJaCkRd|tE*a2x05Pe!I^e13o69#&RQZ36s0 zB=O|K2Yi(jsMqThn}9t?f5E-)L^naZ+db$&%M$!bCdm=jv7?t_lB?3&%Ltq(>ESw? c;MI421LCcoDG!2@;{X5v07*qoM6N<$f`UZt7XSbN diff --git a/blog/wp-content/plugins/tantan-s3/wordpress-s3/styles/page_white_powerpoint.png b/blog/wp-content/plugins/tantan-s3/wordpress-s3/styles/page_white_powerpoint.png deleted file mode 100755 index c4eff0387d5888c638ba09473ba6d2369f7b56f0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 588 zcmV-S0<-;zP)HU2HvUSp%6 z*n}iP63IK?dpo;h@sj9~pcxo;VVTc-XLiP@DgefqE#NE=@oyUd-&HjLpsLIuSFXV-EMck)oQ(A`s%*^&wf0(rNiNHsU%=0Rw;WC z(kbc37l6fo`-0uR!pYkYv8U^3?nsh^@pw!K0TH3uYyx1_2>|JbXPmfskJ|1YAw9w! z9`N)1^Aesr;y5Nr5-ODn)oOL|CGi}f9!&iVwpK$khlIX10X$H6^A_stBJqvLhU$?V`QXqKme*s~gVDJ4A;LTs_e15jhc1;By a82kqHEPVYFAD2!50000C#5QQ<|d}62BjvZR2H60wE-%6;pyTSA|c6o&@eC9QG)Hj&ExYL zO&oVL^)+cM^qd@ApywS>pwx0H@RDN}hq;7mU-SKczYQ-hnrr=;iDAQMZQ+*g=YOM= z!QlMQEn7FbaD->uKAYgo_j9)W&$$zS*W9}m(ey0q$&7l-XEWO0Y(9M=SnhLbwy;d>@~SY$Ku*0xPvIOQeV1x7u_z-2-X>_74(yfh7C znXL|3GZ+d2`3re2hs?MKhkjP zNW|QGv-YFNLN^qH@tJycPNG5ti6B7;r4mEr#lr@*T8*M85D`{ZR^BWwF23T<%MYIh zdC)S*p=|xk^!~H=+HSZ183~y8v4|mYmZxt&)5{{~>J`>E223Q5>T$=~mtA71q-jdG z+eJhOAyBW^0k9Gk1+rX8)zFx((CG^&tDY>6XaS~Fy!WJON|Gdujg5^~Vzt@o%BcYLiNiTQSD`zL^ociBz_>bDlpw3kriQ@Z`bVsGz-_6N>$&gTDiKDTKR^ z-hB*tHa^>!oD~5TK^0UK5rZ}RBm50Bv}S-yA%s=Ha5RYb{)!z2N&$&64gfhybBu8p lh~_|?8^bu;BRYt{<}Yrwd83Y=s?Goa002ovPDHLkV1l%3CP4rI diff --git a/blog/wp-content/plugins/tantan-s3/wordpress-s3/styles/page_white_zip.png b/blog/wp-content/plugins/tantan-s3/wordpress-s3/styles/page_white_zip.png deleted file mode 100755 index fd4bbccdf1643f4ff5022fbc59b82546e259317e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 386 zcmV-|0e$|7P)_QM!1S$Bhw4w+iRuFWf;tfR6D%SMJrb+tx zC9R6{2>Ou6#juIy6u(I?|;&Owi$sRB4^20apB5xE2 z#B9XekY66S6lzfCL!eEQRgo0LokTA55@Y#%_wN!TXPw^Q4IIXsG~v#u_4t;x_HM16EQ@QRY+rut&97&UefsPmLrQ5P zBC2kcbux9L%2bJz$P$XV$*zSxb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3/wordpress-s3/styles/styles.css deleted file mode 100755 index fb7641d..0000000 --- a/blog/wp-content/plugins/tantan-s3/wordpress-s3/styles/styles.css +++ /dev/null @@ -1,189 +0,0 @@ -#disable_amazonS3_span { - -} -form#upload-file #disable_amazonS3_span input { - width:auto !important; -} -#amazon-s3-wrap { - padding:10px; -} -.infobar { - position:relative; - padding:0 0 6px 0; - margin:0 0 5px 0; - font-size:0.9em; - border-bottom:1px solid #ddd; -} -.infobar a { - border:0; - color:black; - text-decoration:none; -} -.infobar a:hover { - text-decoration:underline; -} - -.infobar .nav-controls { - position:absolute; - top:0px; - left:0px; -} -.infobar .nav-controls a { - display:block; - float:left; - margin-right:10px; - height:18px; - line-height:18px; - padding-left:20px; - background:url(arrow_left.png) no-repeat left; - border:0; - color:#888; -} -.infobar .nav-controls a#btn-upload, -.infobar .nav-controls a#btn-folder, -.infobar .nav-controls a#btn-forward, -.infobar .nav-controls a#btn-refresh { - padding-left:0px; - padding-right:20px; - text-indent:-10000px; - background:url(arrow_right.png) no-repeat left; -} -.infobar .nav-controls a#btn-refresh { - background-image:url(arrow_refresh.png); -} -.infobar .nav-controls a#btn-upload { - background-image:url(add.png); -} -.infobar .nav-controls a#btn-folder { - background-image:url(folder_add.png); -} -.infobar .path { - margin-left:195px; - line-height:18px; -} -.infobar .path, -.infobar .path a{ - color:#888; -} -.infobar .path a.last { - font-weight:bold; - color:#000; -} -.infobar .options { - position:absolute; - top:0px; - right:10px; -} -.infobar #upload-form, .infobar #create-form { - display:none; - padding:5px; -} -.folders { - position:relative; - margin:10px 0 0 0; -} -.folders form { - padding:0; -} -.folders ul { - list-style:none; - margin:0; - padding:0 0 0 0px; -} -.folders li { - display:block; - float:left; - width:100px; - height:18px; - overflow:hidden; - margin:0 10px 5px 0; - font-size:11px; - line-height:16px; -} -.folders li a { - border:0; - color:#555; - text-decoration:none; - background:white url(folder.gif) no-repeat 0px -3px; - padding:0 0 0 20px; -} -.folders li a:hover { - text-decoration:underline; -} -.folders li a.add { - background-image:url(folder_add.png); -} -.folders li#createFolder div.form { - display:none; -} -.folders li#createFolder.create div.form { - display:inline; -} -.folders li#createFolder.create a.add { - display:none; -} -.folders li#createFolder input { - font-size:9px; - padding:0; -} -.files { - clear:both; -} -.files ul { - list-style:none; - margin:0; - padding:0; -} -.files ul li { - display:block; - float:left; - width:175px; - height:18px; - overflow:hidden; - margin:0 10px 5px 0; - font-size:11px; - line-height:16px; - - padding-left:20px; - background:url(page_white.png) no-repeat left; -} -.files ul li a { - border:0; - color:#555; - text-decoration:none; -} -.files ul li a:hover { - text-decoration:underline; -} -.files ul li.empty { - color:#888; - letter-spacing:1px; - font-style:italic; - background-image:none; - padding-left:0; -} -.files ul li.image { background-image:url(photo.png);} - -.files ul li.text { background-image:url(page_white_text.png);} - -.files ul li.video { background-image:url(film.png);} -.files ul li.audio, -.files ul li.ogg { background-image:url(sound.png);} - -.files ul li.pdf { background-image:url(page_white_acrobat.png);} -.files ul li.msword, -.files ul li.doc { background-image:url(page_white_word.png);} -.files ul li.ms-excel, -.files ul li.xls { background-image:url(page_white_excel.png);} -.files ul li.ms-powerpoint, -.files ul li.ppt { background-image:url(page_white_powerpoint.png);} - - -.files ul li.javascript, -.files ul li.js, -.files ul li.html, -.files ul li.php, -.files ul li.css { background-image:url(page_code.png);} - -.files ul li.zip { background-image:url(page_white_zip.png);} - diff --git a/blog/wp-content/plugins/wp-s3 b/blog/wp-content/plugins/wp-s3 new file mode 160000 index 0000000..b988340 --- /dev/null +++ b/blog/wp-content/plugins/wp-s3 @@ -0,0 +1 @@ +Subproject commit b988340a5a39d0e3ce275e62203c00b5f09f06e6