40 if (strpos($a_location,
"youtube.com") > 0)
53 $pos1 = strpos($a_location,
"v=");
54 $pos2 = strpos($a_location,
"&", $pos1);
59 : strlen($a_location);
60 $par[
"v"] = substr($a_location, $pos1+2, $len - ($pos1+2));
71 if (strpos($a_location,
"flickr.com") > 0)
84 $pos1 = strpos($a_location,
"flickr.com/photos/");
85 $pos2 = strpos($a_location,
"/", $pos1+18);
91 $par[
"user_id"] = substr($a_location, $pos1+18, $len - ($pos1+18));
95 $pos1 = strpos($a_location,
"/tags/");
96 $pos2 = strpos($a_location,
"/", $pos1+6);
101 : strlen($a_location);
102 $par[
"tags"] = substr($a_location, $pos1+6, $len - ($pos1+6));
106 $pos1 = strpos($a_location,
"/sets/");
107 $pos2 = strpos($a_location,
"/", $pos1+6);
113 $par[
"sets"] = substr($a_location, $pos1+6, $len - ($pos1+6));
124 if (strpos($a_location,
"video.google") > 0)
137 $pos1 = strpos($a_location,
"docid=");
138 $pos2 = strpos($a_location,
"&", $pos1 + 6);
143 : strlen($a_location);
144 $par[
"docid"] = substr($a_location, $pos1+6, $len - ($pos1+6));
155 if (strpos($a_location,
"vimeo.com") > 0)
168 $pos1 = strpos($a_location,
"vimeo.com/");
169 $pos2 = strpos($a_location,
"&", $pos1 + 10);
174 : strlen($a_location);
175 $par[
"id"] = substr($a_location, $pos1+10, $len - ($pos1+10));
186 if (strpos($a_location,
"docs.google") > 0)
199 $pos1 = strpos($a_location,
"id=");
200 $pos2 = strpos($a_location,
"&", $pos1 + 3);
205 : strlen($a_location);
206 $par[
"docid"] = substr($a_location, $pos1+3, $len - ($pos1+3));
208 $pos1 = strpos($a_location,
"docID=");
209 $pos2 = strpos($a_location,
"&", $pos1 + 6);
214 : strlen($a_location);
215 $par[
"docid"] = substr($a_location, $pos1+6, $len - ($pos1+6));
217 if (strpos($a_location,
"Presentation?") > 0)
219 $par[
"type"] =
"Presentation";
221 if (strpos($a_location,
"View?") > 0)
223 $par[
"type"] =
"Document";
234 if (!is_array($a_parameter))
236 $a_parameter = array();
245 $a_parameter = array();
252 $a_parameter = array();
259 $a_parameter = array();
266 $a_parameter = array();
269 foreach($ext_par as $name => $value)
271 $a_parameter[$name] = $value;