svn commit: r888 - trunk/mapbender/http/php/mod_monitorCapabilities.php
christoph at osgeo.org
christoph at osgeo.org
Mon Nov 20 10:22:56 EST 2006
Author: christoph
Date: 2006-11-20 15:22:56+0000
New Revision: 888
Modified:
trunk/mapbender/http/php/mod_monitorCapabilities.php
Log:
* include via dirname(__FILE__)
* added parameter to getGuisByOwner
Modified: trunk/mapbender/http/php/mod_monitorCapabilities.php
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/http/php/mod_monitorCapabilities.php?view=diff&rev=888&p1=trunk/mapbender/http/php/mod_monitorCapabilities.php&p2=trunk/mapbender/http/php/mod_monitorCapabilities.php&r1=887&r2=888
==============================================================================
--- trunk/mapbender/http/php/mod_monitorCapabilities.php (original)
+++ trunk/mapbender/http/php/mod_monitorCapabilities.php 2006-11-20 15:22:56+0000
@@ -16,8 +16,8 @@
# 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("../php/mb_validateSession.php");
-require_once("../../conf/mapbender.conf");
+require_once(dirname(__FILE__)."/../php/mb_validateSession.php");
+require_once(dirname(__FILE__)."/../../conf/mapbender.conf");
session_start();
import_request_variables("PG");
?>
@@ -32,13 +32,13 @@
</head>
<body>
<?php
-require_once("../classes/class_wms.php");
-require_once("../classes/class_administration.php");
+require_once(dirname(__FILE__)."/../classes/class_wms.php");
+require_once(dirname(__FILE__)."/../classes/class_administration.php");
$con = db_connect($DBSERVER,$OWNER,$PW);
db_select_db(DB,$con);
$admin = new administration();
-$ownguis = $admin->getGuisByOwner($_SESSION["mb_user_id"]);
-$permguis = $admin->getGuisByPermission($_SESSION["mb_user_id"]);
+$ownguis = $admin->getGuisByOwner($_SESSION["mb_user_id"],true);
+$permguis = $admin->getGuisByPermission($_SESSION["mb_user_id"],true);
$wms_id_own = $admin->getWmsByOwnGuis($ownguis);
set_time_limit(0);
More information about the Mapbender_commits
mailing list