[Mapbender-commits] r8251 - trunk/mapbender/tools
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Tue Feb 14 08:59:07 EST 2012
Author: armin11
Date: 2012-02-14 05:59:07 -0800 (Tue, 14 Feb 2012)
New Revision: 8251
Modified:
trunk/mapbender/tools/mod_mailAbo.php
Log:
Bugfix - system don't send abo mails :-(
Modified: trunk/mapbender/tools/mod_mailAbo.php
===================================================================
--- trunk/mapbender/tools/mod_mailAbo.php 2012-02-13 16:52:20 UTC (rev 8250)
+++ trunk/mapbender/tools/mod_mailAbo.php 2012-02-14 13:59:07 UTC (rev 8251)
@@ -12,6 +12,9 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+//the script looks for a constant MAPBENDER_PATH
+//it must be defined in mapbender.conf
+
require_once(dirname(__FILE__)."/../core/globalSettings.php");
require_once(dirname(__FILE__)."/../http/classes/class_administration.php");
require_once(dirname(__FILE__)."/../http/classes/class_user.php");
@@ -37,6 +40,7 @@
echo "User_id: ". $row["fkey_mb_user_id"] ."\n";
$cnt++;
}
+
$cnt=0;
$mail_user_topic = _mb("Mapbender subscribers notification"); // "GeoPortal.rlp Mitteilung WMS Abonnenten"
$number_of_users_text = _mb("Number of users"); // "Zahl der eingetragenen User IDs"
@@ -104,7 +108,7 @@
$res_wms_t = db_prep_query($sql, $v_wms_t, $t_wms_t);
$row_wms_t = db_fetch_array($res_wms_t);
if ($wms_monitor_status == '-1') {
- if (isset(MAPBENDER_PATH) && MAPBENDER_PATH != '') {
+ if (defined(MAPBENDER_PATH) && MAPBENDER_PATH != '') {
$metadataUrl = MAPBENDER_PATH."/php/mod_showMetadata.php?resource=layer&id=";
} else {
$metadataUrl = preg_replace(
@@ -113,6 +117,9 @@
LOGIN
);
}
+ //following need to be adopted in another installation than geoportal.rlp!! TODO
+ //here work some mod_rewrite rule ;-)
+ $metadataUrl = "http://www.geoportal.rlp.de/layer/";
echo "WMS: ".$wmsid."\n";
$body .= _mb($wms_unreachable_text, $row_wms_t["wms_title"], $wmsid) .
" (" . $wms_monitor_timestamp_end . ")\n" .
More information about the Mapbender_commits
mailing list