$m = new Metaestat(); if (empty($_GET["excluigeom"])) { $_GET["excluigeom"] = ""; } if ($_GET["formato"] == "json") { retornaJSON($m->tabelasEsquema($codigo_estat_conexao, $_GET["nome_esquema"], $_GET["excluigeom"])); } exit; break; case "CRIATABELADB": $m = new Metaestat(); if ($nome_esquema != "i3geo_metaestat") { retornaJSON("erro"); exit; } retornaJSON($m->criaTabelaDB($codigo_estat_conexao, $_GET["nome_esquema"], $_GET["nome_tabela"], $_GET["comentario"])); exit; break; case "CRIAESQUEMADB": $m = new Metaestat(); retornaJSON($m->criaEsquemaDB($codigo_estat_conexao, $_GET["nome_esquema"])); exit; break; case "ALTERANOMETABELADB": $m = new Metaestat(); if ($_GET["nome_esquema"] != "i3geo_metaestat") { retornaJSON("erro"); exit; } retornaJSON($m->alteraNomeTabelaDB($codigo_estat_conexao, $_GET["nome_esquema"], $_GET["nome_tabela"], $_GET["novonome_tabela"])); exit;