[Mapbender-commits] r5928 - branches/3_dev/http/plugins

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Sun Apr 11 09:29:39 EDT 2010


Author: astrid_emde
Date: 2010-04-11 09:29:39 -0400 (Sun, 11 Apr 2010)
New Revision: 5928

Added:
   branches/3_dev/http/plugins/mod_sendUserMail.php
Log:


Added: branches/3_dev/http/plugins/mod_sendUserMail.php
===================================================================
--- branches/3_dev/http/plugins/mod_sendUserMail.php	                        (rev 0)
+++ branches/3_dev/http/plugins/mod_sendUserMail.php	2010-04-11 13:29:39 UTC (rev 5928)
@@ -0,0 +1,33 @@
+<?php
+# $Id: 
+# http://www.mapbender.org/index.php
+# Copyright (C) 2002 CCGIS 
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# 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.
+
+#require_once(dirname(__FILE__)."/../../core/validateSession.php");
+require_once dirname(__FILE__) . "/../../core/globalSettings.php";
+require_once dirname(__FILE__)."/../../core/lib/class_Mapbender.php";
+require_once(dirname(__FILE__)."/../../core/lib/class_User.php");
+
+$command = $_REQUEST["command"];
+
+if($command == 'sendMailToUser') {
+	$user = new User($_REQUEST['userId']);
+	$user->load();	
+	$sendMail = $user->sendUserLoginMail();
+	echo $sendMail;
+}
+?>



More information about the Mapbender_commits mailing list