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,6 +110,12 @@ include "head.php"; | ||
| 110 | 110 | ||
| 111 | <div class="container-fluid" id="conteudoPrincipal" tabindex="-1"> | 111 | <div class="container-fluid" id="conteudoPrincipal" tabindex="-1"> |
| 112 | <div class="row center-block"> | 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 | <!-- Template para criacao dos quadros ver index.js --> | 119 | <!-- Template para criacao dos quadros ver index.js --> |
| 114 | <div id="botoesTpl" class="hidden"> | 120 | <div id="botoesTpl" class="hidden"> |
| 115 | <div class="cartao {{{fa}}} col-xs-12 center-block" | 121 | <div class="cartao {{{fa}}} col-xs-12 center-block" |
| @@ -227,6 +233,5 @@ include "head.php"; | @@ -227,6 +233,5 @@ include "head.php"; | ||
| 227 | $.material.init(); | 233 | $.material.init(); |
| 228 | }); | 234 | }); |
| 229 | </script> | 235 | </script> |
| 230 | - | ||
| 231 | </body> | 236 | </body> |
| 232 | </html> | 237 | </html> |
testainstal/index.php
| @@ -32,8 +32,8 @@ include "../init/head.php"; | @@ -32,8 +32,8 @@ include "../init/head.php"; | ||
| 32 | <div class="container-fluid migalha" > | 32 | <div class="container-fluid migalha" > |
| 33 | <div class="row"> | 33 | <div class="row"> |
| 34 | <div class="btn-group btn-breadcrumb"> | 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 | </div> | 37 | </div> |
| 38 | </div> | 38 | </div> |
| 39 | </div> | 39 | </div> |
| @@ -194,6 +194,9 @@ HTML; | @@ -194,6 +194,9 @@ HTML; | ||
| 194 | $versao = versao(); | 194 | $versao = versao(); |
| 195 | $versao = $versao["principal"]; | 195 | $versao = $versao["principal"]; |
| 196 | $exts = get_loaded_extensions(); | 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 | echo "<h3>MapServer:</h3><pre>"; | 200 | echo "<h3>MapServer:</h3><pre>"; |
| 198 | echo ms_GetVersion(); | 201 | echo ms_GetVersion(); |
| 199 | echo "</pre>"; | 202 | echo "</pre>"; |