Commit cf47ff542ad7596029a193d8beded7f7308e68b9

Authored by Edmar Moretti
1 parent b28b4cda

--no commit message

admin/js/admin.js
@@ -27,6 +27,7 @@ Free Software Foundation, Inc., no endereço @@ -27,6 +27,7 @@ Free Software Foundation, Inc., no endereço
27 */ 27 */
28 //variáveis globais 28 //variáveis globais
29 navn = false; 29 navn = false;
  30 +navm = false;
30 //seta as variáveis navn e navm 31 //seta as variáveis navn e navm
31 var app = navigator.appName.substring(0,1); 32 var app = navigator.appName.substring(0,1);
32 if (app==='N'){navn=true;}else{navm=true;} 33 if (app==='N'){navn=true;}else{navm=true;}
admin/php/conexaopostgresql.php 0 → 100644
@@ -0,0 +1,13 @@ @@ -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) == &#39;WIN&#39;)) @@ -351,10 +351,15 @@ if (strtoupper(substr(PHP_OS, 0, 3) == &#39;WIN&#39;))
351 351
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. 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 Tipo: 359 Tipo:
355 {string} 360 {string}
356 */ 361 */
357 - $conexaoadmin = "";//$locaplic."/admin/php/conexaomma.php"; 362 + $conexaoadmin = "";//$locaplic."/admin/php/conexaopostgresql.php";
358 /* 363 /*
359 Variable: interfacePadrao 364 Variable: interfacePadrao
360 365