Commit b2d3f9b8689618c99e87d5b7362a23b35378697a
1 parent
441f9ad1
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/uploadsimbolo/dependencias.php
@@ -1,30 +0,0 @@ | @@ -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.uploadsimbolo.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.uploadsimbolo.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 | \ No newline at end of file | 0 | \ No newline at end of file |