Google Doc Embedder - Version 1.9.7

Version Description

  • Fixed: Minor compatibility issue with some PHP versions
  • Changed: Confirmed compatibility with WP 3.1
Download this release

Release Info

Developer k3davis
Plugin Icon wp plugin Google Doc Embedder
Version 1.9.7
Comparing to
See all releases

Code changes from version 1.9.6 to 1.9.7

Files changed (3) hide show
  1. gviewer.php +2 -2
  2. proxy.php +3 -3
  3. readme.txt +5 -1
gviewer.php CHANGED
@@ -5,10 +5,10 @@ Plugin Name: Google Doc Embedder
5
  Plugin URI: http://davismetro.com/gde/
6
  Description: Lets you embed Word Documents, PDF files, PowerPoint presentations, and TIFF images in a web page using the Google Docs Viewer (no Flash or PDF browser plug-ins required).
7
  Author: Kevin Davis
8
- Version: 1.9.6
9
  */
10
 
11
- $gde_ver = "1.9.6.98";
12
 
13
  /**
14
  * LICENSE
5
  Plugin URI: http://davismetro.com/gde/
6
  Description: Lets you embed Word Documents, PDF files, PowerPoint presentations, and TIFF images in a web page using the Google Docs Viewer (no Flash or PDF browser plug-ins required).
7
  Author: Kevin Davis
8
+ Version: 1.9.7
9
  */
10
 
11
+ $gde_ver = "1.9.7.98";
12
 
13
  /**
14
  * LICENSE
proxy.php CHANGED
@@ -29,7 +29,7 @@ if (ini_get('allow_url_fopen') !== "1") {
29
 
30
  if (isset($_GET['embedded'])) {
31
  // get the src page, change relative path to absolute
32
- if ($curl) {
33
  $code = curl_get_contents("http://docs.google.com/gview?" . $_SERVER['QUERY_STRING']);
34
  } else {
35
  $code = file_get_contents("http://docs.google.com/gview?" . $_SERVER['QUERY_STRING']);
@@ -74,7 +74,7 @@ if (isset($_GET['embedded'])) {
74
 
75
  } else if (isset($_GET['a']) && $_GET['a'] == 'gt') {
76
  // get text coordinates file, can not redirect because of same origin policy
77
- if ($curl) {
78
  $code = curl_get_contents("http://docs.google.com/gview?" . $_SERVER['QUERY_STRING']);
79
  } else {
80
  $code = file_get_contents("http://docs.google.com/gview?" . $_SERVER['QUERY_STRING']);
@@ -90,7 +90,7 @@ if (isset($_GET['embedded'])) {
90
 
91
  } else if (isset($_GET['jsfile'])) {
92
  // proxy javascript files and replace navigator.cookieEnabled with false
93
- if ($curl) {
94
  $code = curl_get_contents("http://docs.google.com/" . $_GET['jsfile']);
95
  } else {
96
  $code = file_get_contents("http://docs.google.com/" . $_GET['jsfile']);
29
 
30
  if (isset($_GET['embedded'])) {
31
  // get the src page, change relative path to absolute
32
+ if (isset($curl)) {
33
  $code = curl_get_contents("http://docs.google.com/gview?" . $_SERVER['QUERY_STRING']);
34
  } else {
35
  $code = file_get_contents("http://docs.google.com/gview?" . $_SERVER['QUERY_STRING']);
74
 
75
  } else if (isset($_GET['a']) && $_GET['a'] == 'gt') {
76
  // get text coordinates file, can not redirect because of same origin policy
77
+ if (isset($curl)) {
78
  $code = curl_get_contents("http://docs.google.com/gview?" . $_SERVER['QUERY_STRING']);
79
  } else {
80
  $code = file_get_contents("http://docs.google.com/gview?" . $_SERVER['QUERY_STRING']);
90
 
91
  } else if (isset($_GET['jsfile'])) {
92
  // proxy javascript files and replace navigator.cookieEnabled with false
93
+ if (isset($curl)) {
94
  $code = curl_get_contents("http://docs.google.com/" . $_GET['jsfile']);
95
  } else {
96
  $code = file_get_contents("http://docs.google.com/" . $_GET['jsfile']);
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: k3davis
3
  Donate link: http://pledgie.com/campaigns/6048
4
  Tags: doc, docx, pdf, pps, ppt, tiff, word, powerpoint, google, embed, google docs
5
  Requires at least: 2.8
6
- Tested up to: 3.0
7
  Stable tag: trunk
8
 
9
  Lets you embed Word documents (DOC, DOCX), PDF files, PowerPoint presentations (PPT, PPS), and TIFF images in a web page using the Google Docs Viewer (no Flash or PDF browser plug-ins required).
@@ -67,6 +67,10 @@ That's not a question ;) but if you have any particular ideas on further develop
67
 
68
  == Changelog ==
69
 
 
 
 
 
70
  = 1.9.6 =
71
  * Changed: Removed min-width restriction of viewer (thanks Amanda)
72
  * Fixed: Enhanced Viewer failed in hardened PHP configs (thanks Waseem)
3
  Donate link: http://pledgie.com/campaigns/6048
4
  Tags: doc, docx, pdf, pps, ppt, tiff, word, powerpoint, google, embed, google docs
5
  Requires at least: 2.8
6
+ Tested up to: 3.1
7
  Stable tag: trunk
8
 
9
  Lets you embed Word documents (DOC, DOCX), PDF files, PowerPoint presentations (PPT, PPS), and TIFF images in a web page using the Google Docs Viewer (no Flash or PDF browser plug-ins required).
67
 
68
  == Changelog ==
69
 
70
+ = 1.9.7 =
71
+ * Fixed: Minor compatibility issue with some PHP versions
72
+ * Changed: Confirmed compatibility with WP 3.1
73
+
74
  = 1.9.6 =
75
  * Changed: Removed min-width restriction of viewer (thanks Amanda)
76
  * Fixed: Enhanced Viewer failed in hardened PHP configs (thanks Waseem)