Commit f114153c60c12a07a15ef34c9069427bcd27a002

Authored by Edmar Moretti
1 parent c5df4b44

Coprreção em geraminiatura.php

Showing 1 changed file with 8 additions and 6 deletions   Show diff stats
geraminiatura.php
... ... @@ -57,15 +57,19 @@ if (!function_exists('ms_GetVersion'))
57 57 else
58 58 {dl('php_mapscript.so');}
59 59 }
  60 +include("ms_configura.php");
  61 +include("classesphp/funcoes_gerais.php");
  62 +require_once("classesphp/pega_variaveis.php");
  63 +include_once ("classesphp/carrega_ext.php");
60 64 //
61 65 //no caso do programa ser utilizado via URL
62 66 //
63 67 if(!isset($tipo))
64 68 {$tipo = "";}
65   -if($tipo == "mini" || $tipo == "todos" || $tipo == "grande")
  69 +if($tipo == "mini" || $tipo == "todos" || $tipo == "grande" || $tipo == "")
66 70 {
67 71 ms_ResetErrorList();
68   - if (!isset($tipo))
  72 + if (!isset($tipo) || $tipo == "")
69 73 {
70 74 echo "Utilize geraminiatura.php?tipo=mini ou grande ou todos. As imagens são armazenadas no diretório temporário.";
71 75 echo "<br>Após geradas as imagens, copie os arquivos para o diretório i3geo/temas/miniaturas.";
... ... @@ -76,10 +80,8 @@ if($tipo == &quot;mini&quot; || $tipo == &quot;todos&quot; || $tipo == &quot;grande&quot;)
76 80 exit;
77 81 }
78 82  
79   - include("ms_configura.php");
80   - include("classesphp/funcoes_gerais.php");
81   - require_once("classesphp/pega_variaveis.php");
82   - include_once ("classesphp/carrega_ext.php");
  83 +
  84 + error_reporting(E_ALL);
83 85 $arqs = listaArquivos("temas");
84 86 foreach ($arqs["arquivos"] as $arq)
85 87 {
... ...