';
?>
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 = str_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");
$sql = "UPDATE wms SET wms_filter = '".str_replace(basename($login),$style_filename,$login)."' WHERE wms_id = ". $wmsList;
echo $sql;
db_query($sql) or die("unable to change filter!");
}
###
$sql = "SELECT * FROM wms ORDER BY wms_title";
$res = db_query($sql);
$cnt = 0;
echo "