The module "mod_displayWMC" cannot display XML documents properly if "short_open_tag" is "on" in php.ini, as the "<?xml" is interpreted as PHP.

So I added a check whether "allow_short_tag" is "off" to the mapbender_setup script, see attachment.

--
Baudson Christoph
http://www.wheregroup.com
--- Begin Message ---
Author: christoph
Date: 2007-09-17 11:13:44 -0400 (Mon, 17 Sep 2007)
New Revision: 1670

Modified:
   trunk/mapbender/http/tools/mapbender_setup.php
Log:
checking short_open_tag

Modified: trunk/mapbender/http/tools/mapbender_setup.php
===================================================================
--- trunk/mapbender/http/tools/mapbender_setup.php      2007-09-17 14:51:13 UTC 
(rev 1669)
+++ trunk/mapbender/http/tools/mapbender_setup.php      2007-09-17 15:13:44 UTC 
(rev 1670)
@@ -93,6 +93,10 @@
        $check .="<tr ><td>allow_url_fopen</td>"; 
        if (get_cfg_var('allow_url_fopen')=='1') $check .= "<td>X</td><td><font 
color=#00D000>On</font></td></tr>";
        else $check .= "<td></td><td><font color=#FF0000>Off =>allow_url_fopen 
must be on read <a href='http://www.mapbender.org/index.php/Allow_url_fopen' 
target=_blank>this</a></font></td></tr>";
+# short_open_tag 
+       $check .="<tr ><td>short_open_tag</td>"; 
+       if (get_cfg_var('short_open_tag')!='1') $check .= "<td>X</td><td><font 
color=#00D000>Off</font></td></tr>";
+       else $check .= "<td></td><td><font color=#FF0000>On => Displaying XML 
files will not work properly</font></td></tr>";
        echo $check;
 #################################################
 #PHP Extensioncheck

_______________________________________________
Mapbender_commits mailing list
[EMAIL PROTECTED]
http://lists.osgeo.org/mailman/listinfo/mapbender_commits

--- End Message ---
_______________________________________________
Mapbender_dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapbender_dev

Reply via email to