//include das bibliotecas padrões do sistema //caso o campo não esteja vazio execute a ação de salvar if (isset($_POST["persistentagents"])) { $persistentagents = trim($_POST["persistentagents"]); $multiplelogin = trim($_POST["multiplelogin"]); //realiza backup da tabela //REALIZA BACKUP BO BANCO //($dbcon,'pbx_agents_general','U','','update','AGENTS_GENERAL'); $query = "UPDATE pbx_agents_general SET persistentagents='$persistentagents', multiplelogin='$multiplelogin'"; //executa a ação de salvar no banco pg_query($dbcon, $query); //gera o arquivo de agents_general//gera arquivos e executa o reload dos dados no asterisk gera_arquivos($dbcon, 'AGENTS_GENERAL'); ?> } //faz o select no banco para retornar os valores na tela $query = "SELECT * FROM pbx_agents_general"; $result = pg_query($dbcon, $query); while ($dados = pg_fetch_array($result)) { ?>
} ?>