Commit 897094af15e17cbf6339b3d306415107da00bb78
1 parent
bd7df86b
Exists in
master
and in
7 other branches
Inclusão de verificação da instalação do SAIKU nos programas que geram dados para essa ferramenta
Showing
2 changed files
with
6 additions
and
1 deletions
Show diff stats
ferramentas/saiku/cartograma.php
@@ -10,6 +10,9 @@ include_once(dirname(__FILE__)."/../../classesphp/classe_estatistica.php"); | @@ -10,6 +10,9 @@ include_once(dirname(__FILE__)."/../../classesphp/classe_estatistica.php"); | ||
10 | if(!isset($dir_tmp)){ | 10 | if(!isset($dir_tmp)){ |
11 | include(dirname(__FILE__)."/../../ms_configura.php"); | 11 | include(dirname(__FILE__)."/../../ms_configura.php"); |
12 | } | 12 | } |
13 | +if(isset($statusFerramentas) && $statusFerramentas["saiku"] != true){ | ||
14 | + exit; | ||
15 | +} | ||
13 | //pega o filtro da sessao PHP aberta pelo i3Geo | 16 | //pega o filtro da sessao PHP aberta pelo i3Geo |
14 | session_name("i3GeoPHP"); | 17 | session_name("i3GeoPHP"); |
15 | session_id($_POST["g_sid"]); | 18 | session_id($_POST["g_sid"]); |
ferramentas/saiku/esquemaxml.php
@@ -22,7 +22,9 @@ include(dirname(__FILE__)."/../../admin/php/classe_metaestat.php"); | @@ -22,7 +22,9 @@ include(dirname(__FILE__)."/../../admin/php/classe_metaestat.php"); | ||
22 | if(!isset($dir_tmp)){ | 22 | if(!isset($dir_tmp)){ |
23 | include(dirname(__FILE__)."/../../ms_configura.php"); | 23 | include(dirname(__FILE__)."/../../ms_configura.php"); |
24 | } | 24 | } |
25 | - | 25 | +if(isset($statusFerramentas) && $statusFerramentas["saiku"] != true){ |
26 | + exit; | ||
27 | +} | ||
26 | $urlXmlEsquema = ""; | 28 | $urlXmlEsquema = ""; |
27 | $nomeConexao = criaConexaoEsquema(); | 29 | $nomeConexao = criaConexaoEsquema(); |
28 | 30 |