'; ?> SLD Get Styles "; #echo $style_xml; #echo ""; #$style_content = fread($style_xml); #admin_nameBrandenburg $style_filename = "../getstyles/wms_".$wmsList.".php"; $style_file = fopen($style_filename,"w") or die ($style_filename." not writable!"); if(!is_writable($style_filename)){ echo $style_filename."not writable!!!
"; } $cnt_line = 0; fwrite($style_file, "<".chr(63)."php echo ''; ".chr(63).">\r\n"); //while(!feof($style_xml)){ //$line = preg_replace("md5userid", "<".chr(63)."php echo ".chr(36)."_REQUEST['id']; ".chr(63).">",fgets($style_xml)); fwrite($style_file, $style_xml); #echo fgets($style_xml); //$cnt_line++; //} #fputs($style_file, $style_content) or die ($style_filename." not writable"); @fclose($style_xml); fclose($style_file); #include(dirname(__FILE__)."/../../conf/www.conf"); $pattern = "/" . basename($login) . "/"; $sql = "UPDATE wms SET wms_filter = $1 WHERE wms_id = $2"; $v = array(preg_replace($pattern,$style_filename,$login), $wmsList); $t = array("s", "i"); echo $sql; db_prep_query($sql, $v, $t) or die("unable to change filter!"); } ### $sql = "SELECT * FROM wms ORDER BY wms_title"; $res = db_query($sql); $cnt = 0; echo "
"; echo "
"; echo "
"; echo "
"; if($style_filename){ $style_file = fopen($style_filename,"r"); while(!feof($style_file)){ $content = preg_replace("//",">",$content)."
"; } fclose($style_file); } ?>