Commit cf47ff542ad7596029a193d8beded7f7308e68b9
1 parent
b28b4cda
Exists in
master
and in
7 other branches
--no commit message
Showing
3 changed files
with
20 additions
and
1 deletions
Show diff stats
admin/js/admin.js
| ... | ... | @@ -0,0 +1,13 @@ |
| 1 | +<?php | |
| 2 | +try | |
| 3 | +{ | |
| 4 | + $dbh = new PDO('pgsql:dbname=postgres;user=postgres;password=postgres;host=localhost'); | |
| 5 | + $dbhw = new PDO('pgsql:dbname=postgres;user=postgres;password=postgres;host=localhost'); | |
| 6 | +} | |
| 7 | +catch (PDOException $e) | |
| 8 | +{ | |
| 9 | + print "Erro : " . $e->getMessage() . "<br/> Se vc estiver usando SQLITE, talvez exista alguma incompatibilidade entre o PHP e o banco admin.db. Vc pode apagar o arquivo menutemas/admin.db e recria-lo com admin/php/criasqlite.php"; | |
| 10 | + die(); | |
| 11 | +} | |
| 12 | +$convUTF = false; | |
| 13 | +?> | ... | ... |
ms_configura.php
| ... | ... | @@ -351,10 +351,15 @@ if (strtoupper(substr(PHP_OS, 0, 3) == 'WIN')) |
| 351 | 351 | |
| 352 | 352 | O programa PHP que estabelece a conexão deve retornar objetos com nomes padronizados. Veja o arquivo i3geo/admin/conexao.php para maiores detalhes. |
| 353 | 353 | |
| 354 | + Exemplos: | |
| 355 | + | |
| 356 | + $conexaoadmin = $locaplic."/admin/php/conexaopostgresql.php"; | |
| 357 | + $conexaoadmin = $locaplic."/admin/php/conexaomma.php"; | |
| 358 | + | |
| 354 | 359 | Tipo: |
| 355 | 360 | {string} |
| 356 | 361 | */ |
| 357 | - $conexaoadmin = "";//$locaplic."/admin/php/conexaomma.php"; | |
| 362 | + $conexaoadmin = "";//$locaplic."/admin/php/conexaopostgresql.php"; | |
| 358 | 363 | /* |
| 359 | 364 | Variable: interfacePadrao |
| 360 | 365 | ... | ... |