Loading...
 

TikiPanoramio

Working old example http://tikiwiki.org/tiki-panoramio.php

tiki-panoramio.php
<?php include 'tiki-setup.php'; $default_lon = '2.338'; $default_lat = '48.89'; $default_zoom = '3'; $default_kind = '2'; if (isset($_REQUEST['lon'])) { $lon = preg_replace('/[^0-9\.-]/','',$_REQUEST['lon']); } else { $lon = $default_lon; } if (isset($_REQUEST['lat'])) { $lat = preg_replace('/[^0-9\.-]/','',$_REQUEST['lat']); } else { $lat = $default_lat; } if (isset($_REQUEST['zoom'])) { $zoom = preg_replace('/[^0-9]/','',$_REQUEST['zoom']); } else { $zoom = $default_zoom; } if (isset($_REQUEST['kind'])) { $kind = preg_replace('/[^0-9]/','',$_REQUEST['kind']); } else { $kind = $default_kind; } $smarty->assign('lon',$lon); $smarty->assign('lat',$lat); $smarty->assign('zoom',$zoom); $smarty->assign('kind',$kind); $smarty->assign('mid','tiki-panoramio.tpl'); $smarty->display('tiki.tpl'); ?>

templates/tiki-panoramio.tpl
<form> <input type="text" name="lat" value="{$lat}" size="8" /> <input type="text" name="lon" value="{$lon}" size="8" /> <input type="text" name="zoom" value="{$zoom}" size="2" /> <input type="text" name="kind" value="{$kind}" size="2" /> <input type="submit" name="act" value="{tr}send{/tr}" /> </form> <div>Map is grabbed with panoramio plugin.</div> <iframe src=http://www.panoramio.com/plugin.php?lt={$lat}&amp;ln={$lon}&amp;z={$zoom}&amp;k={$kind} width="100%" height="600px" border="0" style="border:0;"></iframe>

Page last modified on Thursday 23 April 2009 05:48:31 GMT-0000