Commit bf6b1102ed1bbc8d427951d4a0f0f173f913c3d6

Authored by Edmar Moretti
1 parent 41b6373e

--no commit message

classesphp/classe_atlas.php
... ... @@ -45,7 +45,7 @@ $atlasxml - Objeto xml com o atlas.
45 45 */
46 46 function __construct($xml,$arquivo)
47 47 {
48   - error_reporting(E_ALL);
  48 + error_reporting(0);
49 49 $this->xml = $xml;
50 50 $this->arquivo = $arquivo;
51 51 }
... ...
classesphp/classe_menutemas.php
... ... @@ -58,7 +58,7 @@ $editores - (opcional) array com os editores cadastrados no ms_configura.php
58 58 */
59 59 function __construct($map_file="",$perfil="",$locsistemas="",$locaplic="",$menutemas="",$urli3geo="",$editores="")
60 60 {
61   - error_reporting(E_ALL);
  61 + error_reporting(0);
62 62 $perfil = str_replace(" ",",",$perfil);
63 63 $this->perfil = explode(",",$perfil);
64 64 $this->locsistemas = $locsistemas;
... ... @@ -334,7 +334,7 @@ array
334 334 $temp = ixml($tema,"DOWNLOAD");
335 335 if (($temp == "sim") || ($temp == "SIM"))
336 336 {$down = "sim";}
337   - $temp = ixml($temar,"OGC");
  337 + $temp = ixml($tema,"OGC");
338 338 if (($temp != "nao") || ($temp != "NAO"))
339 339 {$ogc = "sim";}
340 340 }
... ... @@ -425,7 +425,8 @@ array
425 425 {$this->xml = simplexml_load_file($ondexml);}
426 426 else //pega o xml do sistema de administração
427 427 {
428   - $this->xml = simplexml_load_string(geraXmlMenutemas(implode(" ",$this->perfil),$idmenu,$tipo,$this->locaplic));
  428 + $this->xml = simplexml_load_string(geraXmlMenutemas(implode(" ",$this->perfil),$idmenu,$tipo,$this->locaplic));
  429 + //echo geraXmlMenutemas(implode(" ",$this->perfil),$idmenu,$tipo,$this->locaplic);exit;
429 430 }
430 431 }
431 432 }
... ... @@ -470,26 +471,25 @@ array
470 471 }
471 472 }
472 473 }
473   - $temas = array();
474   - foreach($grupo->TEMA as $temar)
475   - {
476   - $down = "nao";
477   - $ogc = "sim";
478   - $temp = ixml($temar,"DOWNLOAD");
479   - if (($temp == "sim") || ($temp == "SIM"))
480   - {$down = "sim";}
481   - $temp = ixml($temar,"OGC");
482   - if (($temp == "nao") || ($temp == "NAO"))
483   - {$ogc = "nao";}
484   - $link = " ";
485   - $temp = ixml($temar,"TLINK");
486   - if ($temp != "")
487   - {$link = $temp;}
488   - $tid = ixml($temar,"TID");
489   - $nome = ixml($temar,"TNOME");
490   - $temas[] = array("tid"=>$tid,"nome"=>$nome,"link"=>$link,"down"=>$down,"ogc"=>$ogc);
491   - }
492   -
  474 + $temas = array();
  475 + foreach($grupo->TEMA as $temar)
  476 + {
  477 + $down = "nao";
  478 + $ogc = "sim";
  479 + $temp = ixml($temar,"DOWNLOAD");
  480 + if (($temp == "sim") || ($temp == "SIM"))
  481 + {$down = "sim";}
  482 + $temp = ixml($temar,"OGC");
  483 + if (($temp == "nao") || ($temp == "NAO"))
  484 + {$ogc = "nao";}
  485 + $link = " ";
  486 + $temp = ixml($temar,"TLINK");
  487 + if ($temp != "")
  488 + {$link = $temp;}
  489 + $tid = ixml($temar,"TID");
  490 + $nome = ixml($temar,"TNOME");
  491 + $temas[] = array("tid"=>$tid,"nome"=>$nome,"link"=>$link,"down"=>$down,"ogc"=>$ogc);
  492 + }
493 493 }
494 494 $conta = $conta + 1;
495 495 }
... ...