Link to the X.org production environement.
[wikifarm.git] / install / cookbook / geoloc.php
1 <?php
2
3 Markup('dynamap','inline','/\\(:dynamap:\\)/e',"Keep(Dynamap())");
4
5 function Dynamap() {
6 global $XnetWikiGroup;
7 if ($XnetWikiGroup) {
8 $mapfolder = 'http://www.polytechnique.net/'.$XnetWikiGroup.'/geoloc/';
9 } else {
10 $mapfolder = 'http://www.polytechnique.org/geoloc/';
11 }
12 $initfile = $mapfolder.'init/?only_current=on';
13 $mapfile = $mapfolder.'dynamap.swf';
14 return '
15 <object
16 classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
17 codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"
18 width="600"
19 height="450"
20 align="middle">
21 <param name="movie" value="'.$mapfile.'"/>
22 <param name="bgcolor" value="#ffffff"/>
23 <param name="wmode" value="opaque"/>
24 <param name="quality" value="high"/>
25 <param name="flashvars" value="initfile='.urlencode($initfile).'"/>
26 <embed
27 src="'.$mapfile.'"
28 quality="high"
29 bgcolor="#ffffff"
30 width="600"
31 height="450"
32 name="dynamap"
33 id="dynamap"
34 align="middle"
35 flashvars="initfile='.urlencode($initfile).'"
36 type="application/x-shockwave-flash"
37 menu="false"
38 wmode="opaque"
39 salign="tl"
40 pluginspage="http://www.macromedia.com/go/getflashplayer"/>
41 </object>';
42 }
43
44 ?>