$metadataStr .= "<a href='kmldownload.php?download=" . $kml_id . ".kml'>KML (Keyhole Markup Language)</a>"; $user = new User(); // // Monitoring is only available if the user is allowed to access this service // if ($user->isLayerAccessible($layer['ID'])) { if ($subscribe === 1) { $user->addSubscription($layer['WMS ID']); } else { if ($subscribe === 0) { $user = new User(); $user->cancelSubscription($layer['WMS ID']); } } $currentUser = new User(); $is_subscribed = $currentUser->hasSubscription($wms_id); $is_public = $currentUser->isPublic(); //show abo function to registred and authorized users if ($is_subscribed && !$is_public) { $metadataStr .= "<tr><th>Abo</th><td><img src = '../img/mail_delete.png'>" . "<a href = '../php/mod_layerMetadata.php?id=" . $layer_id . "&user_id=" . $currentUser->id . "&subscribe=0'>" . _mb("Monitoring Abo löschen") . "</a></td></tr>"; } else { if (!$is_subscribed && !$is_public) { $metadataStr .= "<tr><th>Abo</th><td><img src = '../img/mail_send.png'>" . "<a href = '../php/mod_layerMetadata.php?id=" . $layer_id . "&user_id=" . $currentUser->id . "&subscribe=1'>" . _mb("Monitoring abonnieren") . "</a></td></tr>"; } } } //if service is secured if ($secured = true) { $slink = HTTP_AUTH_PROXY . "/" . $layer_id . "?REQUEST=GetCapabilities&VERSION=1.1.1&SERVICE=WMS"; echo "<tr><th>Abgesicherte Verbindung</th><td><a href = '" . $slink . "' target=_blank>Secured Capabilities-Dokument</a></td></tr>"; }
// // Monitoring is only available if the user is allowed to access this service // if ($resource == 'wms' or $resource == 'layer') { if ($layerAccessibility) { $is_public = $user->isPublic(); //show abo function to registred and authorized users if (!$is_public) { if ($subscribe == 1) { $user->addSubscription($resourceMetadata['serviceid']); } else { if ($subscribe == 0) { $user->cancelSubscription($resourceMetadata['serviceid']); } } $is_subscribed = $user->hasSubscription($resourceMetadata['serviceid']); } } $html .= $aboStr; } $html .= $tableEnd; $html .= '</p>'; $html .= '</div>'; //**************************overview part end****************************** //**************************properties part begin****************************** if ($layout == 'accordion') { $html .= '<h3><a href="#">' . $translation["properties"] . '</a></h3>'; $html .= '<div style="height:300px">'; } if ($layout == 'tabs') { $html .= '<div id="tabs-2">';