$mosaic = new GeographMapMosaic(); $mosaic->deleteAndInvalidateAll(); //redirect to prevent page refreshes of this url header("Location:http://{$_SERVER['HTTP_HOST']}/admin/recreatemaps.php"); exit; } if (isset($_GET['invalidateAll']) && $USER->hasPerm('admin')) { $mosaic = new GeographMapMosaic(); $mosaic->invalidateAll(); //redirect to prevent page refreshes of this url header("Location:http://{$_SERVER['HTTP_HOST']}/admin/recreatemaps.php"); exit; } if (isset($_GET['expireAll']) && $USER->hasPerm('admin')) { $mosaic = new GeographMapMosaic(); $mosaic->expireAll($_GET['expireAll'] ? true : false); $smarty->clear_cache(null, 'mapbrowse'); //redirect to prevent page refreshes of this url header("Location:http://{$_SERVER['HTTP_HOST']}/admin/recreatemaps.php"); exit; } $db = NewADOConnection($GLOBALS['DSN']); if (isset($_GET['coast_GB_40'])) { //invalidate coast'ish' GB squares at thumbnail level! $prefixes = $db->GetAll("select * \n\tfrom gridprefix \n\twhere reference_index = 1 \n\tand landcount < 9500 \n\tand landcount > 0"); foreach ($prefixes as $idx => $prefix) { $minx = $prefix['origin_x']; $maxx = $prefix['origin_x'] + $prefix['width'] - 1; $miny = $prefix['origin_y']; $maxy = $prefix['origin_y'] + $prefix['height'] - 1; if ($_GET['do']) {