[Mapbender-commits] r1602 - trunk/mapbender/owsproxy/http
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Mon Aug 6 04:31:21 EDT 2007
Author: christoph
Date: 2007-08-06 04:31:21 -0400 (Mon, 06 Aug 2007)
New Revision: 1602
Modified:
trunk/mapbender/owsproxy/http/index.php
Log:
replaced old string functions by multibyte string function
Modified: trunk/mapbender/owsproxy/http/index.php
===================================================================
--- trunk/mapbender/owsproxy/http/index.php 2007-08-06 08:30:31 UTC (rev 1601)
+++ trunk/mapbender/owsproxy/http/index.php 2007-08-06 08:31:21 UTC (rev 1602)
@@ -24,17 +24,17 @@
require_once("../../http/classes/class_mb_exception.php");
/***** conf *****/
$imageformats = array("image/png","image/gif","image/jpeg", "image/jpg");
-$mbkeys = array("sid",strtolower(ini_get("session.name")),"wms");
+$mbkeys = array("sid",mb_strtolower(ini_get("session.name")),"wms");
/***** conf *****/
$reqParams = array();
$myKeys = array_keys($_REQUEST);
// create an associative array with request parameters (get)
for($i=0; $i<count($myKeys); $i++){
- $tmp[$i] = removeQM(strtolower($myKeys[$i]));
+ $tmp[$i] = removeQM(mb_strtolower($myKeys[$i]));
$$tmp[$i] = $_REQUEST[$myKeys[$i]];
- if(!in_array(removeQM(strtolower($myKeys[$i])),$mbkeys)){
- $reqParams[removeQM(strtolower($myKeys[$i]))] = $_REQUEST[$myKeys[$i]];
+ if(!in_array(removeQM(mb_strtolower($myKeys[$i])),$mbkeys)){
+ $reqParams[removeQM(mb_strtolower($myKeys[$i]))] = $_REQUEST[$myKeys[$i]];
}
}
@@ -78,7 +78,7 @@
/************* prepare and send the response ************/
-switch (strtolower($request)) {
+switch (mb_strtolower($request)) {
case 'getcapabilities':
$or = $n->checkURL($row["wms_getcapabilities"]);
$or = completeURL($or);
@@ -140,8 +140,8 @@
return $url;
}
function removeQM($t){
- if(strpos($t,"?") === 0){
- $t = substr($t,1);
+ if(mb_strpos($t,"?") === 0){
+ $t = mb_substr($t,1);
}
return $t;
}
@@ -162,13 +162,13 @@
global $sid,$wms;
$t = array(htmlentities($wms_getcapabilities),htmlentities($wms_getmap),htmlentities($wms_getfeatureinfo));
$new = OWSPROXY ."/". $sid ."/".$wms."?";
- $r = str_replace($t,$new,$wms_getcapabilities_doc);
+ $r = preg_replace($t,$new,$wms_getcapabilities_doc);
header("Content-Type: application/xml");
echo $r;
}
function checkLayerPermission($l){
global $n,$wms_id;
- $myl = split(",",$l);
+ $myl = mb_split(",",$l);
$r = array();
foreach($myl as $mysl){
if($n->getLayerPermission($wms_id, $mysl, $_SESSION["mb_user_id"]) === true){
More information about the Mapbender_commits
mailing list