|
@@ -161,6 +161,20 @@ if(!defined('entry') || !entry) die('Not a valid page');
|
161
|
161
|
return $params2[0];
|
162
|
162
|
}
|
163
|
163
|
|
|
164
|
+ function isGoogleVideoUrl($videoUrl){
|
|
165
|
+ if (beginsWith($videoUrl, "http://video.google.com/videoplay?")){
|
|
166
|
+ return true;
|
|
167
|
+ } else {
|
|
168
|
+ return false;
|
|
169
|
+ }
|
|
170
|
+ }
|
|
171
|
+
|
|
172
|
+ function getGoogleVideoCode($videoUrl){
|
|
173
|
+ $params = explode("?docid=", $videoUrl);
|
|
174
|
+ $params2 = explode("&",$params[1]);
|
|
175
|
+ return $params2[0];
|
|
176
|
+ }
|
|
177
|
+
|
164
|
178
|
function isDailymotionVideo($videoUrl) {
|
165
|
179
|
if (beginsWith($videoUrl, "http://www.dailymotion.com/video/") || beginsWith($videoUrl, "http://dailymotion.com/video/"))
|
166
|
180
|
return true;
|
|
@@ -194,6 +208,7 @@ if(!defined('entry') || !entry) die('Not a valid page');
|
194
|
208
|
elseif (isDailymotionVideo($url)) { return true; }
|
195
|
209
|
elseif (isYahooVideo($url)) { return true; }
|
196
|
210
|
elseif (isSlideSharePresentation($url)) { return true; }
|
|
211
|
+ elseif (isGoogleVideoUrl($url)) { return true; }
|
197
|
212
|
else { return false; }
|
198
|
213
|
}
|
199
|
214
|
|