fecha_popup(1);'; } if (!file_exists($caminho_producao . "cdr_pgsql.conf")) { echo "arquivo nao encotrado"; } $lines = file($caminho_producao . "cdr_pgsql.conf"); for ($i = 0; $i < sizeof($lines); $i++) { if (substr($lines[$i], 0, 8) == 'hostname') { $host = substr($lines[$i], 9, 10000); } if (substr($lines[$i], 0, 4) == 'port') { $porta = substr($lines[$i], 5, 10000); } if (substr($lines[$i], 0, 6) == 'dbname') { $base = substr($lines[$i], 7, 10000); } if (substr($lines[$i], 0, 8) == 'password') { $passwd = substr($lines[$i], 9, 10000); $_SESSION['SSKeepPassword'] = $passwd; $senha = md5($passwd); } if (substr($lines[$i], 0, 4) == 'user') { $usuario = substr($lines[$i], 5, 10000); } if (substr($lines[$i], 0, 5) == 'table') { $tabela = substr($lines[$i], 6, 10000); } } ?>
CONFIGURAÇÃO DE BASE DE DADOS
,
Nome:
Porta:
Base de Dados:
Senha:
Usuário:
Tabela: