40 if (strpos($a_location,
"youtube.com") > 0 ||
41 strpos($a_location,
"youtu.be") > 0)
54 $pos1 = strpos($a_location,
"v=");
55 $pos2 = strpos($a_location,
"&", $pos1);
60 : strlen($a_location);
61 $par[
"v"] = substr($a_location, $pos1+2, $len - ($pos1+2));
63 else if (strpos($a_location,
"youtu.be") > 0)
76 if (strpos($a_location,
"flickr.com") > 0)
89 $pos1 = strpos($a_location,
"flickr.com/photos/");
90 $pos2 = strpos($a_location,
"/", $pos1+18);
96 $par[
"user_id"] = substr($a_location, $pos1+18, $len - ($pos1+18));
100 $pos1 = strpos($a_location,
"/tags/");
101 $pos2 = strpos($a_location,
"/", $pos1+6);
106 : strlen($a_location);
107 $par[
"tags"] = substr($a_location, $pos1+6, $len - ($pos1+6));
111 $pos1 = strpos($a_location,
"/sets/");
112 $pos2 = strpos($a_location,
"/", $pos1+6);
118 $par[
"sets"] = substr($a_location, $pos1+6, $len - ($pos1+6));
129 if (strpos($a_location,
"video.google") > 0)
142 $pos1 = strpos($a_location,
"docid=");
143 $pos2 = strpos($a_location,
"&", $pos1 + 6);
148 : strlen($a_location);
149 $par[
"docid"] = substr($a_location, $pos1+6, $len - ($pos1+6));
160 if (strpos($a_location,
"vimeo.com") > 0)
173 $pos1 = strpos($a_location,
"vimeo.com/");
174 $pos2 = strpos($a_location,
"&", $pos1 + 10);
179 : strlen($a_location);
180 $par[
"id"] = substr($a_location, $pos1+10, $len - ($pos1+10));
191 if (strpos($a_location,
"docs.google") > 0)
204 $pos1 = strpos($a_location,
"id=");
205 $pos2 = strpos($a_location,
"&", $pos1 + 3);
210 : strlen($a_location);
211 $par[
"docid"] = substr($a_location, $pos1+3, $len - ($pos1+3));
213 $pos1 = strpos($a_location,
"docID=");
214 $pos2 = strpos($a_location,
"&", $pos1 + 6);
219 : strlen($a_location);
220 $par[
"docid"] = substr($a_location, $pos1+6, $len - ($pos1+6));
222 if (strpos($a_location,
"Presentation?") > 0)
224 $par[
"type"] =
"Presentation";
226 if (strpos($a_location,
"View?") > 0)
228 $par[
"type"] =
"Document";
239 if (!is_array($a_parameter))
241 $a_parameter =
array();
250 $a_parameter =
array();
257 $a_parameter =
array();
264 $a_parameter =
array();
271 $a_parameter =
array();
274 foreach($ext_par as $name => $value)
276 $a_parameter[$name] = $value;
Create styles array
The data for the language used.