getParameter("wmcId"); $mapUrls = $ajaxResponse->getParameter("mapUrls"); if (!$wmcId) { $ajaxResponse->setSuccess(false); $ajaxResponse->setMessage('wmcId not set'); $ajaxResponse->send(); } if(!$mapUrls){ $ajaxResponse->setSuccess(false); $ajaxResponse->setMessage('mapURLs not set'); $ajaxResponse->send(); } switch ($ajaxResponse->getMethod()) { case "saveWmcPreview": //check if all urls have been send - sometimes only false is send - then delete this entry! //loop $mapUrlsNew = array(); $problemUrls = array(); for($i=0; $isetSuccess(false); $ajaxResponse->setMessage(_mb('Preview could not be created')); $ajaxResponse->send(); } else { if (count($problemUrls) > 0) { $ajaxResponse->setSuccess(true); $ajaxResponse->setMessage(_mb('Preview saved - but following service urls are not included cause the firewall prevent this!').": ".$listOfProblemUrls); $ajaxResponse->send(); } else { $ajaxResponse->setSuccess(true); $ajaxResponse->setMessage(_mb('Preview saved')); $ajaxResponse->send(); } } break; default: $ajaxResponse->setSuccess(false); $ajaxResponse->setMessage(_mb("invalid method")); } $ajaxResponse->send(); ?>