$gBitSystem->verifyPackage('gmap'); // Now check permissions to access this page $gBitSystem->verifyPermission('p_gmap_update'); // Access the gmap class global $gContent; require_once GMAP_PKG_PATH . 'BitGmap.php'; require_once LIBERTY_PKG_PATH . 'lookup_content_inc.php'; $gContent = new BitGmap(); //Preview mode is handled by javascript on the client side. //There is no callback to the server for previewing changes. $format = 'xml'; $XMLContent = ""; $statusCode = 401; if (!empty($_REQUEST["save_copyright"])) { $gBitUser->verifyTicket(); if ($result = $gContent->storeCopyright($_REQUEST)) { $statusCode = 200; $gBitSmarty->assign_by_ref('copyrightInfo', $result); } //Check if this to remove from a set, or to delete completely } elseif (!empty($_REQUEST["remove_copyright"])) { $gBitUser->verifyTicket(); if ($gContent->removeCopyrightFromTilelayer($_REQUEST)) { $gBitSmarty->assign('removeSucces', true); } else { $XMLContent = tra("Sorry, there was an unknown error trying to remove the copyright."); } } elseif (!empty($_REQUEST["expunge_copyright"])) { $gBitUser->verifyTicket(); if ($gContent->expungeCopyright($_REQUEST)) { $statusCode = 200;