[Mapbender-commits] r8517 - trunk/mapbender/http/php
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Sun Dec 2 23:20:42 PST 2012
Author: armin11
Date: 2012-12-02 23:20:42 -0800 (Sun, 02 Dec 2012)
New Revision: 8517
Modified:
trunk/mapbender/http/php/mod_abo_show.php
Log:
change urls in abo mails
Modified: trunk/mapbender/http/php/mod_abo_show.php
===================================================================
--- trunk/mapbender/http/php/mod_abo_show.php 2012-11-29 09:04:40 UTC (rev 8516)
+++ trunk/mapbender/http/php/mod_abo_show.php 2012-12-03 07:20:42 UTC (rev 8517)
@@ -98,23 +98,28 @@
":\n";
if (preg_match("/^[0-9]+(,[0-9]+)*$/", $_POST['wmslist'])) {
$wms_array = explode(',',$_POST['wmslist']);
+ if (defined(MAPBENDER_PATH) && MAPBENDER_PATH != '') {
+ $metadataUrl = MAPBENDER_PATH."/php/mod_showMetadata.php?resource=layer&id=";
+ } else {
+ $metadataUrl = preg_replace(
+ "/(.*)frames\/login.php/",
+ "$1php/mod_showMetadata.php?resource=layer&id=",
+ LOGIN
+ );
+ }
- $metadataUrl = preg_replace("/(.*)frames\/login.php/", "$1php/mod_showMetadata.php?resource=layer&id=", LOGIN);
-
for ($i=0; $i<count($wms_array); $i++) {
- // get layer id
+ // get layer id
$sql = "select layer_id from layer where fkey_wms_id= $1 and layer_pos = 0";
$v = array($wms_array[$i]);
$t = array('i');
$res = db_prep_query($sql,$v,$t);
-
- $layerid_body=db_result($res,0,0);
+ $layerid_body=db_result($res,0,0);
$body_urllist .= $metadataUrl . $layerid_body . "\n";
}
$body_urllist.="\n" .
$email_body_footer .
"\n";
-
//get user email adresses of abo-user
$sql = "select mb_user_email from mb_user, ";
$sql .= "(select distinct fkey_mb_user_id from mb_user_abo_ows " .
More information about the Mapbender_commits
mailing list