authorize bots to read sitemap
[wikifarm.git] / install / cookbook / geoloc.php
CommitLineData
b1b3c24c
DB
1<?php
2
3Markup('dynamap','inline','/\\(:dynamap:\\)/e',"Keep(Dynamap())");
4
5function 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';
14return '
15<object
16classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
17codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"
18width="600"
19height="450"
20align="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
27src="'.$mapfile.'"
28quality="high"
29bgcolor="#ffffff"
30width="600"
31height="450"
32name="dynamap"
33id="dynamap"
34align="middle"
35flashvars="initfile='.urlencode($initfile).'"
36type="application/x-shockwave-flash"
37menu="false"
38wmode="opaque"
39salign="tl"
40pluginspage="http://www.macromedia.com/go/getflashplayer"/>
41</object>';
42}
43
44?>