Commit 69b48ca4496cd9cbf969ac6871307a8c05847aad
1 parent
ce7b7496
Exists in
master
and in
7 other branches
Inclusão de mensagem de erro na página principal caso o PHP-Mapscript não estiver instalado
Showing
2 changed files
with
11 additions
and
3 deletions
Show diff stats
init/index.php
| ... | ... | @@ -110,6 +110,12 @@ include "head.php"; |
| 110 | 110 | |
| 111 | 111 | <div class="container-fluid" id="conteudoPrincipal" tabindex="-1"> |
| 112 | 112 | <div class="row center-block"> |
| 113 | +<?php | |
| 114 | + include_once("../classesphp/carrega_ext.php"); | |
| 115 | + if(!function_exists("ms_GetVersion")){ | |
| 116 | + echo '<div class="alert alert-danger" role="alert">Verifique se PHP-Mapscript está instalado</div>'; | |
| 117 | + } | |
| 118 | +?> | |
| 113 | 119 | <!-- Template para criacao dos quadros ver index.js --> |
| 114 | 120 | <div id="botoesTpl" class="hidden"> |
| 115 | 121 | <div class="cartao {{{fa}}} col-xs-12 center-block" |
| ... | ... | @@ -227,6 +233,5 @@ include "head.php"; |
| 227 | 233 | $.material.init(); |
| 228 | 234 | }); |
| 229 | 235 | </script> |
| 230 | - | |
| 231 | 236 | </body> |
| 232 | 237 | </html> | ... | ... |
testainstal/index.php
| ... | ... | @@ -32,8 +32,8 @@ include "../init/head.php"; |
| 32 | 32 | <div class="container-fluid migalha" > |
| 33 | 33 | <div class="row"> |
| 34 | 34 | <div class="btn-group btn-breadcrumb"> |
| 35 | - <a class="btn btn-default" href="../init/index.php?home="><div>i3Geo</div></a> | |
| 36 | - <a class="btn btn-default" style="pointer-events: none"><div>Teste de instalação</div></a> | |
| 35 | + <a class="btn btn-default" href="../init/index.php?home=">i3Geo</a> | |
| 36 | + <a class="btn btn-default" style="pointer-events: none">Teste de instalação</a> | |
| 37 | 37 | </div> |
| 38 | 38 | </div> |
| 39 | 39 | </div> |
| ... | ... | @@ -194,6 +194,9 @@ HTML; |
| 194 | 194 | $versao = versao(); |
| 195 | 195 | $versao = $versao["principal"]; |
| 196 | 196 | $exts = get_loaded_extensions(); |
| 197 | + if(!function_exists("ms_GetVersion")){ | |
| 198 | + echo '<div class="alert alert-danger" role="alert">Verifique se PHP-Mapscript está instalado</div>'; | |
| 199 | + } | |
| 197 | 200 | echo "<h3>MapServer:</h3><pre>"; |
| 198 | 201 | echo ms_GetVersion(); |
| 199 | 202 | echo "</pre>"; | ... | ... |