Commit cbceb29993ed64c81b7c416d08c60693b7c08333
1 parent
ba6bcdbf
Exists in
master
and in
7 other branches
Implementação do Mustache
Showing
1 changed file
with
0 additions
and
30 deletions
Show diff stats
ferramentas/upload/dependencias.php
| ... | ... | @@ -1,30 +0,0 @@ |
| 1 | -<?php | |
| 2 | -/** | |
| 3 | - * Carrega os programas javascript necessarios para a ferramenta | |
| 4 | - * Esse programa e usado na tag <script> ou com a funcao scripttag do i3Geo | |
| 5 | - * Alem de carregar os scripts, carrega tambem o template no formato MUSTACHE, definindo a variavel | |
| 6 | - * javascript i3GEOF.upload.MUSTACHE | |
| 7 | - * O template e substituido pelos valores definidos em index.js no momento da inicializacao da ferramenta | |
| 8 | - */ | |
| 9 | -if(extension_loaded('zlib')){ | |
| 10 | - ob_start('ob_gzhandler'); | |
| 11 | -} | |
| 12 | -header("Content-type: text/javascript"); | |
| 13 | -include("index.js"); | |
| 14 | -include("dicionario.js"); | |
| 15 | -echo "\n"; | |
| 16 | -/** | |
| 17 | - * Inclui o template mustache do HTML usado para criar o conteudo da janela | |
| 18 | - */ | |
| 19 | -echo 'i3GEOF.upload.MUSTACHE = "'; | |
| 20 | -$texto = file_get_contents("template_mst.html"); | |
| 21 | -$texto = str_replace("\n", "", $texto); | |
| 22 | -$texto = str_replace("\r", "", $texto); | |
| 23 | -$texto = str_replace("\t", "", $texto); | |
| 24 | -$texto = str_replace('"', "'", $texto); | |
| 25 | -echo $texto; | |
| 26 | -echo '";'; | |
| 27 | -if(extension_loaded('zlib')){ | |
| 28 | - ob_end_flush(); | |
| 29 | -} | |
| 30 | -?> | |
| 31 | 0 | \ No newline at end of file |