require_once 'geograph/imagelist.class.php'; require_once 'geograph/map.class.php'; require_once 'geograph/mapmosaic.class.php'; require_once 'geograph/rastermap.class.php'; include_messages('browse'); init_session(); $smarty = new GeographPage(); dieUnderHighLoad(4); customGZipHandlerStart(); $square = new GridSquare(); if (isset($_GET['inner'])) { $template = 'browse_inner.tpl'; } else { $template = 'browse.tpl'; $smarty->assign('prefixes', $square->getGridPrefixes()); $smarty->assign('kmlist', $square->getKMList()); } //we can be passed a gridreference as gridsquare/northings/eastings //or just gridref. So lets initialise our grid square $grid_given = false; $grid_ok = false; if (isset($_GET['nl'])) { $_SESSION['nl'] = intval($_GET['nl']); } elseif (isset($_SESSION['nl'])) { $_GET['nl'] = intval($_SESSION['nl']); } if (isset($_GET['ht'])) { $_SESSION['ht'] = intval($_GET['ht']); } elseif (isset($_SESSION['ht'])) { $_GET['ht'] = intval($_SESSION['ht']); }