Commit 19c34c4a2f359173479f115f7466d336a65de0ab

Authored by Edmar Moretti
1 parent bc7ada5e

Aprimoramento dos códigos para melhoria de performance

classesjs/compactados/menususpenso_compacto.js
1 -eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('d X(9){r($i(9)){$i(9).17="1b x";r(g.1c){6 3=\'<p 7="B" N="z-E:L;" >\';3+=\'<s 7="G-H-F">\';3+=\'<5 7="c"><a 4="C" >&2;&2;&2;&2;&2;\'+$8("D")+\'</a></5>\';3+=\'<5 7="c"><a 4="I" >&2;&2;&2;&2;&2;\'+$8("J")+\'</a></5>\';3+=\'<5 7="c"><a 4="O" >&2;&2;&2;&2;&2;\'+$8("P")+\'</a></5>\';3+=\'<5 7="c"><a 4="K" >&2;&2;&2;&2;&2;\'+$8("Q")+\'</a></5>\';3+=\'<k e="\'+$j("l.o")+\'" n="m(\\\'u\\\')" 4="A" />&2;<k e="\'+$j("l.o")+\'" n="m(\\\'y\\\')" 4="w" />&2;<k e="\'+$j("l.o")+\'" n="m(\\\'M\\\')" 4="1o" />\';3+=\'</s>\';3+=\'</p>\';$i("1f").R=3}d q(19,1a){6 b=0;1g(6 f 1h g){6 v="1m.1n("+b+").1l.1k(\'1i\',{4:\'"+f+"\',1j: g[\'"+f+"\']})";18(v);6 b=b+1}}}Y{W}6 h=V S.T.U(9,{Z:t,10:15,16:14,13:t});h.11.12(q);h.1d()}d 1e(){}',62,87,'||nbsp|ins|id|li|var|class|trad|iddiv||conta|yuimenubaritemlabel|function|src|nomeMenu|oMenuData|oMenuBar||im|img|branco|trocalingua|onclick|gif|div|onMenuBarBeforeRender|if|ul|true|pt||uk|yuimenubarnav|en||brasil|bd|menuajuda|s1|index|type|first|of|menuanalise|s2|menuarquivos|2000|es|style|menujanelas|s3|s4|innerHTML|YAHOO|widget|MenuBar|new|return|montaMenuSuspenso|else|autosubmenudisplay|showdelay|beforeRenderEvent|subscribe|lazyload|750|250|hidedelay|className|eval|p_sType|p_sArgs|yuimenubar|ajudas|render|testamenususpenso|menus|for|in|submenu|itemdata|setProperty|cfg|this|getItem|espanhol'.split('|'),0,{})) 1 +eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('l P(9){j($i(9)){$i(9).Q="O N";j(f.L){6 3=\'<r 7="M" R="z-S:X;" >\';3+=\'<q 7="Y-W-V">\';3+=\'<5 7="c"><a 4="T" >&2;&2;&2;&2;&2;\'+$b("U")+\'</a></5>\';3+=\'<5 7="c"><a 4="K" >&2;&2;&2;&2;&2;\'+$b("J")+\'</a></5>\';3+=\'<5 7="c"><a 4="A" >&2;&2;&2;&2;&2;\'+$b("B")+\'</a></5>\';3+=\'<5 7="c"><a 4="u" >&2;&2;&2;&2;&2;\'+$b("C")+\'</a></5>\';j(I.w>=H)3+=\'<m n="\'+$h("p.o")+\'" d="e(\\\'G\\\')" 4="E" />&2;<m n="\'+$h("p.o")+\'" d="e(\\\'F\\\')" 4="10" />&2;<m n="\'+$h("p.o")+\'" d="e(\\\'1q\\\')" 4="1p" />\';3+=\'</q>\';3+=\'</r>\';$i("1f").1g=3}l t(16,14){6 8=0;13(6 g 11 f){6 v="12.17("+8+").18.1d(\'1e\',{4:\'"+g+"\',1b: f[\'"+g+"\']})";1a(v);6 8=8+1}}}19{1c}6 k=15 1r.1n.1m(9,{1i:s,1h:1j,1k:1l,Z:s});k.D.x(t);k.y()}l 1o(){}',62,90,'||nbsp|ins|id|li|var|class|conta|iddiv||trad|yuimenubaritemlabel|onclick|trocalingua|oMenuData|nomeMenu|im||if|oMenuBar|function|img|src|gif|branco|ul|div|true|onMenuBarBeforeRender|menuarquivos|||subscribe|render||menujanelas|s3|s4|beforeRenderEvent|brasil|en|pt|500|objmapa|s2|menuanalise|ajudas|bd|yuimenubarnav|yuimenubar|montaMenuSuspenso|className|style|index|menuajuda|s1|type|of|2000|first|lazyload|uk|in|this|for|p_sArgs|new|p_sType|getItem|cfg|else|eval|itemdata|return|setProperty|submenu|menus|innerHTML|showdelay|autosubmenudisplay|250|hidedelay|750|MenuBar|widget|testamenususpenso|espanhol|es|YAHOO'.split('|'),0,{}))
classesjs/i3geo_tudo_compacto.js
@@ -211,5 +211,5 @@ eval(function(p,a,c,k,e,d){e=function(c){return(c&lt;a?&#39;&#39;:e(parseInt(c/a)))+((c=c%a @@ -211,5 +211,5 @@ eval(function(p,a,c,k,e,d){e=function(c){return(c&lt;a?&#39;&#39;:e(parseInt(c/a)))+((c=c%a
211 211
212 eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('9(1p.3f.2M.1c("?")[1]){x=1p.3f.2M.1c("?")[1];9(x.1c("#")[0]){x=x.1c("#")[0]}}J{x=""}6G=0;6z=0;6f=0;1q=11;2B=11;j 3g=6h.68.6r(0,1);9(3g==\'N\')2B=G;J 1q=G;7L="1f";3j=-3;3H="";7d="";77=R 26();7g="";7h="";7q="";7p="7r";71="1f";4M="";4F="1f";4l="1f";4t=R 26();3B="";56="1f";V=R 5H();V.5Z("G");V.5k("5d");3c="17";3h="2o";3i="43";9(1q){3c="";3h="7o";3i="5r"}u 5s(e,m){22=R 5q();2O=R 5p();5n=R 5o();23=R 5t();23.t=C+"/1N/1y.14";j 28=(1q)?5u:5z;j 29=(1q)?5y:5x;9(e==34){j 1I=0;9($i("2d")){1I=1I+E($i("2d").k.r)}9($i("2e")){1I=1I+E($i("2e").k.r)}j 1G=E(1E.2N)-28;j 1A=E(1E.2X)-29;9(1G>=5v){1G=47}9(1A>=3k){1A=3k}32{9(v.18.k.r<5m){j 1G=E(1E.2N)-28;j 1A=E(1E.2X)-29;1p.5l(1E.2N,1E.2X);1p.2u(0,0)}}2Y(e){j e=""}v.18.k.r=1G;v.18.k.A=1A;c.w=1G-1I-28;c.h=1A-29;9(v.16("X")){9(v.16("X").k.r){c.w=E(v.16("X").k.r);c.h=E(v.16("X").k.r)}9(v.16("X").k.A){c.h=E(v.16("X").k.A)}}}J{c.w=v.18.58-E($i("2d").k.r)-28;c.h=v.18.5e-29}9($i("20")){$i("20").k.r=c.w;$i("20").k.A=c.h}9($i("2L")){$i("2L").k.r=c.w;$i("2L").k.A=c.h}c.5i="1f";c.5h="";c.5f="2D";c.2k=R 26();c.5g=R 26();c.2Q="";c.5A="";c.5B="";c.5V="";c.5W="5U";c.5T="5";c.2r=5R;c.1a="";c.2E="";c.2S="";c.48="5S";c.49="5X";c.2l="5Y";c.2G="63";c.3l="";c.62="";c.61="";c.3I=u(){9(!$i("2K")){v.18.B="2K"}$i("2K").60="5Q-5P-5G";9(x==""){j 3E=u(Z){x=Z.1o;n.3I()};j p=C+"/1i/1e.Y?1d=5F&"+3H;V.1b(p,"",3E)}J{9(!1p.5D){1H("5I.2n 2t 2s")}9(!1p.5J){1H("5O.2n 2t 2s")}9(!1p.5N){1H("2e.2n 2t 2s")}9(!1p.5K){1H("5L.2n 2t 2s")}22.42("2c",$H("4C"));j p=C+"/1i/1e.Y?1d=4m&4o="+4u+"&w="+c.w+"&h="+c.h+"&x="+x;V.1b(p,"4k",c.2c)}};c.2c=u(Z){9(Z.1o.4n(" 3N.")>-1){1H(Z.1o)}9(Z.1o=="3O"){22.3x("2c");v.18.k.4x="4A";v.18.1U="<3F>4w 4v o 3G 4y o 4B:<3F><a 2M="+C+"/3K.Y >"+C+"/3K.Y</a>";3y("3O")}J{9((Z.1o!="3N")&&(Z.1o!=34)){j 2Q="";j 1W="";K(Z.1o);32{9(1W!=""){2o.v.1l=1W}}2Y(e){j e=""}M("","4r 55 4X 4W 4V: "+2Q,"");4T(10);9(4U=="19"){3M(1)}9(4D=="19"){3M(2)}n.3b(1a);n.38(27);n.2r=E(1V);n.1a=1a;n.4Z=54;n.3p=27;n.53=27;n.3U();2R(Z);n.3P();n.39();n.3J("52");j l=50.51;j 1C=l.D;j b=l.D-1;9(b>=0){1j{9($i(l[b].2a)){9(l[b].3L){K(\'$i(l[b].2a).1U = "\'+l[b].3L+\'"\')}9(l[b].3D){K(\'$i("\'+l[b].2a+\'").1s = u(){M(c,"\'+l[b].3D+\'","");}\');K(\'$i("\'+l[b].2a+\'").1n = u(){M(c,"");};\')}9(l[b].3C){$i(l[b].2a).1x=l[b].3C}9(l[b].3v){K(l[b].3v)}}}1m(b--)}4H();9($i("4G")||$i("4E")){j p=C+"/1i/1e.Y?1d=2J&x="+x;V.1b(p,"2J",2J)}9($i("X")){j i=$i("y").k;i.r=n.w+"17";i.A=n.h+"17";j i=$i("X").k;i.r=n.w+"17";i.A=n.h+"17";i.4K=\'4L(\'+0+" "+(n.w)+" "+(n.h)+" "+0+\')\'}4Q();n.2h=4d(\'n.2I()\',4b);j F=0;9($i("2d")){F=F+E($i("2d").k.r)}9($i("2e")){F=F+E($i("2e").k.r)}9($i("3t")){$i("3t").k.r=n.w+F+"17"}9($i("3r")){j i=$i("3r").k;i.A=n.h+"17";i.r=n.w+"17"}4N();j 1v=5M($i("X"));9($i("3s")){2U.3w.30.31.2u(1v[0]+40,1v[1]+10)}9($i("7m")){2U.7l.30.31.2u(1v[0],1v[1]+10)}J{9($i("3s")){2U.3w.30.31.2u(1v[0],1v[1]+10)}}65("4j");9(7t=="19"){7s();j 1Z=["L","O","N","S"];3T(j l=0;l<4;l++){9($i("y"+1Z[l])){$i("y"+1Z[l]).k.r=n.w;$i("y"+1Z[l]).k.A=n.h;$i("y"+1Z[l]).k.I="2p"}}78()}76("75");9($i("3A")){$i("3A").3S=n.2r}9((n.74=="1f")&&($i("3z"))){$i("3z").k.I="P"}}J{1H("7a. 7f 7e o 3G "+Z.1o);3y}j F=7v.1c("7O");7N(F[1]);9($i(n.2G)){9(7M==""){$i(n.2G).k.I="P"}}9(2w("2f")){2f=2w("2f")}9(2f=="19"){7K()}9(1Y!="P"){9(2w("1Y")){1Y=2w("1Y")}9(1Y=="2p"){7Q()}}9($i("y")){3B=$i("y").t}22.3x("2c");9(7R=="19"){7T()}9(v.16("3u")){9(7P==""){v.16("3u").k.I="P"}}}7A()};c.3J=u(B){9($i(B)){1T=R 3d();1T=3e("1T","2D",B,2b);1T.1K("2A","<b>"+$H("7z")+"</b>","7y",G,11,G,2b);j 1k="";9(2B){j 1k="<y t=\'"+C+"/1N/1y.14\' r=0 A=13 />"}j l=2i.2j.D-1;9(l>=0){1j{9(2i.2j[l]){j F=2i.2j[l].7w;j F=K("7x."+F+"[0]."+7B);W="<1t 1s=\\"U:c.k.3q=\'7C\';\\" 1n=\\"U:c.k.3q=\'P\';\\" 1x=\'"+2i.2j[l].7H+"\'>"+1k+"<y T=\'7G\' t=\'"+C+"/1N/7F/"+7D+"/1y.14\' />"+F+" </1t>";1T.1K("7E"+l,W,23,11,G,11,"2A")}}1m(l--)}1T.1K("","",23,11,G,11,"2A")}};c.3P=u(){9(($i("2z"))&&(!$i("3m"))){$i("2z").1U="<y T=\'72\' t=\\""+6p+"/1y.14\\" 1l=\'6q&6o;&6n;6l\' 1x=\'6m()\' k=\'4h:4i\'/><y B=3m t=\'\' />"}};c.39=u(){9($i("2z")){j p=C+"/1i/1e.Y?1d=6x&x="+x;V.1b(p,"6w",6v)}};c.38=u(27){9($i("37")){$i("37").k.I="P"}j 2y=11;9($i("36")){j 2y=$i("36").6j}9($i("6a")&&n.3p!=27){9(2y){j p=C+"/1i/1e.Y?1d=66&x="+x+"&67="+3j;V.1b(p,"6c",3Q)}J{9(($i("24").t=="")||(n.3l!="19")){j p=C+"/1i/1e.Y?1d=2F&x="+x;V.1b(p,"6i",3Q)}J{j 3a=R 6g("&3o=6e","g");$i("24").t=$i("y").t.6y(3a,\'&3o=6T\');3n("2F",$i("24").t)}}}J{9($i("24"))3n("2F",$i("24").t)}};c.6P=u(){9(($i("6Q"))||($i("2E")&&$i(n.2l+"2g")&&$i(n.2l+"2g").k.I=="2p")){j p=C+"/1i/1e.Y?1d=6U&6V="+70+"&x="+x;V.1b(p,"6Z",6Y)}};c.6W=u(){9($i("2E")){j p=C+"/1i/1e.Y?1d=6O&x="+x;V.1b(p,"6N",6E)}};c.3b=u(1a){9($i("2m")){9((n.1a!=1a)||(!$i("2m").6D())){$i("2m").1U="";j 1D=1a.1c(";");1u=R 3d();1u=3e("1u","2D","2m",2b);j 1W="<b>"+$H("6B")+"</b><y B=\'6H\' k=\'1O:1P;2o:6M\' 1l=\'"+$H("6L")+"\' t=\'"+$1k("1y.14")+"\' />";1u.1K("3W",1W,"6K",G,G,G,2b);1u.6I=6J;j 1L="2x(1h,1h,1h)";j 1C=1D.D;j l=0;9(1C>=0){1j{j q=1D[l].1c("*");j 2C="";9(q[1]==2){2C=\'4P\'}9(q[8]==34){q[8]="1f"}W="<1t B=\'6A"+q[0]+"\'><1S T=6C k=\'4h:4i\' 1s=\\"U:M(c,\'"+$H("6F")+"\',\'44\')\\" 1n=\\"U:M(c,\'\')\\" 1M=\'6X\' 4f=\\"6R\\" 3S=\'"+q[0]+"\' "+2C+" 1x=\'6S(\\"44\\",c)\'/>";9(q[12]=="19"){W+="&1R;<y t="+$1k("6d.1Q")+" 1l=\'"+$H("3Z")+"\' 1s=\\"U:M(c,\'"+$H("3Z")+"\',\'\')\\" 1n=\\"U:M(c,\'\')\\" \\>"}9(q[5]=="19"){W+="&1R;<y t="+$1k("69.1Q")+" 1l=\'"+$H("6b")+"\' 1x=\'6k(c)\' 1s=\\"U:M(c,\'"+$H("6u")+"\',\'6t\')\\" 1n=\\"U:M(c,\'\')\\" \\>"}9((q[10]=="19")||(q[10]=="3X")){W+="&1R;<y t="+$1k("3V.14")+" 1l=\'1F\' 1x=\'1F(\\""+q[0]+"\\")\' 1s=\\"U:M(c,\'"+$H("6s")+"\',\'1F\')\\" 1n=\\"U:M(c,\'\')\\" \\>"}9((q[7]=="19")||(q[7]=="3X")){W+="&1R;<y t="+$1k("3V.14")+" 1l=\'1F\' 1x=\'1F(\\""+q[0]+"\\")\' 1s=\\"U:M(c,\'"+$H("46")+"\',\'1F\')\\" 1n=\\"U:M(c,\'\')\\" \\>"}9(1q){W+="<1t 1l=\'"+$H("46")+"\' k=\'4c-4e:"+1L+"\' B=45"+q[0]+">&1R;"+q[2]+"</1t></1t>"}J{W+="<1t 1l=\'"+$H("7I")+"\' k=\'4c-4e:"+1L+"\' B=45"+q[0]+">&1R;"+"<y t=\'"+C+"/1N/1y.14\' r=0 A=15 />"+q[2]+"</1t></35>"}1u.1K(q[0],W,2b,G,G,G,"3W");W="<y r=1X t="+$1k("1y.14")+" />";1u.1K("",W,23,11,G,11,q[0]);9(1L=="2x(1h,1h,1h)"){j 1L="P"}J{j 1L="2x(1h,1h,1h)"}l++}1m(l<1C)}}}7J()};c.7V=u(1V){9(n.2r!=1V){j 1D=(n.1a).1c(";");j 1z="41.1Q";j l=1D.D-1;9(l>=0){1j{j q=1D[l].1c("*");9(q[6]*1<1V*1){j 1z="7U.1Q"}9(q[6]*1>1V*1){j 1z="7S.1Q"}9(q[6]*1==0){j 1z="41.1Q"}9($i("1z"+q[0])){$i("1z"+q[0]).t=C+"/1N/"+1z}}1m(l--)}}};c.3U=u(){9($i("X")){j 1J="<3Y>";1J+="<1B><z T=1g ></z><z T=1g ><1S k=\'I:P;1O:1P\' 1M=21 t=\'\' B=\'7u\' /></z><z T=1g ></z></1B>";1J+="<1B><z T=1g ><1S k=\'I:P;1O:1P\' 1M=21 t=\'\' B=\'7c\' /></z><z T=1g ><1S k=\'1O:1P;2o:1X;43:1X\'\' 1M=21 t=\'\' B=\'y\' /></z><z T=1g ><1S k=\'I:P;1O:1P\' 1M=21 t=\'\' B=\'7b\' /></z></1B>";1J+="<1B><z T=1g ></z><z T=1g ><1S k=\'I:P;1O:1P\' 1M=21 t=\'\' B=\'79\' /></z><z T=1g ></z></1B>";1J+="</3Y>";$i("X").1U=1J}9(!$i("2V")){j Q=v.2H("35");Q.k.73=47;Q.B="2g";j 1w=v.2H("y");1w.t=C+"/1N/4j.14";1w.4f="2V";1w.B=\'2V\';1w.k.r="4a";1w.k.A="4a";Q.33(1w);Q.1s=u(){c.k.I="P"};Q.1n=u(){c.k.I="2p"};v.18.33(Q)}j 7n="";9(v.16("20")){3R($i("20"))}9(v.16("y")){j Q=v.2H("35");Q.k.r="1X";Q.k.A="1X";Q.B="1r";Q.I="P";v.18.33(Q);9(1q){$i("1r").k.7j="7i(7k=25)"}$i("1r").4O=u(){j 2v=E($i("1r").k.r);j 2q=E($i("1r").k.A);9(1q){9(2v>2){$i("1r").k.r=2v-2}9(2q>2){$i("1r").k.A=2q-2}}J{4g(c.k){r=2v-10+"17"}4g(c.k){A=2q-10+"17"}}};$i("1r").4J=u(){4I("4R")};c.4S="1f";3R($i("y"))}c.4Y=u(){22.42("2R",$H("4p"));j p=C+"/1i/1e.Y?1d=4s&x="+x+"&4q="+4z;V.1b(p,"64",2R)};9(n.2S){K(n.2S)}j F=R 26("48","49","2l");j i=F.D-1;9(i>=0){1j{K("j s = n."+F[i]+"2g");9($i(s)){j d=$i(s).k;d.k.5C="5E";d.k.A=n.h-13;d.k.r="5j%"}}1m(i--)}};c.57=u(){9(c.2k.D>0){j f=c.2k.D-1;9(f>=0){1j{K(c.2k[f])}1m(f--)}}9(2T.D>0){j 1C=2T.D;3T(j f=0;f<1C;f++){K(2T[f])}}};c.59=u(){9(2W.D>0){j f=2W.D-1;9(f>=0){1j{K(2W[f])}1m(f--)}}};c.2I=u(){32{5a(n.2h)}2Y(e){n.2h=""}9(2P.D>0&&2O.5b>0&&2O.5w>0){j f=2P.D-1;9(f>=0){1j{K(2P[f])}1m(f--)}}n.2h=4d(\'n.2I()\',4b)};c.5c=u(){9(2Z.D>0){j f=2Z.D-1;9(f>=0){1j{K(2Z[f])}1m(f--)}}}}',62,492,'|||||||||if|||this|||||||var|style|||objmapa|||ltema|width||src|function|document||g_sid|img|td|height|id|g_locaplic|length|parseInt|temp|true|trad|display|else|eval||mostradicasf|||none|novoel|new||class|javascript|cpObj|tnome|corpoMapa|php|retorno||false|||gif||getElementById|px|body|sim|temas|call|split|funcao|mapa_controle|nao|verdeclaro|250|classesphp|do|im|title|while|onmouseout|data|window|navm|box1|onmouseover|span|mytreeview1|imagemxy|novoimg|onclick|branco|farol|novoh|tr|lle|lista|screen|download|novow|alert|menos|ins|createItem|cor|type|imagens|position|relative|png|nbsp|input|listaPr|innerHTML|mapscale|titulo|0px|g_mapaRefDisplay|letras|openlayers|image|objaguarde|imgBranco|imagemReferencia||Array|mapexten|diminuix|diminuiy|iddiv|null|montaMapa|contemFerramentas|ferramentas|g_janelaMen|obj|tempoParado|g_listaPropriedades|propriedades|funcoesClickMapa|guiaLegenda|listaTemas|js|top|block|hb|scale|problemas|com|moveTo|wb|pCookie|rgb|dinamico|escalaGrafica|propriedadesRaiz|navn|ck|default|legenda|referencia|guiaListaMapas|createElement|verificaMouseParado|pegalistademenus|i3geo|flamingo|href|availWidth|objposicaocursor|g_funcoesMouseParado|tempo|ajaxCorpoMapa|finaliza|g_funcoesClickMapaDefault|YAHOO|imgh|g_funcoesMousemoveMapaDefault|availHeight|catch|g_funcoesNevegaMapaDefault|xp|panel|try|appendChild|undefined|div|refDinamico|boxRef|atualizaReferencia|atualizaEscalaGrafica|re|atualizaListaTemas|g_postpx|Object|treeviewNew|location|app|g_tipotop|g_tipoleft|g_zoomRefDinamico|700|cgi|imagemEscalaGrafica|gravaQuadro|mode|extent|textDecoration|contemImg|maisBotoes1|mst|botao3d|constroiconteudo|janelaBotoes1|fecha|return|ondeestou|escalanum|g_quadrooriginal|funcaoonclick|dica|mashup|br|mapa|g_mashuppar|inicializa|ativaListaPropriedades|ms_criamapa|conteudo|initJanelaZoom|erro|linkquebrado|criaEscalaGrafica|ajaxReferencia|ativaClicks|value|for|criaCorpoMapa|down1|g1|SIM|table|t36||maisamarelo|abre|left|ligadesliga|nometema|t7|1000|guiaTemas|guiaMenu|15px|g_tempotip|background|setTimeout|color|name|with|cursor|pointer|pan|iniciaMapa|g_panM|inicia|search|embedLegenda|o1|tipoimagem|Tempo|corpo|quadrosfilme|g_embedLegenda|abrir|Para|backgroundColor|utilize|g_tipoimagem|white|link|o5|g_barraFerramentas2|outrasOpcoesAdiciona|g_lenteaberta|arvoreAdicionaTema|ativaGuias|zoomboxf|onmouseup|clip|rect|g_destaca|calcposf|onmousemove|CHECKED|ativaMensagemBanner|termina|parado|gerafilmef|g_barraFerramentas1|segundos|em|desenho|atualizaCorpoMapa|cellsize|g_listaFuncoesBotoes|botoes|listaPropriedades|extentTotal|g_celula|de|g_r|verificaClickMapa|offsetWidth|verificaMousemoveMapa|clearTimeout|imgy|verificaNavegaMapa|JSON|offsetHeight|visualatual|objtips|listavisual|navegacaoDir|100|set_response_type|resizeTo|400|objposicaomouse|posicaomouse|posicaocursor|aguarde|pixelLeft|Mapa|Image|g_diminuixM|1024|imgx|g_diminuiyN|g_diminuiyM|g_diminuixN|tempoRedesenho|contaTempoRedesenho|overflow|testafuncoes|auto|criaMapa|sam|cpaint|funcoes|testamenususpenso|testaajax|redesenho|pegaPosicaoObjeto|testaferramentas|menususpenso|skin|yui|50000|guia1|pintamanho|marca|temaAtivo|pinmarca|guia2|guia4|set_async|className|versaoms|utilizacgi|guia5|redesenhaCorpo|mudaiconf|referenciadinamica|zoom|appName|estasel|mapaReferencia|t4|retornaReferenciaDinamica|contextoescala|map|imagemyi|RegExp|navigator|retornaReferencia|checked|limpaseltemaf|es|opcoesEscala|otilde|ccedil|g_localimg|op|substring|t6|limpasel|t5|ajaxEscalaGrafica|retornaBarraEscala|escalagrafica|replace|imagemxi|arrastar_|t1|inputsb|hasChildNodes|ajaxLegendaImagem|t3|g_recupera|lixeira|itemExpand|expandeTema|foldermapa|t2|5px|legendaGrafica|criaLegendaImagem|atualizaLegendaHTML|moveLegi|layer|mudaboxnf|reference|criaLegendaHTML|templateLegenda|atualizaLegendaImagem|checkbox|ajaxLegendaHTML|criaLegenda|g_templateLegenda|g_realca|menuarrow|zIndex|geoip|ativa|autoRedesenho|g_zoomProximo|ajustaEntorno|imgS|Erro|imgO|imgL|g_operacao|criar|Impossivel|g_nomepin|g_arvoreClick|alpha|filter|opacity|janelaBotoes2|maisBotoes2|docMapa|pixelTop|g_tipoacao|g_arvoreClicks|zoomli|geraURLentorno|g_entorno|imgN|g_guiaativa|text|g_traducao|foldermapa1|p13|rebobinaf|g_linguagem|underline|g_visual|propriedadesMapa|visual|ticPropriedades|url|t8|ativaDragDrop|initJanelaMen|atuaLeg|g_locmapas|mostraguiaf|guia|g_3dmap|initJanelaRef|g_docaguias|maisvermelho|docaguias|maisverde|atualizaFarol'.split('|'),0,{})) 212 eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('9(1p.3f.2M.1c("?")[1]){x=1p.3f.2M.1c("?")[1];9(x.1c("#")[0]){x=x.1c("#")[0]}}J{x=""}6G=0;6z=0;6f=0;1q=11;2B=11;j 3g=6h.68.6r(0,1);9(3g==\'N\')2B=G;J 1q=G;7L="1f";3j=-3;3H="";7d="";77=R 26();7g="";7h="";7q="";7p="7r";71="1f";4M="";4F="1f";4l="1f";4t=R 26();3B="";56="1f";V=R 5H();V.5Z("G");V.5k("5d");3c="17";3h="2o";3i="43";9(1q){3c="";3h="7o";3i="5r"}u 5s(e,m){22=R 5q();2O=R 5p();5n=R 5o();23=R 5t();23.t=C+"/1N/1y.14";j 28=(1q)?5u:5z;j 29=(1q)?5y:5x;9(e==34){j 1I=0;9($i("2d")){1I=1I+E($i("2d").k.r)}9($i("2e")){1I=1I+E($i("2e").k.r)}j 1G=E(1E.2N)-28;j 1A=E(1E.2X)-29;9(1G>=5v){1G=47}9(1A>=3k){1A=3k}32{9(v.18.k.r<5m){j 1G=E(1E.2N)-28;j 1A=E(1E.2X)-29;1p.5l(1E.2N,1E.2X);1p.2u(0,0)}}2Y(e){j e=""}v.18.k.r=1G;v.18.k.A=1A;c.w=1G-1I-28;c.h=1A-29;9(v.16("X")){9(v.16("X").k.r){c.w=E(v.16("X").k.r);c.h=E(v.16("X").k.r)}9(v.16("X").k.A){c.h=E(v.16("X").k.A)}}}J{c.w=v.18.58-E($i("2d").k.r)-28;c.h=v.18.5e-29}9($i("20")){$i("20").k.r=c.w;$i("20").k.A=c.h}9($i("2L")){$i("2L").k.r=c.w;$i("2L").k.A=c.h}c.5i="1f";c.5h="";c.5f="2D";c.2k=R 26();c.5g=R 26();c.2Q="";c.5A="";c.5B="";c.5V="";c.5W="5U";c.5T="5";c.2r=5R;c.1a="";c.2E="";c.2S="";c.48="5S";c.49="5X";c.2l="5Y";c.2G="63";c.3l="";c.62="";c.61="";c.3I=u(){9(!$i("2K")){v.18.B="2K"}$i("2K").60="5Q-5P-5G";9(x==""){j 3E=u(Z){x=Z.1o;n.3I()};j p=C+"/1i/1e.Y?1d=5F&"+3H;V.1b(p,"",3E)}J{9(!1p.5D){1H("5I.2n 2t 2s")}9(!1p.5J){1H("5O.2n 2t 2s")}9(!1p.5N){1H("2e.2n 2t 2s")}9(!1p.5K){1H("5L.2n 2t 2s")}22.42("2c",$H("4C"));j p=C+"/1i/1e.Y?1d=4m&4o="+4u+"&w="+c.w+"&h="+c.h+"&x="+x;V.1b(p,"4k",c.2c)}};c.2c=u(Z){9(Z.1o.4n(" 3N.")>-1){1H(Z.1o)}9(Z.1o=="3O"){22.3x("2c");v.18.k.4x="4A";v.18.1U="<3F>4w 4v o 3G 4y o 4B:<3F><a 2M="+C+"/3K.Y >"+C+"/3K.Y</a>";3y("3O")}J{9((Z.1o!="3N")&&(Z.1o!=34)){j 2Q="";j 1W="";K(Z.1o);32{9(1W!=""){2o.v.1l=1W}}2Y(e){j e=""}M("","4r 55 4X 4W 4V: "+2Q,"");4T(10);9(4U=="19"){3M(1)}9(4D=="19"){3M(2)}n.3b(1a);n.38(27);n.2r=E(1V);n.1a=1a;n.4Z=54;n.3p=27;n.53=27;n.3U();2R(Z);n.3P();n.39();n.3J("52");j l=50.51;j 1C=l.D;j b=l.D-1;9(b>=0){1j{9($i(l[b].2a)){9(l[b].3L){K(\'$i(l[b].2a).1U = "\'+l[b].3L+\'"\')}9(l[b].3D){K(\'$i("\'+l[b].2a+\'").1s = u(){M(c,"\'+l[b].3D+\'","");}\');K(\'$i("\'+l[b].2a+\'").1n = u(){M(c,"");};\')}9(l[b].3C){$i(l[b].2a).1x=l[b].3C}9(l[b].3v){K(l[b].3v)}}}1m(b--)}4H();9($i("4G")||$i("4E")){j p=C+"/1i/1e.Y?1d=2J&x="+x;V.1b(p,"2J",2J)}9($i("X")){j i=$i("y").k;i.r=n.w+"17";i.A=n.h+"17";j i=$i("X").k;i.r=n.w+"17";i.A=n.h+"17";i.4K=\'4L(\'+0+" "+(n.w)+" "+(n.h)+" "+0+\')\'}4Q();n.2h=4d(\'n.2I()\',4b);j F=0;9($i("2d")){F=F+E($i("2d").k.r)}9($i("2e")){F=F+E($i("2e").k.r)}9($i("3t")){$i("3t").k.r=n.w+F+"17"}9($i("3r")){j i=$i("3r").k;i.A=n.h+"17";i.r=n.w+"17"}4N();j 1v=5M($i("X"));9($i("3s")){2U.3w.30.31.2u(1v[0]+40,1v[1]+10)}9($i("7m")){2U.7l.30.31.2u(1v[0],1v[1]+10)}J{9($i("3s")){2U.3w.30.31.2u(1v[0],1v[1]+10)}}65("4j");9(7t=="19"){7s();j 1Z=["L","O","N","S"];3T(j l=0;l<4;l++){9($i("y"+1Z[l])){$i("y"+1Z[l]).k.r=n.w;$i("y"+1Z[l]).k.A=n.h;$i("y"+1Z[l]).k.I="2p"}}78()}76("75");9($i("3A")){$i("3A").3S=n.2r}9((n.74=="1f")&&($i("3z"))){$i("3z").k.I="P"}}J{1H("7a. 7f 7e o 3G "+Z.1o);3y}j F=7v.1c("7O");7N(F[1]);9($i(n.2G)){9(7M==""){$i(n.2G).k.I="P"}}9(2w("2f")){2f=2w("2f")}9(2f=="19"){7K()}9(1Y!="P"){9(2w("1Y")){1Y=2w("1Y")}9(1Y=="2p"){7Q()}}9($i("y")){3B=$i("y").t}22.3x("2c");9(7R=="19"){7T()}9(v.16("3u")){9(7P==""){v.16("3u").k.I="P"}}}7A()};c.3J=u(B){9($i(B)){1T=R 3d();1T=3e("1T","2D",B,2b);1T.1K("2A","<b>"+$H("7z")+"</b>","7y",G,11,G,2b);j 1k="";9(2B){j 1k="<y t=\'"+C+"/1N/1y.14\' r=0 A=13 />"}j l=2i.2j.D-1;9(l>=0){1j{9(2i.2j[l]){j F=2i.2j[l].7w;j F=K("7x."+F+"[0]."+7B);W="<1t 1s=\\"U:c.k.3q=\'7C\';\\" 1n=\\"U:c.k.3q=\'P\';\\" 1x=\'"+2i.2j[l].7H+"\'>"+1k+"<y T=\'7G\' t=\'"+C+"/1N/7F/"+7D+"/1y.14\' />"+F+" </1t>";1T.1K("7E"+l,W,23,11,G,11,"2A")}}1m(l--)}1T.1K("","",23,11,G,11,"2A")}};c.3P=u(){9(($i("2z"))&&(!$i("3m"))){$i("2z").1U="<y T=\'72\' t=\\""+6p+"/1y.14\\" 1l=\'6q&6o;&6n;6l\' 1x=\'6m()\' k=\'4h:4i\'/><y B=3m t=\'\' />"}};c.39=u(){9($i("2z")){j p=C+"/1i/1e.Y?1d=6x&x="+x;V.1b(p,"6w",6v)}};c.38=u(27){9($i("37")){$i("37").k.I="P"}j 2y=11;9($i("36")){j 2y=$i("36").6j}9($i("6a")&&n.3p!=27){9(2y){j p=C+"/1i/1e.Y?1d=66&x="+x+"&67="+3j;V.1b(p,"6c",3Q)}J{9(($i("24").t=="")||(n.3l!="19")){j p=C+"/1i/1e.Y?1d=2F&x="+x;V.1b(p,"6i",3Q)}J{j 3a=R 6g("&3o=6e","g");$i("24").t=$i("y").t.6y(3a,\'&3o=6T\');3n("2F",$i("24").t)}}}J{9($i("24"))3n("2F",$i("24").t)}};c.6P=u(){9(($i("6Q"))||($i("2E")&&$i(n.2l+"2g")&&$i(n.2l+"2g").k.I=="2p")){j p=C+"/1i/1e.Y?1d=6U&6V="+70+"&x="+x;V.1b(p,"6Z",6Y)}};c.6W=u(){9($i("2E")){j p=C+"/1i/1e.Y?1d=6O&x="+x;V.1b(p,"6N",6E)}};c.3b=u(1a){9($i("2m")){9((n.1a!=1a)||(!$i("2m").6D())){$i("2m").1U="";j 1D=1a.1c(";");1u=R 3d();1u=3e("1u","2D","2m",2b);j 1W="<b>"+$H("6B")+"</b><y B=\'6H\' k=\'1O:1P;2o:6M\' 1l=\'"+$H("6L")+"\' t=\'"+$1k("1y.14")+"\' />";1u.1K("3W",1W,"6K",G,G,G,2b);1u.6I=6J;j 1L="2x(1h,1h,1h)";j 1C=1D.D;j l=0;9(1C>=0){1j{j q=1D[l].1c("*");j 2C="";9(q[1]==2){2C=\'4P\'}9(q[8]==34){q[8]="1f"}W="<1t B=\'6A"+q[0]+"\'><1S T=6C k=\'4h:4i\' 1s=\\"U:M(c,\'"+$H("6F")+"\',\'44\')\\" 1n=\\"U:M(c,\'\')\\" 1M=\'6X\' 4f=\\"6R\\" 3S=\'"+q[0]+"\' "+2C+" 1x=\'6S(\\"44\\",c)\'/>";9(q[12]=="19"){W+="&1R;<y t="+$1k("6d.1Q")+" 1l=\'"+$H("3Z")+"\' 1s=\\"U:M(c,\'"+$H("3Z")+"\',\'\')\\" 1n=\\"U:M(c,\'\')\\" \\>"}9(q[5]=="19"){W+="&1R;<y t="+$1k("69.1Q")+" 1l=\'"+$H("6b")+"\' 1x=\'6k(c)\' 1s=\\"U:M(c,\'"+$H("6u")+"\',\'6t\')\\" 1n=\\"U:M(c,\'\')\\" \\>"}9((q[10]=="19")||(q[10]=="3X")){W+="&1R;<y t="+$1k("3V.14")+" 1l=\'1F\' 1x=\'1F(\\""+q[0]+"\\")\' 1s=\\"U:M(c,\'"+$H("6s")+"\',\'1F\')\\" 1n=\\"U:M(c,\'\')\\" \\>"}9((q[7]=="19")||(q[7]=="3X")){W+="&1R;<y t="+$1k("3V.14")+" 1l=\'1F\' 1x=\'1F(\\""+q[0]+"\\")\' 1s=\\"U:M(c,\'"+$H("46")+"\',\'1F\')\\" 1n=\\"U:M(c,\'\')\\" \\>"}9(1q){W+="<1t 1l=\'"+$H("46")+"\' k=\'4c-4e:"+1L+"\' B=45"+q[0]+">&1R;"+q[2]+"</1t></1t>"}J{W+="<1t 1l=\'"+$H("7I")+"\' k=\'4c-4e:"+1L+"\' B=45"+q[0]+">&1R;"+"<y t=\'"+C+"/1N/1y.14\' r=0 A=15 />"+q[2]+"</1t></35>"}1u.1K(q[0],W,2b,G,G,G,"3W");W="<y r=1X t="+$1k("1y.14")+" />";1u.1K("",W,23,11,G,11,q[0]);9(1L=="2x(1h,1h,1h)"){j 1L="P"}J{j 1L="2x(1h,1h,1h)"}l++}1m(l<1C)}}}7J()};c.7V=u(1V){9(n.2r!=1V){j 1D=(n.1a).1c(";");j 1z="41.1Q";j l=1D.D-1;9(l>=0){1j{j q=1D[l].1c("*");9(q[6]*1<1V*1){j 1z="7U.1Q"}9(q[6]*1>1V*1){j 1z="7S.1Q"}9(q[6]*1==0){j 1z="41.1Q"}9($i("1z"+q[0])){$i("1z"+q[0]).t=C+"/1N/"+1z}}1m(l--)}}};c.3U=u(){9($i("X")){j 1J="<3Y>";1J+="<1B><z T=1g ></z><z T=1g ><1S k=\'I:P;1O:1P\' 1M=21 t=\'\' B=\'7u\' /></z><z T=1g ></z></1B>";1J+="<1B><z T=1g ><1S k=\'I:P;1O:1P\' 1M=21 t=\'\' B=\'7c\' /></z><z T=1g ><1S k=\'1O:1P;2o:1X;43:1X\'\' 1M=21 t=\'\' B=\'y\' /></z><z T=1g ><1S k=\'I:P;1O:1P\' 1M=21 t=\'\' B=\'7b\' /></z></1B>";1J+="<1B><z T=1g ></z><z T=1g ><1S k=\'I:P;1O:1P\' 1M=21 t=\'\' B=\'79\' /></z><z T=1g ></z></1B>";1J+="</3Y>";$i("X").1U=1J}9(!$i("2V")){j Q=v.2H("35");Q.k.73=47;Q.B="2g";j 1w=v.2H("y");1w.t=C+"/1N/4j.14";1w.4f="2V";1w.B=\'2V\';1w.k.r="4a";1w.k.A="4a";Q.33(1w);Q.1s=u(){c.k.I="P"};Q.1n=u(){c.k.I="2p"};v.18.33(Q)}j 7n="";9(v.16("20")){3R($i("20"))}9(v.16("y")){j Q=v.2H("35");Q.k.r="1X";Q.k.A="1X";Q.B="1r";Q.I="P";v.18.33(Q);9(1q){$i("1r").k.7j="7i(7k=25)"}$i("1r").4O=u(){j 2v=E($i("1r").k.r);j 2q=E($i("1r").k.A);9(1q){9(2v>2){$i("1r").k.r=2v-2}9(2q>2){$i("1r").k.A=2q-2}}J{4g(c.k){r=2v-10+"17"}4g(c.k){A=2q-10+"17"}}};$i("1r").4J=u(){4I("4R")};c.4S="1f";3R($i("y"))}c.4Y=u(){22.42("2R",$H("4p"));j p=C+"/1i/1e.Y?1d=4s&x="+x+"&4q="+4z;V.1b(p,"64",2R)};9(n.2S){K(n.2S)}j F=R 26("48","49","2l");j i=F.D-1;9(i>=0){1j{K("j s = n."+F[i]+"2g");9($i(s)){j d=$i(s).k;d.k.5C="5E";d.k.A=n.h-13;d.k.r="5j%"}}1m(i--)}};c.57=u(){9(c.2k.D>0){j f=c.2k.D-1;9(f>=0){1j{K(c.2k[f])}1m(f--)}}9(2T.D>0){j 1C=2T.D;3T(j f=0;f<1C;f++){K(2T[f])}}};c.59=u(){9(2W.D>0){j f=2W.D-1;9(f>=0){1j{K(2W[f])}1m(f--)}}};c.2I=u(){32{5a(n.2h)}2Y(e){n.2h=""}9(2P.D>0&&2O.5b>0&&2O.5w>0){j f=2P.D-1;9(f>=0){1j{K(2P[f])}1m(f--)}}n.2h=4d(\'n.2I()\',4b)};c.5c=u(){9(2Z.D>0){j f=2Z.D-1;9(f>=0){1j{K(2Z[f])}1m(f--)}}}}',62,492,'|||||||||if|||this|||||||var|style|||objmapa|||ltema|width||src|function|document||g_sid|img|td|height|id|g_locaplic|length|parseInt|temp|true|trad|display|else|eval||mostradicasf|||none|novoel|new||class|javascript|cpObj|tnome|corpoMapa|php|retorno||false|||gif||getElementById|px|body|sim|temas|call|split|funcao|mapa_controle|nao|verdeclaro|250|classesphp|do|im|title|while|onmouseout|data|window|navm|box1|onmouseover|span|mytreeview1|imagemxy|novoimg|onclick|branco|farol|novoh|tr|lle|lista|screen|download|novow|alert|menos|ins|createItem|cor|type|imagens|position|relative|png|nbsp|input|listaPr|innerHTML|mapscale|titulo|0px|g_mapaRefDisplay|letras|openlayers|image|objaguarde|imgBranco|imagemReferencia||Array|mapexten|diminuix|diminuiy|iddiv|null|montaMapa|contemFerramentas|ferramentas|g_janelaMen|obj|tempoParado|g_listaPropriedades|propriedades|funcoesClickMapa|guiaLegenda|listaTemas|js|top|block|hb|scale|problemas|com|moveTo|wb|pCookie|rgb|dinamico|escalaGrafica|propriedadesRaiz|navn|ck|default|legenda|referencia|guiaListaMapas|createElement|verificaMouseParado|pegalistademenus|i3geo|flamingo|href|availWidth|objposicaocursor|g_funcoesMouseParado|tempo|ajaxCorpoMapa|finaliza|g_funcoesClickMapaDefault|YAHOO|imgh|g_funcoesMousemoveMapaDefault|availHeight|catch|g_funcoesNevegaMapaDefault|xp|panel|try|appendChild|undefined|div|refDinamico|boxRef|atualizaReferencia|atualizaEscalaGrafica|re|atualizaListaTemas|g_postpx|Object|treeviewNew|location|app|g_tipotop|g_tipoleft|g_zoomRefDinamico|700|cgi|imagemEscalaGrafica|gravaQuadro|mode|extent|textDecoration|contemImg|maisBotoes1|mst|botao3d|constroiconteudo|janelaBotoes1|fecha|return|ondeestou|escalanum|g_quadrooriginal|funcaoonclick|dica|mashup|br|mapa|g_mashuppar|inicializa|ativaListaPropriedades|ms_criamapa|conteudo|initJanelaZoom|erro|linkquebrado|criaEscalaGrafica|ajaxReferencia|ativaClicks|value|for|criaCorpoMapa|down1|g1|SIM|table|t36||maisamarelo|abre|left|ligadesliga|nometema|t7|1000|guiaTemas|guiaMenu|15px|g_tempotip|background|setTimeout|color|name|with|cursor|pointer|pan|iniciaMapa|g_panM|inicia|search|embedLegenda|o1|tipoimagem|Tempo|corpo|quadrosfilme|g_embedLegenda|abrir|Para|backgroundColor|utilize|g_tipoimagem|white|link|o5|g_barraFerramentas2|outrasOpcoesAdiciona|g_lenteaberta|arvoreAdicionaTema|ativaGuias|zoomboxf|onmouseup|clip|rect|g_destaca|calcposf|onmousemove|CHECKED|ativaMensagemBanner|termina|parado|gerafilmef|g_barraFerramentas1|segundos|em|desenho|atualizaCorpoMapa|cellsize|g_listaFuncoesBotoes|botoes|listaPropriedades|extentTotal|g_celula|de|g_r|verificaClickMapa|offsetWidth|verificaMousemoveMapa|clearTimeout|imgy|verificaNavegaMapa|JSON|offsetHeight|visualatual|objtips|listavisual|navegacaoDir|100|set_response_type|resizeTo|400|objposicaomouse|posicaomouse|posicaocursor|aguarde|pixelLeft|Mapa|Image|g_diminuixM|1024|imgx|g_diminuiyN|g_diminuiyM|g_diminuixN|tempoRedesenho|contaTempoRedesenho|overflow|testafuncoes|auto|criaMapa|sam|cpaint|funcoes|testamenususpenso|testaajax|redesenho|pegaPosicaoObjeto|testaferramentas|menususpenso|skin|yui|50000|guia1|pintamanho|marca|temaAtivo|pinmarca|guia2|guia4|set_async|className|versaoms|utilizacgi|guia5|redesenhaCorpo|mudaiconf|referenciadinamica|zoom|appName|estasel|mapaReferencia|t4|retornaReferenciaDinamica|contextoescala|map|imagemyi|RegExp|navigator|retornaReferencia|checked|limpaseltemaf|es|opcoesEscala|otilde|ccedil|g_localimg|op|substring|t6|limpasel|t5|ajaxEscalaGrafica|retornaBarraEscala|escalagrafica|replace|imagemxi|arrastar_|t1|inputsb|hasChildNodes|ajaxLegendaImagem|t3|g_recupera|lixeira|itemExpand|expandeTema|foldermapa|t2|5px|legendaGrafica|criaLegendaImagem|atualizaLegendaHTML|moveLegi|layer|mudaboxnf|reference|criaLegendaHTML|templateLegenda|atualizaLegendaImagem|checkbox|ajaxLegendaHTML|criaLegenda|g_templateLegenda|g_realca|menuarrow|zIndex|geoip|ativa|autoRedesenho|g_zoomProximo|ajustaEntorno|imgS|Erro|imgO|imgL|g_operacao|criar|Impossivel|g_nomepin|g_arvoreClick|alpha|filter|opacity|janelaBotoes2|maisBotoes2|docMapa|pixelTop|g_tipoacao|g_arvoreClicks|zoomli|geraURLentorno|g_entorno|imgN|g_guiaativa|text|g_traducao|foldermapa1|p13|rebobinaf|g_linguagem|underline|g_visual|propriedadesMapa|visual|ticPropriedades|url|t8|ativaDragDrop|initJanelaMen|atuaLeg|g_locmapas|mostraguiaf|guia|g_3dmap|initJanelaRef|g_docaguias|maisvermelho|docaguias|maisverde|atualizaFarol'.split('|'),0,{}))
213 213
214 -eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('d X(9){r($i(9)){$i(9).17="1b x";r(g.1c){6 3=\'<p 7="B" N="z-E:L;" >\';3+=\'<s 7="G-H-F">\';3+=\'<5 7="c"><a 4="C" >&2;&2;&2;&2;&2;\'+$8("D")+\'</a></5>\';3+=\'<5 7="c"><a 4="I" >&2;&2;&2;&2;&2;\'+$8("J")+\'</a></5>\';3+=\'<5 7="c"><a 4="O" >&2;&2;&2;&2;&2;\'+$8("P")+\'</a></5>\';3+=\'<5 7="c"><a 4="K" >&2;&2;&2;&2;&2;\'+$8("Q")+\'</a></5>\';3+=\'<k e="\'+$j("l.o")+\'" n="m(\\\'u\\\')" 4="A" />&2;<k e="\'+$j("l.o")+\'" n="m(\\\'y\\\')" 4="w" />&2;<k e="\'+$j("l.o")+\'" n="m(\\\'M\\\')" 4="1o" />\';3+=\'</s>\';3+=\'</p>\';$i("1f").R=3}d q(19,1a){6 b=0;1g(6 f 1h g){6 v="1m.1n("+b+").1l.1k(\'1i\',{4:\'"+f+"\',1j: g[\'"+f+"\']})";18(v);6 b=b+1}}}Y{W}6 h=V S.T.U(9,{Z:t,10:15,16:14,13:t});h.11.12(q);h.1d()}d 1e(){}',62,87,'||nbsp|ins|id|li|var|class|trad|iddiv||conta|yuimenubaritemlabel|function|src|nomeMenu|oMenuData|oMenuBar||im|img|branco|trocalingua|onclick|gif|div|onMenuBarBeforeRender|if|ul|true|pt||uk|yuimenubarnav|en||brasil|bd|menuajuda|s1|index|type|first|of|menuanalise|s2|menuarquivos|2000|es|style|menujanelas|s3|s4|innerHTML|YAHOO|widget|MenuBar|new|return|montaMenuSuspenso|else|autosubmenudisplay|showdelay|beforeRenderEvent|subscribe|lazyload|750|250|hidedelay|className|eval|p_sType|p_sArgs|yuimenubar|ajudas|render|testamenususpenso|menus|for|in|submenu|itemdata|setProperty|cfg|this|getItem|espanhol'.split('|'),0,{})) 214 +eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('l P(9){j($i(9)){$i(9).Q="O N";j(f.L){6 3=\'<r 7="M" R="z-S:X;" >\';3+=\'<q 7="Y-W-V">\';3+=\'<5 7="c"><a 4="T" >&2;&2;&2;&2;&2;\'+$b("U")+\'</a></5>\';3+=\'<5 7="c"><a 4="K" >&2;&2;&2;&2;&2;\'+$b("J")+\'</a></5>\';3+=\'<5 7="c"><a 4="A" >&2;&2;&2;&2;&2;\'+$b("B")+\'</a></5>\';3+=\'<5 7="c"><a 4="u" >&2;&2;&2;&2;&2;\'+$b("C")+\'</a></5>\';j(I.w>=H)3+=\'<m n="\'+$h("p.o")+\'" d="e(\\\'G\\\')" 4="E" />&2;<m n="\'+$h("p.o")+\'" d="e(\\\'F\\\')" 4="10" />&2;<m n="\'+$h("p.o")+\'" d="e(\\\'1q\\\')" 4="1p" />\';3+=\'</q>\';3+=\'</r>\';$i("1f").1g=3}l t(16,14){6 8=0;13(6 g 11 f){6 v="12.17("+8+").18.1d(\'1e\',{4:\'"+g+"\',1b: f[\'"+g+"\']})";1a(v);6 8=8+1}}}19{1c}6 k=15 1r.1n.1m(9,{1i:s,1h:1j,1k:1l,Z:s});k.D.x(t);k.y()}l 1o(){}',62,90,'||nbsp|ins|id|li|var|class|conta|iddiv||trad|yuimenubaritemlabel|onclick|trocalingua|oMenuData|nomeMenu|im||if|oMenuBar|function|img|src|gif|branco|ul|div|true|onMenuBarBeforeRender|menuarquivos|||subscribe|render||menujanelas|s3|s4|beforeRenderEvent|brasil|en|pt|500|objmapa|s2|menuanalise|ajudas|bd|yuimenubarnav|yuimenubar|montaMenuSuspenso|className|style|index|menuajuda|s1|type|of|2000|first|lazyload|uk|in|this|for|p_sArgs|new|p_sType|getItem|cfg|else|eval|itemdata|return|setProperty|submenu|menus|innerHTML|showdelay|autosubmenudisplay|250|hidedelay|750|MenuBar|widget|testamenususpenso|espanhol|es|YAHOO'.split('|'),0,{}))
215 215
classesjs/i3geo_tudo_compacto.js.php
@@ -211,7 +211,7 @@ eval(function(p,a,c,k,e,d){e=function(c){return(c&lt;a?&#39;&#39;:e(parseInt(c/a)))+((c=c%a @@ -211,7 +211,7 @@ eval(function(p,a,c,k,e,d){e=function(c){return(c&lt;a?&#39;&#39;:e(parseInt(c/a)))+((c=c%a
211 211
212 eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('9(1p.3f.2M.1c("?")[1]){x=1p.3f.2M.1c("?")[1];9(x.1c("#")[0]){x=x.1c("#")[0]}}J{x=""}6G=0;6z=0;6f=0;1q=11;2B=11;j 3g=6h.68.6r(0,1);9(3g==\'N\')2B=G;J 1q=G;7L="1f";3j=-3;3H="";7d="";77=R 26();7g="";7h="";7q="";7p="7r";71="1f";4M="";4F="1f";4l="1f";4t=R 26();3B="";56="1f";V=R 5H();V.5Z("G");V.5k("5d");3c="17";3h="2o";3i="43";9(1q){3c="";3h="7o";3i="5r"}u 5s(e,m){22=R 5q();2O=R 5p();5n=R 5o();23=R 5t();23.t=C+"/1N/1y.14";j 28=(1q)?5u:5z;j 29=(1q)?5y:5x;9(e==34){j 1I=0;9($i("2d")){1I=1I+E($i("2d").k.r)}9($i("2e")){1I=1I+E($i("2e").k.r)}j 1G=E(1E.2N)-28;j 1A=E(1E.2X)-29;9(1G>=5v){1G=47}9(1A>=3k){1A=3k}32{9(v.18.k.r<5m){j 1G=E(1E.2N)-28;j 1A=E(1E.2X)-29;1p.5l(1E.2N,1E.2X);1p.2u(0,0)}}2Y(e){j e=""}v.18.k.r=1G;v.18.k.A=1A;c.w=1G-1I-28;c.h=1A-29;9(v.16("X")){9(v.16("X").k.r){c.w=E(v.16("X").k.r);c.h=E(v.16("X").k.r)}9(v.16("X").k.A){c.h=E(v.16("X").k.A)}}}J{c.w=v.18.58-E($i("2d").k.r)-28;c.h=v.18.5e-29}9($i("20")){$i("20").k.r=c.w;$i("20").k.A=c.h}9($i("2L")){$i("2L").k.r=c.w;$i("2L").k.A=c.h}c.5i="1f";c.5h="";c.5f="2D";c.2k=R 26();c.5g=R 26();c.2Q="";c.5A="";c.5B="";c.5V="";c.5W="5U";c.5T="5";c.2r=5R;c.1a="";c.2E="";c.2S="";c.48="5S";c.49="5X";c.2l="5Y";c.2G="63";c.3l="";c.62="";c.61="";c.3I=u(){9(!$i("2K")){v.18.B="2K"}$i("2K").60="5Q-5P-5G";9(x==""){j 3E=u(Z){x=Z.1o;n.3I()};j p=C+"/1i/1e.Y?1d=5F&"+3H;V.1b(p,"",3E)}J{9(!1p.5D){1H("5I.2n 2t 2s")}9(!1p.5J){1H("5O.2n 2t 2s")}9(!1p.5N){1H("2e.2n 2t 2s")}9(!1p.5K){1H("5L.2n 2t 2s")}22.42("2c",$H("4C"));j p=C+"/1i/1e.Y?1d=4m&4o="+4u+"&w="+c.w+"&h="+c.h+"&x="+x;V.1b(p,"4k",c.2c)}};c.2c=u(Z){9(Z.1o.4n(" 3N.")>-1){1H(Z.1o)}9(Z.1o=="3O"){22.3x("2c");v.18.k.4x="4A";v.18.1U="<3F>4w 4v o 3G 4y o 4B:<3F><a 2M="+C+"/3K.Y >"+C+"/3K.Y</a>";3y("3O")}J{9((Z.1o!="3N")&&(Z.1o!=34)){j 2Q="";j 1W="";K(Z.1o);32{9(1W!=""){2o.v.1l=1W}}2Y(e){j e=""}M("","4r 55 4X 4W 4V: "+2Q,"");4T(10);9(4U=="19"){3M(1)}9(4D=="19"){3M(2)}n.3b(1a);n.38(27);n.2r=E(1V);n.1a=1a;n.4Z=54;n.3p=27;n.53=27;n.3U();2R(Z);n.3P();n.39();n.3J("52");j l=50.51;j 1C=l.D;j b=l.D-1;9(b>=0){1j{9($i(l[b].2a)){9(l[b].3L){K(\'$i(l[b].2a).1U = "\'+l[b].3L+\'"\')}9(l[b].3D){K(\'$i("\'+l[b].2a+\'").1s = u(){M(c,"\'+l[b].3D+\'","");}\');K(\'$i("\'+l[b].2a+\'").1n = u(){M(c,"");};\')}9(l[b].3C){$i(l[b].2a).1x=l[b].3C}9(l[b].3v){K(l[b].3v)}}}1m(b--)}4H();9($i("4G")||$i("4E")){j p=C+"/1i/1e.Y?1d=2J&x="+x;V.1b(p,"2J",2J)}9($i("X")){j i=$i("y").k;i.r=n.w+"17";i.A=n.h+"17";j i=$i("X").k;i.r=n.w+"17";i.A=n.h+"17";i.4K=\'4L(\'+0+" "+(n.w)+" "+(n.h)+" "+0+\')\'}4Q();n.2h=4d(\'n.2I()\',4b);j F=0;9($i("2d")){F=F+E($i("2d").k.r)}9($i("2e")){F=F+E($i("2e").k.r)}9($i("3t")){$i("3t").k.r=n.w+F+"17"}9($i("3r")){j i=$i("3r").k;i.A=n.h+"17";i.r=n.w+"17"}4N();j 1v=5M($i("X"));9($i("3s")){2U.3w.30.31.2u(1v[0]+40,1v[1]+10)}9($i("7m")){2U.7l.30.31.2u(1v[0],1v[1]+10)}J{9($i("3s")){2U.3w.30.31.2u(1v[0],1v[1]+10)}}65("4j");9(7t=="19"){7s();j 1Z=["L","O","N","S"];3T(j l=0;l<4;l++){9($i("y"+1Z[l])){$i("y"+1Z[l]).k.r=n.w;$i("y"+1Z[l]).k.A=n.h;$i("y"+1Z[l]).k.I="2p"}}78()}76("75");9($i("3A")){$i("3A").3S=n.2r}9((n.74=="1f")&&($i("3z"))){$i("3z").k.I="P"}}J{1H("7a. 7f 7e o 3G "+Z.1o);3y}j F=7v.1c("7O");7N(F[1]);9($i(n.2G)){9(7M==""){$i(n.2G).k.I="P"}}9(2w("2f")){2f=2w("2f")}9(2f=="19"){7K()}9(1Y!="P"){9(2w("1Y")){1Y=2w("1Y")}9(1Y=="2p"){7Q()}}9($i("y")){3B=$i("y").t}22.3x("2c");9(7R=="19"){7T()}9(v.16("3u")){9(7P==""){v.16("3u").k.I="P"}}}7A()};c.3J=u(B){9($i(B)){1T=R 3d();1T=3e("1T","2D",B,2b);1T.1K("2A","<b>"+$H("7z")+"</b>","7y",G,11,G,2b);j 1k="";9(2B){j 1k="<y t=\'"+C+"/1N/1y.14\' r=0 A=13 />"}j l=2i.2j.D-1;9(l>=0){1j{9(2i.2j[l]){j F=2i.2j[l].7w;j F=K("7x."+F+"[0]."+7B);W="<1t 1s=\\"U:c.k.3q=\'7C\';\\" 1n=\\"U:c.k.3q=\'P\';\\" 1x=\'"+2i.2j[l].7H+"\'>"+1k+"<y T=\'7G\' t=\'"+C+"/1N/7F/"+7D+"/1y.14\' />"+F+" </1t>";1T.1K("7E"+l,W,23,11,G,11,"2A")}}1m(l--)}1T.1K("","",23,11,G,11,"2A")}};c.3P=u(){9(($i("2z"))&&(!$i("3m"))){$i("2z").1U="<y T=\'72\' t=\\""+6p+"/1y.14\\" 1l=\'6q&6o;&6n;6l\' 1x=\'6m()\' k=\'4h:4i\'/><y B=3m t=\'\' />"}};c.39=u(){9($i("2z")){j p=C+"/1i/1e.Y?1d=6x&x="+x;V.1b(p,"6w",6v)}};c.38=u(27){9($i("37")){$i("37").k.I="P"}j 2y=11;9($i("36")){j 2y=$i("36").6j}9($i("6a")&&n.3p!=27){9(2y){j p=C+"/1i/1e.Y?1d=66&x="+x+"&67="+3j;V.1b(p,"6c",3Q)}J{9(($i("24").t=="")||(n.3l!="19")){j p=C+"/1i/1e.Y?1d=2F&x="+x;V.1b(p,"6i",3Q)}J{j 3a=R 6g("&3o=6e","g");$i("24").t=$i("y").t.6y(3a,\'&3o=6T\');3n("2F",$i("24").t)}}}J{9($i("24"))3n("2F",$i("24").t)}};c.6P=u(){9(($i("6Q"))||($i("2E")&&$i(n.2l+"2g")&&$i(n.2l+"2g").k.I=="2p")){j p=C+"/1i/1e.Y?1d=6U&6V="+70+"&x="+x;V.1b(p,"6Z",6Y)}};c.6W=u(){9($i("2E")){j p=C+"/1i/1e.Y?1d=6O&x="+x;V.1b(p,"6N",6E)}};c.3b=u(1a){9($i("2m")){9((n.1a!=1a)||(!$i("2m").6D())){$i("2m").1U="";j 1D=1a.1c(";");1u=R 3d();1u=3e("1u","2D","2m",2b);j 1W="<b>"+$H("6B")+"</b><y B=\'6H\' k=\'1O:1P;2o:6M\' 1l=\'"+$H("6L")+"\' t=\'"+$1k("1y.14")+"\' />";1u.1K("3W",1W,"6K",G,G,G,2b);1u.6I=6J;j 1L="2x(1h,1h,1h)";j 1C=1D.D;j l=0;9(1C>=0){1j{j q=1D[l].1c("*");j 2C="";9(q[1]==2){2C=\'4P\'}9(q[8]==34){q[8]="1f"}W="<1t B=\'6A"+q[0]+"\'><1S T=6C k=\'4h:4i\' 1s=\\"U:M(c,\'"+$H("6F")+"\',\'44\')\\" 1n=\\"U:M(c,\'\')\\" 1M=\'6X\' 4f=\\"6R\\" 3S=\'"+q[0]+"\' "+2C+" 1x=\'6S(\\"44\\",c)\'/>";9(q[12]=="19"){W+="&1R;<y t="+$1k("6d.1Q")+" 1l=\'"+$H("3Z")+"\' 1s=\\"U:M(c,\'"+$H("3Z")+"\',\'\')\\" 1n=\\"U:M(c,\'\')\\" \\>"}9(q[5]=="19"){W+="&1R;<y t="+$1k("69.1Q")+" 1l=\'"+$H("6b")+"\' 1x=\'6k(c)\' 1s=\\"U:M(c,\'"+$H("6u")+"\',\'6t\')\\" 1n=\\"U:M(c,\'\')\\" \\>"}9((q[10]=="19")||(q[10]=="3X")){W+="&1R;<y t="+$1k("3V.14")+" 1l=\'1F\' 1x=\'1F(\\""+q[0]+"\\")\' 1s=\\"U:M(c,\'"+$H("6s")+"\',\'1F\')\\" 1n=\\"U:M(c,\'\')\\" \\>"}9((q[7]=="19")||(q[7]=="3X")){W+="&1R;<y t="+$1k("3V.14")+" 1l=\'1F\' 1x=\'1F(\\""+q[0]+"\\")\' 1s=\\"U:M(c,\'"+$H("46")+"\',\'1F\')\\" 1n=\\"U:M(c,\'\')\\" \\>"}9(1q){W+="<1t 1l=\'"+$H("46")+"\' k=\'4c-4e:"+1L+"\' B=45"+q[0]+">&1R;"+q[2]+"</1t></1t>"}J{W+="<1t 1l=\'"+$H("7I")+"\' k=\'4c-4e:"+1L+"\' B=45"+q[0]+">&1R;"+"<y t=\'"+C+"/1N/1y.14\' r=0 A=15 />"+q[2]+"</1t></35>"}1u.1K(q[0],W,2b,G,G,G,"3W");W="<y r=1X t="+$1k("1y.14")+" />";1u.1K("",W,23,11,G,11,q[0]);9(1L=="2x(1h,1h,1h)"){j 1L="P"}J{j 1L="2x(1h,1h,1h)"}l++}1m(l<1C)}}}7J()};c.7V=u(1V){9(n.2r!=1V){j 1D=(n.1a).1c(";");j 1z="41.1Q";j l=1D.D-1;9(l>=0){1j{j q=1D[l].1c("*");9(q[6]*1<1V*1){j 1z="7U.1Q"}9(q[6]*1>1V*1){j 1z="7S.1Q"}9(q[6]*1==0){j 1z="41.1Q"}9($i("1z"+q[0])){$i("1z"+q[0]).t=C+"/1N/"+1z}}1m(l--)}}};c.3U=u(){9($i("X")){j 1J="<3Y>";1J+="<1B><z T=1g ></z><z T=1g ><1S k=\'I:P;1O:1P\' 1M=21 t=\'\' B=\'7u\' /></z><z T=1g ></z></1B>";1J+="<1B><z T=1g ><1S k=\'I:P;1O:1P\' 1M=21 t=\'\' B=\'7c\' /></z><z T=1g ><1S k=\'1O:1P;2o:1X;43:1X\'\' 1M=21 t=\'\' B=\'y\' /></z><z T=1g ><1S k=\'I:P;1O:1P\' 1M=21 t=\'\' B=\'7b\' /></z></1B>";1J+="<1B><z T=1g ></z><z T=1g ><1S k=\'I:P;1O:1P\' 1M=21 t=\'\' B=\'79\' /></z><z T=1g ></z></1B>";1J+="</3Y>";$i("X").1U=1J}9(!$i("2V")){j Q=v.2H("35");Q.k.73=47;Q.B="2g";j 1w=v.2H("y");1w.t=C+"/1N/4j.14";1w.4f="2V";1w.B=\'2V\';1w.k.r="4a";1w.k.A="4a";Q.33(1w);Q.1s=u(){c.k.I="P"};Q.1n=u(){c.k.I="2p"};v.18.33(Q)}j 7n="";9(v.16("20")){3R($i("20"))}9(v.16("y")){j Q=v.2H("35");Q.k.r="1X";Q.k.A="1X";Q.B="1r";Q.I="P";v.18.33(Q);9(1q){$i("1r").k.7j="7i(7k=25)"}$i("1r").4O=u(){j 2v=E($i("1r").k.r);j 2q=E($i("1r").k.A);9(1q){9(2v>2){$i("1r").k.r=2v-2}9(2q>2){$i("1r").k.A=2q-2}}J{4g(c.k){r=2v-10+"17"}4g(c.k){A=2q-10+"17"}}};$i("1r").4J=u(){4I("4R")};c.4S="1f";3R($i("y"))}c.4Y=u(){22.42("2R",$H("4p"));j p=C+"/1i/1e.Y?1d=4s&x="+x+"&4q="+4z;V.1b(p,"64",2R)};9(n.2S){K(n.2S)}j F=R 26("48","49","2l");j i=F.D-1;9(i>=0){1j{K("j s = n."+F[i]+"2g");9($i(s)){j d=$i(s).k;d.k.5C="5E";d.k.A=n.h-13;d.k.r="5j%"}}1m(i--)}};c.57=u(){9(c.2k.D>0){j f=c.2k.D-1;9(f>=0){1j{K(c.2k[f])}1m(f--)}}9(2T.D>0){j 1C=2T.D;3T(j f=0;f<1C;f++){K(2T[f])}}};c.59=u(){9(2W.D>0){j f=2W.D-1;9(f>=0){1j{K(2W[f])}1m(f--)}}};c.2I=u(){32{5a(n.2h)}2Y(e){n.2h=""}9(2P.D>0&&2O.5b>0&&2O.5w>0){j f=2P.D-1;9(f>=0){1j{K(2P[f])}1m(f--)}}n.2h=4d(\'n.2I()\',4b)};c.5c=u(){9(2Z.D>0){j f=2Z.D-1;9(f>=0){1j{K(2Z[f])}1m(f--)}}}}',62,492,'|||||||||if|||this|||||||var|style|||objmapa|||ltema|width||src|function|document||g_sid|img|td|height|id|g_locaplic|length|parseInt|temp|true|trad|display|else|eval||mostradicasf|||none|novoel|new||class|javascript|cpObj|tnome|corpoMapa|php|retorno||false|||gif||getElementById|px|body|sim|temas|call|split|funcao|mapa_controle|nao|verdeclaro|250|classesphp|do|im|title|while|onmouseout|data|window|navm|box1|onmouseover|span|mytreeview1|imagemxy|novoimg|onclick|branco|farol|novoh|tr|lle|lista|screen|download|novow|alert|menos|ins|createItem|cor|type|imagens|position|relative|png|nbsp|input|listaPr|innerHTML|mapscale|titulo|0px|g_mapaRefDisplay|letras|openlayers|image|objaguarde|imgBranco|imagemReferencia||Array|mapexten|diminuix|diminuiy|iddiv|null|montaMapa|contemFerramentas|ferramentas|g_janelaMen|obj|tempoParado|g_listaPropriedades|propriedades|funcoesClickMapa|guiaLegenda|listaTemas|js|top|block|hb|scale|problemas|com|moveTo|wb|pCookie|rgb|dinamico|escalaGrafica|propriedadesRaiz|navn|ck|default|legenda|referencia|guiaListaMapas|createElement|verificaMouseParado|pegalistademenus|i3geo|flamingo|href|availWidth|objposicaocursor|g_funcoesMouseParado|tempo|ajaxCorpoMapa|finaliza|g_funcoesClickMapaDefault|YAHOO|imgh|g_funcoesMousemoveMapaDefault|availHeight|catch|g_funcoesNevegaMapaDefault|xp|panel|try|appendChild|undefined|div|refDinamico|boxRef|atualizaReferencia|atualizaEscalaGrafica|re|atualizaListaTemas|g_postpx|Object|treeviewNew|location|app|g_tipotop|g_tipoleft|g_zoomRefDinamico|700|cgi|imagemEscalaGrafica|gravaQuadro|mode|extent|textDecoration|contemImg|maisBotoes1|mst|botao3d|constroiconteudo|janelaBotoes1|fecha|return|ondeestou|escalanum|g_quadrooriginal|funcaoonclick|dica|mashup|br|mapa|g_mashuppar|inicializa|ativaListaPropriedades|ms_criamapa|conteudo|initJanelaZoom|erro|linkquebrado|criaEscalaGrafica|ajaxReferencia|ativaClicks|value|for|criaCorpoMapa|down1|g1|SIM|table|t36||maisamarelo|abre|left|ligadesliga|nometema|t7|1000|guiaTemas|guiaMenu|15px|g_tempotip|background|setTimeout|color|name|with|cursor|pointer|pan|iniciaMapa|g_panM|inicia|search|embedLegenda|o1|tipoimagem|Tempo|corpo|quadrosfilme|g_embedLegenda|abrir|Para|backgroundColor|utilize|g_tipoimagem|white|link|o5|g_barraFerramentas2|outrasOpcoesAdiciona|g_lenteaberta|arvoreAdicionaTema|ativaGuias|zoomboxf|onmouseup|clip|rect|g_destaca|calcposf|onmousemove|CHECKED|ativaMensagemBanner|termina|parado|gerafilmef|g_barraFerramentas1|segundos|em|desenho|atualizaCorpoMapa|cellsize|g_listaFuncoesBotoes|botoes|listaPropriedades|extentTotal|g_celula|de|g_r|verificaClickMapa|offsetWidth|verificaMousemoveMapa|clearTimeout|imgy|verificaNavegaMapa|JSON|offsetHeight|visualatual|objtips|listavisual|navegacaoDir|100|set_response_type|resizeTo|400|objposicaomouse|posicaomouse|posicaocursor|aguarde|pixelLeft|Mapa|Image|g_diminuixM|1024|imgx|g_diminuiyN|g_diminuiyM|g_diminuixN|tempoRedesenho|contaTempoRedesenho|overflow|testafuncoes|auto|criaMapa|sam|cpaint|funcoes|testamenususpenso|testaajax|redesenho|pegaPosicaoObjeto|testaferramentas|menususpenso|skin|yui|50000|guia1|pintamanho|marca|temaAtivo|pinmarca|guia2|guia4|set_async|className|versaoms|utilizacgi|guia5|redesenhaCorpo|mudaiconf|referenciadinamica|zoom|appName|estasel|mapaReferencia|t4|retornaReferenciaDinamica|contextoescala|map|imagemyi|RegExp|navigator|retornaReferencia|checked|limpaseltemaf|es|opcoesEscala|otilde|ccedil|g_localimg|op|substring|t6|limpasel|t5|ajaxEscalaGrafica|retornaBarraEscala|escalagrafica|replace|imagemxi|arrastar_|t1|inputsb|hasChildNodes|ajaxLegendaImagem|t3|g_recupera|lixeira|itemExpand|expandeTema|foldermapa|t2|5px|legendaGrafica|criaLegendaImagem|atualizaLegendaHTML|moveLegi|layer|mudaboxnf|reference|criaLegendaHTML|templateLegenda|atualizaLegendaImagem|checkbox|ajaxLegendaHTML|criaLegenda|g_templateLegenda|g_realca|menuarrow|zIndex|geoip|ativa|autoRedesenho|g_zoomProximo|ajustaEntorno|imgS|Erro|imgO|imgL|g_operacao|criar|Impossivel|g_nomepin|g_arvoreClick|alpha|filter|opacity|janelaBotoes2|maisBotoes2|docMapa|pixelTop|g_tipoacao|g_arvoreClicks|zoomli|geraURLentorno|g_entorno|imgN|g_guiaativa|text|g_traducao|foldermapa1|p13|rebobinaf|g_linguagem|underline|g_visual|propriedadesMapa|visual|ticPropriedades|url|t8|ativaDragDrop|initJanelaMen|atuaLeg|g_locmapas|mostraguiaf|guia|g_3dmap|initJanelaRef|g_docaguias|maisvermelho|docaguias|maisverde|atualizaFarol'.split('|'),0,{})) 212 eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('9(1p.3f.2M.1c("?")[1]){x=1p.3f.2M.1c("?")[1];9(x.1c("#")[0]){x=x.1c("#")[0]}}J{x=""}6G=0;6z=0;6f=0;1q=11;2B=11;j 3g=6h.68.6r(0,1);9(3g==\'N\')2B=G;J 1q=G;7L="1f";3j=-3;3H="";7d="";77=R 26();7g="";7h="";7q="";7p="7r";71="1f";4M="";4F="1f";4l="1f";4t=R 26();3B="";56="1f";V=R 5H();V.5Z("G");V.5k("5d");3c="17";3h="2o";3i="43";9(1q){3c="";3h="7o";3i="5r"}u 5s(e,m){22=R 5q();2O=R 5p();5n=R 5o();23=R 5t();23.t=C+"/1N/1y.14";j 28=(1q)?5u:5z;j 29=(1q)?5y:5x;9(e==34){j 1I=0;9($i("2d")){1I=1I+E($i("2d").k.r)}9($i("2e")){1I=1I+E($i("2e").k.r)}j 1G=E(1E.2N)-28;j 1A=E(1E.2X)-29;9(1G>=5v){1G=47}9(1A>=3k){1A=3k}32{9(v.18.k.r<5m){j 1G=E(1E.2N)-28;j 1A=E(1E.2X)-29;1p.5l(1E.2N,1E.2X);1p.2u(0,0)}}2Y(e){j e=""}v.18.k.r=1G;v.18.k.A=1A;c.w=1G-1I-28;c.h=1A-29;9(v.16("X")){9(v.16("X").k.r){c.w=E(v.16("X").k.r);c.h=E(v.16("X").k.r)}9(v.16("X").k.A){c.h=E(v.16("X").k.A)}}}J{c.w=v.18.58-E($i("2d").k.r)-28;c.h=v.18.5e-29}9($i("20")){$i("20").k.r=c.w;$i("20").k.A=c.h}9($i("2L")){$i("2L").k.r=c.w;$i("2L").k.A=c.h}c.5i="1f";c.5h="";c.5f="2D";c.2k=R 26();c.5g=R 26();c.2Q="";c.5A="";c.5B="";c.5V="";c.5W="5U";c.5T="5";c.2r=5R;c.1a="";c.2E="";c.2S="";c.48="5S";c.49="5X";c.2l="5Y";c.2G="63";c.3l="";c.62="";c.61="";c.3I=u(){9(!$i("2K")){v.18.B="2K"}$i("2K").60="5Q-5P-5G";9(x==""){j 3E=u(Z){x=Z.1o;n.3I()};j p=C+"/1i/1e.Y?1d=5F&"+3H;V.1b(p,"",3E)}J{9(!1p.5D){1H("5I.2n 2t 2s")}9(!1p.5J){1H("5O.2n 2t 2s")}9(!1p.5N){1H("2e.2n 2t 2s")}9(!1p.5K){1H("5L.2n 2t 2s")}22.42("2c",$H("4C"));j p=C+"/1i/1e.Y?1d=4m&4o="+4u+"&w="+c.w+"&h="+c.h+"&x="+x;V.1b(p,"4k",c.2c)}};c.2c=u(Z){9(Z.1o.4n(" 3N.")>-1){1H(Z.1o)}9(Z.1o=="3O"){22.3x("2c");v.18.k.4x="4A";v.18.1U="<3F>4w 4v o 3G 4y o 4B:<3F><a 2M="+C+"/3K.Y >"+C+"/3K.Y</a>";3y("3O")}J{9((Z.1o!="3N")&&(Z.1o!=34)){j 2Q="";j 1W="";K(Z.1o);32{9(1W!=""){2o.v.1l=1W}}2Y(e){j e=""}M("","4r 55 4X 4W 4V: "+2Q,"");4T(10);9(4U=="19"){3M(1)}9(4D=="19"){3M(2)}n.3b(1a);n.38(27);n.2r=E(1V);n.1a=1a;n.4Z=54;n.3p=27;n.53=27;n.3U();2R(Z);n.3P();n.39();n.3J("52");j l=50.51;j 1C=l.D;j b=l.D-1;9(b>=0){1j{9($i(l[b].2a)){9(l[b].3L){K(\'$i(l[b].2a).1U = "\'+l[b].3L+\'"\')}9(l[b].3D){K(\'$i("\'+l[b].2a+\'").1s = u(){M(c,"\'+l[b].3D+\'","");}\');K(\'$i("\'+l[b].2a+\'").1n = u(){M(c,"");};\')}9(l[b].3C){$i(l[b].2a).1x=l[b].3C}9(l[b].3v){K(l[b].3v)}}}1m(b--)}4H();9($i("4G")||$i("4E")){j p=C+"/1i/1e.Y?1d=2J&x="+x;V.1b(p,"2J",2J)}9($i("X")){j i=$i("y").k;i.r=n.w+"17";i.A=n.h+"17";j i=$i("X").k;i.r=n.w+"17";i.A=n.h+"17";i.4K=\'4L(\'+0+" "+(n.w)+" "+(n.h)+" "+0+\')\'}4Q();n.2h=4d(\'n.2I()\',4b);j F=0;9($i("2d")){F=F+E($i("2d").k.r)}9($i("2e")){F=F+E($i("2e").k.r)}9($i("3t")){$i("3t").k.r=n.w+F+"17"}9($i("3r")){j i=$i("3r").k;i.A=n.h+"17";i.r=n.w+"17"}4N();j 1v=5M($i("X"));9($i("3s")){2U.3w.30.31.2u(1v[0]+40,1v[1]+10)}9($i("7m")){2U.7l.30.31.2u(1v[0],1v[1]+10)}J{9($i("3s")){2U.3w.30.31.2u(1v[0],1v[1]+10)}}65("4j");9(7t=="19"){7s();j 1Z=["L","O","N","S"];3T(j l=0;l<4;l++){9($i("y"+1Z[l])){$i("y"+1Z[l]).k.r=n.w;$i("y"+1Z[l]).k.A=n.h;$i("y"+1Z[l]).k.I="2p"}}78()}76("75");9($i("3A")){$i("3A").3S=n.2r}9((n.74=="1f")&&($i("3z"))){$i("3z").k.I="P"}}J{1H("7a. 7f 7e o 3G "+Z.1o);3y}j F=7v.1c("7O");7N(F[1]);9($i(n.2G)){9(7M==""){$i(n.2G).k.I="P"}}9(2w("2f")){2f=2w("2f")}9(2f=="19"){7K()}9(1Y!="P"){9(2w("1Y")){1Y=2w("1Y")}9(1Y=="2p"){7Q()}}9($i("y")){3B=$i("y").t}22.3x("2c");9(7R=="19"){7T()}9(v.16("3u")){9(7P==""){v.16("3u").k.I="P"}}}7A()};c.3J=u(B){9($i(B)){1T=R 3d();1T=3e("1T","2D",B,2b);1T.1K("2A","<b>"+$H("7z")+"</b>","7y",G,11,G,2b);j 1k="";9(2B){j 1k="<y t=\'"+C+"/1N/1y.14\' r=0 A=13 />"}j l=2i.2j.D-1;9(l>=0){1j{9(2i.2j[l]){j F=2i.2j[l].7w;j F=K("7x."+F+"[0]."+7B);W="<1t 1s=\\"U:c.k.3q=\'7C\';\\" 1n=\\"U:c.k.3q=\'P\';\\" 1x=\'"+2i.2j[l].7H+"\'>"+1k+"<y T=\'7G\' t=\'"+C+"/1N/7F/"+7D+"/1y.14\' />"+F+" </1t>";1T.1K("7E"+l,W,23,11,G,11,"2A")}}1m(l--)}1T.1K("","",23,11,G,11,"2A")}};c.3P=u(){9(($i("2z"))&&(!$i("3m"))){$i("2z").1U="<y T=\'72\' t=\\""+6p+"/1y.14\\" 1l=\'6q&6o;&6n;6l\' 1x=\'6m()\' k=\'4h:4i\'/><y B=3m t=\'\' />"}};c.39=u(){9($i("2z")){j p=C+"/1i/1e.Y?1d=6x&x="+x;V.1b(p,"6w",6v)}};c.38=u(27){9($i("37")){$i("37").k.I="P"}j 2y=11;9($i("36")){j 2y=$i("36").6j}9($i("6a")&&n.3p!=27){9(2y){j p=C+"/1i/1e.Y?1d=66&x="+x+"&67="+3j;V.1b(p,"6c",3Q)}J{9(($i("24").t=="")||(n.3l!="19")){j p=C+"/1i/1e.Y?1d=2F&x="+x;V.1b(p,"6i",3Q)}J{j 3a=R 6g("&3o=6e","g");$i("24").t=$i("y").t.6y(3a,\'&3o=6T\');3n("2F",$i("24").t)}}}J{9($i("24"))3n("2F",$i("24").t)}};c.6P=u(){9(($i("6Q"))||($i("2E")&&$i(n.2l+"2g")&&$i(n.2l+"2g").k.I=="2p")){j p=C+"/1i/1e.Y?1d=6U&6V="+70+"&x="+x;V.1b(p,"6Z",6Y)}};c.6W=u(){9($i("2E")){j p=C+"/1i/1e.Y?1d=6O&x="+x;V.1b(p,"6N",6E)}};c.3b=u(1a){9($i("2m")){9((n.1a!=1a)||(!$i("2m").6D())){$i("2m").1U="";j 1D=1a.1c(";");1u=R 3d();1u=3e("1u","2D","2m",2b);j 1W="<b>"+$H("6B")+"</b><y B=\'6H\' k=\'1O:1P;2o:6M\' 1l=\'"+$H("6L")+"\' t=\'"+$1k("1y.14")+"\' />";1u.1K("3W",1W,"6K",G,G,G,2b);1u.6I=6J;j 1L="2x(1h,1h,1h)";j 1C=1D.D;j l=0;9(1C>=0){1j{j q=1D[l].1c("*");j 2C="";9(q[1]==2){2C=\'4P\'}9(q[8]==34){q[8]="1f"}W="<1t B=\'6A"+q[0]+"\'><1S T=6C k=\'4h:4i\' 1s=\\"U:M(c,\'"+$H("6F")+"\',\'44\')\\" 1n=\\"U:M(c,\'\')\\" 1M=\'6X\' 4f=\\"6R\\" 3S=\'"+q[0]+"\' "+2C+" 1x=\'6S(\\"44\\",c)\'/>";9(q[12]=="19"){W+="&1R;<y t="+$1k("6d.1Q")+" 1l=\'"+$H("3Z")+"\' 1s=\\"U:M(c,\'"+$H("3Z")+"\',\'\')\\" 1n=\\"U:M(c,\'\')\\" \\>"}9(q[5]=="19"){W+="&1R;<y t="+$1k("69.1Q")+" 1l=\'"+$H("6b")+"\' 1x=\'6k(c)\' 1s=\\"U:M(c,\'"+$H("6u")+"\',\'6t\')\\" 1n=\\"U:M(c,\'\')\\" \\>"}9((q[10]=="19")||(q[10]=="3X")){W+="&1R;<y t="+$1k("3V.14")+" 1l=\'1F\' 1x=\'1F(\\""+q[0]+"\\")\' 1s=\\"U:M(c,\'"+$H("6s")+"\',\'1F\')\\" 1n=\\"U:M(c,\'\')\\" \\>"}9((q[7]=="19")||(q[7]=="3X")){W+="&1R;<y t="+$1k("3V.14")+" 1l=\'1F\' 1x=\'1F(\\""+q[0]+"\\")\' 1s=\\"U:M(c,\'"+$H("46")+"\',\'1F\')\\" 1n=\\"U:M(c,\'\')\\" \\>"}9(1q){W+="<1t 1l=\'"+$H("46")+"\' k=\'4c-4e:"+1L+"\' B=45"+q[0]+">&1R;"+q[2]+"</1t></1t>"}J{W+="<1t 1l=\'"+$H("7I")+"\' k=\'4c-4e:"+1L+"\' B=45"+q[0]+">&1R;"+"<y t=\'"+C+"/1N/1y.14\' r=0 A=15 />"+q[2]+"</1t></35>"}1u.1K(q[0],W,2b,G,G,G,"3W");W="<y r=1X t="+$1k("1y.14")+" />";1u.1K("",W,23,11,G,11,q[0]);9(1L=="2x(1h,1h,1h)"){j 1L="P"}J{j 1L="2x(1h,1h,1h)"}l++}1m(l<1C)}}}7J()};c.7V=u(1V){9(n.2r!=1V){j 1D=(n.1a).1c(";");j 1z="41.1Q";j l=1D.D-1;9(l>=0){1j{j q=1D[l].1c("*");9(q[6]*1<1V*1){j 1z="7U.1Q"}9(q[6]*1>1V*1){j 1z="7S.1Q"}9(q[6]*1==0){j 1z="41.1Q"}9($i("1z"+q[0])){$i("1z"+q[0]).t=C+"/1N/"+1z}}1m(l--)}}};c.3U=u(){9($i("X")){j 1J="<3Y>";1J+="<1B><z T=1g ></z><z T=1g ><1S k=\'I:P;1O:1P\' 1M=21 t=\'\' B=\'7u\' /></z><z T=1g ></z></1B>";1J+="<1B><z T=1g ><1S k=\'I:P;1O:1P\' 1M=21 t=\'\' B=\'7c\' /></z><z T=1g ><1S k=\'1O:1P;2o:1X;43:1X\'\' 1M=21 t=\'\' B=\'y\' /></z><z T=1g ><1S k=\'I:P;1O:1P\' 1M=21 t=\'\' B=\'7b\' /></z></1B>";1J+="<1B><z T=1g ></z><z T=1g ><1S k=\'I:P;1O:1P\' 1M=21 t=\'\' B=\'79\' /></z><z T=1g ></z></1B>";1J+="</3Y>";$i("X").1U=1J}9(!$i("2V")){j Q=v.2H("35");Q.k.73=47;Q.B="2g";j 1w=v.2H("y");1w.t=C+"/1N/4j.14";1w.4f="2V";1w.B=\'2V\';1w.k.r="4a";1w.k.A="4a";Q.33(1w);Q.1s=u(){c.k.I="P"};Q.1n=u(){c.k.I="2p"};v.18.33(Q)}j 7n="";9(v.16("20")){3R($i("20"))}9(v.16("y")){j Q=v.2H("35");Q.k.r="1X";Q.k.A="1X";Q.B="1r";Q.I="P";v.18.33(Q);9(1q){$i("1r").k.7j="7i(7k=25)"}$i("1r").4O=u(){j 2v=E($i("1r").k.r);j 2q=E($i("1r").k.A);9(1q){9(2v>2){$i("1r").k.r=2v-2}9(2q>2){$i("1r").k.A=2q-2}}J{4g(c.k){r=2v-10+"17"}4g(c.k){A=2q-10+"17"}}};$i("1r").4J=u(){4I("4R")};c.4S="1f";3R($i("y"))}c.4Y=u(){22.42("2R",$H("4p"));j p=C+"/1i/1e.Y?1d=4s&x="+x+"&4q="+4z;V.1b(p,"64",2R)};9(n.2S){K(n.2S)}j F=R 26("48","49","2l");j i=F.D-1;9(i>=0){1j{K("j s = n."+F[i]+"2g");9($i(s)){j d=$i(s).k;d.k.5C="5E";d.k.A=n.h-13;d.k.r="5j%"}}1m(i--)}};c.57=u(){9(c.2k.D>0){j f=c.2k.D-1;9(f>=0){1j{K(c.2k[f])}1m(f--)}}9(2T.D>0){j 1C=2T.D;3T(j f=0;f<1C;f++){K(2T[f])}}};c.59=u(){9(2W.D>0){j f=2W.D-1;9(f>=0){1j{K(2W[f])}1m(f--)}}};c.2I=u(){32{5a(n.2h)}2Y(e){n.2h=""}9(2P.D>0&&2O.5b>0&&2O.5w>0){j f=2P.D-1;9(f>=0){1j{K(2P[f])}1m(f--)}}n.2h=4d(\'n.2I()\',4b)};c.5c=u(){9(2Z.D>0){j f=2Z.D-1;9(f>=0){1j{K(2Z[f])}1m(f--)}}}}',62,492,'|||||||||if|||this|||||||var|style|||objmapa|||ltema|width||src|function|document||g_sid|img|td|height|id|g_locaplic|length|parseInt|temp|true|trad|display|else|eval||mostradicasf|||none|novoel|new||class|javascript|cpObj|tnome|corpoMapa|php|retorno||false|||gif||getElementById|px|body|sim|temas|call|split|funcao|mapa_controle|nao|verdeclaro|250|classesphp|do|im|title|while|onmouseout|data|window|navm|box1|onmouseover|span|mytreeview1|imagemxy|novoimg|onclick|branco|farol|novoh|tr|lle|lista|screen|download|novow|alert|menos|ins|createItem|cor|type|imagens|position|relative|png|nbsp|input|listaPr|innerHTML|mapscale|titulo|0px|g_mapaRefDisplay|letras|openlayers|image|objaguarde|imgBranco|imagemReferencia||Array|mapexten|diminuix|diminuiy|iddiv|null|montaMapa|contemFerramentas|ferramentas|g_janelaMen|obj|tempoParado|g_listaPropriedades|propriedades|funcoesClickMapa|guiaLegenda|listaTemas|js|top|block|hb|scale|problemas|com|moveTo|wb|pCookie|rgb|dinamico|escalaGrafica|propriedadesRaiz|navn|ck|default|legenda|referencia|guiaListaMapas|createElement|verificaMouseParado|pegalistademenus|i3geo|flamingo|href|availWidth|objposicaocursor|g_funcoesMouseParado|tempo|ajaxCorpoMapa|finaliza|g_funcoesClickMapaDefault|YAHOO|imgh|g_funcoesMousemoveMapaDefault|availHeight|catch|g_funcoesNevegaMapaDefault|xp|panel|try|appendChild|undefined|div|refDinamico|boxRef|atualizaReferencia|atualizaEscalaGrafica|re|atualizaListaTemas|g_postpx|Object|treeviewNew|location|app|g_tipotop|g_tipoleft|g_zoomRefDinamico|700|cgi|imagemEscalaGrafica|gravaQuadro|mode|extent|textDecoration|contemImg|maisBotoes1|mst|botao3d|constroiconteudo|janelaBotoes1|fecha|return|ondeestou|escalanum|g_quadrooriginal|funcaoonclick|dica|mashup|br|mapa|g_mashuppar|inicializa|ativaListaPropriedades|ms_criamapa|conteudo|initJanelaZoom|erro|linkquebrado|criaEscalaGrafica|ajaxReferencia|ativaClicks|value|for|criaCorpoMapa|down1|g1|SIM|table|t36||maisamarelo|abre|left|ligadesliga|nometema|t7|1000|guiaTemas|guiaMenu|15px|g_tempotip|background|setTimeout|color|name|with|cursor|pointer|pan|iniciaMapa|g_panM|inicia|search|embedLegenda|o1|tipoimagem|Tempo|corpo|quadrosfilme|g_embedLegenda|abrir|Para|backgroundColor|utilize|g_tipoimagem|white|link|o5|g_barraFerramentas2|outrasOpcoesAdiciona|g_lenteaberta|arvoreAdicionaTema|ativaGuias|zoomboxf|onmouseup|clip|rect|g_destaca|calcposf|onmousemove|CHECKED|ativaMensagemBanner|termina|parado|gerafilmef|g_barraFerramentas1|segundos|em|desenho|atualizaCorpoMapa|cellsize|g_listaFuncoesBotoes|botoes|listaPropriedades|extentTotal|g_celula|de|g_r|verificaClickMapa|offsetWidth|verificaMousemoveMapa|clearTimeout|imgy|verificaNavegaMapa|JSON|offsetHeight|visualatual|objtips|listavisual|navegacaoDir|100|set_response_type|resizeTo|400|objposicaomouse|posicaomouse|posicaocursor|aguarde|pixelLeft|Mapa|Image|g_diminuixM|1024|imgx|g_diminuiyN|g_diminuiyM|g_diminuixN|tempoRedesenho|contaTempoRedesenho|overflow|testafuncoes|auto|criaMapa|sam|cpaint|funcoes|testamenususpenso|testaajax|redesenho|pegaPosicaoObjeto|testaferramentas|menususpenso|skin|yui|50000|guia1|pintamanho|marca|temaAtivo|pinmarca|guia2|guia4|set_async|className|versaoms|utilizacgi|guia5|redesenhaCorpo|mudaiconf|referenciadinamica|zoom|appName|estasel|mapaReferencia|t4|retornaReferenciaDinamica|contextoescala|map|imagemyi|RegExp|navigator|retornaReferencia|checked|limpaseltemaf|es|opcoesEscala|otilde|ccedil|g_localimg|op|substring|t6|limpasel|t5|ajaxEscalaGrafica|retornaBarraEscala|escalagrafica|replace|imagemxi|arrastar_|t1|inputsb|hasChildNodes|ajaxLegendaImagem|t3|g_recupera|lixeira|itemExpand|expandeTema|foldermapa|t2|5px|legendaGrafica|criaLegendaImagem|atualizaLegendaHTML|moveLegi|layer|mudaboxnf|reference|criaLegendaHTML|templateLegenda|atualizaLegendaImagem|checkbox|ajaxLegendaHTML|criaLegenda|g_templateLegenda|g_realca|menuarrow|zIndex|geoip|ativa|autoRedesenho|g_zoomProximo|ajustaEntorno|imgS|Erro|imgO|imgL|g_operacao|criar|Impossivel|g_nomepin|g_arvoreClick|alpha|filter|opacity|janelaBotoes2|maisBotoes2|docMapa|pixelTop|g_tipoacao|g_arvoreClicks|zoomli|geraURLentorno|g_entorno|imgN|g_guiaativa|text|g_traducao|foldermapa1|p13|rebobinaf|g_linguagem|underline|g_visual|propriedadesMapa|visual|ticPropriedades|url|t8|ativaDragDrop|initJanelaMen|atuaLeg|g_locmapas|mostraguiaf|guia|g_3dmap|initJanelaRef|g_docaguias|maisvermelho|docaguias|maisverde|atualizaFarol'.split('|'),0,{}))
213 213
214 -eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('d X(9){r($i(9)){$i(9).17="1b x";r(g.1c){6 3=\'<p 7="B" N="z-E:L;" >\';3+=\'<s 7="G-H-F">\';3+=\'<5 7="c"><a 4="C" >&2;&2;&2;&2;&2;\'+$8("D")+\'</a></5>\';3+=\'<5 7="c"><a 4="I" >&2;&2;&2;&2;&2;\'+$8("J")+\'</a></5>\';3+=\'<5 7="c"><a 4="O" >&2;&2;&2;&2;&2;\'+$8("P")+\'</a></5>\';3+=\'<5 7="c"><a 4="K" >&2;&2;&2;&2;&2;\'+$8("Q")+\'</a></5>\';3+=\'<k e="\'+$j("l.o")+\'" n="m(\\\'u\\\')" 4="A" />&2;<k e="\'+$j("l.o")+\'" n="m(\\\'y\\\')" 4="w" />&2;<k e="\'+$j("l.o")+\'" n="m(\\\'M\\\')" 4="1o" />\';3+=\'</s>\';3+=\'</p>\';$i("1f").R=3}d q(19,1a){6 b=0;1g(6 f 1h g){6 v="1m.1n("+b+").1l.1k(\'1i\',{4:\'"+f+"\',1j: g[\'"+f+"\']})";18(v);6 b=b+1}}}Y{W}6 h=V S.T.U(9,{Z:t,10:15,16:14,13:t});h.11.12(q);h.1d()}d 1e(){}',62,87,'||nbsp|ins|id|li|var|class|trad|iddiv||conta|yuimenubaritemlabel|function|src|nomeMenu|oMenuData|oMenuBar||im|img|branco|trocalingua|onclick|gif|div|onMenuBarBeforeRender|if|ul|true|pt||uk|yuimenubarnav|en||brasil|bd|menuajuda|s1|index|type|first|of|menuanalise|s2|menuarquivos|2000|es|style|menujanelas|s3|s4|innerHTML|YAHOO|widget|MenuBar|new|return|montaMenuSuspenso|else|autosubmenudisplay|showdelay|beforeRenderEvent|subscribe|lazyload|750|250|hidedelay|className|eval|p_sType|p_sArgs|yuimenubar|ajudas|render|testamenususpenso|menus|for|in|submenu|itemdata|setProperty|cfg|this|getItem|espanhol'.split('|'),0,{})) 214 +eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('l P(9){j($i(9)){$i(9).Q="O N";j(f.L){6 3=\'<r 7="M" R="z-S:X;" >\';3+=\'<q 7="Y-W-V">\';3+=\'<5 7="c"><a 4="T" >&2;&2;&2;&2;&2;\'+$b("U")+\'</a></5>\';3+=\'<5 7="c"><a 4="K" >&2;&2;&2;&2;&2;\'+$b("J")+\'</a></5>\';3+=\'<5 7="c"><a 4="A" >&2;&2;&2;&2;&2;\'+$b("B")+\'</a></5>\';3+=\'<5 7="c"><a 4="u" >&2;&2;&2;&2;&2;\'+$b("C")+\'</a></5>\';j(I.w>=H)3+=\'<m n="\'+$h("p.o")+\'" d="e(\\\'G\\\')" 4="E" />&2;<m n="\'+$h("p.o")+\'" d="e(\\\'F\\\')" 4="10" />&2;<m n="\'+$h("p.o")+\'" d="e(\\\'1q\\\')" 4="1p" />\';3+=\'</q>\';3+=\'</r>\';$i("1f").1g=3}l t(16,14){6 8=0;13(6 g 11 f){6 v="12.17("+8+").18.1d(\'1e\',{4:\'"+g+"\',1b: f[\'"+g+"\']})";1a(v);6 8=8+1}}}19{1c}6 k=15 1r.1n.1m(9,{1i:s,1h:1j,1k:1l,Z:s});k.D.x(t);k.y()}l 1o(){}',62,90,'||nbsp|ins|id|li|var|class|conta|iddiv||trad|yuimenubaritemlabel|onclick|trocalingua|oMenuData|nomeMenu|im||if|oMenuBar|function|img|src|gif|branco|ul|div|true|onMenuBarBeforeRender|menuarquivos|||subscribe|render||menujanelas|s3|s4|beforeRenderEvent|brasil|en|pt|500|objmapa|s2|menuanalise|ajudas|bd|yuimenubarnav|yuimenubar|montaMenuSuspenso|className|style|index|menuajuda|s1|type|of|2000|first|lazyload|uk|in|this|for|p_sArgs|new|p_sType|getItem|cfg|else|eval|itemdata|return|setProperty|submenu|menus|innerHTML|showdelay|autosubmenudisplay|250|hidedelay|750|MenuBar|widget|testamenususpenso|espanhol|es|YAHOO'.split('|'),0,{}))
215 215
216 216
217 <?php if(extension_loaded('zlib')){ob_end_flush();}?> 217 <?php if(extension_loaded('zlib')){ob_end_flush();}?>
218 \ No newline at end of file 218 \ No newline at end of file
classesjs/menususpenso.js
@@ -37,17 +37,20 @@ function montaMenuSuspenso(iddiv) @@ -37,17 +37,20 @@ function montaMenuSuspenso(iddiv)
37 if($i(iddiv)) 37 if($i(iddiv))
38 { 38 {
39 $i(iddiv).className="yuimenubar yuimenubarnav"; 39 $i(iddiv).className="yuimenubar yuimenubarnav";
  40 +
40 if(oMenuData.ajudas) 41 if(oMenuData.ajudas)
41 { 42 {
42 var ins='<div class="bd" style="z-index:2000;" >'; 43 var ins='<div class="bd" style="z-index:2000;" >';
43 ins += '<ul class="first-of-type">'; 44 ins += '<ul class="first-of-type">';
44 -  
45 ins += '<li class="yuimenubaritemlabel"><a id="menuajuda" >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'+$trad("s1")+'</a></li>'; 45 ins += '<li class="yuimenubaritemlabel"><a id="menuajuda" >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'+$trad("s1")+'</a></li>';
46 ins += '<li class="yuimenubaritemlabel"><a id="menuanalise" >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'+$trad("s2")+'</a></li>'; 46 ins += '<li class="yuimenubaritemlabel"><a id="menuanalise" >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'+$trad("s2")+'</a></li>';
47 ins += '<li class="yuimenubaritemlabel"><a id="menujanelas" >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'+$trad("s3")+'</a></li>'; 47 ins += '<li class="yuimenubaritemlabel"><a id="menujanelas" >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'+$trad("s3")+'</a></li>';
48 ins += '<li class="yuimenubaritemlabel"><a id="menuarquivos" >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'+$trad("s4")+'</a></li>'; 48 ins += '<li class="yuimenubaritemlabel"><a id="menuarquivos" >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'+$trad("s4")+'</a></li>';
  49 + if(objmapa.w >= 500)
49 ins += '<img src="'+$im("branco.gif")+'" onclick="trocalingua(\'pt\')" id="brasil" />&nbsp;<img src="'+$im("branco.gif")+'" onclick="trocalingua(\'en\')" id="uk" />&nbsp;<img src="'+$im("branco.gif")+'" onclick="trocalingua(\'es\')" id="espanhol" />'; 50 ins += '<img src="'+$im("branco.gif")+'" onclick="trocalingua(\'pt\')" id="brasil" />&nbsp;<img src="'+$im("branco.gif")+'" onclick="trocalingua(\'en\')" id="uk" />&nbsp;<img src="'+$im("branco.gif")+'" onclick="trocalingua(\'es\')" id="espanhol" />';
50 - ins += '</ul>'; ins+='</div>'; $i("menus").innerHTML=ins; 51 + ins += '</ul>';
  52 + ins+='</div>';
  53 + $i("menus").innerHTML=ins;
51 } 54 }
52 function onMenuBarBeforeRender(p_sType, p_sArgs) 55 function onMenuBarBeforeRender(p_sType, p_sArgs)
53 { 56 {
classesjs/zerocal/iniciamma.js
@@ -749,8 +749,6 @@ function Mapa(e,m) @@ -749,8 +749,6 @@ function Mapa(e,m)
749 } 749 }
750 } 750 }
751 listaF.createItem("","", imgBranco, false, true, false, "listaFraiz"); 751 listaF.createItem("","", imgBranco, false, true, false, "listaFraiz");
752 -  
753 -  
754 } 752 }
755 }; 753 };
756 /* 754 /*
classesphp/admin.php
@@ -32,7 +32,7 @@ File: i3geo/classesphp/admin.php @@ -32,7 +32,7 @@ File: i3geo/classesphp/admin.php
32 Include: 32 Include:
33 <carrega_ext.php>, <pega_variaveis.php>, <ms_configura.php> 33 <carrega_ext.php>, <pega_variaveis.php>, <ms_configura.php>
34 */ 34 */
35 -require_once("pega_variaveis.php"); 35 +include_once("pega_variaveis.php");
36 error_reporting(0); 36 error_reporting(0);
37 session_name("i3GeoPHP"); 37 session_name("i3GeoPHP");
38 if (isset($g_sid)) 38 if (isset($g_sid))
@@ -47,8 +47,8 @@ foreach(array_keys($_SESSION) as $k) @@ -47,8 +47,8 @@ foreach(array_keys($_SESSION) as $k)
47 // 47 //
48 include_once ("carrega_ext.php"); 48 include_once ("carrega_ext.php");
49 //verifica se o cliente pode editar 49 //verifica se o cliente pode editar
50 -require_once("../ms_configura.php");  
51 -require_once("../pacotes/cpaint/cpaint2.inc.php"); 50 +include_once("../ms_configura.php");
  51 +include_once("../pacotes/cpaint/cpaint2.inc.php");
52 $editor = "nao"; 52 $editor = "nao";
53 foreach ($editores as $e) 53 foreach ($editores as $e)
54 { 54 {
@@ -192,7 +192,8 @@ function textoCamadaAtual() @@ -192,7 +192,8 @@ function textoCamadaAtual()
192 $mapa->save($nometemp); 192 $mapa->save($nometemp);
193 $linhas = ms_TokenizeMap($map_file); 193 $linhas = ms_TokenizeMap($map_file);
194 $texto = ""; 194 $texto = "";
195 - for ($i=0;$i < count($linhas);$i++) 195 + $c = count($linhas);
  196 + for ($i=0;$i < $c;++$i)
196 { 197 {
197 if ($linhas[$i] == "FONTSET") 198 if ($linhas[$i] == "FONTSET")
198 $texto .= "FONTSET ".$linhas[$i+1]."\n"; 199 $texto .= "FONTSET ".$linhas[$i+1]."\n";
@@ -211,7 +212,8 @@ function textoCamadaAtual() @@ -211,7 +212,8 @@ function textoCamadaAtual()
211 $textolayer = array(); 212 $textolayer = array();
212 $textos = array(); 213 $textos = array();
213 $nome = ""; 214 $nome = "";
214 - for ($i=0;$i < count($linhas);$i++) 215 + $c = count($linhas);
  216 + for ($i=0;$i < $c;++$i)
215 { 217 {
216 if ($linhas[$i] == "LAYER") 218 if ($linhas[$i] == "LAYER")
217 {$layer = "sim";} 219 {$layer = "sim";}
classesphp/atlas_controle.php
@@ -83,7 +83,7 @@ if (!isset($atlasxml)) @@ -83,7 +83,7 @@ if (!isset($atlasxml))
83 //se as extensões já estiverem carregadas no PHP, vc pode comentar essa linha para que o processamento fique mais rápido 83 //se as extensões já estiverem carregadas no PHP, vc pode comentar essa linha para que o processamento fique mais rápido
84 // 84 //
85 include_once("carrega_ext.php"); 85 include_once("carrega_ext.php");
86 -require_once("../pacotes/cpaint/cpaint2.inc.php"); 86 +include_once("../pacotes/cpaint/cpaint2.inc.php");
87 87
88 // 88 //
89 //cria objeto cpaint para uso com ajax 89 //cria objeto cpaint para uso com ajax
@@ -100,8 +100,8 @@ if (!isset($map_file)) @@ -100,8 +100,8 @@ if (!isset($map_file))
100 $cp->return_data(); 100 $cp->return_data();
101 exit; 101 exit;
102 } 102 }
103 -require_once("classe_vermultilayer.php");  
104 -require_once("funcoes_gerais.php"); 103 +include_once("classe_vermultilayer.php");
  104 +include_once("funcoes_gerais.php");
105 if ($map_file != "") 105 if ($map_file != "")
106 { 106 {
107 // 107 //
@@ -124,7 +124,7 @@ Property: pegaListaDeAtlas @@ -124,7 +124,7 @@ Property: pegaListaDeAtlas
124 Pega a lista de Atlas definida no arquivo xml menutemas/atlas.xml. 124 Pega a lista de Atlas definida no arquivo xml menutemas/atlas.xml.
125 */ 125 */
126 case "pegaListaDeAtlas": 126 case "pegaListaDeAtlas":
127 - include("classe_atlas.php"); 127 + include_once("classe_atlas.php");
128 $atl = new Atlas($atlasxml); 128 $atl = new Atlas($atlasxml);
129 $resultado = $atl->pegaListaDeAtlas($tituloInstituicao); 129 $resultado = $atl->pegaListaDeAtlas($tituloInstituicao);
130 $cp->set_data($resultado); 130 $cp->set_data($resultado);
@@ -138,7 +138,7 @@ Esse programa é chamado diretamente, por exemplo, i3geo/classesphp/atlas_control @@ -138,7 +138,7 @@ Esse programa é chamado diretamente, por exemplo, i3geo/classesphp/atlas_control
138 138
139 */ 139 */
140 case "criaAtlas": 140 case "criaAtlas":
141 - include("classe_atlas.php"); 141 + include_once("classe_atlas.php");
142 $atlasxmltemp = $atlasxml; 142 $atlasxmltemp = $atlasxml;
143 $atl = new Atlas($atlasxml); 143 $atl = new Atlas($atlasxml);
144 $interface = $atl->criaAtlas($atlasId_); 144 $interface = $atl->criaAtlas($atlasId_);
@@ -153,7 +153,7 @@ Esse programa é chamado diretamente, por exemplo, i3geo/classesphp/atlas_control @@ -153,7 +153,7 @@ Esse programa é chamado diretamente, por exemplo, i3geo/classesphp/atlas_control
153 // a função gravaId será executada no final do processo de geração do mapa (ver ms_criamapa.php) 153 // a função gravaId será executada no final do processo de geração do mapa (ver ms_criamapa.php)
154 // 154 //
155 $executa = "gravaId"; 155 $executa = "gravaId";
156 - include("../ms_criamapa.php"); 156 + include_once("../ms_criamapa.php");
157 exit; 157 exit;
158 break; 158 break;
159 /* 159 /*
@@ -163,7 +163,7 @@ Pega a lista de pranchas de um atlas específico. @@ -163,7 +163,7 @@ Pega a lista de pranchas de um atlas específico.
163 163
164 */ 164 */
165 case "pegaListaDePranchas": 165 case "pegaListaDePranchas":
166 - include("classe_atlas.php"); 166 + include_once("classe_atlas.php");
167 $atl = new Atlas($atlasxml); 167 $atl = new Atlas($atlasxml);
168 $resultado = $atl->pegaListaDePranchas($atlasId); 168 $resultado = $atl->pegaListaDePranchas($atlasId);
169 $cp->set_data($resultado); 169 $cp->set_data($resultado);
@@ -175,7 +175,7 @@ Ativa uma prancha do atlas. @@ -175,7 +175,7 @@ Ativa uma prancha do atlas.
175 175
176 */ 176 */
177 case "abrePrancha": 177 case "abrePrancha":
178 - include("classe_atlas.php"); 178 + include_once("classe_atlas.php");
179 $atl = new Atlas($atlasxml); 179 $atl = new Atlas($atlasxml);
180 $resultado = $atl->abrePrancha($atlasId,$pranchaId,$map_file,$locaplic); 180 $resultado = $atl->abrePrancha($atlasId,$pranchaId,$map_file,$locaplic);
181 $cp->set_data($resultado); 181 $cp->set_data($resultado);
classesphp/class.palette.php
@@ -60,7 +60,7 @@ $numSteps - número de cores finais @@ -60,7 +60,7 @@ $numSteps - número de cores finais
60 if(sizeof($this->colors)<2) return(FALSE); 60 if(sizeof($this->colors)<2) return(FALSE);
61 $steps=floor($this->numSteps/(sizeof($this->colors)-1)); 61 $steps=floor($this->numSteps/(sizeof($this->colors)-1));
62 $steps=ceil(($this->numSteps-sizeof($this->colors))/(sizeof($this->colors)-1))+1; 62 $steps=ceil(($this->numSteps-sizeof($this->colors))/(sizeof($this->colors)-1))+1;
63 - for($i=0;$i<sizeof($this->colors)-1;$i++){ 63 + for($i=0;$i<sizeof($this->colors)-1;++$i){
64 $this->fade($this->colors[$i],$this->colors[$i+1],$steps); 64 $this->fade($this->colors[$i],$this->colors[$i+1],$steps);
65 } 65 }
66 } 66 }
@@ -69,7 +69,7 @@ $numSteps - número de cores finais @@ -69,7 +69,7 @@ $numSteps - número de cores finais
69 $from=$this->longHexToDec($from); 69 $from=$this->longHexToDec($from);
70 if(sizeof($this->colorPath)==0) array_push($this->colorPath,$this->decToLongHex($from)); 70 if(sizeof($this->colorPath)==0) array_push($this->colorPath,$this->decToLongHex($from));
71 $to=$this->longHexToDec($to); 71 $to=$this->longHexToDec($to);
72 - for($i=1;$i<$steps;$i++){ 72 + for($i=1;$i<$steps;++$i){
73 $nColor=$this->setColorHue($from,$i/$steps,$to); 73 $nColor=$this->setColorHue($from,$i/$steps,$to);
74 if(sizeof($this->colorPath)<$this->numSteps) 74 if(sizeof($this->colorPath)<$this->numSteps)
75 { 75 {
@@ -106,7 +106,7 @@ $numSteps - número de cores finais @@ -106,7 +106,7 @@ $numSteps - número de cores finais
106 106
107 public function printTest(){ 107 public function printTest(){
108 $string="<table border=\"1\">\n\t<tr>\n"; 108 $string="<table border=\"1\">\n\t<tr>\n";
109 - for($i=0;$i<sizeof($this->colorPath);$i++){ 109 + for($i=0;$i<sizeof($this->colorPath);++$i){
110 $string.="\t\t<td bgcolor=\"#" . $this->colorPath[$i] . "\">" . $this->colorPath[$i] . "</td>\n"; 110 $string.="\t\t<td bgcolor=\"#" . $this->colorPath[$i] . "\">" . $this->colorPath[$i] . "</td>\n";
111 } 111 }
112 $string.="\t</tr>\n</table>\n"; 112 $string.="\t</tr>\n</table>\n";
classesphp/classe_alteraclasse.php
@@ -75,9 +75,9 @@ $tema - nome do tema @@ -75,9 +75,9 @@ $tema - nome do tema
75 { 75 {
76 //error_reporting(E_ALL); 76 //error_reporting(E_ALL);
77 if (file_exists($locaplic."/funcoes_gerais.php")) 77 if (file_exists($locaplic."/funcoes_gerais.php"))
78 - require_once($locaplic."/funcoes_gerais.php"); 78 + include_once($locaplic."/funcoes_gerais.php");
79 else 79 else
80 - require_once("funcoes_gerais.php"); 80 + include_once("funcoes_gerais.php");
81 $this->locaplic = $locaplic; 81 $this->locaplic = $locaplic;
82 $this->mapa = ms_newMapObj($map_file); 82 $this->mapa = ms_newMapObj($map_file);
83 $this->arquivo = $map_file; 83 $this->arquivo = $map_file;
@@ -111,7 +111,7 @@ Todos os elementos passarão a ser desenhados conforme essa primeira classe, uma @@ -111,7 +111,7 @@ Todos os elementos passarão a ser desenhados conforme essa primeira classe, uma
111 $classe0->setexpression(""); 111 $classe0->setexpression("");
112 $classe0->set("name"," "); 112 $classe0->set("name"," ");
113 //apaga todas as classes menos a primeira 113 //apaga todas as classes menos a primeira
114 - for ($i=1; $i < $numclasses; $i++) 114 + for ($i=1; $i < $numclasses; ++$i)
115 { 115 {
116 $classe = $this->layer->getClass($i); 116 $classe = $this->layer->getClass($i);
117 $classe->set("status",MS_DELETE); 117 $classe->set("status",MS_DELETE);
@@ -139,7 +139,8 @@ $exps - lista com as novas expressões @@ -139,7 +139,8 @@ $exps - lista com as novas expressões
139 $nomes = explode(";",strip_tags($nomes)); 139 $nomes = explode(";",strip_tags($nomes));
140 $exps = explode(";",strip_tags($exps)); 140 $exps = explode(";",strip_tags($exps));
141 //pega os layers existentes no array ids e armazena no array t 141 //pega os layers existentes no array ids e armazena no array t
142 - for ($i=0; $i < count($ids); $i++) 142 + $c = count($ids);
  143 + for ($i=0; $i < $c; ++$i)
143 { 144 {
144 $tx = explode("-",$ids[$i]); 145 $tx = explode("-",$ids[$i]);
145 $t[] = $tx[0]; 146 $t[] = $tx[0];
@@ -151,14 +152,15 @@ $exps - lista com as novas expressões @@ -151,14 +152,15 @@ $exps - lista com as novas expressões
151 { 152 {
152 $layer = $this->mapa->getlayerbyname($tema); 153 $layer = $this->mapa->getlayerbyname($tema);
153 $nc = $layer->numclasses; 154 $nc = $layer->numclasses;
154 - for($i=0;$i < $nc;$i++) 155 + for($i=0;$i < $nc;++$i)
155 { 156 {
156 $class = $layer->getclass($i); 157 $class = $layer->getclass($i);
157 $class->set("status",MS_DELETE); 158 $class->set("status",MS_DELETE);
158 } 159 }
159 } 160 }
160 //acrescenta as classes definidas 161 //acrescenta as classes definidas
161 - for ($i=0; $i < count($ids); $i++) 162 + $c = count($ids);
  163 + for ($i=0; $i < $c; ++$i)
162 { 164 {
163 $layerc = explode("-",$ids[$i]); //nome do layer é o indice 0 do array 165 $layerc = explode("-",$ids[$i]); //nome do layer é o indice 0 do array
164 $layer = $this->mapa->getlayerbyname($layerc[0]); 166 $layer = $this->mapa->getlayerbyname($layerc[0]);
@@ -201,14 +203,14 @@ $ignorar - valor que será ignorado na listagem final @@ -201,14 +203,14 @@ $ignorar - valor que será ignorado na listagem final
201 //apaga todas as classes existentes 203 //apaga todas as classes existentes
202 $classetemp = $this->layer->getClass(0); 204 $classetemp = $this->layer->getClass(0);
203 $estilotemp = $classetemp->getStyle(0); 205 $estilotemp = $classetemp->getStyle(0);
204 - for ($i=0; $i < $numclassesatual; $i++) 206 + for ($i=0; $i < $numclassesatual; ++$i)
205 { 207 {
206 $classe = $this->layer->getClass($i); 208 $classe = $this->layer->getClass($i);
207 $classe->set("status",MS_DELETE); 209 $classe->set("status",MS_DELETE);
208 } 210 }
209 //adiciona as classes novas 211 //adiciona as classes novas
210 $intatual = $min; 212 $intatual = $min;
211 - for ($i=0; $i < $nclasses; $i++) 213 + for ($i=0; $i < $nclasses; ++$i)
212 { 214 {
213 if ($i == $nclasses - 1) 215 if ($i == $nclasses - 1)
214 {$expressao = "(([".$item."]>=".$intatual.")and([".$item."]<=".($intatual+$intervalo)."))";} 216 {$expressao = "(([".$item."]>=".$intatual.")and([".$item."]<=".($intatual+$intervalo)."))";}
@@ -254,16 +256,16 @@ Include: @@ -254,16 +256,16 @@ Include:
254 if (count($valores) > 0) 256 if (count($valores) > 0)
255 { 257 {
256 if(file_exists($this->locaplic."/classe_estatistica.php")) 258 if(file_exists($this->locaplic."/classe_estatistica.php"))
257 - require_once($this->locaplic."/classe_estatistica.php"); 259 + include_once($this->locaplic."/classe_estatistica.php");
258 else 260 else
259 - require_once("classe_estatistica.php"); 261 + include_once("classe_estatistica.php");
260 $estat = new estatistica(); 262 $estat = new estatistica();
261 $estat->calcula($valores); 263 $estat->calcula($valores);
262 $calc = $estat->resultado; 264 $calc = $estat->resultado;
263 $numclassesatual = $this->layer->numclasses; 265 $numclassesatual = $this->layer->numclasses;
264 //apaga todas as classes existentes 266 //apaga todas as classes existentes
265 $classetemp = $this->layer->getClass(0); 267 $classetemp = $this->layer->getClass(0);
266 - for ($i=0; $i < $numclassesatual; $i++) 268 + for ($i=0; $i < $numclassesatual; ++$i)
267 { 269 {
268 $classe = $this->layer->getClass($i); 270 $classe = $this->layer->getClass($i);
269 $classe->set("status",MS_DELETE); 271 $classe->set("status",MS_DELETE);
@@ -274,7 +276,7 @@ Include: @@ -274,7 +276,7 @@ Include:
274 $expressao[] = "(([".$item."]>".($calc["quartil2"]).")and([".$item."]<=".($calc["quartil3"])."))"; 276 $expressao[] = "(([".$item."]>".($calc["quartil2"]).")and([".$item."]<=".($calc["quartil3"])."))";
275 $expressao[] = "([".$item."]>".($calc["quartil3"]).")"; 277 $expressao[] = "([".$item."]>".($calc["quartil3"]).")";
276 $vcor = array(250,230,150,0); 278 $vcor = array(250,230,150,0);
277 - for ($i=0;$i < 4;$i++) 279 + for ($i=0;$i < 4;++$i)
278 { 280 {
279 $classe = ms_newClassObj($this->layer); 281 $classe = ms_newClassObj($this->layer);
280 $novoestilo = ms_newStyleObj($classe); 282 $novoestilo = ms_newStyleObj($classe);
@@ -319,19 +321,21 @@ $ignorar - valor que será ignorado na listagem final @@ -319,19 +321,21 @@ $ignorar - valor que será ignorado na listagem final
319 // cria classes 321 // cria classes
320 $classes = array(); 322 $classes = array();
321 $classpadrao = $this->layer->getClass(0); 323 $classpadrao = $this->layer->getClass(0);
322 - for ($i = 0; $i < $nclassexist; $i++) 324 + for ($i = 0; $i < $nclassexist; ++$i)
323 {$classes[$i] = $this->layer->getClass($i);} 325 {$classes[$i] = $this->layer->getClass($i);}
324 - for ($i = 0; $i < $this->layer->numclasses; $i++) // apaga classes atuais 326 + $c = $this->layer->numclasses;
  327 + for ($i = 0; $i < $c; ++$i) // apaga classes atuais
325 { 328 {
326 $cl = $this->layer->getClass($i); 329 $cl = $this->layer->getClass($i);
327 $cl->set("status",MS_DELETE); 330 $cl->set("status",MS_DELETE);
328 } 331 }
329 - for ($i = 0; $i < count($valoresu); $i++) 332 + $c = count($valoresu);
  333 + for ($i = 0; $i < $c; ++$i)
330 { 334 {
331 $classes[$i] = ms_newClassObj($this->layer); 335 $classes[$i] = ms_newClassObj($this->layer);
332 $newstyle = ms_newStyleObj($classes[$i]); 336 $newstyle = ms_newStyleObj($classes[$i]);
333 } 337 }
334 - for ($i = 0; $i < count($valoresu); $i++) 338 + for ($i = 0; $i < $c; ++$i)
335 { 339 {
336 $e = "('[".$item."]'eq'".$valoresu[$i]."')"; 340 $e = "('[".$item."]'eq'".$valoresu[$i]."')";
337 $c = $classes[$i]; 341 $c = $classes[$i];
@@ -380,15 +384,15 @@ Include: @@ -380,15 +384,15 @@ Include:
380 function alteraCoresClasses($cori,$corf) 384 function alteraCoresClasses($cori,$corf)
381 { 385 {
382 if(file_exists($this->locaplic."/class.palette.php")) 386 if(file_exists($this->locaplic."/class.palette.php"))
383 - include($this->locaplic."/class.palette.php"); 387 + include_once($this->locaplic."/class.palette.php");
384 else 388 else
385 - include("class.palette.php"); 389 + include_once("class.palette.php");
386 $cori = RGB2hex(explode(",",$cori)); 390 $cori = RGB2hex(explode(",",$cori));
387 $corf = RGB2hex(explode(",",$corf)); 391 $corf = RGB2hex(explode(",",$corf));
388 $numclasses = $this->layer->numclasses; 392 $numclasses = $this->layer->numclasses;
389 $myPalette=new palette(array($cori,$corf),($numclasses + 1)); 393 $myPalette=new palette(array($cori,$corf),($numclasses + 1));
390 $cores = $myPalette->colorRGB; 394 $cores = $myPalette->colorRGB;
391 - for($i=0;$i<$numclasses;$i++) 395 + for($i=0;$i<$numclasses;++$i)
392 { 396 {
393 $classe = $this->layer->getclass($i); 397 $classe = $this->layer->getclass($i);
394 $estilo = $classe->getstyle(0); 398 $estilo = $classe->getstyle(0);
@@ -411,7 +415,7 @@ Inverte as cores da legenda de um tema. @@ -411,7 +415,7 @@ Inverte as cores da legenda de um tema.
411 function inverteCoresClasses() 415 function inverteCoresClasses()
412 { 416 {
413 $numclasses = $this->layer->numclasses; 417 $numclasses = $this->layer->numclasses;
414 - for($i=0;$i<$numclasses;$i++) 418 + for($i=0;$i<$numclasses;++$i)
415 { 419 {
416 $classe = $this->layer->getclass($i); 420 $classe = $this->layer->getclass($i);
417 $estilo = $classe->getstyle(0); 421 $estilo = $classe->getstyle(0);
@@ -436,7 +440,7 @@ Calcula o tamanho dos estilos das classes, alterando o tamanho do símbolo. @@ -436,7 +440,7 @@ Calcula o tamanho dos estilos das classes, alterando o tamanho do símbolo.
436 function calculaTamanhoClasses() 440 function calculaTamanhoClasses()
437 { 441 {
438 $numclasses = $this->layer->numclasses; 442 $numclasses = $this->layer->numclasses;
439 - for($i=0;$i<$numclasses;$i++) 443 + for($i=0;$i<$numclasses;++$i)
440 { 444 {
441 $classe = $this->layer->getclass($i); 445 $classe = $this->layer->getclass($i);
442 $estilo = $classe->getstyle(0); 446 $estilo = $classe->getstyle(0);
classesphp/classe_analise.php
@@ -79,9 +79,9 @@ $tema - Nome do tema que será processado @@ -79,9 +79,9 @@ $tema - Nome do tema que será processado
79 { 79 {
80 //error_reporting(E_ALL); 80 //error_reporting(E_ALL);
81 if(file_exists($locaplic."/funcoes_gerais.php")) 81 if(file_exists($locaplic."/funcoes_gerais.php"))
82 - require_once($locaplic."/funcoes_gerais.php"); 82 + include_once($locaplic."/funcoes_gerais.php");
83 else 83 else
84 - require_once("funcoes_gerais.php"); 84 + include_once("funcoes_gerais.php");
85 $this->locaplic = $locaplic; 85 $this->locaplic = $locaplic;
86 $this->mapa = ms_newMapObj($map_file); 86 $this->mapa = ms_newMapObj($map_file);
87 $this->arquivo = $map_file; 87 $this->arquivo = $map_file;
@@ -179,7 +179,7 @@ Include: @@ -179,7 +179,7 @@ Include:
179 //cria a imagem 179 //cria a imagem
180 $minmax = criaImagemR($nomearq); 180 $minmax = criaImagemR($nomearq);
181 //cria as cores 181 //cria as cores
182 - include("class.palette.php"); 182 + include_once("class.palette.php");
183 $cori = RGB2hex(explode(",",$cori)); 183 $cori = RGB2hex(explode(",",$cori));
184 $corf = RGB2hex(explode(",",$corf)); 184 $corf = RGB2hex(explode(",",$corf));
185 $myPalette=new palette(array($cori,$corf),($numclasses + 1)); 185 $myPalette=new palette(array($cori,$corf),($numclasses + 1));
@@ -195,12 +195,12 @@ Include: @@ -195,12 +195,12 @@ Include:
195 $novolayer->setmetadata("download","sim"); 195 $novolayer->setmetadata("download","sim");
196 //classes 196 //classes
197 $numclassesatual = $novolayer->numclasses; 197 $numclassesatual = $novolayer->numclasses;
198 - for ($i=0; $i < $numclassesatual; $i++) 198 + for ($i=0; $i < $numclassesatual; ++$i)
199 { 199 {
200 $classe = $novolayer->getClass($i); 200 $classe = $novolayer->getClass($i);
201 $classe->set("status",MS_DELETE); 201 $classe->set("status",MS_DELETE);
202 } 202 }
203 - for ($i=0; $i < $numclasses; $i++) 203 + for ($i=0; $i < $numclasses; ++$i)
204 { 204 {
205 $classe = ms_newClassObj($novolayer); 205 $classe = ms_newClassObj($novolayer);
206 $novoestilo = ms_newStyleObj($classe); 206 $novoestilo = ms_newStyleObj($classe);
@@ -629,9 +629,9 @@ $locaplic - diretório da aplicação i3geo @@ -629,9 +629,9 @@ $locaplic - diretório da aplicação i3geo
629 if (file_exists($nomearq)) 629 if (file_exists($nomearq))
630 { 630 {
631 if(file_exists($this->locaplic."/pacotes/phpxbase/api_conversion.php")) 631 if(file_exists($this->locaplic."/pacotes/phpxbase/api_conversion.php"))
632 - require_once($this->locaplic."/pacotes/phpxbase/api_conversion.php"); 632 + include_once($this->locaplic."/pacotes/phpxbase/api_conversion.php");
633 else 633 else
634 - require_once "../pacotes/phpxbase/api_conversion.php"; 634 + include_once "../pacotes/phpxbase/api_conversion.php";
635 //define o nome do novo shapefile que será criado 635 //define o nome do novo shapefile que será criado
636 $nomefinal = nomeRandomico(); 636 $nomefinal = nomeRandomico();
637 $nomeshp = $this->diretorio."/".$nomefinal; 637 $nomeshp = $this->diretorio."/".$nomefinal;
@@ -715,9 +715,9 @@ $locaplic - diretório da aplicação i3geo @@ -715,9 +715,9 @@ $locaplic - diretório da aplicação i3geo
715 if (file_exists($nomearq)) 715 if (file_exists($nomearq))
716 { 716 {
717 if(file_exists($this->locaplic."/pacotes/phpxbase/api_conversion.php")) 717 if(file_exists($this->locaplic."/pacotes/phpxbase/api_conversion.php"))
718 - require_once($this->locaplic."/pacotes/phpxbase/api_conversion.php"); 718 + include_once($this->locaplic."/pacotes/phpxbase/api_conversion.php");
719 else 719 else
720 - require_once "../pacotes/phpxbase/api_conversion.php"; 720 + include_once "../pacotes/phpxbase/api_conversion.php";
721 // 721 //
722 //define os nomes dos novos shapefiles que serão criados 722 //define os nomes dos novos shapefiles que serão criados
723 // 723 //
@@ -876,9 +876,9 @@ $locaplic - Localização do I3geo. @@ -876,9 +876,9 @@ $locaplic - Localização do I3geo.
876 function pontoEmPoligono($temaPt,$temasPo,$locaplic) 876 function pontoEmPoligono($temaPt,$temasPo,$locaplic)
877 { 877 {
878 if(file_exists($this->locaplic."/pacotes/phpxbase/api_conversion.php")) 878 if(file_exists($this->locaplic."/pacotes/phpxbase/api_conversion.php"))
879 - require_once($this->locaplic."/pacotes/phpxbase/api_conversion.php"); 879 + include_once($this->locaplic."/pacotes/phpxbase/api_conversion.php");
880 else 880 else
881 - require_once "../pacotes/phpxbase/api_conversion.php"; 881 + include_once "../pacotes/phpxbase/api_conversion.php";
882 $layerPt = $this->mapa->getlayerbyname($temaPt); 882 $layerPt = $this->mapa->getlayerbyname($temaPt);
883 $layerPt->set("template","none.htm"); 883 $layerPt->set("template","none.htm");
884 $layerPt->set("tolerance",0); 884 $layerPt->set("tolerance",0);
@@ -904,7 +904,7 @@ $locaplic - Localização do I3geo. @@ -904,7 +904,7 @@ $locaplic - Localização do I3geo.
904 $pontos = array(); 904 $pontos = array();
905 //pega um shape especifico 905 //pega um shape especifico
906 $layerPt->open(); 906 $layerPt->open();
907 - for ($i = 0; $i < $res_count; $i++) 907 + for ($i = 0; $i < $res_count; ++$i)
908 { 908 {
909 $result = $layerPt->getResult($i); 909 $result = $layerPt->getResult($i);
910 $shp_index = $result->shapeindex; 910 $shp_index = $result->shapeindex;
@@ -1021,9 +1021,9 @@ function distanciaptpt($temaorigem,$temadestino,$temaoverlay,$locaplic,$itemorig @@ -1021,9 +1021,9 @@ function distanciaptpt($temaorigem,$temadestino,$temaoverlay,$locaplic,$itemorig
1021 //error_reporting(E_ALL); 1021 //error_reporting(E_ALL);
1022 //para manipular dbf 1022 //para manipular dbf
1023 if(file_exists($this->locaplic."/pacotes/phpxbase/api_conversion.php")) 1023 if(file_exists($this->locaplic."/pacotes/phpxbase/api_conversion.php"))
1024 - require_once($this->locaplic."/pacotes/phpxbase/api_conversion.php"); 1024 + include_once($this->locaplic."/pacotes/phpxbase/api_conversion.php");
1025 else 1025 else
1026 - require_once "../pacotes/phpxbase/api_conversion.php"; 1026 + include_once "../pacotes/phpxbase/api_conversion.php";
1027 //define o nome do novo shapefile que será criado 1027 //define o nome do novo shapefile que será criado
1028 $nomefinal = nomeRandomico(); 1028 $nomefinal = nomeRandomico();
1029 $nomeshp = $this->diretorio."/".$nomefinal; 1029 $nomeshp = $this->diretorio."/".$nomefinal;
@@ -1038,7 +1038,7 @@ function distanciaptpt($temaorigem,$temadestino,$temaoverlay,$locaplic,$itemorig @@ -1038,7 +1038,7 @@ function distanciaptpt($temaorigem,$temadestino,$temaoverlay,$locaplic,$itemorig
1038 { 1038 {
1039 $layerorigem->open(); 1039 $layerorigem->open();
1040 $res_count = $layerorigem->getNumresults(); 1040 $res_count = $layerorigem->getNumresults();
1041 - for ($i = 0; $i < $res_count; $i++) 1041 + for ($i = 0; $i < $res_count; ++$i)
1042 { 1042 {
1043 $result = $layerorigem->getResult($i); 1043 $result = $layerorigem->getResult($i);
1044 $shp_index = $result->shapeindex; 1044 $shp_index = $result->shapeindex;
@@ -1056,7 +1056,7 @@ function distanciaptpt($temaorigem,$temadestino,$temaoverlay,$locaplic,$itemorig @@ -1056,7 +1056,7 @@ function distanciaptpt($temaorigem,$temadestino,$temaoverlay,$locaplic,$itemorig
1056 { 1056 {
1057 $layerdestino->open(); 1057 $layerdestino->open();
1058 $res_count = $layerdestino->getNumresults(); 1058 $res_count = $layerdestino->getNumresults();
1059 - for ($i = 0; $i < $res_count; $i++) 1059 + for ($i = 0; $i < $res_count; ++$i)
1060 { 1060 {
1061 $result = $layerdestino->getResult($i); 1061 $result = $layerdestino->getResult($i);
1062 $shp_index = $result->shapeindex; 1062 $shp_index = $result->shapeindex;
@@ -1147,9 +1147,9 @@ nome do layer criado com o buffer. @@ -1147,9 +1147,9 @@ nome do layer criado com o buffer.
1147 { 1147 {
1148 //para manipular dbf 1148 //para manipular dbf
1149 if(file_exists($this->locaplic."/pacotes/phpxbase/api_conversion.php")) 1149 if(file_exists($this->locaplic."/pacotes/phpxbase/api_conversion.php"))
1150 - require_once($this->locaplic."/pacotes/phpxbase/api_conversion.php"); 1150 + include_once($this->locaplic."/pacotes/phpxbase/api_conversion.php");
1151 else 1151 else
1152 - require_once "../pacotes/phpxbase/api_conversion.php"; 1152 + include_once "../pacotes/phpxbase/api_conversion.php";
1153 $nomebuffer = nomeRandomico(); 1153 $nomebuffer = nomeRandomico();
1154 $nomeshp = $this->diretorio."/".$nomebuffer; 1154 $nomeshp = $this->diretorio."/".$nomebuffer;
1155 //pega os shapes selecionados 1155 //pega os shapes selecionados
@@ -1162,7 +1162,7 @@ nome do layer criado com o buffer. @@ -1162,7 +1162,7 @@ nome do layer criado com o buffer.
1162 $res_count = $this->layer->getNumresults(); 1162 $res_count = $this->layer->getNumresults();
1163 $buffers = array(); 1163 $buffers = array();
1164 //pega um shape especifico 1164 //pega um shape especifico
1165 - for ($i = 0; $i < $res_count; $i++) 1165 + for ($i = 0; $i < $res_count; ++$i)
1166 { 1166 {
1167 $result = $this->layer->getResult($i); 1167 $result = $this->layer->getResult($i);
1168 $shp_index = $result->shapeindex; 1168 $shp_index = $result->shapeindex;
@@ -1208,7 +1208,7 @@ nome do layer criado com o buffer. @@ -1208,7 +1208,7 @@ nome do layer criado com o buffer.
1208 $db = xbase_create($nomeshp.".dbf", $def); 1208 $db = xbase_create($nomeshp.".dbf", $def);
1209 //acrescenta os pontos no novo shapefile 1209 //acrescenta os pontos no novo shapefile
1210 $dbname = $nomeshp.".dbf"; 1210 $dbname = $nomeshp.".dbf";
1211 - for($i = 0;$i < count($buffers);$i++) 1211 + for($i = 0;$i < count($buffers);++$i)
1212 { 1212 {
1213 foreach ($items as $ni) 1213 foreach ($items as $ni)
1214 {$reg[] = $shapes[$i]->values[$ni];} 1214 {$reg[] = $shapes[$i]->values[$ni];}
@@ -1253,9 +1253,9 @@ $locaplic - Localização do I3geo. @@ -1253,9 +1253,9 @@ $locaplic - Localização do I3geo.
1253 { 1253 {
1254 //para manipular dbf 1254 //para manipular dbf
1255 if(file_exists($this->locaplic."/pacotes/phpxbase/api_conversion.php")) 1255 if(file_exists($this->locaplic."/pacotes/phpxbase/api_conversion.php"))
1256 - require_once($this->locaplic."/pacotes/phpxbase/api_conversion.php"); 1256 + include_once($this->locaplic."/pacotes/phpxbase/api_conversion.php");
1257 else 1257 else
1258 - require_once "../pacotes/phpxbase/api_conversion.php"; 1258 + include_once "../pacotes/phpxbase/api_conversion.php";
1259 $nomeCentroides = nomeRandomico(); 1259 $nomeCentroides = nomeRandomico();
1260 $nomeshp = $this->diretorio."/".$nomeCentroides; 1260 $nomeshp = $this->diretorio."/".$nomeCentroides;
1261 //pega os shapes selecionados 1261 //pega os shapes selecionados
@@ -1269,7 +1269,7 @@ $locaplic - Localização do I3geo. @@ -1269,7 +1269,7 @@ $locaplic - Localização do I3geo.
1269 $centroides = array(); 1269 $centroides = array();
1270 $shapes = array(); 1270 $shapes = array();
1271 //pega um shape especifico 1271 //pega um shape especifico
1272 - for ($i = 0; $i < $res_count; $i++) 1272 + for ($i = 0; $i < $res_count; ++$i)
1273 { 1273 {
1274 $result = $this->layer->getResult($i); 1274 $result = $this->layer->getResult($i);
1275 $shp_index = $result->shapeindex; 1275 $shp_index = $result->shapeindex;
@@ -1294,7 +1294,7 @@ $locaplic - Localização do I3geo. @@ -1294,7 +1294,7 @@ $locaplic - Localização do I3geo.
1294 $db = xbase_create($nomeshp.".dbf", $def); 1294 $db = xbase_create($nomeshp.".dbf", $def);
1295 //acrescenta os pontos no novo shapefile 1295 //acrescenta os pontos no novo shapefile
1296 $dbname = $nomeshp.".dbf"; 1296 $dbname = $nomeshp.".dbf";
1297 - for($i = 0;$i < count($centroides);$i++) 1297 + for($i = 0;$i < count($centroides);++$i)
1298 { 1298 {
1299 foreach ($items as $ni) 1299 foreach ($items as $ni)
1300 {$reg[] = $shapes[$i]->values[$ni];} 1300 {$reg[] = $shapes[$i]->values[$ni];}
@@ -1344,9 +1344,9 @@ $npty - Número de pontos em Y (opcional) @@ -1344,9 +1344,9 @@ $npty - Número de pontos em Y (opcional)
1344 { 1344 {
1345 //para manipular dbf 1345 //para manipular dbf
1346 if(file_exists($this->locaplic."/pacotes/phpxbase/api_conversion.php")) 1346 if(file_exists($this->locaplic."/pacotes/phpxbase/api_conversion.php"))
1347 - require_once($this->locaplic."/pacotes/phpxbase/api_conversion.php"); 1347 + include_once($this->locaplic."/pacotes/phpxbase/api_conversion.php");
1348 else 1348 else
1349 - require_once "../pacotes/phpxbase/api_conversion.php"; 1349 + include_once "../pacotes/phpxbase/api_conversion.php";
1350 $nomegrade = nomeRandomico(); 1350 $nomegrade = nomeRandomico();
1351 $nomeshp = $this->diretorio."/".$nomegrade; 1351 $nomeshp = $this->diretorio."/".$nomegrade;
1352 $this->mapa->preparequery(); 1352 $this->mapa->preparequery();
@@ -1455,9 +1455,9 @@ $npty - Número de pontos em Y (opcional) @@ -1455,9 +1455,9 @@ $npty - Número de pontos em Y (opcional)
1455 { 1455 {
1456 //para manipular dbf 1456 //para manipular dbf
1457 if(file_exists($this->locaplic."/pacotes/phpxbase/api_conversion.php")) 1457 if(file_exists($this->locaplic."/pacotes/phpxbase/api_conversion.php"))
1458 - require_once($this->locaplic."/pacotes/phpxbase/api_conversion.php"); 1458 + include_once($this->locaplic."/pacotes/phpxbase/api_conversion.php");
1459 else 1459 else
1460 - require_once "../pacotes/phpxbase/api_conversion.php"; 1460 + include_once "../pacotes/phpxbase/api_conversion.php";
1461 $nomegrade = nomeRandomico(); 1461 $nomegrade = nomeRandomico();
1462 $nomeshp = $this->diretorio."/".$nomegrade; 1462 $nomeshp = $this->diretorio."/".$nomegrade;
1463 //pega a extensão geográfica do mapa 1463 //pega a extensão geográfica do mapa
@@ -1592,9 +1592,9 @@ $npty - Número de pontos em Y (opcional) @@ -1592,9 +1592,9 @@ $npty - Número de pontos em Y (opcional)
1592 { 1592 {
1593 //para manipular dbf 1593 //para manipular dbf
1594 if(file_exists($this->locaplic."/pacotes/phpxbase/api_conversion.php")) 1594 if(file_exists($this->locaplic."/pacotes/phpxbase/api_conversion.php"))
1595 - require_once($this->locaplic."/pacotes/phpxbase/api_conversion.php"); 1595 + include_once($this->locaplic."/pacotes/phpxbase/api_conversion.php");
1596 else 1596 else
1597 - require_once "../pacotes/phpxbase/api_conversion.php"; 1597 + include_once "../pacotes/phpxbase/api_conversion.php";
1598 $nomegrade = nomeRandomico(); 1598 $nomegrade = nomeRandomico();
1599 $nomeshp = $this->diretorio."/".$nomegrade; 1599 $nomeshp = $this->diretorio."/".$nomegrade;
1600 //pega a extensão geográfica do mapa 1600 //pega a extensão geográfica do mapa
@@ -1732,9 +1732,9 @@ $locaplic - Localização do I3geo @@ -1732,9 +1732,9 @@ $locaplic - Localização do I3geo
1732 { 1732 {
1733 //para manipular dbf 1733 //para manipular dbf
1734 if(file_exists($this->locaplic."/pacotes/phpxbase/api_conversion.php")) 1734 if(file_exists($this->locaplic."/pacotes/phpxbase/api_conversion.php"))
1735 - require_once($this->locaplic."/pacotes/phpxbase/api_conversion.php"); 1735 + include_once($this->locaplic."/pacotes/phpxbase/api_conversion.php");
1736 else 1736 else
1737 - require_once "../pacotes/phpxbase/api_conversion.php"; 1737 + include_once "../pacotes/phpxbase/api_conversion.php";
1738 $layerPt = $this->mapa->getlayerbyname($temaPt); 1738 $layerPt = $this->mapa->getlayerbyname($temaPt);
1739 $layerPt->set("template","none.htm"); 1739 $layerPt->set("template","none.htm");
1740 $layerPt->set("tolerance",0); 1740 $layerPt->set("tolerance",0);
@@ -1788,9 +1788,9 @@ Salva o mapa acrescentando um novo layer com o resultado. @@ -1788,9 +1788,9 @@ Salva o mapa acrescentando um novo layer com o resultado.
1788 //para manipular dbf 1788 //para manipular dbf
1789 if(!isset($item)){$item="";} 1789 if(!isset($item)){$item="";}
1790 if(file_exists($this->locaplic."/pacotes/phpxbase/api_conversion.php")) 1790 if(file_exists($this->locaplic."/pacotes/phpxbase/api_conversion.php"))
1791 - require_once($this->locaplic."/pacotes/phpxbase/api_conversion.php"); 1791 + include_once($this->locaplic."/pacotes/phpxbase/api_conversion.php");
1792 else 1792 else
1793 - require_once "../pacotes/phpxbase/api_conversion.php"; 1793 + include_once "../pacotes/phpxbase/api_conversion.php";
1794 //define o nome do novo shapefile que será criado 1794 //define o nome do novo shapefile que será criado
1795 if (file_exists(($this->arquivo)."qy")) 1795 if (file_exists(($this->arquivo)."qy"))
1796 {$this->mapa->loadquery(($this->arquivo)."qy");} 1796 {$this->mapa->loadquery(($this->arquivo)."qy");}
@@ -1800,7 +1800,7 @@ Salva o mapa acrescentando um novo layer com o resultado. @@ -1800,7 +1800,7 @@ Salva o mapa acrescentando um novo layer com o resultado.
1800 //pega os indices dos poligonos por classe de atributo 1800 //pega os indices dos poligonos por classe de atributo
1801 // 1801 //
1802 $indices = array(); 1802 $indices = array();
1803 - for ($i = 0; $i < $res_count; $i++) 1803 + for ($i = 0; $i < $res_count; ++$i)
1804 { 1804 {
1805 $result = $this->layer->getResult($i); 1805 $result = $this->layer->getResult($i);
1806 $shp_index = $result->shapeindex; 1806 $shp_index = $result->shapeindex;
@@ -1900,9 +1900,9 @@ $locaplic - Localização do I3geo @@ -1900,9 +1900,9 @@ $locaplic - Localização do I3geo
1900 //para manipular dbf 1900 //para manipular dbf
1901 if(!isset($item)){$item="";} 1901 if(!isset($item)){$item="";}
1902 if(file_exists($this->locaplic."/pacotes/phpxbase/api_conversion.php")) 1902 if(file_exists($this->locaplic."/pacotes/phpxbase/api_conversion.php"))
1903 - require_once($this->locaplic."/pacotes/phpxbase/api_conversion.php"); 1903 + include_once($this->locaplic."/pacotes/phpxbase/api_conversion.php");
1904 else 1904 else
1905 - require_once "../pacotes/phpxbase/api_conversion.php"; 1905 + include_once "../pacotes/phpxbase/api_conversion.php";
1906 //define o nome do novo shapefile que será criado 1906 //define o nome do novo shapefile que será criado
1907 if (file_exists(($this->arquivo)."qy")) 1907 if (file_exists(($this->arquivo)."qy"))
1908 {$this->mapa->loadquery(($this->arquivo)."qy");} 1908 {$this->mapa->loadquery(($this->arquivo)."qy");}
@@ -1912,7 +1912,7 @@ $locaplic - Localização do I3geo @@ -1912,7 +1912,7 @@ $locaplic - Localização do I3geo
1912 //pega os indices dos poligonos por classe de atributo 1912 //pega os indices dos poligonos por classe de atributo
1913 // 1913 //
1914 $indices = array(); 1914 $indices = array();
1915 - for ($i = 0; $i < $res_count; $i++) 1915 + for ($i = 0; $i < $res_count; ++$i)
1916 { 1916 {
1917 $result = $this->layer->getResult($i); 1917 $result = $this->layer->getResult($i);
1918 $shp_index = $result->shapeindex; 1918 $shp_index = $result->shapeindex;
@@ -2028,7 +2028,7 @@ $operacao - Tipo de análise. @@ -2028,7 +2028,7 @@ $operacao - Tipo de análise.
2028 if (count($geometrias) > 2) 2028 if (count($geometrias) > 2)
2029 { 2029 {
2030 $geoc = $geometrias[0]; 2030 $geoc = $geometrias[0];
2031 - for($i=1;$i<count($geometrias);$i++) 2031 + for($i=1;$i<count($geometrias);++$i)
2032 { 2032 {
2033 eval("\$geoc = \$geoc->".$operacao."(\$geometrias[\$i]);"); 2033 eval("\$geoc = \$geoc->".$operacao."(\$geometrias[\$i]);");
2034 } 2034 }
@@ -2216,9 +2216,9 @@ $operacao - Tipo de análise. @@ -2216,9 +2216,9 @@ $operacao - Tipo de análise.
2216 if ($tiposhape == 1){$tiposhapefile = MS_SHP_ARC;} 2216 if ($tiposhape == 1){$tiposhapefile = MS_SHP_ARC;}
2217 //cria o shapefile 2217 //cria o shapefile
2218 if(file_exists($this->locaplic."/pacotes/phpxbase/api_conversion.php")) 2218 if(file_exists($this->locaplic."/pacotes/phpxbase/api_conversion.php"))
2219 - require_once($this->locaplic."/pacotes/phpxbase/api_conversion.php"); 2219 + include_once($this->locaplic."/pacotes/phpxbase/api_conversion.php");
2220 else 2220 else
2221 - require_once "../pacotes/phpxbase/api_conversion.php"; 2221 + include_once "../pacotes/phpxbase/api_conversion.php";
2222 $diretorio = dirname($this->arquivo); 2222 $diretorio = dirname($this->arquivo);
2223 $novonomelayer = nomeRandomico(); 2223 $novonomelayer = nomeRandomico();
2224 $nomeshp = $diretorio."/".$novonomelayer; 2224 $nomeshp = $diretorio."/".$novonomelayer;
@@ -2298,7 +2298,7 @@ function gravaCoordenadasPt($tema,$limitepontos=&quot;TRUE&quot;) @@ -2298,7 +2298,7 @@ function gravaCoordenadasPt($tema,$limitepontos=&quot;TRUE&quot;)
2298 $projInObj = ms_newprojectionobj($prjTema); 2298 $projInObj = ms_newprojectionobj($prjTema);
2299 $projOutObj = ms_newprojectionobj($prjMapa); 2299 $projOutObj = ms_newprojectionobj($prjMapa);
2300 } 2300 }
2301 - for ($i = 0; $i < $res_count; $i++) 2301 + for ($i = 0; $i < $res_count; ++$i)
2302 { 2302 {
2303 $result = $layerPt->getResult($i); 2303 $result = $layerPt->getResult($i);
2304 $shp_index = $result->shapeindex; 2304 $shp_index = $result->shapeindex;
classesphp/classe_atlas.php
@@ -201,7 +201,7 @@ locaplic - localização do i3geo no servidor @@ -201,7 +201,7 @@ locaplic - localização do i3geo no servidor
201 } 201 }
202 if(count($temasa) > 0) 202 if(count($temasa) > 0)
203 { 203 {
204 - include("classe_mapa.php"); 204 + include_once("classe_mapa.php");
205 $mapa = ""; 205 $mapa = "";
206 $m = new Mapa($map_file); 206 $m = new Mapa($map_file);
207 $m->adicionaTema((implode(",",$temasa)),$locaplic,"nao"); 207 $m->adicionaTema((implode(",",$temasa)),$locaplic,"nao");
classesphp/classe_atributos.php
@@ -216,7 +216,7 @@ $tipo - Tipo de busca brasil|null @@ -216,7 +216,7 @@ $tipo - Tipo de busca brasil|null
216 $this->layer->open(); 216 $this->layer->open();
217 $registros[] = array(); 217 $registros[] = array();
218 $res_count = $this->layer->getNumresults(); 218 $res_count = $this->layer->getNumresults();
219 - for ($i = 0; $i < $res_count; $i++) 219 + for ($i = 0; $i < $res_count; ++$i)
220 { 220 {
221 $valitem = array(); 221 $valitem = array();
222 foreach ($items as $item) 222 foreach ($items as $item)
@@ -288,7 +288,7 @@ $tipolista - Indica se serão mostrados todos os registros ou apenas os seleciona @@ -288,7 +288,7 @@ $tipolista - Indica se serão mostrados todos os registros ou apenas os seleciona
288 if (($res_count >= $fim) && ($fim < $res_count)) 288 if (($res_count >= $fim) && ($fim < $res_count))
289 {$res_count = $fim;} 289 {$res_count = $fim;}
290 } 290 }
291 - for ($i = $inicio; $i < $res_count; $i++) 291 + for ($i = $inicio; $i < $res_count; ++$i)
292 { 292 {
293 $valitem = array(); 293 $valitem = array();
294 foreach ($items as $item) 294 foreach ($items as $item)
@@ -308,10 +308,10 @@ $tipolista - Indica se serão mostrados todos os registros ou apenas os seleciona @@ -308,10 +308,10 @@ $tipolista - Indica se serão mostrados todos os registros ou apenas os seleciona
308 if ($tipolista == "tudo") 308 if ($tipolista == "tudo")
309 { 309 {
310 $shp_atual = array(); 310 $shp_atual = array();
311 - for ($i = 0; $i < $res_count;$i++) 311 + for ($i = 0; $i < $res_count;++$i)
312 { 312 {
313 $rc = $this->layer->getResult($i); 313 $rc = $this->layer->getResult($i);
314 - $shp_atual[] = $rc->shapeindex; 314 + $shp_atual[$rc->shapeindex] = $rc->shapeindex;
315 } 315 }
316 $this->layer->close(); 316 $this->layer->close();
317 $chk = ""; 317 $chk = "";
@@ -324,7 +324,7 @@ $tipolista - Indica se serão mostrados todos os registros ou apenas os seleciona @@ -324,7 +324,7 @@ $tipolista - Indica se serão mostrados todos os registros ou apenas os seleciona
324 {$res_count = $fim;} 324 {$res_count = $fim;}
325 } 325 }
326 $this->layer->open(); 326 $this->layer->open();
327 - for ($i = $inicio; $i < $res_count; $i++) 327 + for ($i = $inicio; $i < $res_count; ++$i)
328 { 328 {
329 $valitem = array(); 329 $valitem = array();
330 foreach ($items as $item) 330 foreach ($items as $item)
@@ -341,7 +341,8 @@ $tipolista - Indica se serão mostrados todos os registros ou apenas os seleciona @@ -341,7 +341,8 @@ $tipolista - Indica se serão mostrados todos os registros ou apenas os seleciona
341 {$valori = mb_convert_encoding($valori,"UTF-8","ISO-8859-1");} 341 {$valori = mb_convert_encoding($valori,"UTF-8","ISO-8859-1");}
342 $valitem[] = array("item"=>$item,"valor"=>$valori); 342 $valitem[] = array("item"=>$item,"valor"=>$valori);
343 } 343 }
344 - if (in_array($shp_index,$shp_atual)) 344 + //if (in_array($shp_index,$shp_atual))
  345 + if(isset($shp_atual[$shp_index]))
345 {$chk = "CHECKED";} 346 {$chk = "CHECKED";}
346 $registros[] = array("indice"=>$shp_index,"valores"=>$valitem,"status"=>$chk); 347 $registros[] = array("indice"=>$shp_index,"valores"=>$valitem,"status"=>$chk);
347 $chk = ""; 348 $chk = "";
@@ -479,7 +480,7 @@ Include: @@ -479,7 +480,7 @@ Include:
479 $abriu = $this->layer->open(); 480 $abriu = $this->layer->open();
480 $res_count = $this->layer->getNumresults(); 481 $res_count = $this->layer->getNumresults();
481 //pega os valores 482 //pega os valores
482 - for ($i = 0; $i < $res_count; $i++) 483 + for ($i = 0; $i < $res_count; ++$i)
483 { 484 {
484 $result = $this->layer->getResult($i); 485 $result = $this->layer->getResult($i);
485 $shp_index = $result->shapeindex; 486 $shp_index = $result->shapeindex;
@@ -507,9 +508,9 @@ Include: @@ -507,9 +508,9 @@ Include:
507 {return("erro. Nenhum valor valido");} 508 {return("erro. Nenhum valor valido");}
508 //faz os calculos 509 //faz os calculos
509 if(file_exists($this->locaplic."/classe_estatistica.php")) 510 if(file_exists($this->locaplic."/classe_estatistica.php"))
510 - require_once($this->locaplic."/classe_estatistica.php"); 511 + include_once($this->locaplic."/classe_estatistica.php");
511 else 512 else
512 - require_once("classe_estatistica.php"); 513 + include_once("classe_estatistica.php");
513 $estat = new estatistica(); 514 $estat = new estatistica();
514 $resultado = $estat->calcula($valoresn); 515 $resultado = $estat->calcula($valoresn);
515 $resultado = $estat->resultado; 516 $resultado = $estat->resultado;
@@ -837,7 +838,7 @@ function identificaQBP($tema,$x,$y,$map_file,$resolucao,$item=&quot;&quot;,$tiporetorno=&quot;&quot; @@ -837,7 +838,7 @@ function identificaQBP($tema,$x,$y,$map_file,$resolucao,$item=&quot;&quot;,$tiporetorno=&quot;&quot;
837 } 838 }
838 $res_count = $layer->getNumresults(); 839 $res_count = $layer->getNumresults();
839 $layer->open(); 840 $layer->open();
840 - for ($i = 0; $i < $res_count; $i++) 841 + for ($i = 0; $i < $res_count; ++$i)
841 { 842 {
842 $valori = array(); 843 $valori = array();
843 $result = $layer->getResult($i); 844 $result = $layer->getResult($i);
classesphp/classe_escala.php
@@ -67,9 +67,9 @@ $map_file - Endereço do mapfile no servidor. @@ -67,9 +67,9 @@ $map_file - Endereço do mapfile no servidor.
67 { 67 {
68 //error_reporting(E_ALL); 68 //error_reporting(E_ALL);
69 if(file_exists($locaplic."/funcoes_gerais.php")) 69 if(file_exists($locaplic."/funcoes_gerais.php"))
70 - require_once($locaplic."/funcoes_gerais.php"); 70 + include_once($locaplic."/funcoes_gerais.php");
71 else 71 else
72 - require_once("funcoes_gerais.php"); 72 + include_once("funcoes_gerais.php");
73 $this->locaplic = $locaplic; 73 $this->locaplic = $locaplic;
74 $this->mapa = ms_newMapObj($map_file); 74 $this->mapa = ms_newMapObj($map_file);
75 $this->arquivo = $map_file; 75 $this->arquivo = $map_file;
classesphp/classe_legenda.php
@@ -110,9 +110,9 @@ $template - nome do template para processar a legenda @@ -110,9 +110,9 @@ $template - nome do template para processar a legenda
110 { 110 {
111 //error_reporting(E_ALL); 111 //error_reporting(E_ALL);
112 if(file_exists($locaplic."/funcoes_gerais.php")) 112 if(file_exists($locaplic."/funcoes_gerais.php"))
113 - require_once($locaplic."/funcoes_gerais.php"); 113 + include_once($locaplic."/funcoes_gerais.php");
114 else 114 else
115 - require_once("funcoes_gerais.php"); 115 + include_once("funcoes_gerais.php");
116 $this->mapa = ms_newMapObj($map_file); 116 $this->mapa = ms_newMapObj($map_file);
117 $this->arquivo = $map_file; 117 $this->arquivo = $map_file;
118 $this->localaplicacao = $locaplic; 118 $this->localaplicacao = $locaplic;
@@ -181,7 +181,7 @@ string com a legenda HTML @@ -181,7 +181,7 @@ string com a legenda HTML
181 { 181 {
182 return($this->tabelaLegenda()); 182 return($this->tabelaLegenda());
183 } 183 }
184 - for ($i=0;$i < $numlayers;$i++) 184 + for ($i=0;$i < $numlayers;++$i)
185 { 185 {
186 $la = $this->mapa->getlayer($i); 186 $la = $this->mapa->getlayer($i);
187 if ($la->name != $this->nome) 187 if ($la->name != $this->nome)
@@ -193,7 +193,7 @@ string com a legenda HTML @@ -193,7 +193,7 @@ string com a legenda HTML
193 $desligar = array(); 193 $desligar = array();
194 $conta = 0; 194 $conta = 0;
195 $desligar = array(); 195 $desligar = array();
196 - for ($i=0;$i < $numlayers;$i++) 196 + for ($i=0;$i < $numlayers;++$i)
197 { 197 {
198 $la = $this->mapa->getlayer($i); 198 $la = $this->mapa->getlayer($i);
199 if (strtoupper($la->getmetadata("ESCONDIDO")) == "SIM") 199 if (strtoupper($la->getmetadata("ESCONDIDO")) == "SIM")
@@ -435,7 +435,7 @@ function listaSimbolos($tipo,$dir_tmp,$imgdir) @@ -435,7 +435,7 @@ function listaSimbolos($tipo,$dir_tmp,$imgdir)
435 $l = $mapatemp->getlayer(0); 435 $l = $mapatemp->getlayer(0);
436 $novoss = dirname($this->mapa->symbolsetfilename)."/".basename($mapatemp->symbolsetfilename); 436 $novoss = dirname($this->mapa->symbolsetfilename)."/".basename($mapatemp->symbolsetfilename);
437 $this->mapa->setsymbolset($novoss); 437 $this->mapa->setsymbolset($novoss);
438 - for ($i=0;$i < $ns;$i++) 438 + for ($i=0;$i < $ns;++$i)
439 { 439 {
440 $oSymbol = $this->mapa->getSymbolObjectById($i); 440 $oSymbol = $this->mapa->getSymbolObjectById($i);
441 $nomes = $oSymbol->name; 441 $nomes = $oSymbol->name;
@@ -459,7 +459,7 @@ function listaSimbolos($tipo,$dir_tmp,$imgdir) @@ -459,7 +459,7 @@ function listaSimbolos($tipo,$dir_tmp,$imgdir)
459 else 459 else
460 { 460 {
461 $res = ""; 461 $res = "";
462 - include $dir_tmp."/comum/simbolos".$tipo.".inc"; 462 + include_once $dir_tmp."/comum/simbolos".$tipo.".inc";
463 return $res; 463 return $res;
464 } 464 }
465 } 465 }
@@ -479,7 +479,7 @@ string com o tipo do layer,id do estilo,outlinecolor,backgroundcolor,color,symbo @@ -479,7 +479,7 @@ string com o tipo do layer,id do estilo,outlinecolor,backgroundcolor,color,symbo
479 $tipoLayer = $this->layer->type; 479 $tipoLayer = $this->layer->type;
480 $classe = $this->layer->getclass($classe); 480 $classe = $this->layer->getclass($classe);
481 $numestilos = $classe->numstyles; 481 $numestilos = $classe->numstyles;
482 - for ($i=0;$i<$numestilos;$i++) 482 + for ($i=0;$i<$numestilos;++$i)
483 { 483 {
484 $linha = array(); 484 $linha = array();
485 $estilo = $classe->getstyle($i); 485 $estilo = $classe->getstyle($i);
classesphp/classe_mapa.php
@@ -66,9 +66,9 @@ $map_file - Endereço do mapfile no servidor. @@ -66,9 +66,9 @@ $map_file - Endereço do mapfile no servidor.
66 //error_reporting(E_ALL); 66 //error_reporting(E_ALL);
67 if (!function_exists('ms_newMapObj')) {return false;} 67 if (!function_exists('ms_newMapObj')) {return false;}
68 if(file_exists($locaplic."/funcoes_gerais.php")) 68 if(file_exists($locaplic."/funcoes_gerais.php"))
69 - require_once($locaplic."/funcoes_gerais.php"); 69 + include_once($locaplic."/funcoes_gerais.php");
70 else 70 else
71 - require_once("funcoes_gerais.php"); 71 + include_once("funcoes_gerais.php");
72 $this->locaplic = $locaplic; 72 $this->locaplic = $locaplic;
73 if(!file_exists($map_file)) 73 if(!file_exists($map_file))
74 {return $this->arquivo = false;} 74 {return $this->arquivo = false;}
@@ -76,7 +76,8 @@ $map_file - Endereço do mapfile no servidor. @@ -76,7 +76,8 @@ $map_file - Endereço do mapfile no servidor.
76 {return $this->mapa = false;} 76 {return $this->mapa = false;}
77 $this->mapa = @ms_newMapObj($map_file); 77 $this->mapa = @ms_newMapObj($map_file);
78 $this->arquivo = $map_file; 78 $this->arquivo = $map_file;
79 - for ($i=0;$i < ($this->mapa->numlayers);$i++) 79 + $c = $this->mapa->numlayers;
  80 + for ($i=0;$i < $c;++$i)
80 {$this->layers[] = $this->mapa->getlayer($i);} 81 {$this->layers[] = $this->mapa->getlayer($i);}
81 } 82 }
82 /* 83 /*
@@ -207,9 +208,9 @@ Include: @@ -207,9 +208,9 @@ Include:
207 function redesenhaCorpo($locsistemas,$locidentifica,$tipoimagem,$utilizacgi,$locmapserv) 208 function redesenhaCorpo($locsistemas,$locidentifica,$tipoimagem,$utilizacgi,$locmapserv)
208 { 209 {
209 if(file_exists($this->locaplic."/classe_imagem.php")) 210 if(file_exists($this->locaplic."/classe_imagem.php"))
210 - require_once($this->locaplic."/classe_imagem.php"); 211 + include_once($this->locaplic."/classe_imagem.php");
211 else 212 else
212 - require_once("classe_imagem.php"); 213 + include_once("classe_imagem.php");
213 $nomer = ""; 214 $nomer = "";
214 $qy = file_exists(($this->arquivo)."qy"); 215 $qy = file_exists(($this->arquivo)."qy");
215 $legenda = $this->mapa->legend; 216 $legenda = $this->mapa->legend;
@@ -794,7 +795,7 @@ $random - indica se os nomes dos novos layers serão modificados ou nao @@ -794,7 +795,7 @@ $random - indica se os nomes dos novos layers serão modificados ou nao
794 if (count($parametrosClasses) > 0) 795 if (count($parametrosClasses) > 0)
795 { 796 {
796 $ids = array_keys($parametrosClasses); 797 $ids = array_keys($parametrosClasses);
797 - for($i=0;$i < count($parametrosClasses);$i++) 798 + for($i=0;$i < count($parametrosClasses);++$i)
798 { 799 {
799 $p = $parametrosClasses[$ids[$i]]; 800 $p = $parametrosClasses[$ids[$i]];
800 //echo "<pre>";var_dump($p); 801 //echo "<pre>";var_dump($p);
@@ -860,7 +861,7 @@ $random - indica se os nomes dos novos layers serão modificados ou nao @@ -860,7 +861,7 @@ $random - indica se os nomes dos novos layers serão modificados ou nao
860 } 861 }
861 if ($nummove > 2) 862 if ($nummove > 2)
862 { 863 {
863 - for ($i=0;$i<=($nummove - 3);$i++) 864 + for ($i=0;$i<=($nummove - 3);++$i)
864 { 865 {
865 $this->mapa->movelayerup($indicel); 866 $this->mapa->movelayerup($indicel);
866 } 867 }
@@ -1004,9 +1005,9 @@ Include: @@ -1004,9 +1005,9 @@ Include:
1004 function adicionatemawms($tema,$servico,$nome,$proj,$formato,$locaplic,$tipo,$versao,$nomecamada,$dir_tmp,$imgdir,$imgurl,$tiporep,$suportasld,$formatosinfo="text/plain") 1005 function adicionatemawms($tema,$servico,$nome,$proj,$formato,$locaplic,$tipo,$versao,$nomecamada,$dir_tmp,$imgdir,$imgurl,$tiporep,$suportasld,$formatosinfo="text/plain")
1005 { 1006 {
1006 if(file_exists($this->locaplic."/wmswfs.php")) 1007 if(file_exists($this->locaplic."/wmswfs.php"))
1007 - require_once($this->locaplic."/wmswfs.php"); 1008 + include_once($this->locaplic."/wmswfs.php");
1008 else 1009 else
1009 - require_once("wmswfs.php"); 1010 + include_once("wmswfs.php");
1010 //limpa selecao 1011 //limpa selecao
1011 if (file_exists(($this->arquivo)."qy")) 1012 if (file_exists(($this->arquivo)."qy"))
1012 {unlink (($this->arquivo)."qy");} 1013 {unlink (($this->arquivo)."qy");}
@@ -1222,9 +1223,9 @@ $canal - Identificador do canal (ordem em que está no RSS) @@ -1222,9 +1223,9 @@ $canal - Identificador do canal (ordem em que está no RSS)
1222 { 1223 {
1223 //para manipular dbf 1224 //para manipular dbf
1224 if (file_exists($this->locaplic."/pacotes/phpxbase/api_conversion.php")) 1225 if (file_exists($this->locaplic."/pacotes/phpxbase/api_conversion.php"))
1225 - require_once ($this->locaplic."/pacotes/phpxbase/api_conversion.php"); 1226 + include_once ($this->locaplic."/pacotes/phpxbase/api_conversion.php");
1226 else 1227 else
1227 - require_once ("../pacotes/phpxbase/api_conversion.php"); 1228 + include_once ("../pacotes/phpxbase/api_conversion.php");
1228 $diretorio = dirname($this->arquivo); 1229 $diretorio = dirname($this->arquivo);
1229 $tipol = MS_SHP_POLYGON; 1230 $tipol = MS_SHP_POLYGON;
1230 if ($tipog != "envelope"){$tipol = MS_SHP_POINT;} 1231 if ($tipog != "envelope"){$tipol = MS_SHP_POINT;}
classesphp/classe_menutemas.php
@@ -86,7 +86,8 @@ $map_file - string $map_file Endereço do mapfile no servidor. @@ -86,7 +86,8 @@ $map_file - string $map_file Endereço do mapfile no servidor.
86 $this->arquivo = $map_file; 86 $this->arquivo = $map_file;
87 if ($this->mapa) 87 if ($this->mapa)
88 { 88 {
89 - for ($i=0;$i < ($this->mapa->numlayers);$i++) 89 + $c = $this->mapa->numlayers;
  90 + for ($i=0;$i < $c;++$i)
90 {$this->layers[] = $this->mapa->getlayer($i);} 91 {$this->layers[] = $this->mapa->getlayer($i);}
91 } 92 }
92 } 93 }
@@ -151,7 +152,7 @@ array @@ -151,7 +152,7 @@ array
151 { 152 {
152 $this->xml = ""; 153 $this->xml = "";
153 if (file_exists("../ms_configura.php")) 154 if (file_exists("../ms_configura.php"))
154 - {require_once("../ms_configura.php");} 155 + {include_once("../ms_configura.php");}
155 if ((isset($menutemas)) && ($menutemas != "") && ($idmenu != "")) 156 if ((isset($menutemas)) && ($menutemas != "") && ($idmenu != ""))
156 { 157 {
157 foreach ($menutemas as $m) 158 foreach ($menutemas as $m)
@@ -321,7 +322,7 @@ array @@ -321,7 +322,7 @@ array
321 { 322 {
322 $this->xml = ""; 323 $this->xml = "";
323 if (file_exists("../ms_configura.php")) 324 if (file_exists("../ms_configura.php"))
324 - {require_once("../ms_configura.php");} 325 + {include_once("../ms_configura.php");}
325 if ((isset($menutemas)) && ($menutemas != "") && ($idmenu != "")) 326 if ((isset($menutemas)) && ($menutemas != "") && ($idmenu != ""))
326 { 327 {
327 foreach ($menutemas as $m) 328 foreach ($menutemas as $m)
@@ -425,7 +426,7 @@ array @@ -425,7 +426,7 @@ array
425 { 426 {
426 $this->xml = ""; 427 $this->xml = "";
427 if (file_exists("../ms_configura.php")) 428 if (file_exists("../ms_configura.php"))
428 - {require_once("../ms_configura.php");} 429 + {include_once("../ms_configura.php");}
429 if ((isset($menutemas)) && ($menutemas != "") && ($idmenu != "")) 430 if ((isset($menutemas)) && ($menutemas != "") && ($idmenu != ""))
430 { 431 {
431 foreach ($menutemas as $m) 432 foreach ($menutemas as $m)
@@ -524,7 +525,7 @@ $procurar - String que será procurada. @@ -524,7 +525,7 @@ $procurar - String que será procurada.
524 { 525 {
525 $this->xml = array(); 526 $this->xml = array();
526 if (file_exists("../ms_configura.php")) 527 if (file_exists("../ms_configura.php"))
527 - {require_once("../ms_configura.php");} 528 + {include_once("../ms_configura.php");}
528 if ((isset($menutemas)) && ($menutemas != "")) 529 if ((isset($menutemas)) && ($menutemas != ""))
529 { 530 {
530 foreach ($menutemas as $m) 531 foreach ($menutemas as $m)
@@ -651,7 +652,7 @@ nrss - (opcional) número de registros no rss que serão considerados @@ -651,7 +652,7 @@ nrss - (opcional) número de registros no rss que serão considerados
651 } 652 }
652 $this->xml = array(); 653 $this->xml = array();
653 if (file_exists("../ms_configura.php")) 654 if (file_exists("../ms_configura.php"))
654 - {require_once("../ms_configura.php");} 655 + {include_once("../ms_configura.php");}
655 if ((isset($menutemas)) && ($menutemas != "")) 656 if ((isset($menutemas)) && ($menutemas != ""))
656 { 657 {
657 foreach ($menutemas as $m) 658 foreach ($menutemas as $m)
classesphp/classe_navegacao.php
@@ -60,9 +60,9 @@ $map_file - string $map_file Endereço do mapfile no servidor. @@ -60,9 +60,9 @@ $map_file - string $map_file Endereço do mapfile no servidor.
60 { 60 {
61 //error_reporting(E_ALL); 61 //error_reporting(E_ALL);
62 if(file_exists($locaplic."/funcoes_gerais.php")) 62 if(file_exists($locaplic."/funcoes_gerais.php"))
63 - require_once($locaplic."/funcoes_gerais.php"); 63 + include_once($locaplic."/funcoes_gerais.php");
64 else 64 else
65 - require_once("funcoes_gerais.php"); 65 + include_once("funcoes_gerais.php");
66 $this->mapa = ms_newMapObj($map_file); 66 $this->mapa = ms_newMapObj($map_file);
67 $this->arquivo = $map_file; 67 $this->arquivo = $map_file;
68 } 68 }
classesphp/classe_selecao.php
@@ -116,7 +116,7 @@ $ys - lista de coordenadas y separadas por virgula @@ -116,7 +116,7 @@ $ys - lista de coordenadas y separadas por virgula
116 $indxlayer = $this->layer->index; 116 $indxlayer = $this->layer->index;
117 $res_count = $this->layer->getNumresults(); 117 $res_count = $this->layer->getNumresults();
118 $shp_atual = array(); 118 $shp_atual = array();
119 - for ($i = 0; $i < $res_count;$i++) 119 + for ($i = 0; $i < $res_count;++$i)
120 { 120 {
121 $rc = $this->layer->getResult($i); 121 $rc = $this->layer->getResult($i);
122 $shp_atual[] = $rc->shapeindex; 122 $shp_atual[] = $rc->shapeindex;
@@ -128,7 +128,7 @@ $ys - lista de coordenadas y separadas por virgula @@ -128,7 +128,7 @@ $ys - lista de coordenadas y separadas por virgula
128 $linha = ms_newLineObj(); 128 $linha = ms_newLineObj();
129 $xs = explode(",",$xs); 129 $xs = explode(",",$xs);
130 $ys = explode(",",$ys); 130 $ys = explode(",",$ys);
131 - for($i=0;$i<(count($xs));$i++) 131 + for($i=0;$i<(count($xs));++$i)
132 { 132 {
133 $linha->addxy($xs[$i],$ys[$i]); 133 $linha->addxy($xs[$i],$ys[$i]);
134 } 134 }
@@ -136,7 +136,7 @@ $ys - lista de coordenadas y separadas por virgula @@ -136,7 +136,7 @@ $ys - lista de coordenadas y separadas por virgula
136 $s->add($linha); 136 $s->add($linha);
137 $this->layer->querybyshape($s); 137 $this->layer->querybyshape($s);
138 $res_count = $this->layer->getNumresults(); 138 $res_count = $this->layer->getNumresults();
139 - for ($i = 0; $i < $res_count; $i++) 139 + for ($i = 0; $i < $res_count; ++$i)
140 { 140 {
141 $result = $this->layer->getResult($i); 141 $result = $this->layer->getResult($i);
142 $shpi[] = $result->shapeindex; 142 $shpi[] = $result->shapeindex;
@@ -180,7 +180,7 @@ $tipo - Tipo de operação adiciona|retira|inverte|limpa @@ -180,7 +180,7 @@ $tipo - Tipo de operação adiciona|retira|inverte|limpa
180 if ($res_counto == 0) 180 if ($res_counto == 0)
181 {return("erro. O tema de sobreposicao nao possui selecao.");} 181 {return("erro. O tema de sobreposicao nao possui selecao.");}
182 $shp_atual = array(); 182 $shp_atual = array();
183 - for ($i = 0; $i < $res_count;$i++) 183 + for ($i = 0; $i < $res_count;++$i)
184 { 184 {
185 $rc = $this->layer->getResult($i); 185 $rc = $this->layer->getResult($i);
186 $shp_atual[] = $rc->shapeindex; 186 $shp_atual[] = $rc->shapeindex;
@@ -193,7 +193,7 @@ $tipo - Tipo de operação adiciona|retira|inverte|limpa @@ -193,7 +193,7 @@ $tipo - Tipo de operação adiciona|retira|inverte|limpa
193 { 193 {
194 $layero->open(); 194 $layero->open();
195 $res_count = $layero->getNumresults(); 195 $res_count = $layero->getNumresults();
196 - for ($i = 0; $i < $res_count; $i++) 196 + for ($i = 0; $i < $res_count; ++$i)
197 { 197 {
198 $result = $layero->getResult($i); 198 $result = $layero->getResult($i);
199 $s = $result->shapeindex; 199 $s = $result->shapeindex;
@@ -256,7 +256,7 @@ $tipo - Tipo de operação adiciona|retira|inverte|limpa @@ -256,7 +256,7 @@ $tipo - Tipo de operação adiciona|retira|inverte|limpa
256 { 256 {
257 $this->layer->querybyshape($s); 257 $this->layer->querybyshape($s);
258 $res_count = $this->layer->getNumresults(); 258 $res_count = $this->layer->getNumresults();
259 - for ($i = 0; $i < $res_count; $i++) 259 + for ($i = 0; $i < $res_count; ++$i)
260 { 260 {
261 $result = $this->layer->getResult($i); 261 $result = $this->layer->getResult($i);
262 $shpi[] = $result->shapeindex; 262 $shpi[] = $result->shapeindex;
@@ -327,7 +327,7 @@ $valor - Valor. @@ -327,7 +327,7 @@ $valor - Valor.
327 {$this->mapa->loadquery(($this->arquivo)."qy");} 327 {$this->mapa->loadquery(($this->arquivo)."qy");}
328 $res_count = $this->layer->getNumresults(); 328 $res_count = $this->layer->getNumresults();
329 $shp_atual = array(); 329 $shp_atual = array();
330 - for ($i = 0; $i < $res_count;$i++) 330 + for ($i = 0; $i < $res_count;++$i)
331 { 331 {
332 $rc = $this->layer->getResult($i); 332 $rc = $this->layer->getResult($i);
333 $shp_atual[] = $rc->shapeindex; 333 $shp_atual[] = $rc->shapeindex;
@@ -340,7 +340,7 @@ $valor - Valor. @@ -340,7 +340,7 @@ $valor - Valor.
340 {$this->layer->querybyattributes($item,'("['.$item.']"'.$operador.'"'.$valor.'")',1);} 340 {$this->layer->querybyattributes($item,'("['.$item.']"'.$operador.'"'.$valor.'")',1);}
341 $res_count = $this->layer->getNumresults(); 341 $res_count = $this->layer->getNumresults();
342 $shpi = array(); 342 $shpi = array();
343 - for ($i = 0; $i < $res_count; $i++) 343 + for ($i = 0; $i < $res_count; ++$i)
344 { 344 {
345 $result = $this->layer->getResult($i); 345 $result = $this->layer->getResult($i);
346 $shpi[] = $result->shapeindex; 346 $shpi[] = $result->shapeindex;
@@ -374,7 +374,7 @@ $tipo - Tipo de operação adiciona|retira|inverte|limpa @@ -374,7 +374,7 @@ $tipo - Tipo de operação adiciona|retira|inverte|limpa
374 $indxlayer = $this->layer->index; 374 $indxlayer = $this->layer->index;
375 $res_count = $this->layer->getNumresults(); 375 $res_count = $this->layer->getNumresults();
376 $shp_atual = array(); 376 $shp_atual = array();
377 - for ($i = 0; $i < $res_count;$i++) 377 + for ($i = 0; $i < $res_count;++$i)
378 { 378 {
379 $rc = $this->layer->getResult($i); 379 $rc = $this->layer->getResult($i);
380 $shp_atual[] = $rc->shapeindex; 380 $shp_atual[] = $rc->shapeindex;
@@ -424,7 +424,7 @@ $tipo - Tipo de operação adiciona|retira|inverte|limpa @@ -424,7 +424,7 @@ $tipo - Tipo de operação adiciona|retira|inverte|limpa
424 { 424 {
425 $res_count = $this->layer->getNumresults(); 425 $res_count = $this->layer->getNumresults();
426 $shpi = array(); 426 $shpi = array();
427 - for ($i = 0; $i < $res_count; $i++) 427 + for ($i = 0; $i < $res_count; ++$i)
428 { 428 {
429 $result = $this->layer->getResult($i); 429 $result = $this->layer->getResult($i);
430 $shpi[] = $result->shapeindex; 430 $shpi[] = $result->shapeindex;
@@ -472,7 +472,7 @@ Inverte seleção do tema. @@ -472,7 +472,7 @@ Inverte seleção do tema.
472 $items = pegaItens($this->layer); 472 $items = pegaItens($this->layer);
473 $res_count = $this->layer->getNumresults(); 473 $res_count = $this->layer->getNumresults();
474 $shp_atual = array(); 474 $shp_atual = array();
475 - for ($i = 0; $i < $res_count;$i++) 475 + for ($i = 0; $i < $res_count;++$i)
476 { 476 {
477 $rc = $this->layer->getResult($i); 477 $rc = $this->layer->getResult($i);
478 $shp_atual[] = $rc->shapeindex; 478 $shp_atual[] = $rc->shapeindex;
@@ -484,7 +484,7 @@ Inverte seleção do tema. @@ -484,7 +484,7 @@ Inverte seleção do tema.
484 $this->layer->queryByrect($this->mapa->extent); 484 $this->layer->queryByrect($this->mapa->extent);
485 $res_count = $this->layer->getNumresults(); 485 $res_count = $this->layer->getNumresults();
486 $shp_todos = array(); 486 $shp_todos = array();
487 - for ($i = 0; $i < $res_count;$i++) 487 + for ($i = 0; $i < $res_count;++$i)
488 { 488 {
489 $rc = $this->layer->getResult($i); 489 $rc = $this->layer->getResult($i);
490 $shp_todos[] = $rc->shapeindex; 490 $shp_todos[] = $rc->shapeindex;
@@ -617,7 +617,7 @@ $tipo - Tipo de operação adiciona|retira|inverte|limpa @@ -617,7 +617,7 @@ $tipo - Tipo de operação adiciona|retira|inverte|limpa
617 $indxlayer = $this->layer->index; 617 $indxlayer = $this->layer->index;
618 $res_count = $this->layer->getNumresults(); 618 $res_count = $this->layer->getNumresults();
619 $shp_atual = array(); 619 $shp_atual = array();
620 - for ($i = 0; $i < $res_count;$i++) 620 + for ($i = 0; $i < $res_count;++$i)
621 { 621 {
622 $rc = $this->layer->getResult($i); 622 $rc = $this->layer->getResult($i);
623 $shp_atual[] = $rc->shapeindex; 623 $shp_atual[] = $rc->shapeindex;
@@ -630,7 +630,7 @@ $tipo - Tipo de operação adiciona|retira|inverte|limpa @@ -630,7 +630,7 @@ $tipo - Tipo de operação adiciona|retira|inverte|limpa
630 { 630 {
631 $res_count = $this->layer->getNumresults(); 631 $res_count = $this->layer->getNumresults();
632 $shpi = array(); 632 $shpi = array();
633 - for ($i = 0; $i < $res_count; $i++) 633 + for ($i = 0; $i < $res_count; ++$i)
634 { 634 {
635 $result = $this->layer->getResult($i); 635 $result = $this->layer->getResult($i);
636 $shpi[] = $result->shapeindex; 636 $shpi[] = $result->shapeindex;
@@ -665,7 +665,7 @@ $ext - coordenadas separadas por espaços no estilo xmin ymin xmax ymax @@ -665,7 +665,7 @@ $ext - coordenadas separadas por espaços no estilo xmin ymin xmax ymax
665 $indxlayer = $this->layer->index; 665 $indxlayer = $this->layer->index;
666 $res_count = $this->layer->getNumresults(); 666 $res_count = $this->layer->getNumresults();
667 $shp_atual = array(); 667 $shp_atual = array();
668 - for ($i = 0; $i < $res_count;$i++) 668 + for ($i = 0; $i < $res_count;++$i)
669 { 669 {
670 $rc = $this->layer->getResult($i); 670 $rc = $this->layer->getResult($i);
671 $shp_atual[] = $rc->shapeindex; 671 $shp_atual[] = $rc->shapeindex;
@@ -683,7 +683,7 @@ $ext - coordenadas separadas por espaços no estilo xmin ymin xmax ymax @@ -683,7 +683,7 @@ $ext - coordenadas separadas por espaços no estilo xmin ymin xmax ymax
683 { 683 {
684 $res_count = $this->layer->getNumresults(); 684 $res_count = $this->layer->getNumresults();
685 $shpi = array(); 685 $shpi = array();
686 - for ($i = 0; $i < $res_count; $i++) 686 + for ($i = 0; $i < $res_count; ++$i)
687 { 687 {
688 $result = $this->layer->getResult($i); 688 $result = $this->layer->getResult($i);
689 $shpi[] = $result->shapeindex; 689 $shpi[] = $result->shapeindex;
classesphp/classe_shp.php
@@ -102,9 +102,9 @@ Nome do tema criado. @@ -102,9 +102,9 @@ Nome do tema criado.
102 function criaSHPvazio() 102 function criaSHPvazio()
103 { 103 {
104 if(file_exists($this->locaplic."/pacotes/phpxbase/api_conversion.php")) 104 if(file_exists($this->locaplic."/pacotes/phpxbase/api_conversion.php"))
105 - require_once($this->locaplic."/pacotes/phpxbase/api_conversion.php"); 105 + include_once($this->locaplic."/pacotes/phpxbase/api_conversion.php");
106 else 106 else
107 - require_once "../pacotes/phpxbase/api_conversion.php"; 107 + include_once "../pacotes/phpxbase/api_conversion.php";
108 $diretorio = dirname($this->arquivo); 108 $diretorio = dirname($this->arquivo);
109 $tipol = MS_SHP_POINT; 109 $tipol = MS_SHP_POINT;
110 $novonomelayer = nomeRandomico(); 110 $novonomelayer = nomeRandomico();
@@ -145,9 +145,9 @@ $projecao - código epsg da projeção das coordenadas @@ -145,9 +145,9 @@ $projecao - código epsg da projeção das coordenadas
145 function insereSHP($xy,$projecao,$item="",$valor="") 145 function insereSHP($xy,$projecao,$item="",$valor="")
146 { 146 {
147 if(file_exists($this->locaplic."/pacotes/phpxbase/api_conversion.php")) 147 if(file_exists($this->locaplic."/pacotes/phpxbase/api_conversion.php"))
148 - require_once($this->locaplic."/pacotes/phpxbase/api_conversion.php"); 148 + include_once($this->locaplic."/pacotes/phpxbase/api_conversion.php");
149 else 149 else
150 - require_once "../pacotes/phpxbase/api_conversion.php"; 150 + include_once "../pacotes/phpxbase/api_conversion.php";
151 $xy = explode(" ",$xy); 151 $xy = explode(" ",$xy);
152 $data = $this->layer->data; 152 $data = $this->layer->data;
153 $data = explode(".shp",$data); 153 $data = explode(".shp",$data);
@@ -155,7 +155,7 @@ $projecao - código epsg da projeção das coordenadas @@ -155,7 +155,7 @@ $projecao - código epsg da projeção das coordenadas
155 $items = pegaItens($this->layer); 155 $items = pegaItens($this->layer);
156 $dbname = $data.".dbf"; 156 $dbname = $data.".dbf";
157 $db=xbase_open($dbname,2); 157 $db=xbase_open($dbname,2);
158 - for($i=0;$i<(count($xy) / 2);$i++) 158 + for($i=0;$i<(count($xy) / 2);++$i)
159 { 159 {
160 $reg = array(); 160 $reg = array();
161 foreach ($items as $ni) 161 foreach ($items as $ni)
@@ -309,9 +309,9 @@ $para - linha|poligono @@ -309,9 +309,9 @@ $para - linha|poligono
309 { 309 {
310 //para manipular dbf 310 //para manipular dbf
311 if(file_exists($this->locaplic."/pacotes/phpxbase/api_conversion.php")) 311 if(file_exists($this->locaplic."/pacotes/phpxbase/api_conversion.php"))
312 - require_once($this->locaplic."/pacotes/phpxbase/api_conversion.php"); 312 + include_once($this->locaplic."/pacotes/phpxbase/api_conversion.php");
313 else 313 else
314 - require_once "../pacotes/phpxbase/api_conversion.php"; 314 + include_once "../pacotes/phpxbase/api_conversion.php";
315 $this->layer->set("template","none.htm"); 315 $this->layer->set("template","none.htm");
316 $diretorio = dirname($this->arquivo); 316 $diretorio = dirname($this->arquivo);
317 $tipol = MS_SHP_ARC; 317 $tipol = MS_SHP_ARC;
classesphp/classe_temas.php
@@ -91,9 +91,9 @@ $tema - nome do tema que será processado @@ -91,9 +91,9 @@ $tema - nome do tema que será processado
91 { 91 {
92 //error_reporting(E_ALL); 92 //error_reporting(E_ALL);
93 if(file_exists($locaplic."/funcoes_gerais.php")) 93 if(file_exists($locaplic."/funcoes_gerais.php"))
94 - require_once($locaplic."/funcoes_gerais.php"); 94 + include_once($locaplic."/funcoes_gerais.php");
95 else 95 else
96 - require_once("funcoes_gerais.php"); 96 + include_once("funcoes_gerais.php");
97 $this->locaplic = $locaplic; 97 $this->locaplic = $locaplic;
98 $this->mapa = ms_newMapObj($map_file); 98 $this->mapa = ms_newMapObj($map_file);
99 $this->arquivo = $map_file; 99 $this->arquivo = $map_file;
@@ -239,7 +239,7 @@ Altera a ordem de armazenamento dos layers no mapfile. @@ -239,7 +239,7 @@ Altera a ordem de armazenamento dos layers no mapfile.
239 } 239 }
240 foreach ($this->indices as $indice) 240 foreach ($this->indices as $indice)
241 { 241 {
242 - for ($i=0;$i<$mover;$i++) 242 + for ($i=0;$i<$mover;++$i)
243 {$moveu = $this->mapa->moveLayerUp($indice);} 243 {$moveu = $this->mapa->moveLayerUp($indice);}
244 } 244 }
245 if ($moveu == MS_TRUE) 245 if ($moveu == MS_TRUE)
@@ -286,7 +286,7 @@ Altera a ordem de armazenamento dos layers no mapfile. @@ -286,7 +286,7 @@ Altera a ordem de armazenamento dos layers no mapfile.
286 } 286 }
287 foreach ($indices as $indice) 287 foreach ($indices as $indice)
288 { 288 {
289 - for ($i=0;$i<$mover;$i++) 289 + for ($i=0;$i<$mover;++$i)
290 {$moveu = $this->mapa->moveLayerDown($indice);} 290 {$moveu = $this->mapa->moveLayerDown($indice);}
291 } 291 }
292 if ($moveu == MS_TRUE) 292 if ($moveu == MS_TRUE)
@@ -314,7 +314,7 @@ lista - lista com a nova ordem para os temas. A lista contém os nomes dos temas @@ -314,7 +314,7 @@ lista - lista com a nova ordem para os temas. A lista contém os nomes dos temas
314 $escondidos = array(); 314 $escondidos = array();
315 foreach ($lista as $l) 315 foreach ($lista as $l)
316 { 316 {
317 - for ($i=0;$i<$nlayers;$i++) 317 + for ($i=0;$i<$nlayers;++$i)
318 { 318 {
319 $la = $this->mapa->getlayer($i); 319 $la = $this->mapa->getlayer($i);
320 $g = strtoupper($la->group); 320 $g = strtoupper($la->group);
@@ -324,7 +324,7 @@ lista - lista com a nova ordem para os temas. A lista contém os nomes dos temas @@ -324,7 +324,7 @@ lista - lista com a nova ordem para os temas. A lista contém os nomes dos temas
324 {$novaordem[] = $i;} 324 {$novaordem[] = $i;}
325 } 325 }
326 } 326 }
327 - for ($i=0;$i<$nlayers;$i++) 327 + for ($i=0;$i<$nlayers;++$i)
328 { 328 {
329 if (!in_array($i,$novaordem)) 329 if (!in_array($i,$novaordem))
330 {$novaordem[] = $i;} 330 {$novaordem[] = $i;}
@@ -678,7 +678,7 @@ $nome - nome que será dado a geometria @@ -678,7 +678,7 @@ $nome - nome que será dado a geometria
678 $res_count = $this->layer->getNumresults(); 678 $res_count = $this->layer->getNumresults();
679 $final["layer"] = pegaNome($this->layer); 679 $final["layer"] = pegaNome($this->layer);
680 $registros = array(); 680 $registros = array();
681 - for ($i = 0; $i < $res_count; $i++) 681 + for ($i = 0; $i < $res_count; ++$i)
682 { 682 {
683 $valitem = array(); 683 $valitem = array();
684 $result = $this->layer->getResult($i); 684 $result = $this->layer->getResult($i);
@@ -793,7 +793,7 @@ lista - lista de item e cores de cada parte do grafico @@ -793,7 +793,7 @@ lista - lista de item e cores de cada parte do grafico
793 $novolayer->setprocessing("CHART_TYPE=$tipo"); 793 $novolayer->setprocessing("CHART_TYPE=$tipo");
794 $novolayer->setprocessing("CHART_SIZE=$tamanho"); 794 $novolayer->setprocessing("CHART_SIZE=$tamanho");
795 $nclasses = $novolayer->numclasses; 795 $nclasses = $novolayer->numclasses;
796 - for ($i=0; $i < $nclasses; $i++) 796 + for ($i=0; $i < $nclasses; ++$i)
797 { 797 {
798 $c = $novolayer->getclass($i); 798 $c = $novolayer->getclass($i);
799 $c->set("status",MS_DELETE); 799 $c->set("status",MS_DELETE);
classesphp/classe_toponimia.php
@@ -76,9 +76,9 @@ $tema - nome do tema que será processado @@ -76,9 +76,9 @@ $tema - nome do tema que será processado
76 { 76 {
77 //error_reporting(E_ALL); 77 //error_reporting(E_ALL);
78 if(file_exists($locaplic."/funcoes_gerais.php")) 78 if(file_exists($locaplic."/funcoes_gerais.php"))
79 - require_once($locaplic."/funcoes_gerais.php"); 79 + include_once($locaplic."/funcoes_gerais.php");
80 else 80 else
81 - require_once("funcoes_gerais.php"); 81 + include_once("funcoes_gerais.php");
82 $this->mapa = ms_newMapObj($map_file); 82 $this->mapa = ms_newMapObj($map_file);
83 $this->arquivo = $map_file; 83 $this->arquivo = $map_file;
84 $this->layer = $this->mapa->getlayerbyname($tema); 84 $this->layer = $this->mapa->getlayerbyname($tema);
@@ -154,7 +154,7 @@ $tipo Tipo teste| @@ -154,7 +154,7 @@ $tipo Tipo teste|
154 $novolayer->set("group",""); 154 $novolayer->set("group","");
155 $novolayer->set("type",MS_LAYER_ANNOTATION); 155 $novolayer->set("type",MS_LAYER_ANNOTATION);
156 $nclasses = $novolayer->numclasses; 156 $nclasses = $novolayer->numclasses;
157 - for ($i=0; $i < $nclasses; $i++) 157 + for ($i=0; $i < $nclasses; ++$i)
158 { 158 {
159 $c = $novolayer->getclass($i); 159 $c = $novolayer->getclass($i);
160 $c->set("status",MS_DELETE); 160 $c->set("status",MS_DELETE);
classesphp/flamingoogc.php
@@ -60,13 +60,13 @@ if (!function_exists(&#39;ms_GetVersion&#39;)) @@ -60,13 +60,13 @@ if (!function_exists(&#39;ms_GetVersion&#39;))
60 else 60 else
61 {dl('php_mapscript.so');} 61 {dl('php_mapscript.so');}
62 } 62 }
63 -require_once("carrega_ext.php");  
64 -include("../ms_configura.php");  
65 -include("pega_variaveis.php"); 63 +include_once("carrega_ext.php");
  64 +include_once("../ms_configura.php");
  65 +include_once("pega_variaveis.php");
66 // 66 //
67 //cria o web service 67 //cria o web service
68 // 68 //
69 -include("funcoes_gerais.php"); 69 +include_once("funcoes_gerais.php");
70 $req = ms_newowsrequestobj(); 70 $req = ms_newowsrequestobj();
71 $tipo = ""; 71 $tipo = "";
72 foreach ($_GET as $k=>$v) 72 foreach ($_GET as $k=>$v)
classesphp/funcoes_gerais.php
@@ -60,7 +60,7 @@ function classesRasterI($minvalor,$maxvalor,$nclasses,$cores) @@ -60,7 +60,7 @@ function classesRasterI($minvalor,$maxvalor,$nclasses,$cores)
60 $trans = 250 / ($maxvalor - $minvalor); 60 $trans = 250 / ($maxvalor - $minvalor);
61 $intervalo = (($maxvalor*$trans) - ($minvalor*$trans)) / $nclasses; 61 $intervalo = (($maxvalor*$trans) - ($minvalor*$trans)) / $nclasses;
62 $conta = 0; 62 $conta = 0;
63 - for ($i=0; $i < $nclasses; $i++) 63 + for ($i=0; $i < $nclasses; ++$i)
64 { 64 {
65 $expressao = "([pixel]>=".$conta." and [pixel]<".($conta+$intervalo).")"; 65 $expressao = "([pixel]>=".$conta." and [pixel]<".($conta+$intervalo).")";
66 $nomeclasse = ">= ".($conta/$trans)." e < que ".(($conta + $intervalo)/$trans); 66 $nomeclasse = ">= ".($conta/$trans)." e < que ".(($conta + $intervalo)/$trans);
@@ -408,7 +408,7 @@ function nomeRandomico($n=10) @@ -408,7 +408,7 @@ function nomeRandomico($n=10)
408 $nomes = ""; 408 $nomes = "";
409 $a = 'azertyuiopqsdfghjklmwxcvbnABCDEFGHIJKLMNOPQRSTUVWXYZ'; 409 $a = 'azertyuiopqsdfghjklmwxcvbnABCDEFGHIJKLMNOPQRSTUVWXYZ';
410 $max = strlen($a)-1; 410 $max = strlen($a)-1;
411 - for($i=0; $i < $n; $i++) 411 + for($i=0; $i < $n; ++$i)
412 {$nomes .= $a{mt_rand(0, $max)};} 412 {$nomes .= $a{mt_rand(0, $max)};}
413 return $nomes; 413 return $nomes;
414 } 414 }
@@ -427,7 +427,8 @@ function listaEpsg() @@ -427,7 +427,8 @@ function listaEpsg()
427 $linhas[] = $buffer; 427 $linhas[] = $buffer;
428 } 428 }
429 fclose($abre); 429 fclose($abre);
430 - for ($i=0;$i < count($linhas);$i=$i+2) 430 + $cl = count($linhas);
  431 + for ($i=0;$i < $cl;$i=$i+2)
431 { 432 {
432 $n = $linhas[$i]; 433 $n = $linhas[$i];
433 $n = str_replace("#","",$n); 434 $n = str_replace("#","",$n);
@@ -656,7 +657,7 @@ function substituiCon($map_file,$postgis_mapa) @@ -656,7 +657,7 @@ function substituiCon($map_file,$postgis_mapa)
656 { 657 {
657 $objMap = ms_newMapObj($map_file); 658 $objMap = ms_newMapObj($map_file);
658 $numlayers = $objMap->numlayers; 659 $numlayers = $objMap->numlayers;
659 - for ($i=0;$i < $numlayers;$i++) 660 + for ($i=0;$i < $numlayers;++$i)
660 { 661 {
661 $layer = $objMap->getlayer($i); 662 $layer = $objMap->getlayer($i);
662 if ($layer->connectiontype == MS_POSTGIS) 663 if ($layer->connectiontype == MS_POSTGIS)
@@ -688,7 +689,7 @@ function restauraCon($map_file,$postgis_mapa) @@ -688,7 +689,7 @@ function restauraCon($map_file,$postgis_mapa)
688 { 689 {
689 $objMap = ms_newMapObj($map_file); 690 $objMap = ms_newMapObj($map_file);
690 $numlayers = $objMap->numlayers; 691 $numlayers = $objMap->numlayers;
691 - for ($i=0;$i < $numlayers;$i++) 692 + for ($i=0;$i < $numlayers;++$i)
692 { 693 {
693 $layer = $objMap->getlayer($i); 694 $layer = $objMap->getlayer($i);
694 if ($layer->connectiontype == MS_POSTGIS) 695 if ($layer->connectiontype == MS_POSTGIS)
@@ -778,7 +779,7 @@ function retornaReferenciaDinamica() @@ -778,7 +779,7 @@ function retornaReferenciaDinamica()
778 // 779 //
779 $objMapa = ms_newMapObj($map_file); 780 $objMapa = ms_newMapObj($map_file);
780 $numlayers = $objMapa->numlayers; 781 $numlayers = $objMapa->numlayers;
781 - for ($i=0;$i < $numlayers;$i++) 782 + for ($i=0;$i < $numlayers;++$i)
782 { 783 {
783 $layer = $objMapa->getlayer($i); 784 $layer = $objMapa->getlayer($i);
784 $layer->set("status",MS_OFF); 785 $layer->set("status",MS_OFF);
@@ -919,7 +920,7 @@ Objeto map alterado. @@ -919,7 +920,7 @@ Objeto map alterado.
919 function desligaTemas($objMapa) 920 function desligaTemas($objMapa)
920 { 921 {
921 $numlayers = $objMapa->numlayers; 922 $numlayers = $objMapa->numlayers;
922 - for ($i=0;$i < $numlayers;$i++) 923 + for ($i=0;$i < $numlayers;++$i)
923 { 924 {
924 $layer = $objMapa->getlayer($i); 925 $layer = $objMapa->getlayer($i);
925 $layer->set("status",MS_OFF); 926 $layer->set("status",MS_OFF);
@@ -1008,7 +1009,7 @@ function pegaValores($mapa,$layer,$item,$numerico=false,$ignorar=&quot;&quot;) @@ -1008,7 +1009,7 @@ function pegaValores($mapa,$layer,$item,$numerico=false,$ignorar=&quot;&quot;)
1008 $layer->open(); 1009 $layer->open();
1009 $res_count = $layer->getNumresults(); 1010 $res_count = $layer->getNumresults();
1010 $valitem = array(); 1011 $valitem = array();
1011 - for ($i=0;$i<$res_count;$i++) 1012 + for ($i=0;$i<$res_count;++$i)
1012 { 1013 {
1013 $result = $layer->getResult($i); 1014 $result = $layer->getResult($i);
1014 $shp_index = $result->shapeindex; 1015 $shp_index = $result->shapeindex;
@@ -1070,7 +1071,7 @@ function pegaValoresM($mapa,$layer,$itens,$exclui=&quot;nulo&quot;,$selecionados=&quot;nao&quot;) @@ -1070,7 +1071,7 @@ function pegaValoresM($mapa,$layer,$itens,$exclui=&quot;nulo&quot;,$selecionados=&quot;nao&quot;)
1070 { 1071 {
1071 $layer->open(); 1072 $layer->open();
1072 $res_count = $layer->getNumresults(); 1073 $res_count = $layer->getNumresults();
1073 - for ($i = 0; $i < $res_count; $i++) 1074 + for ($i = 0; $i < $res_count; ++$i)
1074 { 1075 {
1075 $result = $layer->getResult($i); 1076 $result = $layer->getResult($i);
1076 $indicesel[] = $result->shapeindex; 1077 $indicesel[] = $result->shapeindex;
@@ -1082,7 +1083,7 @@ function pegaValoresM($mapa,$layer,$itens,$exclui=&quot;nulo&quot;,$selecionados=&quot;nao&quot;) @@ -1082,7 +1083,7 @@ function pegaValoresM($mapa,$layer,$itens,$exclui=&quot;nulo&quot;,$selecionados=&quot;nao&quot;)
1082 { 1083 {
1083 $layer->open(); 1084 $layer->open();
1084 $res_count = $layer->getNumresults(); 1085 $res_count = $layer->getNumresults();
1085 - for ($i=0;$i<$res_count;$i++) 1086 + for ($i=0;$i<$res_count;++$i)
1086 { 1087 {
1087 $result = $layer->getResult($i); 1088 $result = $layer->getResult($i);
1088 $shp_index = $result->shapeindex; 1089 $shp_index = $result->shapeindex;
@@ -1203,8 +1204,8 @@ array com o resultado. @@ -1203,8 +1204,8 @@ array com o resultado.
1203 */ 1204 */
1204 function buscaRapida($servico,$palavra) 1205 function buscaRapida($servico,$palavra)
1205 { 1206 {
1206 - require_once('../pacotes/SOAP/nusoap.php');  
1207 - //require_once("../pacotes/SOAP/easy_parser.inc"); 1207 + include_once('../pacotes/SOAP/nusoap.php');
  1208 + //include_once("../pacotes/SOAP/easy_parser.inc");
1208 $soapclient = new Xsoapclient($servico."?wsdl","wsdl"); 1209 $soapclient = new Xsoapclient($servico."?wsdl","wsdl");
1209 if (@$p = $soapclient->getproxy()) 1210 if (@$p = $soapclient->getproxy())
1210 { 1211 {
@@ -1236,8 +1237,8 @@ function ip2geo($ip,$locaplic=&quot;..&quot;) @@ -1236,8 +1237,8 @@ function ip2geo($ip,$locaplic=&quot;..&quot;)
1236 $resultado = array(); 1237 $resultado = array();
1237 if (file_exists($locaplic."/pacotes/geoip/geoipcity.inc")) 1238 if (file_exists($locaplic."/pacotes/geoip/geoipcity.inc"))
1238 { 1239 {
1239 - require_once($locaplic."/pacotes/geoip/geoipcity.inc");  
1240 - require_once($locaplic."/pacotes/geoip/geoipregionvars.php"); 1240 + include_once($locaplic."/pacotes/geoip/geoipcity.inc");
  1241 + include_once($locaplic."/pacotes/geoip/geoipregionvars.php");
1241 $gi = geoip_open($locaplic."/pacotes/geoip/GeoLiteCity.dat",GEOIP_STANDARD); 1242 $gi = geoip_open($locaplic."/pacotes/geoip/GeoLiteCity.dat",GEOIP_STANDARD);
1242 $record = geoip_record_by_addr($gi,$ip); 1243 $record = geoip_record_by_addr($gi,$ip);
1243 $resultado["country_code"] = $record->country_code . " " . $record->country_code3 . " " . $record->country_name; 1244 $resultado["country_code"] = $record->country_code . " " . $record->country_code3 . " " . $record->country_name;
@@ -1324,7 +1325,8 @@ function xy2wkt($xy) @@ -1324,7 +1325,8 @@ function xy2wkt($xy)
1324 $shplin = ms_newshapeobj(MS_SHAPE_LINE); 1325 $shplin = ms_newshapeobj(MS_SHAPE_LINE);
1325 $shppol = ms_newshapeobj(MS_SHAPE_POLYGON); 1326 $shppol = ms_newshapeobj(MS_SHAPE_POLYGON);
1326 $lin = ms_newlineobj(); 1327 $lin = ms_newlineobj();
1327 - for ($i = 0;$i < count($apt); $i = $i + 2) 1328 + $capt = count($apt);
  1329 + for ($i = 0;$i < $capt; $i = $i + 2)
1328 {$lin->addxy($apt[$i],$apt[$i + 1]);} 1330 {$lin->addxy($apt[$i],$apt[$i + 1]);}
1329 $shppt->add($lin); 1331 $shppt->add($lin);
1330 if (count($apt) < 4) 1332 if (count($apt) < 4)
@@ -1532,9 +1534,9 @@ function criaSHP($tema,$map_file,$locaplic,$dir_tmp,$nomeRand=TRUE) @@ -1532,9 +1534,9 @@ function criaSHP($tema,$map_file,$locaplic,$dir_tmp,$nomeRand=TRUE)
1532 { 1534 {
1533 //para manipular dbf 1535 //para manipular dbf
1534 if(file_exists($locaplic."/pacotes/phpxbase/api_conversion.php")) 1536 if(file_exists($locaplic."/pacotes/phpxbase/api_conversion.php"))
1535 - require_once($locaplic."/pacotes/phpxbase/api_conversion.php"); 1537 + include_once($locaplic."/pacotes/phpxbase/api_conversion.php");
1536 else 1538 else
1537 - require_once "../pacotes/phpxbase/api_conversion.php"; 1539 + include_once "../pacotes/phpxbase/api_conversion.php";
1538 $map = @ms_newMapObj($map_file); 1540 $map = @ms_newMapObj($map_file);
1539 $layer = $map->getlayerbyname($tema); 1541 $layer = $map->getlayerbyname($tema);
1540 $layer->set("template","none.htm"); 1542 $layer->set("template","none.htm");
@@ -1601,7 +1603,7 @@ function criaSHP($tema,$map_file,$locaplic,$dir_tmp,$nomeRand=TRUE) @@ -1601,7 +1603,7 @@ function criaSHP($tema,$map_file,$locaplic,$dir_tmp,$nomeRand=TRUE)
1601 if ($res_count > 0) 1603 if ($res_count > 0)
1602 { 1604 {
1603 $abriu = $layer->open(); 1605 $abriu = $layer->open();
1604 - for ($i = 0; $i < $res_count; $i++) 1606 + for ($i = 0; $i < $res_count; ++$i)
1605 { 1607 {
1606 $result = $layer->getResult($i); 1608 $result = $layer->getResult($i);
1607 $shp_index = $result->shapeindex; 1609 $shp_index = $result->shapeindex;
@@ -1647,9 +1649,9 @@ function downloadTema($map_file,$tema,$locaplic,$dir_tmp) @@ -1647,9 +1649,9 @@ function downloadTema($map_file,$tema,$locaplic,$dir_tmp)
1647 { 1649 {
1648 ini_set("max_execution_time","1800"); 1650 ini_set("max_execution_time","1800");
1649 if(file_exists($locaplic."/ms_configura.php")) 1651 if(file_exists($locaplic."/ms_configura.php"))
1650 - require_once($locaplic."/ms_configura.php"); 1652 + include_once($locaplic."/ms_configura.php");
1651 else 1653 else
1652 - require_once("../ms_configura.php"); 1654 + include_once("../ms_configura.php");
1653 if (($map_file == "") || (!@ms_newMapObj($map_file))) //a funcao foi chamada do aplicativo datadownload 1655 if (($map_file == "") || (!@ms_newMapObj($map_file))) //a funcao foi chamada do aplicativo datadownload
1654 { 1656 {
1655 if (strtoupper(substr(PHP_OS, 0, 3) == 'WIN')) 1657 if (strtoupper(substr(PHP_OS, 0, 3) == 'WIN'))
@@ -1825,7 +1827,8 @@ function versao() @@ -1825,7 +1827,8 @@ function versao()
1825 { 1827 {
1826 $v = "5.0.0"; 1828 $v = "5.0.0";
1827 $vs = explode(" ",ms_GetVersion()); 1829 $vs = explode(" ",ms_GetVersion());
1828 - for ($i=0;$i<(count($vs));$i++) 1830 + $cvs = count($vs);
  1831 + for ($i=0;$i<$cvs;++$i)
1829 { 1832 {
1830 if(trim(strtolower($vs[$i])) == "version") 1833 if(trim(strtolower($vs[$i])) == "version")
1831 {$v = $vs[$i+1];} 1834 {$v = $vs[$i+1];}
@@ -1947,7 +1950,7 @@ function autoClasses(&amp;$nlayer,$mapa) @@ -1947,7 +1950,7 @@ function autoClasses(&amp;$nlayer,$mapa)
1947 if (count($parametrosClasses) > 0) 1950 if (count($parametrosClasses) > 0)
1948 { 1951 {
1949 $ids = array_keys($parametrosClasses); 1952 $ids = array_keys($parametrosClasses);
1950 - for($i=0;$i < count($parametrosClasses);$i++) 1953 + for($i=0;$i < count($parametrosClasses);++$i)
1951 { 1954 {
1952 $p = $parametrosClasses[$ids[$i]]; 1955 $p = $parametrosClasses[$ids[$i]];
1953 //echo "<pre>";var_dump($p); 1956 //echo "<pre>";var_dump($p);
classesphp/graficopizza.php
@@ -61,7 +61,7 @@ function graficopizza($data,$width,$inclinacao,$shadow_height,$cores,$imgurl,$ma @@ -61,7 +61,7 @@ function graficopizza($data,$width,$inclinacao,$shadow_height,$cores,$imgurl,$ma
61 //////////////////////////////////////////////////////////////// 61 ////////////////////////////////////////////////////////////////
62 // PHP script made by Rasmus Petersen - http://www.peters1.dk // 62 // PHP script made by Rasmus Petersen - http://www.peters1.dk //
63 //////////////////////////////////////////////////////////////// 63 ////////////////////////////////////////////////////////////////
64 - require_once("funcoes_gerais.php"); 64 + include_once("funcoes_gerais.php");
65 //<img src="http://www.domain.dk/piechart.php?data=10*9*11*10&label=Denmark*Germany*USA*Sweden" /> 65 //<img src="http://www.domain.dk/piechart.php?data=10*9*11*10&label=Denmark*Germany*USA*Sweden" />
66 $show_label = false; // true = show label, false = don't show label. 66 $show_label = false; // true = show label, false = don't show label.
67 $show_percent = false; // true = show percentage, false = don't show percentage. 67 $show_percent = false; // true = show percentage, false = don't show percentage.
@@ -98,7 +98,8 @@ function graficopizza($data,$width,$inclinacao,$shadow_height,$cores,$imgurl,$ma @@ -98,7 +98,8 @@ function graficopizza($data,$width,$inclinacao,$shadow_height,$cores,$imgurl,$ma
98 $start = 270; 98 $start = 270;
99 $value_counter = 0; 99 $value_counter = 0;
100 $value = 0; 100 $value = 0;
101 - for ($i = 0; $i < count($data); $i++) 101 + $cd = count($data);
  102 + for ($i = 0; $i < $cd; ++$i)
102 { 103 {
103 $value += $data[$i]; 104 $value += $data[$i];
104 $end = ceil(($value/$data_sum)*360) + 270; 105 $end = ceil(($value/$data_sum)*360) + 270;
classesphp/graficos.php
@@ -398,7 +398,7 @@ function iniciaDadosGrafico($map_file,$tema,$exclui,$itemclasses,$itemvalores,$t @@ -398,7 +398,7 @@ function iniciaDadosGrafico($map_file,$tema,$exclui,$itemclasses,$itemvalores,$t
398 if ($tipo != "xy") 398 if ($tipo != "xy")
399 { 399 {
400 $nnval[] = "n;x"; 400 $nnval[] = "n;x";
401 - for ($i=0;$i < $nval; $i++) 401 + for ($i=0;$i < $nval; ++$i)
402 { 402 {
403 if ($dados[$tempm[$i]] > 0) 403 if ($dados[$tempm[$i]] > 0)
404 { 404 {
classesphp/lews/wms_functions.php
@@ -97,7 +97,7 @@ function wms_exceptions ( $dom ) { @@ -97,7 +97,7 @@ function wms_exceptions ( $dom ) {
97 $ctx = xpath_new_context($dom); 97 $ctx = xpath_new_context($dom);
98 $xpnode = xpath_eval($ctx,$xp); 98 $xpnode = xpath_eval($ctx,$xp);
99 $arr = array(); 99 $arr = array();
100 - for( $i = 0; $i < sizeof($xpnode->nodeset); $i++ ) { 100 + for( $i = 0; $i < sizeof($xpnode->nodeset); ++$i ) {
101 $dtnode = $xpnode->nodeset[0]->first_child(); 101 $dtnode = $xpnode->nodeset[0]->first_child();
102 array_push($arr,$dtnode->content); 102 array_push($arr,$dtnode->content);
103 } 103 }
classesphp/mapa_controle.php
@@ -119,7 +119,7 @@ if (isset($debug) &amp;&amp; $debug == &quot;sim&quot;) @@ -119,7 +119,7 @@ if (isset($debug) &amp;&amp; $debug == &quot;sim&quot;)
119 //se as extensões já estiverem carregadas no PHP, vc pode comentar essa linha para que o processamento fique mais rápido 119 //se as extensões já estiverem carregadas no PHP, vc pode comentar essa linha para que o processamento fique mais rápido
120 // 120 //
121 include_once ("carrega_ext.php"); 121 include_once ("carrega_ext.php");
122 -require_once("../pacotes/cpaint/cpaint2.inc.php"); 122 +include_once("../pacotes/cpaint/cpaint2.inc.php");
123 // 123 //
124 //cria objeto cpaint para uso com ajax 124 //cria objeto cpaint para uso com ajax
125 // 125 //
@@ -147,13 +147,13 @@ if ($funcao == &quot;criaMapa&quot;) @@ -147,13 +147,13 @@ if ($funcao == &quot;criaMapa&quot;)
147 $d = ""; 147 $d = "";
148 if(!file_exists($d."ms_configura.php")) 148 if(!file_exists($d."ms_configura.php"))
149 $d = "../"; 149 $d = "../";
150 - include($d."ms_configura.php"); 150 + include_once($d."ms_configura.php");
151 // 151 //
152 //é necessário mudar o diretório em função dos includes que são feitos pelo ms_criamapa.php 152 //é necessário mudar o diretório em função dos includes que são feitos pelo ms_criamapa.php
153 // 153 //
154 chdir($locaplic); 154 chdir($locaplic);
155 $interface = "mashup"; 155 $interface = "mashup";
156 - include("ms_criamapa.php"); 156 + include_once("ms_criamapa.php");
157 $cp->set_data(session_id()); 157 $cp->set_data(session_id());
158 $cp->return_data(); 158 $cp->return_data();
159 return; 159 return;
@@ -165,9 +165,9 @@ if (!isset($map_file)) @@ -165,9 +165,9 @@ if (!isset($map_file))
165 $cp->return_data(); 165 $cp->return_data();
166 exit; 166 exit;
167 } 167 }
168 -require_once("classe_vermultilayer.php");  
169 -require_once("classe_estatistica.php");  
170 -require_once("funcoes_gerais.php"); 168 +include_once("classe_vermultilayer.php");
  169 +include_once("classe_estatistica.php");
  170 +include_once("funcoes_gerais.php");
171 // 171 //
172 //substitui a string de conexão 172 //substitui a string de conexão
173 // 173 //
@@ -194,7 +194,7 @@ Include: @@ -194,7 +194,7 @@ Include:
194 <mapa_inicia.php> 194 <mapa_inicia.php>
195 */ 195 */
196 case "inicia": 196 case "inicia":
197 - include("mapa_inicia.php"); 197 + include_once("mapa_inicia.php");
198 $cp->register('iniciaMapa'); 198 $cp->register('iniciaMapa');
199 $cp->start(); 199 $cp->start();
200 if ($cp->get_data() == "") 200 if ($cp->get_data() == "")
@@ -294,7 +294,7 @@ Include: @@ -294,7 +294,7 @@ Include:
294 <classe_analise.php> 294 <classe_analise.php>
295 */ 295 */
296 case "incmapageometrias": 296 case "incmapageometrias":
297 - include("classe_analise.php"); 297 + include_once("classe_analise.php");
298 $m = new Analise($map_file,""); 298 $m = new Analise($map_file,"");
299 $resultado = $m->incmapageometrias($dir_tmp,$imgdir,$lista); 299 $resultado = $m->incmapageometrias($dir_tmp,$imgdir,$lista);
300 $cp->set_data($resultado); 300 $cp->set_data($resultado);
@@ -309,7 +309,7 @@ Include: @@ -309,7 +309,7 @@ Include:
309 <classe_analise.php> 309 <classe_analise.php>
310 */ 310 */
311 case "funcoesGeometrias": 311 case "funcoesGeometrias":
312 - include("classe_analise.php"); 312 + include_once("classe_analise.php");
313 $m = new Analise($map_file,""); 313 $m = new Analise($map_file,"");
314 $resultado = $m->funcoesGeometrias($dir_tmp,$imgdir,$lista,$operacao); 314 $resultado = $m->funcoesGeometrias($dir_tmp,$imgdir,$lista,$operacao);
315 $cp->set_data($resultado); 315 $cp->set_data($resultado);
@@ -324,7 +324,7 @@ Include: @@ -324,7 +324,7 @@ Include:
324 <classe_analise.php> 324 <classe_analise.php>
325 */ 325 */
326 case "calculaGeometrias": 326 case "calculaGeometrias":
327 - include("classe_analise.php"); 327 + include_once("classe_analise.php");
328 $m = new Analise($map_file,""); 328 $m = new Analise($map_file,"");
329 $resultado = $m->calculaGeometrias($dir_tmp,$imgdir,$lista,$operacao,$postgis_con,$srid_area); 329 $resultado = $m->calculaGeometrias($dir_tmp,$imgdir,$lista,$operacao,$postgis_con,$srid_area);
330 $cp->set_data($resultado); 330 $cp->set_data($resultado);
@@ -340,7 +340,7 @@ Include: @@ -340,7 +340,7 @@ Include:
340 <classe_analise.php> 340 <classe_analise.php>
341 */ 341 */
342 case "listageometrias": 342 case "listageometrias":
343 - include("classe_temas.php"); 343 + include_once("classe_temas.php");
344 if(!isset($tema)){$tema = "";} 344 if(!isset($tema)){$tema = "";}
345 $m = new Temas($map_file,$tema); 345 $m = new Temas($map_file,$tema);
346 $resultado = $m->listaGeometrias($dir_tmp,$imgdir); 346 $resultado = $m->listaGeometrias($dir_tmp,$imgdir);
@@ -357,7 +357,7 @@ Include: @@ -357,7 +357,7 @@ Include:
357 <classe_analise.php> 357 <classe_analise.php>
358 */ 358 */
359 case "capturageometrias": 359 case "capturageometrias":
360 - include("classe_temas.php"); 360 + include_once("classe_temas.php");
361 $m = new Temas($map_file,$tema); 361 $m = new Temas($map_file,$tema);
362 $resultado = $m->capturaGeometrias($dir_tmp,$imgdir,$nome); 362 $resultado = $m->capturaGeometrias($dir_tmp,$imgdir,$nome);
363 $cp->set_data($resultado); 363 $cp->set_data($resultado);
@@ -373,7 +373,7 @@ Include: @@ -373,7 +373,7 @@ Include:
373 <classe_analise.php> 373 <classe_analise.php>
374 */ 374 */
375 case "removergeometrias": 375 case "removergeometrias":
376 - include("classe_temas.php"); 376 + include_once("classe_temas.php");
377 if(!isset($tema)){$tema = "";} 377 if(!isset($tema)){$tema = "";}
378 $m = new Temas($map_file,$tema); 378 $m = new Temas($map_file,$tema);
379 $resultado = $m->removerGeometrias($dir_tmp,$imgdir,$lista); 379 $resultado = $m->removerGeometrias($dir_tmp,$imgdir,$lista);
@@ -402,7 +402,7 @@ Include: @@ -402,7 +402,7 @@ Include:
402 $cr->set("status",MS_OFF); 402 $cr->set("status",MS_OFF);
403 if (connection_aborted()){exit();} 403 if (connection_aborted()){exit();}
404 $map->save($map_file); 404 $map->save($map_file);
405 - include("classe_mapa.php"); 405 + include_once("classe_mapa.php");
406 $m = New Mapa($map_file); 406 $m = New Mapa($map_file);
407 $par = $m->parametrosTemas(); 407 $par = $m->parametrosTemas();
408 $resultado = array("mapfile"=>$map_file,"mapext"=>$mapext,"locmapserv"=>$locmapserv,"parametros"=>$par); 408 $resultado = array("mapfile"=>$map_file,"mapext"=>$mapext,"locmapserv"=>$locmapserv,"parametros"=>$par);
@@ -417,7 +417,7 @@ Property: pegaMensagens @@ -417,7 +417,7 @@ Property: pegaMensagens
417 Pega as mensagens do metadata 'mensagem'. 417 Pega as mensagens do metadata 'mensagem'.
418 */ 418 */
419 case "pegaMensagens": 419 case "pegaMensagens":
420 - include("classe_mapa.php"); 420 + include_once("classe_mapa.php");
421 $m = new Mapa($map_file); 421 $m = new Mapa($map_file);
422 $cp->set_data($m->pegaMensagens()); 422 $cp->set_data($m->pegaMensagens());
423 423
@@ -455,7 +455,7 @@ Include: @@ -455,7 +455,7 @@ Include:
455 <classe_mapa.php> 455 <classe_mapa.php>
456 */ 456 */
457 case "ativalogo": 457 case "ativalogo":
458 - include("classe_mapa.php"); 458 + include_once("classe_mapa.php");
459 copiaSeguranca($map_file); 459 copiaSeguranca($map_file);
460 $m = new Mapa($map_file); 460 $m = new Mapa($map_file);
461 $cp->set_data($m->ativalogo()); 461 $cp->set_data($m->ativalogo());
@@ -471,7 +471,7 @@ Include: @@ -471,7 +471,7 @@ Include:
471 <classe_mapa.php> 471 <classe_mapa.php>
472 */ 472 */
473 case "ativalegenda": 473 case "ativalegenda":
474 - include("classe_mapa.php"); 474 + include_once("classe_mapa.php");
475 copiaSeguranca($map_file); 475 copiaSeguranca($map_file);
476 $m = new Mapa($map_file); 476 $m = new Mapa($map_file);
477 $cp->set_data($m->ativalegenda()); 477 $cp->set_data($m->ativalegenda());
@@ -492,7 +492,7 @@ Include: @@ -492,7 +492,7 @@ Include:
492 $map->setsize($largura,$altura); 492 $map->setsize($largura,$altura);
493 if (connection_aborted()){exit();} 493 if (connection_aborted()){exit();}
494 $salvo = $map->save($map_file); 494 $salvo = $map->save($map_file);
495 - include("classe_mapa.php"); 495 + include_once("classe_mapa.php");
496 $m = new Mapa($map_file); 496 $m = new Mapa($map_file);
497 $m->mudaQS($largura,$altura); 497 $m->mudaQS($largura,$altura);
498 $cp->set_data("ok"); 498 $cp->set_data("ok");
@@ -506,7 +506,7 @@ Include: @@ -506,7 +506,7 @@ Include:
506 <classe_mapa.php> 506 <classe_mapa.php>
507 */ 507 */
508 case "gradeCoord": 508 case "gradeCoord":
509 - include("classe_mapa.php"); 509 + include_once("classe_mapa.php");
510 copiaSeguranca($map_file); 510 copiaSeguranca($map_file);
511 $m = new Mapa($map_file); 511 $m = new Mapa($map_file);
512 $cp->set_data($m->gradeCoord($intervalo,$corlinha,$larguralinha,$tipolinha,$tamanhotexto,$cortexto,$incluitexto)); 512 $cp->set_data($m->gradeCoord($intervalo,$corlinha,$larguralinha,$tipolinha,$tamanhotexto,$cortexto,$incluitexto));
@@ -522,7 +522,7 @@ Include: @@ -522,7 +522,7 @@ Include:
522 <classe_mapa.php> 522 <classe_mapa.php>
523 */ 523 */
524 case "convertews": 524 case "convertews":
525 - include("classe_mapa.php"); 525 + include_once("classe_mapa.php");
526 $m = new Mapa($map_file); 526 $m = new Mapa($map_file);
527 if(!isset($h)){$h = "";} 527 if(!isset($h)){$h = "";}
528 $resultado = $m->converteWS($locmapserv,$h); 528 $resultado = $m->converteWS($locmapserv,$h);
@@ -537,7 +537,7 @@ Include: @@ -537,7 +537,7 @@ Include:
537 <classe_mapa.php> 537 <classe_mapa.php>
538 */ 538 */
539 case "querymapcor": 539 case "querymapcor":
540 - include("classe_mapa.php"); 540 + include_once("classe_mapa.php");
541 copiaSeguranca($map_file); 541 copiaSeguranca($map_file);
542 $m = new Mapa($map_file); 542 $m = new Mapa($map_file);
543 $cp->set_data($m->corQM($cor)); 543 $cp->set_data($m->corQM($cor));
@@ -553,7 +553,7 @@ Include: @@ -553,7 +553,7 @@ Include:
553 <classe_mapa.php> 553 <classe_mapa.php>
554 */ 554 */
555 case "pegaquerymapcor": 555 case "pegaquerymapcor":
556 - include("classe_mapa.php"); 556 + include_once("classe_mapa.php");
557 $m = new Mapa($map_file); 557 $m = new Mapa($map_file);
558 $cp->set_data($m->corQM("")); 558 $cp->set_data($m->corQM(""));
559 break; 559 break;
@@ -566,7 +566,7 @@ Include: @@ -566,7 +566,7 @@ Include:
566 <classe_mapa.php> 566 <classe_mapa.php>
567 */ 567 */
568 case "corfundo": 568 case "corfundo":
569 - include("classe_mapa.php"); 569 + include_once("classe_mapa.php");
570 copiaSeguranca($map_file); 570 copiaSeguranca($map_file);
571 $m = new Mapa($map_file); 571 $m = new Mapa($map_file);
572 $cp->set_data($m->corfundo($cor)); 572 $cp->set_data($m->corfundo($cor));
@@ -582,7 +582,7 @@ Include: @@ -582,7 +582,7 @@ Include:
582 <classe_mapa.php> 582 <classe_mapa.php>
583 */ 583 */
584 case "pegacorfundo": 584 case "pegacorfundo":
585 - include("classe_mapa.php"); 585 + include_once("classe_mapa.php");
586 $m = new Mapa($map_file); 586 $m = new Mapa($map_file);
587 $cp->set_data($m->corfundo("")); 587 $cp->set_data($m->corfundo(""));
588 break; 588 break;
@@ -606,7 +606,7 @@ Include: @@ -606,7 +606,7 @@ Include:
606 <classe_mapa.php> 606 <classe_mapa.php>
607 */ 607 */
608 case "corpoentorno": 608 case "corpoentorno":
609 - include("classe_mapa.php"); 609 + include_once("classe_mapa.php");
610 $m = new Mapa($map_file); 610 $m = new Mapa($map_file);
611 $resultado = $m->redesenhaEntorno(); 611 $resultado = $m->redesenhaEntorno();
612 $cp->set_data($resultado); 612 $cp->set_data($resultado);
@@ -620,7 +620,7 @@ Include: @@ -620,7 +620,7 @@ Include:
620 <classe_mapa.php> 620 <classe_mapa.php>
621 */ 621 */
622 case "adicionaTemaGeoRSS": 622 case "adicionaTemaGeoRSS":
623 - include("classe_mapa.php"); 623 + include_once("classe_mapa.php");
624 copiaSeguranca($map_file); 624 copiaSeguranca($map_file);
625 $m = new Mapa($map_file); 625 $m = new Mapa($map_file);
626 $retorno = $m->adicionaTemaGeoRSS($servico,$dir_tmp,$locaplic,$canal); 626 $retorno = $m->adicionaTemaGeoRSS($servico,$dir_tmp,$locaplic,$canal);
@@ -641,7 +641,7 @@ Include: @@ -641,7 +641,7 @@ Include:
641 <classe_mapa.php> 641 <classe_mapa.php>
642 */ 642 */
643 case "adicionaTemaSHP": 643 case "adicionaTemaSHP":
644 - include("classe_mapa.php"); 644 + include_once("classe_mapa.php");
645 copiaSeguranca($map_file); 645 copiaSeguranca($map_file);
646 $m = new Mapa($map_file); 646 $m = new Mapa($map_file);
647 $retorno = $m->adicionaTemaSHP($arq); 647 $retorno = $m->adicionaTemaSHP($arq);
@@ -662,7 +662,7 @@ Include: @@ -662,7 +662,7 @@ Include:
662 <classe_mapa.php> 662 <classe_mapa.php>
663 */ 663 */
664 case "adicionaTemaIMG": 664 case "adicionaTemaIMG":
665 - include("classe_mapa.php"); 665 + include_once("classe_mapa.php");
666 copiaSeguranca($map_file); 666 copiaSeguranca($map_file);
667 $m = new Mapa($map_file); 667 $m = new Mapa($map_file);
668 $retorno = $m->adicionaTemaIMG($arq); 668 $retorno = $m->adicionaTemaIMG($arq);
@@ -683,7 +683,7 @@ Include: @@ -683,7 +683,7 @@ Include:
683 <classe_mapa.php> 683 <classe_mapa.php>
684 */ 684 */
685 case "listatemas": 685 case "listatemas":
686 - include("classe_mapa.php"); 686 + include_once("classe_mapa.php");
687 $m = new Mapa($map_file); 687 $m = new Mapa($map_file);
688 $resultado = $m->listaTemas($opcao); 688 $resultado = $m->listaTemas($opcao);
689 $cp->set_data($resultado); 689 $cp->set_data($resultado);
@@ -697,7 +697,7 @@ Include: @@ -697,7 +697,7 @@ Include:
697 <classe_mapa.php> 697 <classe_mapa.php>
698 */ 698 */
699 case "listatemaslocais": 699 case "listatemaslocais":
700 - include("classe_mapa.php"); 700 + include_once("classe_mapa.php");
701 $m = new Mapa($map_file); 701 $m = new Mapa($map_file);
702 $resultado = $m->listaTemasLocais(); 702 $resultado = $m->listaTemasLocais();
703 $cp->set_data($resultado); 703 $cp->set_data($resultado);
@@ -711,7 +711,7 @@ Include: @@ -711,7 +711,7 @@ Include:
711 <classe_mapa.php> 711 <classe_mapa.php>
712 */ 712 */
713 case "listatemasTipo": 713 case "listatemasTipo":
714 - include("classe_mapa.php"); 714 + include_once("classe_mapa.php");
715 $m = new Mapa($map_file); 715 $m = new Mapa($map_file);
716 if(!isset($selecao)){$selecao = "nao";} 716 if(!isset($selecao)){$selecao = "nao";}
717 $resultado = $m->listaTemasTipo($tipo,$selecao); 717 $resultado = $m->listaTemasTipo($tipo,$selecao);
@@ -726,7 +726,7 @@ Include: @@ -726,7 +726,7 @@ Include:
726 <classe_mapa.php> 726 <classe_mapa.php>
727 */ 727 */
728 case "listatemascomsel": 728 case "listatemascomsel":
729 - include("classe_mapa.php"); 729 + include_once("classe_mapa.php");
730 $m = new Mapa($map_file); 730 $m = new Mapa($map_file);
731 $resultado = $m->listaTemasComSel(); 731 $resultado = $m->listaTemasComSel();
732 $cp->set_data($resultado); 732 $cp->set_data($resultado);
@@ -740,7 +740,7 @@ Include: @@ -740,7 +740,7 @@ Include:
740 <classe_mapa.php> 740 <classe_mapa.php>
741 */ 741 */
742 case "ligatemas": 742 case "ligatemas":
743 - include("classe_mapa.php"); 743 + include_once("classe_mapa.php");
744 copiaSeguranca($map_file); 744 copiaSeguranca($map_file);
745 $m = new Mapa($map_file); 745 $m = new Mapa($map_file);
746 $cp->set_data($m->ligaDesligaTemas($ligar,$desligar)); 746 $cp->set_data($m->ligaDesligaTemas($ligar,$desligar));
@@ -755,7 +755,7 @@ Include: @@ -755,7 +755,7 @@ Include:
755 <classe_mapa.php> 755 <classe_mapa.php>
756 */ 756 */
757 case "adtema": 757 case "adtema":
758 - include("classe_mapa.php"); 758 + include_once("classe_mapa.php");
759 copiaSeguranca($map_file); 759 copiaSeguranca($map_file);
760 $m = new Mapa($map_file); 760 $m = new Mapa($map_file);
761 $m->adicionaTema($temas,$locaplic); 761 $m->adicionaTema($temas,$locaplic);
@@ -777,7 +777,7 @@ Include: @@ -777,7 +777,7 @@ Include:
777 <classe_mapa.php> 777 <classe_mapa.php>
778 */ 778 */
779 case "excluitema": 779 case "excluitema":
780 - include("classe_mapa.php"); 780 + include_once("classe_mapa.php");
781 copiaSeguranca($map_file); 781 copiaSeguranca($map_file);
782 $m = new Mapa($map_file); 782 $m = new Mapa($map_file);
783 $cp->set_data($m->excluiTemas($temas)); 783 $cp->set_data($m->excluiTemas($temas));
@@ -793,7 +793,7 @@ Include: @@ -793,7 +793,7 @@ Include:
793 <classe_mapa.php> 793 <classe_mapa.php>
794 */ 794 */
795 case "adicionatemawms": 795 case "adicionatemawms":
796 - include("classe_mapa.php"); 796 + include_once("classe_mapa.php");
797 copiaSeguranca($map_file); 797 copiaSeguranca($map_file);
798 $m = new Mapa($map_file); 798 $m = new Mapa($map_file);
799 $m->adicionatemawms($tema,$servico,$nome,$proj,$formato,$locaplic,$tipo,$versao,$nomecamada,$dir_tmp,$imgdir,$imgurl,$tiporep,$suportasld,$formatosinfo); 799 $m->adicionatemawms($tema,$servico,$nome,$proj,$formato,$locaplic,$tipo,$versao,$nomecamada,$dir_tmp,$imgdir,$imgurl,$tiporep,$suportasld,$formatosinfo);
@@ -844,7 +844,7 @@ Include: @@ -844,7 +844,7 @@ Include:
844 <ms_configura.php> 844 <ms_configura.php>
845 */ 845 */
846 case "listaDrives": 846 case "listaDrives":
847 - include("../ms_configura.php"); 847 + include_once("../ms_configura.php");
848 //verifica se está cadastrado 848 //verifica se está cadastrado
849 $ipcliente = pegaIPcliente(); 849 $ipcliente = pegaIPcliente();
850 $retorno = array(); 850 $retorno = array();
@@ -864,7 +864,7 @@ Include: @@ -864,7 +864,7 @@ Include:
864 <classe_temas.php> 864 <classe_temas.php>
865 */ 865 */
866 case "alterarepresentacao": 866 case "alterarepresentacao":
867 - include("classe_temas.php"); 867 + include_once("classe_temas.php");
868 copiaSeguranca($map_file); 868 copiaSeguranca($map_file);
869 $m = new Temas($map_file,$tema); 869 $m = new Temas($map_file,$tema);
870 $cp->set_data($m->alteraRepresentacao()); 870 $cp->set_data($m->alteraRepresentacao());
@@ -880,7 +880,7 @@ Include: @@ -880,7 +880,7 @@ Include:
880 <classe_temas.php> 880 <classe_temas.php>
881 */ 881 */
882 case "geradestaque": 882 case "geradestaque":
883 - include("classe_temas.php"); 883 + include_once("classe_temas.php");
884 $m = new Temas($map_file,$tema); 884 $m = new Temas($map_file,$tema);
885 $cp->set_data($m->geraDestaque()); 885 $cp->set_data($m->geraDestaque());
886 break; 886 break;
@@ -902,7 +902,7 @@ Include: @@ -902,7 +902,7 @@ Include:
902 <classe_temas.php> 902 <classe_temas.php>
903 */ 903 */
904 case "inserefeature": 904 case "inserefeature":
905 - include("classe_temas.php"); 905 + include_once("classe_temas.php");
906 copiaSeguranca($map_file); 906 copiaSeguranca($map_file);
907 $m = new Temas($map_file,""); 907 $m = new Temas($map_file,"");
908 if(!isset($marca)){$marca="";} 908 if(!isset($marca)){$marca="";}
@@ -919,7 +919,7 @@ Include: @@ -919,7 +919,7 @@ Include:
919 <classe_temas.php> 919 <classe_temas.php>
920 */ 920 */
921 case "sobetema": 921 case "sobetema":
922 - include("classe_temas.php"); 922 + include_once("classe_temas.php");
923 copiaSeguranca($map_file); 923 copiaSeguranca($map_file);
924 $m = new Temas($map_file,$tema); 924 $m = new Temas($map_file,$tema);
925 $cp->set_data($m->sobeTema()); 925 $cp->set_data($m->sobeTema());
@@ -935,7 +935,7 @@ Include: @@ -935,7 +935,7 @@ Include:
935 <classe_temas.php> 935 <classe_temas.php>
936 */ 936 */
937 case "descetema": 937 case "descetema":
938 - include("classe_temas.php"); 938 + include_once("classe_temas.php");
939 copiaSeguranca($map_file); 939 copiaSeguranca($map_file);
940 $m = new Temas($map_file,$tema); 940 $m = new Temas($map_file,$tema);
941 $cp->set_data($m->desceTema()); 941 $cp->set_data($m->desceTema());
@@ -951,7 +951,7 @@ Include: @@ -951,7 +951,7 @@ Include:
951 <classe_temas.php> 951 <classe_temas.php>
952 */ 952 */
953 case "reordenatemas": 953 case "reordenatemas":
954 - include("classe_temas.php"); 954 + include_once("classe_temas.php");
955 copiaSeguranca($map_file); 955 copiaSeguranca($map_file);
956 $m = new Temas($map_file); 956 $m = new Temas($map_file);
957 $cp->set_data($m->reordenatemas($lista)); 957 $cp->set_data($m->reordenatemas($lista));
@@ -967,7 +967,7 @@ Include: @@ -967,7 +967,7 @@ Include:
967 <classe_temas.php> 967 <classe_temas.php>
968 */ 968 */
969 case "zoomtema": 969 case "zoomtema":
970 - include("classe_temas.php"); 970 + include_once("classe_temas.php");
971 copiaSeguranca($map_file); 971 copiaSeguranca($map_file);
972 $m = new Temas($map_file,$tema); 972 $m = new Temas($map_file,$tema);
973 $cp->set_data($m->zoomTema()); 973 $cp->set_data($m->zoomTema());
@@ -983,7 +983,7 @@ Include: @@ -983,7 +983,7 @@ Include:
983 <classe_temas.php> 983 <classe_temas.php>
984 */ 984 */
985 case "inserefiltro": 985 case "inserefiltro":
986 - include("classe_temas.php"); 986 + include_once("classe_temas.php");
987 copiaSeguranca($map_file); 987 copiaSeguranca($map_file);
988 $m = new Temas($map_file,$tema); 988 $m = new Temas($map_file,$tema);
989 if(!isset($testa)){$testa="";} 989 if(!isset($testa)){$testa="";}
@@ -1006,7 +1006,7 @@ Include: @@ -1006,7 +1006,7 @@ Include:
1006 <classe_temas.php> 1006 <classe_temas.php>
1007 */ 1007 */
1008 case "pegafiltro": 1008 case "pegafiltro":
1009 - include("classe_temas.php"); 1009 + include_once("classe_temas.php");
1010 $m = new Temas($map_file,$tema); 1010 $m = new Temas($map_file,$tema);
1011 $cp->set_data($m->pegaFiltro()); 1011 $cp->set_data($m->pegaFiltro());
1012 break; 1012 break;
@@ -1019,7 +1019,7 @@ Include: @@ -1019,7 +1019,7 @@ Include:
1019 <classe_temas.php> 1019 <classe_temas.php>
1020 */ 1020 */
1021 case "aplicaProcessos": 1021 case "aplicaProcessos":
1022 - include("classe_temas.php"); 1022 + include_once("classe_temas.php");
1023 copiaSeguranca($map_file); 1023 copiaSeguranca($map_file);
1024 $m = new Temas($map_file,$tema); 1024 $m = new Temas($map_file,$tema);
1025 $m->aplicaProcessos($lista); 1025 $m->aplicaProcessos($lista);
@@ -1035,7 +1035,7 @@ Include: @@ -1035,7 +1035,7 @@ Include:
1035 <classe_temas.php> 1035 <classe_temas.php>
1036 */ 1036 */
1037 case "mudatransp": 1037 case "mudatransp":
1038 - include("classe_temas.php"); 1038 + include_once("classe_temas.php");
1039 copiaSeguranca($map_file); 1039 copiaSeguranca($map_file);
1040 $m = new Temas($map_file,$tema); 1040 $m = new Temas($map_file,$tema);
1041 $m->mudaTransparencia($valor); 1041 $m->mudaTransparencia($valor);
@@ -1051,7 +1051,7 @@ Include: @@ -1051,7 +1051,7 @@ Include:
1051 <classe_temas.php> 1051 <classe_temas.php>
1052 */ 1052 */
1053 case "mudanome": 1053 case "mudanome":
1054 - include("classe_temas.php"); 1054 + include_once("classe_temas.php");
1055 copiaSeguranca($map_file); 1055 copiaSeguranca($map_file);
1056 $m = new Temas($map_file,$tema); 1056 $m = new Temas($map_file,$tema);
1057 $m->mudaNome($valor); 1057 $m->mudaNome($valor);
@@ -1072,7 +1072,7 @@ Include: @@ -1072,7 +1072,7 @@ Include:
1072 <classe_alteraclasse.php> 1072 <classe_alteraclasse.php>
1073 */ 1073 */
1074 case "alteraclasse": 1074 case "alteraclasse":
1075 - include("classe_alteraclasse.php"); 1075 + include_once("classe_alteraclasse.php");
1076 copiaSeguranca($map_file); 1076 copiaSeguranca($map_file);
1077 $m = new Alteraclasse($map_file,$tema); 1077 $m = new Alteraclasse($map_file,$tema);
1078 if ($opcao == "adicionaclasse") 1078 if ($opcao == "adicionaclasse")
@@ -1106,7 +1106,7 @@ Include: @@ -1106,7 +1106,7 @@ Include:
1106 <classe_alteraclasse.php> 1106 <classe_alteraclasse.php>
1107 */ 1107 */
1108 case "inverteCoresClasses": 1108 case "inverteCoresClasses":
1109 - include("classe_alteraclasse.php"); 1109 + include_once("classe_alteraclasse.php");
1110 copiaSeguranca($map_file); 1110 copiaSeguranca($map_file);
1111 $m = new Alteraclasse($map_file,$tema); 1111 $m = new Alteraclasse($map_file,$tema);
1112 $cp->set_data($m->inverteCoresClasses()); 1112 $cp->set_data($m->inverteCoresClasses());
@@ -1121,7 +1121,7 @@ Include: @@ -1121,7 +1121,7 @@ Include:
1121 <classe_alteraclasse.php> 1121 <classe_alteraclasse.php>
1122 */ 1122 */
1123 case "calculaTamanhoClasses": 1123 case "calculaTamanhoClasses":
1124 - include("classe_alteraclasse.php"); 1124 + include_once("classe_alteraclasse.php");
1125 copiaSeguranca($map_file); 1125 copiaSeguranca($map_file);
1126 $m = new Alteraclasse($map_file,$tema); 1126 $m = new Alteraclasse($map_file,$tema);
1127 $cp->set_data($m->calculaTamanhoClasses()); 1127 $cp->set_data($m->calculaTamanhoClasses());
@@ -1136,7 +1136,7 @@ Include: @@ -1136,7 +1136,7 @@ Include:
1136 <classe_alteraclasse.php> 1136 <classe_alteraclasse.php>
1137 */ 1137 */
1138 case "alteraCoresClasses": 1138 case "alteraCoresClasses":
1139 - include("classe_alteraclasse.php"); 1139 + include_once("classe_alteraclasse.php");
1140 copiaSeguranca($map_file); 1140 copiaSeguranca($map_file);
1141 $m = new Alteraclasse($map_file,$tema); 1141 $m = new Alteraclasse($map_file,$tema);
1142 $cp->set_data($m->alteraCoresClasses($cori,$corf)); 1142 $cp->set_data($m->alteraCoresClasses($cori,$corf));
@@ -1151,7 +1151,7 @@ Include: @@ -1151,7 +1151,7 @@ Include:
1151 <classe_alteraclasse.php> 1151 <classe_alteraclasse.php>
1152 */ 1152 */
1153 case "inverteStatusClasse": 1153 case "inverteStatusClasse":
1154 - include("classe_alteraclasse.php"); 1154 + include_once("classe_alteraclasse.php");
1155 copiaSeguranca($map_file); 1155 copiaSeguranca($map_file);
1156 $m = new Alteraclasse($map_file,$tema); 1156 $m = new Alteraclasse($map_file,$tema);
1157 $cp->set_data($m->statusClasse($classe)); 1157 $cp->set_data($m->statusClasse($classe));
@@ -1166,7 +1166,7 @@ Include: @@ -1166,7 +1166,7 @@ Include:
1166 <class.palette.php> 1166 <class.palette.php>
1167 */ 1167 */
1168 case "verPaleta": 1168 case "verPaleta":
1169 - include("class.palette.php"); 1169 + include_once("class.palette.php");
1170 $cori = RGB2hex(explode(",",$cori)); 1170 $cori = RGB2hex(explode(",",$cori));
1171 $corf = RGB2hex(explode(",",$corf)); 1171 $corf = RGB2hex(explode(",",$corf));
1172 $myPalette=new palette(array($cori,$corf),($numclasses + 1)); 1172 $myPalette=new palette(array($cori,$corf),($numclasses + 1));
@@ -1192,7 +1192,7 @@ Include: @@ -1192,7 +1192,7 @@ Include:
1192 <classe_analise.php> 1192 <classe_analise.php>
1193 */ 1193 */
1194 case "dissolvePoligono": 1194 case "dissolvePoligono":
1195 - include("classe_analise.php"); 1195 + include_once("classe_analise.php");
1196 copiaSeguranca($map_file); 1196 copiaSeguranca($map_file);
1197 $m = new Analise($map_file,$tema); 1197 $m = new Analise($map_file,$tema);
1198 $cp->set_data($m->dissolvePoligono($item,$locaplic)); 1198 $cp->set_data($m->dissolvePoligono($item,$locaplic));
@@ -1209,7 +1209,7 @@ Include: @@ -1209,7 +1209,7 @@ Include:
1209 <classe_analise.php> 1209 <classe_analise.php>
1210 */ 1210 */
1211 case "agrupaElementos": 1211 case "agrupaElementos":
1212 - include("classe_analise.php"); 1212 + include_once("classe_analise.php");
1213 copiaSeguranca($map_file); 1213 copiaSeguranca($map_file);
1214 $m = new Analise($map_file,$tema); 1214 $m = new Analise($map_file,$tema);
1215 $cp->set_data($m->agrupaElementos($item,$locaplic)); 1215 $cp->set_data($m->agrupaElementos($item,$locaplic));
@@ -1226,7 +1226,7 @@ Include: @@ -1226,7 +1226,7 @@ Include:
1226 <classe_analise.php> 1226 <classe_analise.php>
1227 */ 1227 */
1228 case "pontoEmPoligono": 1228 case "pontoEmPoligono":
1229 - include("classe_analise.php"); 1229 + include_once("classe_analise.php");
1230 copiaSeguranca($map_file); 1230 copiaSeguranca($map_file);
1231 $m = new Analise($map_file,$tema); 1231 $m = new Analise($map_file,$tema);
1232 $cp->set_data($m->pontoEmPoligono($temaPt,$temasPo,$locaplic)); 1232 $cp->set_data($m->pontoEmPoligono($temaPt,$temasPo,$locaplic));
@@ -1243,7 +1243,7 @@ Include: @@ -1243,7 +1243,7 @@ Include:
1243 <classe_analise.php> 1243 <classe_analise.php>
1244 */ 1244 */
1245 case "nptPol": 1245 case "nptPol":
1246 - include("classe_analise.php"); 1246 + include_once("classe_analise.php");
1247 copiaSeguranca($map_file); 1247 copiaSeguranca($map_file);
1248 $m = new Analise($map_file,$tema); 1248 $m = new Analise($map_file,$tema);
1249 $cp->set_data($m->nptPol($temaPt,$temaPo,$locaplic)); 1249 $cp->set_data($m->nptPol($temaPt,$temaPo,$locaplic));
@@ -1260,7 +1260,7 @@ Include: @@ -1260,7 +1260,7 @@ Include:
1260 <classe_analise.php> 1260 <classe_analise.php>
1261 */ 1261 */
1262 case "criabuffer": 1262 case "criabuffer":
1263 - include("classe_analise.php"); 1263 + include_once("classe_analise.php");
1264 copiaSeguranca($map_file); 1264 copiaSeguranca($map_file);
1265 $m = new Analise($map_file,$tema); 1265 $m = new Analise($map_file,$tema);
1266 $cp->set_data($m->criaBuffer($distancia,$locaplic,$unir)); 1266 $cp->set_data($m->criaBuffer($distancia,$locaplic,$unir));
@@ -1280,7 +1280,7 @@ Include: @@ -1280,7 +1280,7 @@ Include:
1280 <classe_analise.php> 1280 <classe_analise.php>
1281 */ 1281 */
1282 case "distanciaptpt": 1282 case "distanciaptpt":
1283 - include("classe_analise.php"); 1283 + include_once("classe_analise.php");
1284 copiaSeguranca($map_file); 1284 copiaSeguranca($map_file);
1285 $m = new Analise($map_file,$temaorigem); 1285 $m = new Analise($map_file,$temaorigem);
1286 $temaoverlay = $m->criaBuffer($distancia,$locaplic); 1286 $temaoverlay = $m->criaBuffer($distancia,$locaplic);
@@ -1298,7 +1298,7 @@ Include: @@ -1298,7 +1298,7 @@ Include:
1298 <classe_analise.php> 1298 <classe_analise.php>
1299 */ 1299 */
1300 case "criaCentroide": 1300 case "criaCentroide":
1301 - include("classe_analise.php"); 1301 + include_once("classe_analise.php");
1302 copiaSeguranca($map_file); 1302 copiaSeguranca($map_file);
1303 $m = new Analise($map_file,$tema); 1303 $m = new Analise($map_file,$tema);
1304 $cp->set_data($m->criaCentroide($locaplic)); 1304 $cp->set_data($m->criaCentroide($locaplic));
@@ -1315,7 +1315,7 @@ Include: @@ -1315,7 +1315,7 @@ Include:
1315 <classe_analise.php>,<class.palette.php> 1315 <classe_analise.php>,<class.palette.php>
1316 */ 1316 */
1317 case "analiseDistriPt": 1317 case "analiseDistriPt":
1318 - include("classe_analise.php"); 1318 + include_once("classe_analise.php");
1319 copiaSeguranca($map_file); 1319 copiaSeguranca($map_file);
1320 if(!isset($tema2)) 1320 if(!isset($tema2))
1321 {$tema2 = "";} 1321 {$tema2 = "";}
@@ -1336,7 +1336,7 @@ Include: @@ -1336,7 +1336,7 @@ Include:
1336 <classe_analise.php> 1336 <classe_analise.php>
1337 */ 1337 */
1338 case "gradedepontos": 1338 case "gradedepontos":
1339 - include("classe_analise.php"); 1339 + include_once("classe_analise.php");
1340 copiaSeguranca($map_file); 1340 copiaSeguranca($map_file);
1341 if(!isset($tema)){$tema = "";} 1341 if(!isset($tema)){$tema = "";}
1342 $m = new Analise($map_file,$tema); 1342 $m = new Analise($map_file,$tema);
@@ -1354,7 +1354,7 @@ Include: @@ -1354,7 +1354,7 @@ Include:
1354 <classe_analise.php> 1354 <classe_analise.php>
1355 */ 1355 */
1356 case "gradedepol": 1356 case "gradedepol":
1357 - include("classe_analise.php"); 1357 + include_once("classe_analise.php");
1358 copiaSeguranca($map_file); 1358 copiaSeguranca($map_file);
1359 if(!isset($tema)){$tema = "";} 1359 if(!isset($tema)){$tema = "";}
1360 $m = new Analise($map_file,$tema); 1360 $m = new Analise($map_file,$tema);
@@ -1372,7 +1372,7 @@ Include: @@ -1372,7 +1372,7 @@ Include:
1372 <classe_analise.php> 1372 <classe_analise.php>
1373 */ 1373 */
1374 case "gradedehex": 1374 case "gradedehex":
1375 - include("classe_analise.php"); 1375 + include_once("classe_analise.php");
1376 copiaSeguranca($map_file); 1376 copiaSeguranca($map_file);
1377 $m = new Analise($map_file,$tema); 1377 $m = new Analise($map_file,$tema);
1378 if(!isset($tema)){$tema = "";} 1378 if(!isset($tema)){$tema = "";}
@@ -1395,7 +1395,7 @@ Include: @@ -1395,7 +1395,7 @@ Include:
1395 <classe_shp.php> 1395 <classe_shp.php>
1396 */ 1396 */
1397 case "sphPT2shp": 1397 case "sphPT2shp":
1398 - include("classe_shp.php"); 1398 + include_once("classe_shp.php");
1399 $m = new SHP($map_file,$tema); 1399 $m = new SHP($map_file,$tema);
1400 $cp->set_data($m->shpPT2shp($locaplic,$para)); 1400 $cp->set_data($m->shpPT2shp($locaplic,$para));
1401 $m->salva(); 1401 $m->salva();
@@ -1409,7 +1409,7 @@ Include: @@ -1409,7 +1409,7 @@ Include:
1409 <classe_shp.php> 1409 <classe_shp.php>
1410 */ 1410 */
1411 case "listaPontosShape": 1411 case "listaPontosShape":
1412 - include("classe_shp.php"); 1412 + include_once("classe_shp.php");
1413 $m = new SHP($map_file,$tema); 1413 $m = new SHP($map_file,$tema);
1414 $cp->set_data($m->listaPontosShape()); 1414 $cp->set_data($m->listaPontosShape());
1415 break; 1415 break;
@@ -1422,7 +1422,7 @@ Include: @@ -1422,7 +1422,7 @@ Include:
1422 <classe_shp.php> 1422 <classe_shp.php>
1423 */ 1423 */
1424 case "criashpvazio": 1424 case "criashpvazio":
1425 - include("classe_shp.php"); 1425 + include_once("classe_shp.php");
1426 //se colocar aqui da um erro 1426 //se colocar aqui da um erro
1427 //copiaSeguranca($map_file); 1427 //copiaSeguranca($map_file);
1428 $m = new SHP($map_file); 1428 $m = new SHP($map_file);
@@ -1438,7 +1438,7 @@ Include: @@ -1438,7 +1438,7 @@ Include:
1438 <classe_shp.php> 1438 <classe_shp.php>
1439 */ 1439 */
1440 case "insereSHP": 1440 case "insereSHP":
1441 - include("classe_shp.php"); 1441 + include_once("classe_shp.php");
1442 copiaSeguranca($map_file); 1442 copiaSeguranca($map_file);
1443 $m = new SHP($map_file,$tema); 1443 $m = new SHP($map_file,$tema);
1444 if (!isset($projecao)){$projecao = "";} 1444 if (!isset($projecao)){$projecao = "";}
@@ -1456,7 +1456,7 @@ Include: @@ -1456,7 +1456,7 @@ Include:
1456 <classe_shp.php> 1456 <classe_shp.php>
1457 */ 1457 */
1458 case "insereSHPgrafico": 1458 case "insereSHPgrafico":
1459 - include("classe_shp.php"); 1459 + include_once("classe_shp.php");
1460 copiaSeguranca($map_file); 1460 copiaSeguranca($map_file);
1461 $m = new SHP($map_file,$tema,$locaplic); 1461 $m = new SHP($map_file,$tema,$locaplic);
1462 $cp->set_data($m->insereSHPgrafico($tipo,$x,$y,$itens,$imgurl,$width,$inclinacao,$shadow_height)); 1462 $cp->set_data($m->insereSHPgrafico($tipo,$x,$y,$itens,$imgurl,$width,$inclinacao,$shadow_height));
@@ -1483,7 +1483,7 @@ Pega os dados necessários para a geração dos gráficos da ferramenta seleção @@ -1483,7 +1483,7 @@ Pega os dados necessários para a geração dos gráficos da ferramenta seleção
1483 1483
1484 */ 1484 */
1485 case "graficoSelecao": 1485 case "graficoSelecao":
1486 - include("graficos.php"); 1486 + include_once("graficos.php");
1487 $cp->set_data(iniciaDadosGrafico($map_file,$tema,"",$itemclasses,$itemvalores,"xy",false)); 1487 $cp->set_data(iniciaDadosGrafico($map_file,$tema,"",$itemclasses,$itemvalores,"xy",false));
1488 break; 1488 break;
1489 /* 1489 /*
@@ -1495,7 +1495,7 @@ Include: @@ -1495,7 +1495,7 @@ Include:
1495 <classe_temas.php> 1495 <classe_temas.php>
1496 */ 1496 */
1497 case "graficotema": 1497 case "graficotema":
1498 - include("classe_temas.php"); 1498 + include_once("classe_temas.php");
1499 copiaSeguranca($map_file); 1499 copiaSeguranca($map_file);
1500 $m = new Temas($map_file,$tema); 1500 $m = new Temas($map_file,$tema);
1501 $m->graficotema($lista,$tamanho,$tipo,$outlinecolor,$offset); 1501 $m->graficotema($lista,$tamanho,$tipo,$outlinecolor,$offset);
@@ -1511,7 +1511,7 @@ Include: @@ -1511,7 +1511,7 @@ Include:
1511 <graficos.php> 1511 <graficos.php>
1512 */ 1512 */
1513 case "fusaografico": 1513 case "fusaografico":
1514 - include("graficos.php"); 1514 + include_once("graficos.php");
1515 //$_SESSION["utilizacgi"] = "nao"; 1515 //$_SESSION["utilizacgi"] = "nao";
1516 //$utilizacgi = "nao"; 1516 //$utilizacgi = "nao";
1517 restauraCon($map_file,$postgis_mapa); 1517 restauraCon($map_file,$postgis_mapa);
@@ -1527,7 +1527,7 @@ Include: @@ -1527,7 +1527,7 @@ Include:
1527 <graficos.php> 1527 <graficos.php>
1528 */ 1528 */
1529 case "graficoestrela": 1529 case "graficoestrela":
1530 - include("graficos.php"); 1530 + include_once("graficos.php");
1531 $cp->register('graficoEstrela'); 1531 $cp->register('graficoEstrela');
1532 $cp->start(); 1532 $cp->start();
1533 break; 1533 break;
@@ -1540,7 +1540,7 @@ Include: @@ -1540,7 +1540,7 @@ Include:
1540 <graficos.php> 1540 <graficos.php>
1541 */ 1541 */
1542 case "graficoscatter": 1542 case "graficoscatter":
1543 - include("graficos.php"); 1543 + include_once("graficos.php");
1544 $cp->register('graficoScatter'); 1544 $cp->register('graficoScatter');
1545 $cp->start(); 1545 $cp->start();
1546 break; 1546 break;
@@ -1553,7 +1553,7 @@ Include: @@ -1553,7 +1553,7 @@ Include:
1553 <graficos.php> 1553 <graficos.php>
1554 */ 1554 */
1555 case "graficoscatterbins": 1555 case "graficoscatterbins":
1556 - include("graficos.php"); 1556 + include_once("graficos.php");
1557 $cp->register('graficoScatterBins'); 1557 $cp->register('graficoScatterBins');
1558 $cp->start(); 1558 $cp->start();
1559 break; 1559 break;
@@ -1566,7 +1566,7 @@ Include: @@ -1566,7 +1566,7 @@ Include:
1566 <graficos.php> 1566 <graficos.php>
1567 */ 1567 */
1568 case "graficolinhas": 1568 case "graficolinhas":
1569 - include("graficos.php"); 1569 + include_once("graficos.php");
1570 $cp->register('graficoLinhas'); 1570 $cp->register('graficoLinhas');
1571 $cp->start(); 1571 $cp->start();
1572 break; 1572 break;
@@ -1579,7 +1579,7 @@ Include: @@ -1579,7 +1579,7 @@ Include:
1579 <graficos.php> 1579 <graficos.php>
1580 */ 1580 */
1581 case "graficohist": 1581 case "graficohist":
1582 - include("graficos.php"); 1582 + include_once("graficos.php");
1583 $cp->register('graficoHist'); 1583 $cp->register('graficoHist');
1584 $cp->start(); 1584 $cp->start();
1585 break; 1585 break;
@@ -1592,7 +1592,7 @@ Include: @@ -1592,7 +1592,7 @@ Include:
1592 <graficos.php> 1592 <graficos.php>
1593 */ 1593 */
1594 case "graficobarras": 1594 case "graficobarras":
1595 - include("graficos.php"); 1595 + include_once("graficos.php");
1596 $cp->register('graficoBarras'); 1596 $cp->register('graficoBarras');
1597 $cp->start(); 1597 $cp->start();
1598 break; 1598 break;
@@ -1605,7 +1605,7 @@ Include: @@ -1605,7 +1605,7 @@ Include:
1605 <graficos.php> 1605 <graficos.php>
1606 */ 1606 */
1607 case "graficopizza": 1607 case "graficopizza":
1608 - include("graficos.php"); 1608 + include_once("graficos.php");
1609 $cp->register('graficoPizza'); 1609 $cp->register('graficoPizza');
1610 $cp->start(); 1610 $cp->start();
1611 break; 1611 break;
@@ -1621,7 +1621,7 @@ Pega a lista de tags registrados nos menus de temas. @@ -1621,7 +1621,7 @@ Pega a lista de tags registrados nos menus de temas.
1621 1621
1622 */ 1622 */
1623 case "listaTags": 1623 case "listaTags":
1624 - include("classe_menutemas.php"); 1624 + include_once("classe_menutemas.php");
1625 $m = new Menutemas($map_file,$perfil,$locsistemas); 1625 $m = new Menutemas($map_file,$perfil,$locsistemas);
1626 $cp->set_data($m->listatags($rss,$nrss)); 1626 $cp->set_data($m->listatags($rss,$nrss));
1627 break; 1627 break;
@@ -1635,7 +1635,7 @@ Parameters: @@ -1635,7 +1635,7 @@ Parameters:
1635 case "pegalistademenus": 1635 case "pegalistademenus":
1636 $menutemas = ""; 1636 $menutemas = "";
1637 if (file_exists("../ms_configura.php")) 1637 if (file_exists("../ms_configura.php"))
1638 - {require_once("../ms_configura.php");} 1638 + {include_once("../ms_configura.php");}
1639 $cp->set_data($menutemas); 1639 $cp->set_data($menutemas);
1640 break; 1640 break;
1641 /* 1641 /*
@@ -1656,7 +1656,7 @@ Include: @@ -1656,7 +1656,7 @@ Include:
1656 <classe_menutemas.php> 1656 <classe_menutemas.php>
1657 */ 1657 */
1658 case "pegalistadegrupos": 1658 case "pegalistadegrupos":
1659 - include("classe_menutemas.php"); 1659 + include_once("classe_menutemas.php");
1660 $m = new Menutemas($map_file,$perfil,$locsistemas); 1660 $m = new Menutemas($map_file,$perfil,$locsistemas);
1661 if(!isset($idmenu)){$idmenu="";} 1661 if(!isset($idmenu)){$idmenu="";}
1662 if(!isset($listasistemas)){$listasistemas="nao";} 1662 if(!isset($listasistemas)){$listasistemas="nao";}
@@ -1672,7 +1672,7 @@ Include: @@ -1672,7 +1672,7 @@ Include:
1672 <classe_menutemas.php> 1672 <classe_menutemas.php>
1673 */ 1673 */
1674 case "pegalistadeSubgrupos": 1674 case "pegalistadeSubgrupos":
1675 - include("classe_menutemas.php"); 1675 + include_once("classe_menutemas.php");
1676 $m = new Menutemas($map_file,$perfil,$locsistemas); 1676 $m = new Menutemas($map_file,$perfil,$locsistemas);
1677 $cp->set_data($m->pegaListaDeSubGrupos($grupo,$idmenu)); 1677 $cp->set_data($m->pegaListaDeSubGrupos($grupo,$idmenu));
1678 break; 1678 break;
@@ -1685,7 +1685,7 @@ Include: @@ -1685,7 +1685,7 @@ Include:
1685 <classe_menutemas.php> 1685 <classe_menutemas.php>
1686 */ 1686 */
1687 case "pegalistadetemas": 1687 case "pegalistadetemas":
1688 - include("classe_menutemas.php"); 1688 + include_once("classe_menutemas.php");
1689 $m = new Menutemas($map_file,$perfil,$locsistemas); 1689 $m = new Menutemas($map_file,$perfil,$locsistemas);
1690 $cp->set_data(array("temas"=>$m->pegaListaDeTemas($grupo,$subgrupo,$idmenu))); 1690 $cp->set_data(array("temas"=>$m->pegaListaDeTemas($grupo,$subgrupo,$idmenu)));
1691 break; 1691 break;
@@ -1698,7 +1698,7 @@ Include: @@ -1698,7 +1698,7 @@ Include:
1698 <classe_menutemas.php> 1698 <classe_menutemas.php>
1699 */ 1699 */
1700 case "procurartemas": 1700 case "procurartemas":
1701 - include("classe_menutemas.php"); 1701 + include_once("classe_menutemas.php");
1702 $m = new Menutemas($map_file,$perfil); 1702 $m = new Menutemas($map_file,$perfil);
1703 $cp->set_data($m->procurartemas($procurar)); 1703 $cp->set_data($m->procurartemas($procurar));
1704 break; 1704 break;
@@ -1713,7 +1713,7 @@ Include: @@ -1713,7 +1713,7 @@ Include:
1713 <classe_menutemas.php> 1713 <classe_menutemas.php>
1714 */ 1714 */
1715 case "pegaMapas": 1715 case "pegaMapas":
1716 - include("classe_menutemas.php"); 1716 + include_once("classe_menutemas.php");
1717 $m = new Menutemas($map_file,$perfil); 1717 $m = new Menutemas($map_file,$perfil);
1718 $cp->set_data($m->pegaListaDeMapas($locmapas)); 1718 $cp->set_data($m->pegaListaDeMapas($locmapas));
1719 break; 1719 break;
@@ -1740,7 +1740,7 @@ Include: @@ -1740,7 +1740,7 @@ Include:
1740 <wmswfs.php> 1740 <wmswfs.php>
1741 */ 1741 */
1742 case "getcapabilities": 1742 case "getcapabilities":
1743 - include("wmswfs.php"); 1743 + include_once("wmswfs.php");
1744 $cp->register('getcapabilities'); 1744 $cp->register('getcapabilities');
1745 restauraCon($map_file,$postgis_mapa); 1745 restauraCon($map_file,$postgis_mapa);
1746 $cp->start(); 1746 $cp->start();
@@ -1754,7 +1754,7 @@ Include: @@ -1754,7 +1754,7 @@ Include:
1754 <wmswfs.php> 1754 <wmswfs.php>
1755 */ 1755 */
1756 case "getcapabilities2": 1756 case "getcapabilities2":
1757 - include("wmswfs.php"); 1757 + include_once("wmswfs.php");
1758 $cp->register('getcapabilities2'); 1758 $cp->register('getcapabilities2');
1759 restauraCon($map_file,$postgis_mapa); 1759 restauraCon($map_file,$postgis_mapa);
1760 $cp->start(); 1760 $cp->start();
@@ -1768,7 +1768,7 @@ Include: @@ -1768,7 +1768,7 @@ Include:
1768 <wmswfs.php> 1768 <wmswfs.php>
1769 */ 1769 */
1770 case "getcapabilities3": 1770 case "getcapabilities3":
1771 - include("wmswfs.php"); 1771 + include_once("wmswfs.php");
1772 $cp->register('getcapabilities3'); 1772 $cp->register('getcapabilities3');
1773 restauraCon($map_file,$postgis_mapa); 1773 restauraCon($map_file,$postgis_mapa);
1774 $cp->start(); 1774 $cp->start();
@@ -1782,7 +1782,7 @@ Include: @@ -1782,7 +1782,7 @@ Include:
1782 <wmswfs.php> 1782 <wmswfs.php>
1783 */ 1783 */
1784 case "temaswms": 1784 case "temaswms":
1785 - include("wmswfs.php"); 1785 + include_once("wmswfs.php");
1786 restauraCon($map_file,$postgis_mapa); 1786 restauraCon($map_file,$postgis_mapa);
1787 $cp->register('temaswms'); 1787 $cp->register('temaswms');
1788 $cp->start(); 1788 $cp->start();
@@ -1812,7 +1812,7 @@ Include: @@ -1812,7 +1812,7 @@ Include:
1812 <classe_atributos.php> 1812 <classe_atributos.php>
1813 */ 1813 */
1814 case "listaitens": 1814 case "listaitens":
1815 - include("classe_atributos.php"); 1815 + include_once("classe_atributos.php");
1816 $m = new Atributos($map_file,$tema); 1816 $m = new Atributos($map_file,$tema);
1817 $cp->set_data($m->listaItens()); 1817 $cp->set_data($m->listaItens());
1818 break; 1818 break;
@@ -1825,7 +1825,7 @@ Include: @@ -1825,7 +1825,7 @@ Include:
1825 <classe_atributos.php> 1825 <classe_atributos.php>
1826 */ 1826 */
1827 case "listavaloresitens": 1827 case "listavaloresitens":
1828 - include("classe_atributos.php"); 1828 + include_once("classe_atributos.php");
1829 if(!isset($tema)){$tema = "";} 1829 if(!isset($tema)){$tema = "";}
1830 $m = new Atributos($map_file,$tema); 1830 $m = new Atributos($map_file,$tema);
1831 $cp->set_data($m->buscaRegistros($palavra,$lista,$tipo,$onde)); 1831 $cp->set_data($m->buscaRegistros($palavra,$lista,$tipo,$onde));
@@ -1841,7 +1841,7 @@ Include: @@ -1841,7 +1841,7 @@ Include:
1841 case "identifica": 1841 case "identifica":
1842 if (!isset($tema)){$tema = "";} 1842 if (!isset($tema)){$tema = "";}
1843 if (!isset($resolucao)){$resolucao = 5;} 1843 if (!isset($resolucao)){$resolucao = 5;}
1844 - include("classe_atributos.php"); 1844 + include_once("classe_atributos.php");
1845 $m = new Atributos($map_file,$tema); 1845 $m = new Atributos($map_file,$tema);
1846 $cp->set_data($m->identifica($opcao,$xy,$resolucao)); 1846 $cp->set_data($m->identifica($opcao,$xy,$resolucao));
1847 break; 1847 break;
@@ -1855,7 +1855,7 @@ Include: @@ -1855,7 +1855,7 @@ Include:
1855 */ 1855 */
1856 case "identificaunico": 1856 case "identificaunico":
1857 if (!isset($resolucao)){$resolucao = 5;} 1857 if (!isset($resolucao)){$resolucao = 5;}
1858 - include("classe_atributos.php"); 1858 + include_once("classe_atributos.php");
1859 $m = new Atributos($map_file,$tema); 1859 $m = new Atributos($map_file,$tema);
1860 $xy = explode(",",$xy); 1860 $xy = explode(",",$xy);
1861 $cp->set_data($m->identificaQBP($tema,$xy[0],$xy[1],$map_file,$resolucao,$item,$tiporetorno="unico")); 1861 $cp->set_data($m->identificaQBP($tema,$xy[0],$xy[1],$map_file,$resolucao,$item,$tiporetorno="unico"));
@@ -1869,7 +1869,7 @@ Include: @@ -1869,7 +1869,7 @@ Include:
1869 <classe_atributos.php> 1869 <classe_atributos.php>
1870 */ 1870 */
1871 case "estatistica": 1871 case "estatistica":
1872 - include("classe_atributos.php"); 1872 + include_once("classe_atributos.php");
1873 $m = new Atributos($map_file,$tema); 1873 $m = new Atributos($map_file,$tema);
1874 $cp->set_data($m->estatDescritivas($item,$exclui)); 1874 $cp->set_data($m->estatDescritivas($item,$exclui));
1875 break; 1875 break;
@@ -1882,7 +1882,7 @@ Include: @@ -1882,7 +1882,7 @@ Include:
1882 <classe_atributos.php> 1882 <classe_atributos.php>
1883 */ 1883 */
1884 case "listatexto": 1884 case "listatexto":
1885 - include("classe_atributos.php"); 1885 + include_once("classe_atributos.php");
1886 $m = new Atributos($map_file,$tema); 1886 $m = new Atributos($map_file,$tema);
1887 $cp->set_data($m->itensTexto($tipo)); 1887 $cp->set_data($m->itensTexto($tipo));
1888 break; 1888 break;
@@ -1895,7 +1895,7 @@ Include: @@ -1895,7 +1895,7 @@ Include:
1895 <classe_atributos.php> 1895 <classe_atributos.php>
1896 */ 1896 */
1897 case "listaregistros": 1897 case "listaregistros":
1898 - include("classe_atributos.php"); 1898 + include_once("classe_atributos.php");
1899 $m = new Atributos($map_file,$tema); 1899 $m = new Atributos($map_file,$tema);
1900 if(!isset($tipo)){$tipo = "";} 1900 if(!isset($tipo)){$tipo = "";}
1901 if(!isset($inicio)){$inicio = 0;} 1901 if(!isset($inicio)){$inicio = 0;}
@@ -1913,7 +1913,7 @@ Include: @@ -1913,7 +1913,7 @@ Include:
1913 <classe_atributos.php> 1913 <classe_atributos.php>
1914 */ 1914 */
1915 case "extregistros": 1915 case "extregistros":
1916 - include("classe_atributos.php"); 1916 + include_once("classe_atributos.php");
1917 $m = new Atributos($map_file,$tema); 1917 $m = new Atributos($map_file,$tema);
1918 $cp->set_data($m->extensaoRegistro($registro)); 1918 $cp->set_data($m->extensaoRegistro($registro));
1919 $m->salva(); 1919 $m->salva();
@@ -1952,7 +1952,7 @@ Include: @@ -1952,7 +1952,7 @@ Include:
1952 <classe_navegacao.php> 1952 <classe_navegacao.php>
1953 */ 1953 */
1954 case "mudaext": 1954 case "mudaext":
1955 - include("classe_navegacao.php"); 1955 + include_once("classe_navegacao.php");
1956 copiaSeguranca($map_file); 1956 copiaSeguranca($map_file);
1957 if (!isset($ext) || $ext == "" || $ext == " "){$ext="-76.512593 -39.392568 -29.585185 9.490149";} 1957 if (!isset($ext) || $ext == "" || $ext == " "){$ext="-76.512593 -39.392568 -29.585185 9.490149";}
1958 $m = new Navegacao($map_file); 1958 $m = new Navegacao($map_file);
@@ -1969,7 +1969,7 @@ Include: @@ -1969,7 +1969,7 @@ Include:
1969 <classe_navegacao.php> 1969 <classe_navegacao.php>
1970 */ 1970 */
1971 case "mudaescala": 1971 case "mudaescala":
1972 - include("classe_navegacao.php"); 1972 + include_once("classe_navegacao.php");
1973 copiaSeguranca($map_file); 1973 copiaSeguranca($map_file);
1974 $m = new Navegacao($map_file); 1974 $m = new Navegacao($map_file);
1975 $m->mudaEscala($escala); 1975 $m->mudaEscala($escala);
@@ -1985,7 +1985,7 @@ Include: @@ -1985,7 +1985,7 @@ Include:
1985 <classe_navegacao.php> 1985 <classe_navegacao.php>
1986 */ 1986 */
1987 case "pan": 1987 case "pan":
1988 - include("classe_navegacao.php"); 1988 + include_once("classe_navegacao.php");
1989 copiaSeguranca($map_file); 1989 copiaSeguranca($map_file);
1990 $m = new Navegacao($map_file); 1990 $m = new Navegacao($map_file);
1991 $m->pan($x,$y,$escala,$tipo); 1991 $m->pan($x,$y,$escala,$tipo);
@@ -2001,7 +2001,7 @@ Include: @@ -2001,7 +2001,7 @@ Include:
2001 <classe_navegacao.php> 2001 <classe_navegacao.php>
2002 */ 2002 */
2003 case "aproxima": 2003 case "aproxima":
2004 - include("classe_navegacao.php"); 2004 + include_once("classe_navegacao.php");
2005 copiaSeguranca($map_file); 2005 copiaSeguranca($map_file);
2006 $m = new Navegacao($map_file); 2006 $m = new Navegacao($map_file);
2007 $m->aproxima($nivel); 2007 $m->aproxima($nivel);
@@ -2017,7 +2017,7 @@ Include: @@ -2017,7 +2017,7 @@ Include:
2017 <classe_navegacao.php> 2017 <classe_navegacao.php>
2018 */ 2018 */
2019 case "afasta": 2019 case "afasta":
2020 - include("classe_navegacao.php"); 2020 + include_once("classe_navegacao.php");
2021 copiaSeguranca($map_file); 2021 copiaSeguranca($map_file);
2022 $m = new Navegacao($map_file); 2022 $m = new Navegacao($map_file);
2023 $m->afasta($nivel); 2023 $m->afasta($nivel);
@@ -2033,7 +2033,7 @@ Include: @@ -2033,7 +2033,7 @@ Include:
2033 <classe_navegacao.php> 2033 <classe_navegacao.php>
2034 */ 2034 */
2035 case "crialente": 2035 case "crialente":
2036 - include("classe_navegacao.php"); 2036 + include_once("classe_navegacao.php");
2037 $m = new Navegacao($map_file); 2037 $m = new Navegacao($map_file);
2038 $m->aplicaResolucao($resolucao); 2038 $m->aplicaResolucao($resolucao);
2039 //$m->desabilitaRASTER(); 2039 //$m->desabilitaRASTER();
@@ -2070,8 +2070,8 @@ Include: @@ -2070,8 +2070,8 @@ Include:
2070 <classe_navegacao.php> 2070 <classe_navegacao.php>
2071 */ 2071 */
2072 case "zoomponto": 2072 case "zoomponto":
2073 - include("classe_navegacao.php");  
2074 - include("classe_temas.php"); 2073 + include_once("classe_navegacao.php");
  2074 + include_once("classe_temas.php");
2075 copiaSeguranca($map_file); 2075 copiaSeguranca($map_file);
2076 $m = new Navegacao($map_file); 2076 $m = new Navegacao($map_file);
2077 $m->zoomPonto($xy); 2077 $m->zoomPonto($xy);
@@ -2095,7 +2095,7 @@ Include: @@ -2095,7 +2095,7 @@ Include:
2095 <classe_legenda.php> 2095 <classe_legenda.php>
2096 */ 2096 */
2097 case "editasimbolo": 2097 case "editasimbolo":
2098 - include("classe_legenda.php"); 2098 + include_once("classe_legenda.php");
2099 copiaSeguranca($map_file); 2099 copiaSeguranca($map_file);
2100 if(!isset($tema)){$tema = "";} 2100 if(!isset($tema)){$tema = "";}
2101 $m = new Legenda($map_file,$locaplic,$tema); 2101 $m = new Legenda($map_file,$locaplic,$tema);
@@ -2138,7 +2138,7 @@ Include: @@ -2138,7 +2138,7 @@ Include:
2138 <classe_legenda.php> 2138 <classe_legenda.php>
2139 */ 2139 */
2140 case "editalegenda": 2140 case "editalegenda":
2141 - include("classe_legenda.php"); 2141 + include_once("classe_legenda.php");
2142 $m = new Legenda($map_file,$locaplic,$tema); 2142 $m = new Legenda($map_file,$locaplic,$tema);
2143 $r = $m->tabelaLegenda(); 2143 $r = $m->tabelaLegenda();
2144 if (!$r){$r = "erro.Erro legenda nao disponivel";} 2144 if (!$r){$r = "erro.Erro legenda nao disponivel";}
@@ -2153,7 +2153,7 @@ Include: @@ -2153,7 +2153,7 @@ Include:
2153 <classe_legenda.php> 2153 <classe_legenda.php>
2154 */ 2154 */
2155 case "criaLegendaHTML": 2155 case "criaLegendaHTML":
2156 - include("classe_legenda.php"); 2156 + include_once("classe_legenda.php");
2157 //para efeitos de compatibilidade com versões anteriores 2157 //para efeitos de compatibilidade com versões anteriores
2158 if(isset($template)){$templateLegenda = $template;} 2158 if(isset($template)){$templateLegenda = $template;}
2159 $m = new Legenda($map_file,$locaplic,$tema,$templateLegenda); 2159 $m = new Legenda($map_file,$locaplic,$tema,$templateLegenda);
@@ -2170,7 +2170,7 @@ Include: @@ -2170,7 +2170,7 @@ Include:
2170 <classe_legenda.php> 2170 <classe_legenda.php>
2171 */ 2171 */
2172 case "contagemclasse": 2172 case "contagemclasse":
2173 - include("classe_legenda.php"); 2173 + include_once("classe_legenda.php");
2174 $m = new Legenda($map_file,$locaplic,$tema); 2174 $m = new Legenda($map_file,$locaplic,$tema);
2175 $r = $m->tabelaLegenda("sim"); 2175 $r = $m->tabelaLegenda("sim");
2176 if (!$r){$r = "erro.Erro legenda nao disponivel";} 2176 if (!$r){$r = "erro.Erro legenda nao disponivel";}
@@ -2185,7 +2185,7 @@ Include: @@ -2185,7 +2185,7 @@ Include:
2185 <classe_legenda.php> 2185 <classe_legenda.php>
2186 */ 2186 */
2187 case "criaLegendaImagem": 2187 case "criaLegendaImagem":
2188 - include("classe_legenda.php"); 2188 + include_once("classe_legenda.php");
2189 $m = new Legenda($map_file); 2189 $m = new Legenda($map_file);
2190 $cp->set_data($m->legendaGrafica()); 2190 $cp->set_data($m->legendaGrafica());
2191 break; 2191 break;
@@ -2198,7 +2198,7 @@ Include: @@ -2198,7 +2198,7 @@ Include:
2198 <classe_legenda.php> 2198 <classe_legenda.php>
2199 */ 2199 */
2200 case "pegaParametrosLegImg": 2200 case "pegaParametrosLegImg":
2201 - include("classe_legenda.php"); 2201 + include_once("classe_legenda.php");
2202 $m = new Legenda($map_file); 2202 $m = new Legenda($map_file);
2203 $cp->set_data($m->pegaParametrosLegImg()); 2203 $cp->set_data($m->pegaParametrosLegImg());
2204 break; 2204 break;
@@ -2211,7 +2211,7 @@ Include: @@ -2211,7 +2211,7 @@ Include:
2211 <classe_legenda.php> 2211 <classe_legenda.php>
2212 */ 2212 */
2213 case "aplicaParametrosLegImg": 2213 case "aplicaParametrosLegImg":
2214 - include("classe_legenda.php"); 2214 + include_once("classe_legenda.php");
2215 // 2215 //
2216 //no caso da opção de legenda incluida no mapa, o modo cgi não desenha a imagem corretamente 2216 //no caso da opção de legenda incluida no mapa, o modo cgi não desenha a imagem corretamente
2217 // 2217 //
@@ -2238,7 +2238,7 @@ Include: @@ -2238,7 +2238,7 @@ Include:
2238 <classe_escala.php> 2238 <classe_escala.php>
2239 */ 2239 */
2240 case "escalagrafica": 2240 case "escalagrafica":
2241 - include("classe_escala.php"); 2241 + include_once("classe_escala.php");
2242 $m = new Escala($map_file); 2242 $m = new Escala($map_file);
2243 $cp->set_data($m->retornaBarraEscala()); 2243 $cp->set_data($m->retornaBarraEscala());
2244 break; 2244 break;
@@ -2251,7 +2251,7 @@ Include: @@ -2251,7 +2251,7 @@ Include:
2251 <classe_escala.php> 2251 <classe_escala.php>
2252 */ 2252 */
2253 case "testaescalagrafica": 2253 case "testaescalagrafica":
2254 - include("classe_escala.php"); 2254 + include_once("classe_escala.php");
2255 $m = new Escala($map_file); 2255 $m = new Escala($map_file);
2256 $cp->set_data($m->testaescalagrafica($w,$h,$estilo,$intervalos,$unidade,$cor,$bcor,$ocor)); 2256 $cp->set_data($m->testaescalagrafica($w,$h,$estilo,$intervalos,$unidade,$cor,$bcor,$ocor));
2257 break; 2257 break;
@@ -2264,7 +2264,7 @@ Include: @@ -2264,7 +2264,7 @@ Include:
2264 <classe_escala.php> 2264 <classe_escala.php>
2265 */ 2265 */
2266 case "escalaparametros": 2266 case "escalaparametros":
2267 - include("classe_escala.php"); 2267 + include_once("classe_escala.php");
2268 $m = new Escala($map_file); 2268 $m = new Escala($map_file);
2269 $cp->set_data($m->parametrosBarraEscala()); 2269 $cp->set_data($m->parametrosBarraEscala());
2270 break; 2270 break;
@@ -2277,7 +2277,7 @@ Include: @@ -2277,7 +2277,7 @@ Include:
2277 <classe_escala.php> 2277 <classe_escala.php>
2278 */ 2278 */
2279 case "mudaescalagrafica": 2279 case "mudaescalagrafica":
2280 - include("classe_escala.php"); 2280 + include_once("classe_escala.php");
2281 copiaSeguranca($map_file); 2281 copiaSeguranca($map_file);
2282 $m = new Escala($map_file); 2282 $m = new Escala($map_file);
2283 $cp->set_data($m->mudaEscalaGrafica($w,$h,$estilo,$intervalos,$unidade,$cor,$bcor,$ocor)); 2283 $cp->set_data($m->mudaEscalaGrafica($w,$h,$estilo,$intervalos,$unidade,$cor,$bcor,$ocor));
@@ -2296,7 +2296,7 @@ Include: @@ -2296,7 +2296,7 @@ Include:
2296 <classe_selecao.php> 2296 <classe_selecao.php>
2297 */ 2297 */
2298 case "selecaopt": 2298 case "selecaopt":
2299 - include("classe_selecao.php"); 2299 + include_once("classe_selecao.php");
2300 copiaSeguranca($map_file); 2300 copiaSeguranca($map_file);
2301 $m = new Selecao($map_file,$tema); 2301 $m = new Selecao($map_file,$tema);
2302 $cp->set_data($m->selecaoPT($xy,$tipo,$tolerancia)); 2302 $cp->set_data($m->selecaoPT($xy,$tipo,$tolerancia));
@@ -2310,7 +2310,7 @@ Include: @@ -2310,7 +2310,7 @@ Include:
2310 <classe_selecao.php> 2310 <classe_selecao.php>
2311 */ 2311 */
2312 case "selecaoext": 2312 case "selecaoext":
2313 - include("classe_selecao.php"); 2313 + include_once("classe_selecao.php");
2314 copiaSeguranca($map_file); 2314 copiaSeguranca($map_file);
2315 $m = new Selecao($map_file,$tema); 2315 $m = new Selecao($map_file,$tema);
2316 $cp->set_data($m->selecaoEXT($tipo)); 2316 $cp->set_data($m->selecaoEXT($tipo));
@@ -2324,7 +2324,7 @@ Include: @@ -2324,7 +2324,7 @@ Include:
2324 <classe_selecao.php> 2324 <classe_selecao.php>
2325 */ 2325 */
2326 case "selecaobox": 2326 case "selecaobox":
2327 - include("classe_selecao.php"); 2327 + include_once("classe_selecao.php");
2328 copiaSeguranca($map_file); 2328 copiaSeguranca($map_file);
2329 $m = new Selecao($map_file,$tema); 2329 $m = new Selecao($map_file,$tema);
2330 $cp->set_data($m->selecaoBOX($tipo,$ext)); 2330 $cp->set_data($m->selecaoBOX($tipo,$ext));
@@ -2339,7 +2339,7 @@ Include: @@ -2339,7 +2339,7 @@ Include:
2339 <classe_selecao.php> 2339 <classe_selecao.php>
2340 */ 2340 */
2341 case "selecaoatrib": 2341 case "selecaoatrib":
2342 - include("classe_selecao.php"); 2342 + include_once("classe_selecao.php");
2343 copiaSeguranca($map_file); 2343 copiaSeguranca($map_file);
2344 $m = new Selecao($map_file,$tema); 2344 $m = new Selecao($map_file,$tema);
2345 $cp->set_data($m->selecaoAtributos($tipo,$item,$operador,$valor)); 2345 $cp->set_data($m->selecaoAtributos($tipo,$item,$operador,$valor));
@@ -2353,7 +2353,7 @@ Include: @@ -2353,7 +2353,7 @@ Include:
2353 <classe_selecao.php> 2353 <classe_selecao.php>
2354 */ 2354 */
2355 case "selecaotema": 2355 case "selecaotema":
2356 - include("classe_selecao.php"); 2356 + include_once("classe_selecao.php");
2357 copiaSeguranca($map_file); 2357 copiaSeguranca($map_file);
2358 $m = new Selecao($map_file,$tema); 2358 $m = new Selecao($map_file,$tema);
2359 $cp->set_data($m->selecaoTema($temao,$tipo)); 2359 $cp->set_data($m->selecaoTema($temao,$tipo));
@@ -2384,7 +2384,7 @@ Include: @@ -2384,7 +2384,7 @@ Include:
2384 <classe_selecao.php> 2384 <classe_selecao.php>
2385 */ 2385 */
2386 case "limpasel": 2386 case "limpasel":
2387 - include("classe_selecao.php"); 2387 + include_once("classe_selecao.php");
2388 $m = new Selecao($map_file,$tema); 2388 $m = new Selecao($map_file,$tema);
2389 $cp->set_data($m->selecaoLimpa()); 2389 $cp->set_data($m->selecaoLimpa());
2390 break; 2390 break;
@@ -2397,7 +2397,7 @@ Include: @@ -2397,7 +2397,7 @@ Include:
2397 <classe_selecao.php> 2397 <classe_selecao.php>
2398 */ 2398 */
2399 case "incluisel": 2399 case "incluisel":
2400 - include("classe_selecao.php"); 2400 + include_once("classe_selecao.php");
2401 $m = new Selecao($map_file,$tema); 2401 $m = new Selecao($map_file,$tema);
2402 $cp->set_data($m->incluiSel($ids)); 2402 $cp->set_data($m->incluiSel($ids));
2403 break; 2403 break;
@@ -2410,7 +2410,7 @@ Include: @@ -2410,7 +2410,7 @@ Include:
2410 <classe_selecao.php> 2410 <classe_selecao.php>
2411 */ 2411 */
2412 case "criatemasel": 2412 case "criatemasel":
2413 - include("classe_selecao.php"); 2413 + include_once("classe_selecao.php");
2414 copiaSeguranca($map_file); 2414 copiaSeguranca($map_file);
2415 $m = new Selecao($map_file,$tema); 2415 $m = new Selecao($map_file,$tema);
2416 $cp->set_data($m->selecao2tema($locaplic,$dir_tmp)); 2416 $cp->set_data($m->selecao2tema($locaplic,$dir_tmp));
@@ -2430,7 +2430,7 @@ Include: @@ -2430,7 +2430,7 @@ Include:
2430 <classe_toponimia.php> 2430 <classe_toponimia.php>
2431 */ 2431 */
2432 case "criatoponimia": 2432 case "criatoponimia":
2433 - include("classe_toponimia.php"); 2433 + include_once("classe_toponimia.php");
2434 copiaSeguranca($map_file); 2434 copiaSeguranca($map_file);
2435 $m = new Toponimia($map_file,$tema); 2435 $m = new Toponimia($map_file,$tema);
2436 if(!isset($tipo)){$tipo="";} 2436 if(!isset($tipo)){$tipo="";}
@@ -2447,7 +2447,7 @@ Include: @@ -2447,7 +2447,7 @@ Include:
2447 <classe_toponimia.php> 2447 <classe_toponimia.php>
2448 */ 2448 */
2449 case "ativaEtiquetas": 2449 case "ativaEtiquetas":
2450 - include("classe_toponimia.php"); 2450 + include_once("classe_toponimia.php");
2451 copiaSeguranca($map_file); 2451 copiaSeguranca($map_file);
2452 $m = new Toponimia($map_file,$tema); 2452 $m = new Toponimia($map_file,$tema);
2453 $cp->set_data($m->ativaEtiquetas($item)); 2453 $cp->set_data($m->ativaEtiquetas($item));
@@ -2462,7 +2462,7 @@ Include: @@ -2462,7 +2462,7 @@ Include:
2462 <classe_toponimia.php> 2462 <classe_toponimia.php>
2463 */ 2463 */
2464 case "removeEtiquetas": 2464 case "removeEtiquetas":
2465 - include("classe_toponimia.php"); 2465 + include_once("classe_toponimia.php");
2466 copiaSeguranca($map_file); 2466 copiaSeguranca($map_file);
2467 $m = new Toponimia($map_file,$tema); 2467 $m = new Toponimia($map_file,$tema);
2468 $cp->set_data($m->removeEtiquetas()); 2468 $cp->set_data($m->removeEtiquetas());
@@ -2560,7 +2560,7 @@ Include: @@ -2560,7 +2560,7 @@ Include:
2560 function selecaoPoli($xs,$ys,$tema,$tipo) 2560 function selecaoPoli($xs,$ys,$tema,$tipo)
2561 { 2561 {
2562 global $map_file,$cp; 2562 global $map_file,$cp;
2563 - include("classe_selecao.php"); 2563 + include_once("classe_selecao.php");
2564 $m = new Selecao($map_file,$tema); 2564 $m = new Selecao($map_file,$tema);
2565 $cp->set_data($m->selecaoPorPoligono($tipo,$xs,$ys)); 2565 $cp->set_data($m->selecaoPorPoligono($tipo,$xs,$ys));
2566 $m->salva(); 2566 $m->salva();
classesphp/mapa_inicia.php
@@ -92,7 +92,7 @@ function iniciaMapa() @@ -92,7 +92,7 @@ function iniciaMapa()
92 if (!file_exists($map_file)) 92 if (!file_exists($map_file))
93 {$cp->set_data("erro. $map_file nao existe (variavel map_file utilize o testainstal.php)");return;} 93 {$cp->set_data("erro. $map_file nao existe (variavel map_file utilize o testainstal.php)");return;}
94 //altera o tamanho do query map para ficar igual ao do mapa 94 //altera o tamanho do query map para ficar igual ao do mapa
95 - include("classe_mapa.php"); 95 + include_once("classe_mapa.php");
96 $m = new Mapa($map_file); 96 $m = new Mapa($map_file);
97 if(!$m->arquivo){$cp->set_data(" erro. Mapfile $map_file nao existe");return;} 97 if(!$m->arquivo){$cp->set_data(" erro. Mapfile $map_file nao existe");return;}
98 if(!$m->mapa){$cp->set_data(" erro. Problemas com o mapfile $map_file");return;} 98 if(!$m->mapa){$cp->set_data(" erro. Problemas com o mapfile $map_file");return;}
classesphp/wmswfs.php
@@ -345,7 +345,7 @@ function pegaTag($layer) @@ -345,7 +345,7 @@ function pegaTag($layer)
345 { 345 {
346 $noslayer = $layer->childNodes; 346 $noslayer = $layer->childNodes;
347 $resultado = array(); 347 $resultado = array();
348 - for ($i = 0; $i < $noslayer->length; $i++) 348 + for ($i = 0; $i < $noslayer->length; ++$i)
349 { 349 {
350 $tnome = $noslayer->item($i)->tagName; 350 $tnome = $noslayer->item($i)->tagName;
351 $tvalor = $noslayer->item($i)->nodeValue; 351 $tvalor = $noslayer->item($i)->nodeValue;
@@ -360,7 +360,8 @@ function pegaTag($layer) @@ -360,7 +360,8 @@ function pegaTag($layer)
360 if ($tnome == "Style") 360 if ($tnome == "Style")
361 { 361 {
362 $ss = $noslayer->item($i)->childNodes; 362 $ss = $noslayer->item($i)->childNodes;
363 - for ($s = 0; $s < $ss->length; $s++) 363 + $ssl = $ss->length;
  364 + for ($s = 0; $s < $ssl; $s++)
364 { 365 {
365 $snome = $ss->item($s)->tagName; 366 $snome = $ss->item($s)->tagName;
366 $svalor = $ss->item($s)->nodeValue; 367 $svalor = $ss->item($s)->nodeValue;
@@ -597,7 +598,7 @@ function wms_exceptions ( $dom ) { @@ -597,7 +598,7 @@ function wms_exceptions ( $dom ) {
597 $ctx = xpath_new_context($dom); 598 $ctx = xpath_new_context($dom);
598 $xpnode = xpath_eval($ctx,$xp); 599 $xpnode = xpath_eval($ctx,$xp);
599 $arr = array(); 600 $arr = array();
600 - for( $i = 0; $i < sizeof($xpnode->nodeset); $i++ ) { 601 + for( $i = 0; $i < sizeof($xpnode->nodeset); ++$i ) {
601 $dtnode = $xpnode->nodeset[0]->first_child(); 602 $dtnode = $xpnode->nodeset[0]->first_child();
602 array_push($arr,$dtnode->content); 603 array_push($arr,$dtnode->content);
603 } 604 }
classesphp/wscliente.php
@@ -34,9 +34,9 @@ Include: @@ -34,9 +34,9 @@ Include:
34 34
35 <pega_variaveis.php>, <lews/wms_functions.php>, <classesjs/cpaint/cpaint2.inc.php> 35 <pega_variaveis.php>, <lews/wms_functions.php>, <classesjs/cpaint/cpaint2.inc.php>
36 */ 36 */
37 -require_once("pega_variaveis.php");  
38 -include("lews/wms_functions.php");  
39 -require_once("../pacotes/cpaint/cpaint2.inc.php"); 37 +include_once("pega_variaveis.php");
  38 +include_once("lews/wms_functions.php");
  39 +include_once("../pacotes/cpaint/cpaint2.inc.php");
40 $cp = new cpaint(); 40 $cp = new cpaint();
41 // 41 //
42 //busca o getcapabilities de um wms 42 //busca o getcapabilities de um wms
@@ -111,7 +111,7 @@ cp - Objeto CPAINT. @@ -111,7 +111,7 @@ cp - Objeto CPAINT.
111 function funcoesws() 111 function funcoesws()
112 { 112 {
113 global $servico,$cp; 113 global $servico,$cp;
114 - require_once('../pacotes/SOAP/nusoap.php'); 114 + include_once('../pacotes/SOAP/nusoap.php');
115 $service_request = $servico; // . "?wsdl"; 115 $service_request = $servico; // . "?wsdl";
116 $service_r = file($service_request); 116 $service_r = file($service_request);
117 $service_r = implode("",$service_r); 117 $service_r = implode("",$service_r);
@@ -207,8 +207,8 @@ function dadosWS() @@ -207,8 +207,8 @@ function dadosWS()
207 { 207 {
208 global $param,$cp,$servico,$funcaows; 208 global $param,$cp,$servico,$funcaows;
209 //ini_set("memory_limit","28M"); 209 //ini_set("memory_limit","28M");
210 - require_once('../pacotes/SOAP/nusoap.php');  
211 - require_once("../pacotes/SOAP/easy_parser.inc"); 210 + include_once('../pacotes/SOAP/nusoap.php');
  211 + include_once("../pacotes/SOAP/easy_parser.inc");
212 $soapclient = new Xsoapclient($servico."?wsdl","wsdl"); 212 $soapclient = new Xsoapclient($servico."?wsdl","wsdl");
213 $retorna = "erro"; 213 $retorna = "erro";
214 $parametros = ""; 214 $parametros = "";
@@ -271,7 +271,7 @@ function parFuncoesws() @@ -271,7 +271,7 @@ function parFuncoesws()
271 { 271 {
272 global $cp,$servico,$funcaows; 272 global $cp,$servico,$funcaows;
273 $retorna = array(); 273 $retorna = array();
274 - require_once('../pacotes/SOAP/nusoap.php'); 274 + include_once('../pacotes/SOAP/nusoap.php');
275 $service_request = $servico; // . "?wsdl"; 275 $service_request = $servico; // . "?wsdl";
276 $service_r = file($service_request); 276 $service_r = file($service_request);
277 $service_r = implode("",$service_r); 277 $service_r = implode("",$service_r);
geraminiatura.php
@@ -116,7 +116,7 @@ function verifica($map) @@ -116,7 +116,7 @@ function verifica($map)
116 if ($postgis_mapa != "") 116 if ($postgis_mapa != "")
117 { 117 {
118 $numlayers = $mapa->numlayers; 118 $numlayers = $mapa->numlayers;
119 - for ($i=0;$i < $numlayers;$i++) 119 + for ($i=0;$i < $numlayers;++$i)
120 { 120 {
121 $layer = $mapa->getlayer($i); 121 $layer = $mapa->getlayer($i);
122 if ($layer->connectiontype == MS_POSTGIS) 122 if ($layer->connectiontype == MS_POSTGIS)
ms_configura.php
@@ -242,7 +242,7 @@ if (strtoupper(substr(PHP_OS, 0, 3) == &#39;WIN&#39;)) @@ -242,7 +242,7 @@ if (strtoupper(substr(PHP_OS, 0, 3) == &#39;WIN&#39;))
242 242
243 Em alguns casos o uso do cgi torna a aplicação mais rápida. 243 Em alguns casos o uso do cgi torna a aplicação mais rápida.
244 */ 244 */
245 - $utilizacgi = "sim"; 245 + $utilizacgi = "nao";
246 /* 246 /*
247 Variable: $atlasxml 247 Variable: $atlasxml
248 248
ms_criamapa.php
@@ -104,16 +104,15 @@ Note: Carrega as extensões PHP @@ -104,16 +104,15 @@ Note: Carrega as extensões PHP
104 Carrega as extensões utilizadas no programa de inicialização. 104 Carrega as extensões utilizadas no programa de inicialização.
105 A carga das extensões geralmente é necessária nas instalações windows (ms4w) ou quando as mesmas não são carregadas pela própria inicialização do PHP. 105 A carga das extensões geralmente é necessária nas instalações windows (ms4w) ou quando as mesmas não são carregadas pela própria inicialização do PHP.
106 */ 106 */
107 -require_once ($caminho."classesphp/carrega_ext.php"); 107 +include_once ($caminho."classesphp/carrega_ext.php");
108 /* 108 /*
109 Note: Include dos arquivos PHP. 109 Note: Include dos arquivos PHP.
110 110
111 Inclui os programas php com funções utilizadas pelo ms_criamapa.php 111 Inclui os programas php com funções utilizadas pelo ms_criamapa.php
112 */ 112 */
113 -require_once ($caminho."classesphp/pega_variaveis.php");  
114 -require_once ($caminho."classesphp/funcoes_gerais.php");  
115 -require_once ($caminho."ms_configura.php");  
116 - 113 +include_once ($caminho."classesphp/pega_variaveis.php");
  114 +include_once ($caminho."classesphp/funcoes_gerais.php");
  115 +include_once ($caminho."ms_configura.php");
117 if (!isset($debug)) 116 if (!isset($debug))
118 {error_reporting(0);$debug="nao";} 117 {error_reporting(0);$debug="nao";}
119 else 118 else
@@ -367,7 +366,7 @@ $_SESSION[&quot;mapext&quot;] = $mapext; @@ -367,7 +366,7 @@ $_SESSION[&quot;mapext&quot;] = $mapext;
367 if (isset($executa)) 366 if (isset($executa))
368 { 367 {
369 if (file_exists($executa)) 368 if (file_exists($executa))
370 - {include ($executa);} 369 + {include_once ($executa);}
371 if (function_exists($executa)) 370 if (function_exists($executa))
372 {eval($executa."();");} 371 {eval($executa."();");}
373 } 372 }
@@ -434,7 +433,7 @@ Faz alterações em cada layer caso sejam necessárias. @@ -434,7 +433,7 @@ Faz alterações em cada layer caso sejam necessárias.
434 */ 433 */
435 $mapa = ms_newMapObj($tmpfname); 434 $mapa = ms_newMapObj($tmpfname);
436 $path = $mapa->shapepath; 435 $path = $mapa->shapepath;
437 -for($i=0;$i<($mapa->numlayers);$i++) 436 +for($i=0;$i<($mapa->numlayers);++$i)
438 { 437 {
439 $layer = $mapa->getLayer($i); 438 $layer = $mapa->getLayer($i);
440 $ok = true; 439 $ok = true;
@@ -512,7 +511,7 @@ function ligaTemas() @@ -512,7 +511,7 @@ function ligaTemas()
512 $grupos = $mapn->getLayersIndexByGroup($l); 511 $grupos = $mapn->getLayersIndexByGroup($l);
513 if(count($grupos) > 0) 512 if(count($grupos) > 0)
514 { 513 {
515 - for ($i = 0;$i < count($grupos);$i++) 514 + for ($i = 0;$i < count($grupos);++$i)
516 { 515 {
517 $layern = $mapn->getLayer($grupos[$i]); 516 $layern = $mapn->getLayer($grupos[$i]);
518 if(strtolower($layern->group) == strtolower($l)) 517 if(strtolower($layern->group) == strtolower($l))
@@ -562,7 +561,7 @@ function incluiTemasIniciais() @@ -562,7 +561,7 @@ function incluiTemasIniciais()
562 else 561 else
563 { 562 {
564 $maptemp = @ms_newMapObj($arqtemp); 563 $maptemp = @ms_newMapObj($arqtemp);
565 - for($i=0;$i<($maptemp->numlayers);$i++) 564 + for($i=0;$i<($maptemp->numlayers);++$i)
566 { 565 {
567 $layern = $maptemp->getLayer($i); 566 $layern = $maptemp->getLayer($i);
568 if($layern->type == MS_LAYER_RASTER) 567 if($layern->type == MS_LAYER_RASTER)
@@ -644,7 +643,7 @@ Insere elementos no mapa a partir de uma string definida em wkt @@ -644,7 +643,7 @@ Insere elementos no mapa a partir de uma string definida em wkt
644 function insereWKTUrl() 643 function insereWKTUrl()
645 { 644 {
646 global $wkt,$nometemawkt,$dir_tmp,$imgdir,$tmpfname,$locaplic; 645 global $wkt,$nometemawkt,$dir_tmp,$imgdir,$tmpfname,$locaplic;
647 - require_once "pacotes/phpxbase/api_conversion.php"; 646 + include_once "pacotes/phpxbase/api_conversion.php";
648 if (!isset($nometemapontos)) 647 if (!isset($nometemapontos))
649 {$nometemapontos="WKT";} 648 {$nometemapontos="WKT";}
650 if ($nometemapontos == "") 649 if ($nometemapontos == "")
@@ -711,7 +710,7 @@ Insere um novo tema com os pontos definidos na variável $pontos @@ -711,7 +710,7 @@ Insere um novo tema com os pontos definidos na variável $pontos
711 function inserePontosUrl() 710 function inserePontosUrl()
712 { 711 {
713 global $pontos,$nometemapontos,$dir_tmp,$imgdir,$tmpfname,$locaplic; 712 global $pontos,$nometemapontos,$dir_tmp,$imgdir,$tmpfname,$locaplic;
714 - require_once "pacotes/phpxbase/api_conversion.php"; 713 + include_once "pacotes/phpxbase/api_conversion.php";
715 if (!isset($nometemapontos)) 714 if (!isset($nometemapontos))
716 {$nometemapontos="Pontos";} 715 {$nometemapontos="Pontos";}
717 if ($nometemapontos == "") 716 if ($nometemapontos == "")
@@ -775,7 +774,7 @@ As linhas devem ter os pontos separados por espaços e cada linha separada por ví @@ -775,7 +774,7 @@ As linhas devem ter os pontos separados por espaços e cada linha separada por ví
775 function insereLinhasUrl() 774 function insereLinhasUrl()
776 { 775 {
777 global $linhas,$nometemalinhas,$dir_tmp,$imgdir,$tmpfname,$locaplic; 776 global $linhas,$nometemalinhas,$dir_tmp,$imgdir,$tmpfname,$locaplic;
778 - require_once "pacotes/phpxbase/api_conversion.php"; 777 + include_once "pacotes/phpxbase/api_conversion.php";
779 if (!isset($nometemalinhas)) 778 if (!isset($nometemalinhas))
780 {$nometemalinhas="Linhas";} 779 {$nometemalinhas="Linhas";}
781 if ($nometemalinhas == "") 780 if ($nometemalinhas == "")
@@ -849,7 +848,7 @@ Os polígonos devem ter os pontos separados por espaços e cada polígono separado @@ -849,7 +848,7 @@ Os polígonos devem ter os pontos separados por espaços e cada polígono separado
849 function inserePoligonosUrl() 848 function inserePoligonosUrl()
850 { 849 {
851 global $poligonos,$nometemapoligonos,$dir_tmp,$imgdir,$tmpfname,$locaplic; 850 global $poligonos,$nometemapoligonos,$dir_tmp,$imgdir,$tmpfname,$locaplic;
852 - require_once "pacotes/phpxbase/api_conversion.php"; 851 + include_once "pacotes/phpxbase/api_conversion.php";
853 if (!isset($nometemapoligonos)) 852 if (!isset($nometemapoligonos))
854 {$nometemapoligonos="Poligonos";} 853 {$nometemapoligonos="Poligonos";}
855 if ($nometemapoligonos == "") 854 if ($nometemapoligonos == "")