Commit 897094af15e17cbf6339b3d306415107da00bb78

Authored by Edmar Moretti
1 parent bd7df86b

Inclusão de verificação da instalação do SAIKU nos programas que geram dados para essa ferramenta

ferramentas/saiku/cartograma.php
... ... @@ -10,6 +10,9 @@ include_once(dirname(__FILE__)."/../../classesphp/classe_estatistica.php");
10 10 if(!isset($dir_tmp)){
11 11 include(dirname(__FILE__)."/../../ms_configura.php");
12 12 }
  13 +if(isset($statusFerramentas) && $statusFerramentas["saiku"] != true){
  14 + exit;
  15 +}
13 16 //pega o filtro da sessao PHP aberta pelo i3Geo
14 17 session_name("i3GeoPHP");
15 18 session_id($_POST["g_sid"]);
... ...
ferramentas/saiku/esquemaxml.php
... ... @@ -22,7 +22,9 @@ include(dirname(__FILE__)."/../../admin/php/classe_metaestat.php");
22 22 if(!isset($dir_tmp)){
23 23 include(dirname(__FILE__)."/../../ms_configura.php");
24 24 }
25   -
  25 +if(isset($statusFerramentas) && $statusFerramentas["saiku"] != true){
  26 + exit;
  27 +}
26 28 $urlXmlEsquema = "";
27 29 $nomeConexao = criaConexaoEsquema();
28 30  
... ...