|
@@ -50,6 +50,8 @@ if(!defined('entry') || !entry) die('Not a valid page');
|
50
|
50
|
}
|
51
|
51
|
} elseif (isGoEar($remoteFileName)) {
|
52
|
52
|
return true;
|
|
53
|
+ } elseif (isOdeo($remoteFileName)) {
|
|
54
|
+ return true;
|
53
|
55
|
} else {
|
54
|
56
|
return false;
|
55
|
57
|
}
|
|
@@ -69,6 +71,19 @@ if(!defined('entry') || !entry) die('Not a valid page');
|
69
|
71
|
return false;
|
70
|
72
|
}
|
71
|
73
|
|
|
74
|
+ function isOdeo($songUrl){
|
|
75
|
+ if (beginsWith($songUrl, "http://odeo.com/audio/") || beginsWith($songUrl, "http://www.odeo.com/audio/"))
|
|
76
|
+ return true;
|
|
77
|
+ else
|
|
78
|
+ return false;
|
|
79
|
+ }
|
|
80
|
+
|
|
81
|
+ function getOdeoCode($songUrl) {
|
|
82
|
+ $params = explode("audio/", $songUrl);
|
|
83
|
+ $params2 = explode("/",$params[1]);
|
|
84
|
+ return $params2[0];
|
|
85
|
+ }
|
|
86
|
+
|
72
|
87
|
function isImageFile($photoUrl) {
|
73
|
88
|
if (endsWith($photoUrl, ".jpg")) { return true; }
|
74
|
89
|
elseif (endsWith($photoUrl, ".gif")) { return true; }
|