$_GET["publicado_sistema"], "nome_sistema" => $_GET["nome_sistema"], "perfil_sistema" => $_GET["perfil_sistema"] ); i3GeoAdminUpdate($dbhw,"i3geoadmin_sistemas",$dataCol,"WHERE id_sistema = $id_sistema"); $retorna = $id_sistema; } else{ $dataCol = array( "publicado_sistema" => '', "nome_sistema" => '', "perfil_sistema" => '' ); $retorna = i3GeoAdminInsertUnico($dbhw,"i3geoadmin_sistemas",$dataCol,"nome_sistema","id_sistema"); } $dbhw = null; $dbh = null; return $retorna; } catch (PDOException $e){ return "Error!: "; } } function alterarFuncoes(){ global $esquemaadmin,$id_sistema,$id_funcao; if(empty($_GET["w_funcao"])){ $_GET["w_funcao"] = 200; } if(empty($_GET["h_funcao"])){ $_GET["h_funcao"] = 200; } try{ require_once("conexao.php"); if($convUTF){ $_GET["nome_funcao"] = utf8_encode($_GET["nome_funcao"]); } if($id_funcao != ""){ $dataCol = array( "nome_funcao" => $_GET["nome_funcao"], "perfil_funcao" => $_GET["perfil_funcao"], "w_funcao" => $_GET["w_funcao"], "h_funcao" => $_GET["h_funcao"], "abrir_funcao" => $_GET["abrir_funcao"] ); i3GeoAdminUpdate($dbhw,"i3geoadmin_sistemasf",$dataCol,"WHERE id_funcao = $id_funcao"); $retorna = $id_sistema; } else{ $dataCol = array( "nome_funcao" => '', "perfil_funcao" => '', "w_funcao" => '', "h_funcao" => '', "abrir_funcao" => '', "id_sistema" => $id_sistema ); $retorna = i3GeoAdminInsertUnico($dbhw,"i3geoadmin_sistemasf",$dataCol,"nome_funcao","id_funcao"); } $dbhw = null; $dbh = null; return $retorna; } catch (PDOException $e) { return "Error!: "; } } function excluirFuncoes() { global $id,$esquemaadmin; try { include("conexao.php"); $sql = "DELETE from ".$esquemaadmin."i3geoadmin_sistemasf WHERE id_funcao = $id"; $dbhw->query($sql); i3GeoAdminInsertLog($dbhw,$sql); $dbhw = null; $dbh = null; return "ok"; } catch (PDOException $e){ return "Error!: "; } } function excluirSistemas() { global $id,$esquemaadmin; try { include("conexao.php"); $sql = "DELETE from ".$esquemaadmin."i3geoadmin_sistemas WHERE id_sistema = $id"; $dbhw->query($sql); i3GeoAdminInsertLog($dbhw,$sql); $dbhw = null; $dbh = null; return $id; } catch (PDOException $e){ return "Error!: "; } } ?>