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,
"docs.google") > 0)
168 $pos1 = strpos($a_location,
"id=");
169 $pos2 = strpos($a_location,
"&", $pos1 + 3);
174 : strlen($a_location);
175 $par[
"docid"] = substr($a_location, $pos1+3, $len - ($pos1+3));
177 $pos1 = strpos($a_location,
"docID=");
178 $pos2 = strpos($a_location,
"&", $pos1 + 6);
183 : strlen($a_location);
184 $par[
"docid"] = substr($a_location, $pos1+6, $len - ($pos1+6));
186 if (strpos($a_location,
"Presentation?") > 0)
188 $par[
"type"] =
"Presentation";
190 if (strpos($a_location,
"View?") > 0)
192 $par[
"type"] =
"Document";
203 if (!is_array($a_parameter))
205 $a_parameter = array();
214 $a_parameter = array();
221 $a_parameter = array();
228 $a_parameter = array();
235 $a_parameter = array();
238 foreach($ext_par as $name => $value)
240 $a_parameter[$name] = $value;