It's already uncommented..<br>Any ideas?<br><br><br><br><i><b>Config.php:</b></i><br><br><br><?php<br>/*Copyright (c) 2009, Dan "Ducky" Little & GeoMOOSE.org<br><br>Permission is hereby granted, free of charge, to any person obtaining a copy<br>
of this software and associated documentation files (the "Software"), to deal<br>in the Software without restriction, including without limitation the rights<br>to use, copy, modify, merge, publish, distribute, sublicense, and/or sell<br>
copies of the Software, and to permit persons to whom the Software is<br>furnished to do so, subject to the following conditions:<br><br>The above copyright notice and this permission notice shall be included in<br>all copies or substantial portions of the Software.<br>
<br>THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR<br>IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,<br>FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE<br>
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER<br>LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,<br>OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN<br>
THE SOFTWARE.*/<br><br>#<br># This is meant to allow specific environmental includes for<br># GeoMOOSE 2 PHP Services. Substantive configuraiton options<br># should be added to settings.ini<br>#<br><br>/* Check for the required libraries<br>
* g2/curl are used for printing. If you're not using printing<br> * you can avoid using these modules.<br> *<br> * mapscript and dbase are used for most operations using them<br> * cannot be avoided<br> */<br><br>if(!extension_loaded('gd') && !extension_loaded('gd2')) {<br>
dl('php_gd2.'.PHP_SHLIB_SUFFIX);<br>}<br><br>if(!extension_loaded('curl')) {<br> dl('php_curl.'.PHP_SHLIB_SUFFIX);<br>}<br><br>if(!extension_loaded('MapScript')) {<br> dl('php_mapscript.'.PHP_SHLIB_SUFFIX);<br>
}<br><br>if(!extension_loaded('dbase')) {<br> dl('php_dbase.'.PHP_SHLIB_SUFFIX);<br>}<br><br><br># Load the configration file<br>$CONFIGURATION = parse_ini_file('../../conf/settings.ini');<br><br>
function getMapbook() {<br> global $CONFIGURATION;<br> $mapbook = new DOMDocument();<br> $mapbook->load('../../conf/'.$CONFIGURATION['mapbook']);<br> return $mapbook;<br>}<br><br>function getUsername() {<br>
session_start();<br> return $_SESSION['username'];<br>}<br><br><br># Select Functionality ONLY works for Mapserver Layers<br>function getMapfile($mb, $layerName) {<br> $services = $mb->getElementsByTagName('map-source');<br>
$mapfiles = array();<br> for($i = 0; $i < $services->length; $i++) {<br> $service = $services->item($i);<br> $root = $service->getAttribute('name');<br> $layers = $service->getElementsByTagName('layer');<br>
for($l = 0; $l < $layers->length; $l++) {<br> $layer = $layers->item($l);<br> $path = $root.'/'.$layer->getAttribute('name');<br> if($path == $layerName) {<br>
return $service->getElementsByTagName('file')->item(0)->nodeValue;<br> }<br> }<br> }<br> return null;<br>}<br><br># get a source based on it's name<br>function getMapSource($mb, $layerName) {<br>
$services = $mb->getElementsByTagName('map-source');<br> $mapfiles = array();<br> for($i = 0; $i < $services->length; $i++) {<br> if($services->item($i)->getAttribute('name') == $layerName) {<br>
return $services->item($i);<br> }<br> }<br> return null;<br>}<br><br><br><br><br>?><br><br><br><br><br><div class="gmail_quote">On Mon, Dec 5, 2011 at 6:52 PM, Eli Adam <span dir="ltr"><<a href="mailto:eadam@co.lincoln.or.us">eadam@co.lincoln.or.us</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Since you are using PHP 5.2.4 I don't think that is an issue, but in<br>
later PHP versions, dl has been removed,<br>
<br>
<a href="http://us2.php.net/manual/en/function.dl.php" target="_blank">http://us2.php.net/manual/en/function.dl.php</a><br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
Eli<br>
</font></span></blockquote></div><br>