Commit 274c6baddadb78a191d2343d9fbddcab2811d958
1 parent
915031bb
Exists in
master
and in
7 other branches
Inclusão da verificação dos parâmetros allow_call_time_pass_reference safe_mode …
…existentes em php.ini.
Showing
1 changed file
with
9 additions
and
3 deletions
Show diff stats
testainstal.php
... | ... | @@ -18,7 +18,7 @@ catch(ee) |
18 | 18 | </script> |
19 | 19 | <?php |
20 | 20 | /* |
21 | -Title: Testa a instalação do I3Geo | |
21 | +Title: Testa a instalação do i3Geo | |
22 | 22 | |
23 | 23 | Executa testes e aponta erros na instalação. |
24 | 24 | |
... | ... | @@ -62,8 +62,14 @@ $exts = get_loaded_extensions(); |
62 | 62 | echo "Obs: MapServer (a versão deve ser >= 5.2 para que a sobreposição de temas funcione na interface Google Maps): <br>"; |
63 | 63 | echo ms_GetVersion()."<br><br>"; |
64 | 64 | if(!function_exists("ms_GetVersion")) |
65 | -{echo "O MAPSERVER PARECE NAO ESTAR INSTALADO<br><br>";} | |
66 | -echo "---"; | |
65 | +{echo "<span style=color:red >O MAPSERVER PARECE NAO ESTAR INSTALADO!!!<br><br>";} | |
66 | +echo "---<br>"; | |
67 | +if (get_cfg_var("allow_call_time_pass_reference") != 1){ | |
68 | + echo "<span style=color:red >Problema: allow_call_time_pass_reference no php.ini deveria estar como 'On'. O i3Geo não irá funcionar!!!<br></span>"; | |
69 | +} | |
70 | +if (get_cfg_var("safe_mode") == 1){ | |
71 | + echo "<span style=color:red >Problema: safe_mode no php.ini deveria estar como 'Off'. O i3Geo não irá funcionar!!!<br></span>"; | |
72 | +} | |
67 | 73 | echo "<br><pre>Extensões:<br>"; |
68 | 74 | if (!extension_loaded("libxml")){echo "<span style=color:red >Problema: não está instalado a libxml<br></span>";} |
69 | 75 | if (!extension_loaded( "PDO")){echo "<span style=color:red >Problema: não está instalado a PDO<br></span>";} | ... | ... |